/* =============================================================================
   Agent Ekibi - Temel stiller
   ============================================================================= */
:root {
    --brand: #0a5cff;
    --brand-600: #0a4fe0;
    --brand-dark: #0b2fa8;
    --navy: #0b1733;
    --navy-800: #0a1f4d;
    --text: #1d2639;
    --muted: #5b6475;
    --subtle: #8a93a6;
    --border: #d9dee8;
    --border-strong: #c3cad8;
    --bg: #f4f6fa;
    --white: #ffffff;
    --error: #c42b2b;
    --error-bg: #fdf1f1;
    --error-border: #f5cdcd;
    --info-bg: #eef4ff;
    --info-border: #cfdcff;
    --info-text: #0b2fa8;
    --warning: #9a5b00;
    --success: #1f9d55;
    --radius: 10px;
    --radius-lg: 16px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Uzun adres / e-posta / kelime kutusundan taşmasın: gerekirse kelime içinden satıra geçer
       (anywhere: esnek ve ızgara öğelerinin en küçük genişliğini de düşürür; break-word bunu yapmaz) */
    overflow-wrap: anywhere;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Mobilde sayfa yana kaymasın: bir öğe yine de taşarsa sayfa genişlemez, taşan kısım kesilir.
   clip kaydırma kutusu oluşturmaz; position: sticky (üst çubuk, bölüm gezintisi) çalışmaya devam eder. */
html {
    overflow-x: hidden; /* clip desteklemeyen eski tarayıcılar */
    overflow-x: clip;
}

body {
    overflow-x: clip;
}

/* Masaüstü tablolarda sütunlar kelime ortasından bölünmesin (mobilde tablolar kart olur, orada anywhere geçerli) */
@media (min-width: 901px) {
    th,
    td {
        overflow-wrap: break-word;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    flex-shrink: 0;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

/* =============================================================================
   Login - Bölünmüş ekran düzeni
   ============================================================================= */
.auth-page {
    background: var(--white);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---------- Sol marka alanı ---------- */
.auth-brand {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(ellipse 70% 55% at 12% 0%, rgba(10, 92, 255, 0.55), transparent 70%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(10, 92, 255, 0.35), transparent 70%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 55%, #0b2a8f 100%);
}

/* İnce ızgara dokusu */
.auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 35%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 30% 35%, #000 20%, transparent 75%);
    pointer-events: none;
}

/* Logodaki "A" formundan türetilmiş dekoratif çizim */
.brand-mark {
    position: absolute;
    right: -90px;
    bottom: -60px;
    width: 560px;
    height: auto;
    color: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 48px 64px;
}

/* Logo bağlantıları (login ekranı) */
.brand-logo-link {
    display: inline-block;
    align-self: flex-start;
    border-radius: 8px;
}

.brand-logo-link:focus-visible {
    outline-color: var(--white);
    outline-offset: 6px;
}

.auth-mobile-logo-link {
    display: none;
    border-radius: 8px;
}

.auth-mobile-logo-link:focus-visible {
    outline-offset: 6px;
}

.brand-logo {
    width: 280px;
    max-width: 100%;
}

.brand-content {
    margin: auto 0;
    padding: 48px 0;
    max-width: 500px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cfe0ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.brand-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.brand-title {
    margin: 22px 0 16px;
    font-size: clamp(2rem, 3.1vw, 2.9rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.brand-text {
    margin: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
}

.brand-footer {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.brand-footer b {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.auth-copy b {
    font-weight: 600;
    color: var(--muted);
}

/* ---------- Sağ form alanı ---------- */
.auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 32px 24px;
    background: var(--white);
}

.auth-panel {
    width: 100%;
    max-width: 400px;
    margin: auto 0;
}

.auth-mobile-logo {
    display: none;
    width: 280px;
    max-width: 82%;
    margin: 0 auto 36px;
}

.auth-header {
    margin-bottom: 28px;
}

.auth-title {
    margin: 0 0 8px;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.auth-subtitle {
    margin: 0;
    color: var(--muted);
}

.auth-main-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    padding-top: 32px;
    font-size: 0.82rem;
    color: var(--subtle);
}

.auth-copy {
    display: none;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-weight: 500;
    color: var(--success);
}

.secure-badge svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Form ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--subtle);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke 0.15s;
}

.input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    font: inherit;
    font-size: 0.97rem;
    color: var(--text);
    background: #fafbfd;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.input-wrap input::placeholder {
    color: #a7aebd;
}

.input-wrap input:hover {
    border-color: var(--border-strong);
}

.input-wrap input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(10, 92, 255, 0.14);
}

.input-wrap:focus-within .input-icon {
    stroke: var(--brand);
}

.input-wrap input[aria-invalid="true"] {
    border-color: var(--error);
}

.input-wrap input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 4px rgba(196, 43, 43, 0.12);
}

.input-wrap input#password {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--subtle);
    background: transparent;
    border: 0;
    border-radius: 8px;
    transform: translateY(-50%);
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
}

.password-toggle:hover {
    color: var(--brand-dark);
    background: var(--info-bg);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle .icon-eye-off,
.password-toggle[aria-pressed="true"] .icon-eye {
    display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye-off {
    display: block;
}

.field-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--warning);
}

.field-hint[hidden] {
    display: none;
}

.field-hint svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 20px;
    font: inherit;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s, opacity 0.15s;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    height: 54px;
    margin-top: 8px;
    font-size: 1rem;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    box-shadow: 0 10px 24px -10px rgba(10, 92, 255, 0.65);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-600) 0%, #0a2793 100%);
    box-shadow: 0 14px 28px -10px rgba(10, 92, 255, 0.7);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary[disabled] {
    opacity: 0.85;
    cursor: wait;
    transform: none;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.15s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn-spinner {
    display: inline-block;
}

.btn.is-loading .btn-arrow {
    display: none;
}

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

.btn-outline {
    height: 38px;
    color: var(--navy);
    background: var(--white);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--navy);
}

/* ---------- Uyarılar ---------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    margin-bottom: 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.92rem;
    line-height: 1.45;
}

.alert-icon {
    width: 19px;
    height: 19px;
    margin-top: 1px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.alert-error {
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error);
}

.alert-info {
    background: var(--info-bg);
    border-color: var(--info-border);
    color: var(--info-text);
}

.alert-success {
    background: #ecf9f1;
    border-color: #c3ebd3;
    color: #13663a;
}

/* Login ekranı: ziyaretçinin IP adresi */
.alert-ip {
    margin: 24px 0 0;
}

.alert-ip strong {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* Şifremi hatırla + Şifremi unuttum satırı */
.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: -4px 0 18px;
}

.form-row .checkbox {
    font-size: 0.92rem;
    color: var(--text);
}

.form-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brand-dark);
    text-decoration: none;
}

.form-link:hover {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Yeni şifre kuralları (JS ile anlık işaretlenir) */
.password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
    color: var(--muted);
}

.password-rules li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.password-rules li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-strong);
    transition: background-color 0.15s;
}

.password-rules li.is-ok {
    color: #13663a;
}

.password-rules li.is-ok::before {
    background: var(--success);
}


/* ---------- Duyarlı düzen ---------- */
@media (max-width: 1100px) {
    .brand-inner {
        padding: 40px 44px;
    }
}

@media (max-width: 960px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-page,
    .auth-main {
        background:
            radial-gradient(ellipse 80% 40% at 50% 0%, rgba(10, 92, 255, 0.08), transparent 70%),
            var(--white);
    }

    .auth-mobile-logo {
        display: block;
    }

    /* Login sayfasında mobil logo bağlantı içinde: tıklama alanı logo kadar */
    .auth-mobile-logo-link {
        display: block;
        width: min(280px, 82%);
        margin: 0 auto 36px;
    }

    .auth-mobile-logo-link .auth-mobile-logo {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .auth-header {
        text-align: center;
    }

    /* Mobilde alt bilgi (telif + güvenli bağlantı) gizli */
    .auth-main-footer {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-main {
        padding: 36px 20px 20px;
    }

    .auth-title {
        font-size: 1.6rem;
    }
}

/* =============================================================================
   Panel
   ============================================================================= */
.app-page {
    background: var(--bg);
}

/* Üst çubuk: solda logo, sağda menü ikonu (web + mobil) */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--topbar-h, 68px);
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
}

.topbar-logo {
    display: inline-flex;
    flex-shrink: 0;
    border-radius: 6px;
}

.topbar-logo img {
    width: 140px;
}

/* ---------- Üst çubuk araması (logo ile menü ikonu arası) ---------- */
.tb-search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 560px;
    margin: 0 auto;
}

.tb-search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.tb-search-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--subtle);
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
    transition: stroke 0.15s;
}

.tb-search-input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 42px;
    font: inherit;
    font-size: 1rem;                /* 16px: iOS odakta yakınlaştırmasın */
    color: var(--text);
    text-overflow: ellipsis;
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: 12px;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.tb-search.has-kbd .tb-search-input {
    padding-right: 64px;
}

.tb-search-input::placeholder {
    color: var(--subtle);
    opacity: 1;
}

.tb-search-input:hover {
    border-color: var(--border);
}

.tb-search-input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(10, 92, 255, 0.14);
}

.tb-search-field:focus-within .tb-search-icon {
    stroke: var(--brand);
}

.tb-search-input::-webkit-search-cancel-button {
    cursor: pointer;
}

/* Klavye kısayolu ipucu (⌘K / Ctrl K); odakta veya yazı varken gizlenir */
.tb-search-kbd {
    position: absolute;
    right: 10px;
    padding: 1px 7px;
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    pointer-events: none;
}

.tb-search-input:focus ~ .tb-search-kbd,
.tb-search-input:not(:placeholder-shown) ~ .tb-search-kbd {
    display: none;
}

/* Dokunmatik cihazlarda kısayol ipucu anlamsız */
@media (hover: none) {
    .tb-search-kbd {
        display: none;
    }

    .tb-search.has-kbd .tb-search-input {
        padding-right: 14px;
    }
}

/* Sonuç açılır paneli */
.tb-search-pop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 60;
    max-height: min(480px, calc(100vh - var(--topbar-h, 68px) - 24px));
    max-height: min(480px, calc(100dvh - var(--topbar-h, 68px) - 24px));
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow:
        0 24px 48px -16px rgba(11, 23, 51, 0.25),
        0 8px 16px -8px rgba(11, 23, 51, 0.12);
}

.tb-search-pop[hidden] {
    display: none;
}

.tb-search-label {
    margin: 6px 10px 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--subtle);
}

.tb-search-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Bölüm başlığı: Sayfalar / Kayıtlar (veritabanı sonuçları, /ara/veri) */
.tb-search-baslik {
    margin: 10px 10px 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--subtle);
}

.tb-search-baslik.is-yukleniyor {
    margin: 8px 10px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.82rem;
    color: var(--muted);
}

.tb-search-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.tb-search-opt.is-active {
    background: var(--info-bg);
}

.tb-search-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    color: var(--brand);
    background: var(--info-bg);
    border-radius: 9px;
}

.tb-search-opt.is-active .tb-search-ico {
    color: var(--white);
    background: var(--brand);
}

.tb-search-ico svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tb-search-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.tb-search-text strong,
.tb-search-text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tb-search-text strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--navy);
}

.tb-search-text span {
    font-size: 0.8rem;
    color: var(--muted);
}

.tb-search-group {
    flex-shrink: 0;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--bg);
    border-radius: 999px;
}

.tb-search-opt.is-active .tb-search-group {
    background: var(--white);
}

.tb-search-empty {
    margin: 0;
    padding: 18px 10px;
    font-size: 0.9rem;
    text-align: center;
    color: var(--muted);
}

.tb-search-more {
    display: block;
    margin-top: 4px;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: var(--brand-dark);
    text-decoration: none;
    border-top: 1px solid #eceff4;
}

.tb-search-more:hover {
    color: var(--brand);
}

.tb-search-more[hidden] {
    display: none;
}

/* Sayfa içeriği: tam ekran genişliği (header ile aynı kenar boşlukları) */
.content {
    width: 100%;
    margin: 0;
    padding: 32px 24px;
}

.content h1 {
    margin-top: 0;
    color: var(--navy);
}

.card {
    margin-bottom: 24px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.card h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: var(--navy);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.card-head form {
    margin: 0;
}

.status-list {
    display: grid;
    gap: 12px;
    margin: 0 0 16px;
}

.status-list > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.status-list dt {
    min-width: 180px;
    font-weight: 600;
}

.status-list dd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.88rem;
}

.empty {
    margin: 0;
    padding: 20px;
    text-align: center;
    color: var(--muted);
    background: var(--bg);
    border-radius: var(--radius);
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-success {
    color: #13663a;
    background: #e3f6ec;
}

.badge-warning {
    color: #7a4700;
    background: #fff3d6;
}

.badge-info {
    margin-left: 6px;
    color: var(--info-text);
    background: var(--info-bg);
}

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

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eceff4;
    white-space: nowrap;
}

.table th {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}

.table form {
    margin: 0;
}

/* İşlem sütunu (Düzenle / Detay / Sil): içerik kadar dar, tablonun sağ kenarına dayalı */
.table th.cell-action,
.table td.cell-action {
    width: 1%;
    text-align: right;
}

.table td.cell-action .row-actions {
    justify-content: flex-end;
    vertical-align: middle;
}

.btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 0.85rem;
}

.btn-danger {
    color: var(--error);
}

.btn-danger:hover {
    border-color: var(--error);
}

.badge-muted {
    color: var(--muted);
    background: var(--bg);
}

.badge-danger {
    color: #b42318;
    background: #fee4e2;
}

/* ---------- Sayfa başlığı ---------- */
.page-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.page-head h1 {
    margin: 0 0 2px;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
}

.page-head p {
    margin: 0;
}

.page-head-title {
    flex: 1 1 auto;
    min-width: 0;
}

.page-head-title h1 {
    overflow-wrap: anywhere;
}

/* Başlık satırının sağına dayalı aksiyon alanı */
.page-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.page-head-actions .btn {
    height: 44px;
}

@media (max-width: 640px) {
    .page-head {
        flex-wrap: wrap;
    }

    .page-head-actions {
        width: 100%;
    }

    .page-head-actions .btn {
        flex: 1 1 auto;
    }
}

.btn-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-icon,
.section-icon,
.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: var(--brand);
    background: var(--info-bg);
    border-radius: 12px;
}

.page-icon svg,
.section-icon svg,
.empty-state-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-state {
    padding: 64px 24px;
    text-align: center;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 16px;
}

.empty-state-icon svg {
    width: 30px;
    height: 30px;
}

.empty-state p {
    margin: 0;
}

/* Sadece başlık varsa altta fazladan boşluk kalmasın */
.empty-state h2:last-child {
    margin-bottom: 0;
}

/* ---------- Yönetim bölümleri ---------- */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Kart: solda ikon, sağında başlık + açıklama + durum */
.section-card {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.section-card .section-icon {
    align-self: flex-start;
}

.section-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.section-card h2 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.35;
    color: var(--navy);
}

.section-card p {
    margin: 0 0 10px;
    font-size: 0.92rem;
}

.section-card .badge {
    margin-top: auto;
}

/* Aramadan bir bölüme gelindiğinde kartı vurgula */
.section-card:target {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(10, 92, 255, 0.14);
}

/* Yapışkan üst çubuk, hedeflenen öğenin üstünü örtmesin */
:target {
    scroll-margin-top: calc(var(--topbar-h, 68px) + 16px);
}

/* ---------- Arama sonuçları sayfası (/ara): gv-board + gv-table (Notlar listesinin sınıfları) ---------- */
.ara-sonuc {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ara-ikon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--brand);
    background: var(--info-bg);
    border-radius: 10px;
}

.ara-ikon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ara-metin {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

/* Açıklama kısaltılmaz, satıra sığmazsa alta geçer */
.gv-table-ara .gv-site {
    width: auto;
    white-space: normal;
    contain: none; /* Genel kuralın genişlik sınırlaması (contain: inline-size) açıklamayı tek kelimeye düşürür */
}

.gv-table-ara .gv-c-durum .badge {
    white-space: nowrap;
}

/* =============================================================================
   Üst çubuk kısayolları: Bildirimler (zil + açılır panel) · Cüzdan · Raporlar
   Bildirim listesi hem panelde hem /gorev/bildirimler sayfasında (app/views/bildirim_liste.php)
   ============================================================================= */
.tb-ikonlar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 2px;
}

.tb-bld {
    position: relative;
}

.tb-ikon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--navy);
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s, background-color 0.15s;
}

.tb-ikon:hover,
.tb-ikon[aria-expanded="true"] {
    color: var(--brand);
    background: #f2f5fb;
}

.tb-ikon[aria-current="page"] {
    color: var(--brand);
}

.tb-ikon:active {
    opacity: 0.6;
}

.tb-ikon:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.tb-ikon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Okunmamış sayısı: zilin sağ üstünde kırmızı rozet */
.tb-rozet {
    position: absolute;
    top: 3px;
    right: 2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    color: #fff;
    background: #e5383b;
    border: 2px solid #fff;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

.tb-rozet[hidden] {
    display: none;
}

/* Acil (kritik) bildirim varken zil hafifçe sallanır (hareket azaltma tercihinde yok) */
@media (prefers-reduced-motion: no-preference) {
    .tb-bld-dugme.is-kritik:not([aria-expanded="true"]) svg {
        transform-origin: 50% 12%;
        animation: bld-salla 3.2s ease-in-out 1s infinite;
    }

    .tb-bld-dugme.is-kritik .tb-rozet {
        animation: bld-nabiz 2.4s ease-out infinite;
    }
}

@keyframes bld-salla {
    0%, 82%, 100% { transform: rotate(0); }
    85% { transform: rotate(14deg); }
    89% { transform: rotate(-12deg); }
    93% { transform: rotate(8deg); }
    97% { transform: rotate(-4deg); }
}

@keyframes bld-nabiz {
    0% { box-shadow: 0 0 0 0 rgba(229, 56, 59, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(229, 56, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 56, 59, 0); }
}

/* ---------- Açılır panel (masaüstü: zilin altında; mobil: tam ekran) ---------- */
.bld-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: -6px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    width: 420px;
    max-height: min(680px, calc(100vh - var(--topbar-h, 68px) - 24px));
    max-height: min(680px, calc(100dvh - var(--topbar-h, 68px) - 24px));
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 60px -24px rgba(11, 23, 51, 0.45), 0 2px 6px rgba(16, 24, 40, 0.06);
}

.bld-panel[hidden] {
    display: none;
}

.bld-panel:focus {
    outline: none;
}

.bld-panel-ic {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.bld-yukleniyor {
    margin: 0;
    padding: 40px 20px;
    font-size: 0.92rem;
    text-align: center;
    color: var(--muted);
}

.bld-panel-bas {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px 18px;
    border-bottom: 1px solid var(--ws-line-soft, #eef0f4);
}

.bld-panel-baslik {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
}

.bld-panel-sayi {
    flex: none;
    padding: 2px 8px;
    white-space: nowrap;
    font-size: 0.74rem;
    font-weight: 700;
    color: #b42318;
    background: #fee4e2;
    border-radius: 999px;
}

.bld-tumu {
    flex: none;
    margin-left: auto;
    white-space: nowrap;
    padding: 6px 8px;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 8px;
}

.bld-tumu:hover {
    background: var(--info-bg);
}

.bld-tumu:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.bld-panel-kaydir {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.bld-panel-alt {
    flex: none;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--brand);
    text-decoration: none;
    border-top: 1px solid var(--ws-line-soft, #eef0f4);
}

.bld-panel-alt:hover {
    background: #f7f9fe;
}

/* Genel bakış (panel): 4 küçük kutu */
.bld-genel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 12px 14px 4px;
    list-style: none;
}

.bld-genel-oge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    height: 100%;
    padding: 9px 10px;
    color: var(--navy);
    text-decoration: none;
    background: #f9fafb;
    border: 1px solid var(--ws-line-soft, #eef0f4);
    border-radius: 12px;
    transition: border-color 0.15s;
}

.bld-genel-oge:hover {
    border-color: #c7d7fe;
}

.bld-genel-oge:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.bld-genel-ikon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bld-genel-ikon {
    color: #475467;
}

.bld-genel-oge.is-brand .bld-genel-ikon { color: var(--brand); }
.bld-genel-oge.is-warning .bld-genel-ikon { color: #b54708; }
.bld-genel-oge.is-danger .bld-genel-ikon { color: #b42318; }

.bld-genel-oge.is-danger {
    background: #fef3f2;
    border-color: #fecdca;
}

.bld-genel-oge.is-warning {
    background: #fffaeb;
    border-color: #fde3a7;
}

.bld-genel-deger {
    font-size: 1.15rem;
    font-weight: 750;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.bld-genel-etiket {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Mobil: iki sütun; ikon solda, sayı ve etiket ikonun sağında alt alta (yazılar ikonun altına kaymaz) */
@media (max-width: 640px) {
    .bld-genel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bld-genel-oge {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-content: center;
        align-items: center;
        column-gap: 10px;
        row-gap: 1px;
        padding: 10px 12px;
    }

    .bld-genel-ikon {
        display: flex;
        grid-row: 1 / span 2;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.75);
        border-radius: 10px;
    }

    .bld-genel-ikon svg {
        width: 20px;
        height: 20px;
    }

    .bld-genel-deger,
    .bld-genel-etiket {
        grid-column: 2;
        min-width: 0;
    }

    .bld-genel-deger {
        font-size: 1.2rem;
    }

    .bld-genel-etiket {
        font-size: 0.76rem;
    }
}

/* ---------- Liste (panel + sayfa) ---------- */
.bld-grup {
    padding: 6px 0 4px;
}

.bld-grup-baslik {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    margin: 0;
    padding: 10px 18px 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.bld-grup-kritik .bld-grup-baslik {
    color: #b42318;
}

.bld-grup-sayi {
    padding: 0 7px;
    font-size: 0.72rem;
    letter-spacing: 0;
    color: inherit;
    background: #f2f4f7;
    border-radius: 999px;
}

.bld-grup-kritik .bld-grup-sayi {
    background: #fee4e2;
}

.bld-grup-alt {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--subtle);
}

.bld-liste {
    margin: 0;
    padding: 0 8px;
    list-style: none;
}

.bld-link {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 30px 10px 10px;
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.12s;
}

.bld-link:hover {
    background: #f5f7fb;
}

.bld-link:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: -1px;
}

.bld-oge.is-okunmamis .bld-link {
    background: #eef4ff;
}

.bld-oge.is-okunmamis .bld-link:hover {
    background: #e3ecff;
}

.bld-ikon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--brand);
    background: var(--info-bg);
    border-radius: 50%;
}

.bld-ikon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bld-ikon-green  { color: #067647; background: #ecfdf3; }
.bld-ikon-indigo { color: #4f46e5; background: #eef0ff; }
.bld-ikon-brand  { color: #c11574; background: #fdf2fa; }
.bld-ikon.is-kritik { color: #b42318; background: #fee4e2; }
.bld-ikon.is-uyari  { color: #b54708; background: #fef0c7; }

.bld-icerik {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bld-baslik {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--navy);
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bld-oge:not(.is-okunmamis) .bld-baslik {
    font-weight: 500;
}

.bld-metin {
    overflow: hidden;
    font-size: 0.84rem;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bld-alt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-top: 3px;
    font-size: 0.78rem;
    color: var(--subtle);
}

.bld-alt .badge {
    font-size: 0.7rem;
}


.bld-oge.is-okunmamis .bld-zaman {
    font-weight: 600;
    color: var(--brand);
}

.bld-tutar {
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    color: var(--navy);
}

.bld-nokta {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    background: var(--brand);
    border-radius: 50%;
}

.bld-bos {
    padding: 36px 20px 40px;
    text-align: center;
    color: var(--muted);
}

.bld-bos p {
    margin: 0;
}

.bld-bos-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    color: #067647;
    background: #ecfdf3;
    border-radius: 50%;
}

.bld-bos-ikon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bld-daha {
    margin: 4px 0 10px;
    font-size: 0.84rem;
    text-align: center;
    color: var(--muted);
}

/* ---------- /gorev/bildirimler sayfası ---------- */
.bld-segment {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 3px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.bld-segment a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 11px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-radius: 7px;
}

.bld-segment a:hover {
    color: var(--navy);
}

.bld-segment a[aria-current="page"] {
    color: var(--brand-dark);
    background: var(--white);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
}

.bld-segment a:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.bld-segment-sayi {
    min-width: 20px;
    padding: 0 6px;
    font-size: 0.72rem;
    text-align: center;
    background: #eaecf0;
    border-radius: 999px;
}

.bld-sayfa-liste {
    padding: 4px 0 8px;
}

.bld-sayfa .bld-grup-baslik {
    padding-right: 20px;
    padding-left: 20px;
}

.bld-sayfa .bld-liste {
    padding: 0 10px;
}

.bld-sayfa .bld-metin {
    white-space: normal;
}

/* Mobil: panel tam ekran (üst çubuğun altında), sayfa kaydırması kilitli */
@media (max-width: 640px) {
    /* Üst çubukta backdrop-filter var: fixed panelin kapsayıcısı üst çubuk olur. Bu yüzden konum üst çubuğa
       göre (top: 100%) ve yükseklik ekran - üst çubuk olarak verilir. */
    .bld-panel {
        position: fixed;
        top: 100%;
        right: 0;
        left: 0;
        width: auto;
        height: calc(100vh - var(--topbar-h, 64px));
        height: calc(100dvh - var(--topbar-h, 64px));
        max-height: none;
        border: 0;
        border-top: 1px solid var(--border);
        border-radius: 0;
        box-shadow: none;
    }

    /* Sadece kök öğe: body'ye overflow verilirse body kırpma kutusu olur ve panel (kapsayıcısı üst çubuk) kesilir */
    html.bld-acik {
        overflow: hidden;
    }

    .bld-panel-alt {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .ws .bld-sayfa .gv-board-head.gv-board-head-satir {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .bld-segment {
        display: flex;
    }

    .bld-segment a {
        flex: 1 1 auto;
        justify-content: center;
        padding: 0 8px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .bld-sayfa .bld-liste {
        padding: 0 4px;
    }
}

/* Dar telefon: logo küçülür, ikonlar sıkışır (logo + 3 kısayol + menü tek satır) */
@media (max-width: 400px) {
    header.topbar {
        gap: 4px;
        padding-right: 12px;
        padding-left: 14px;
    }

    .topbar .topbar-logo img {
        width: 108px;
    }

    .topbar .tb-ikon {
        width: 40px;
        height: 40px;
    }

    .topbar .tb-ikon svg {
        width: 23px;
        height: 23px;
    }

    .topbar .mnav-toggle {
        width: 44px;
        margin-right: -6px;
    }

    .bld-panel-bas {
        gap: 6px;
        padding-right: 10px;
        padding-left: 14px;
    }

    .bld-panel-baslik {
        font-size: 1.02rem;
    }

    .bld-tumu {
        padding: 6px;
        font-size: 0.8rem;
    }
}

/* Çok dar telefon (320-360px): logo + 4 kısayol + menü */
@media (max-width: 360px) {
    header.topbar {
        gap: 2px;
        padding-right: 10px;
        padding-left: 12px;
    }

    .topbar .topbar-logo img {
        width: 88px;
    }

    .topbar .tb-ikonlar {
        gap: 0;
    }

    .topbar .tb-ikon {
        width: 37px;
        height: 40px;
    }

    .topbar .tb-ikon svg {
        width: 22px;
        height: 22px;
    }

    .topbar .tb-rozet {
        right: -1px;
    }

    .topbar .mnav-toggle {
        width: 40px;
        margin-right: -4px;
    }
}

@media print {
    .tb-ikonlar,
    .bld-panel {
        display: none !important;
    }
}

/* =============================================================================
   Profilim (/profil)
   ============================================================================= */
.ws .card.prf-kimlik {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.prf-avatar {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-radius: 50%;
    box-shadow: 0 8px 20px -10px rgba(10, 92, 255, 0.7);
}

.prf-kimlik-metin {
    min-width: 0;
}

.ws .prf-ad {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.prf-mail {
    margin: 2px 0 8px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.prf-etiketler {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.prf-son {
    font-size: 0.84rem;
    color: var(--muted);
}

.prf-izgara {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
    margin-bottom: 24px;
}

.ws .prf-izgara .card {
    margin-bottom: 0;
}

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

.prf-form .gf-actions {
    margin-top: 8px;
}

.prf-sifre-alan {
    position: relative;
}

.prf-sifre-alan .form-control {
    padding-right: 50px;
}

.prf-sifre-alan .form-control:not(:has(+ .password-toggle)) {
    padding-right: 14px;
}

/* E-postanın mevcut şifresi: JS varken sadece e-posta değişince görünür */
.has-js .prf-mail-sifre:not([data-acik]) {
    display: none;
}

.prf-not {
    margin: -4px 0 0;
}

.prf-baglantilar {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.prf-baglantilar a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    color: var(--navy);
    text-decoration: none;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 12px;
    transition: border-color 0.15s, background-color 0.15s;
}

.prf-baglantilar a:hover {
    background: #f7f9fe;
    border-color: #c7d7fe;
}

.prf-baglantilar a:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.prf-baglantilar a > span:nth-child(2) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.prf-baglantilar small {
    color: var(--muted);
}

.prf-baglantilar svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.prf-baglantilar a > svg {
    flex: none;
    color: var(--subtle);
}

.prf-bag-ikon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--brand);
    background: var(--info-bg);
    border-radius: 12px;
}

/* Ayar satırları alt alta (Monitör ekranı: para · hava sesi · saat sesi) */
.prf-ayarlar {
    display: grid;
    gap: 10px;
}

/* Ayar satırı (Monitör ekranı): ikon · başlık + açıklama · anahtar (switch). Anahtar formu gönderir (JS gerekmez). */
.prf-ayar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 12px;
}

.prf-ayar .prf-bag-ikon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.prf-ayar-metin {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    color: var(--navy);
}

.prf-ayar-metin small {
    color: var(--muted);
}

.prf-switch {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 2px 4px 4px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--muted);
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 999px;
}

.prf-switch-iz {
    position: relative;
    display: inline-block;
    flex: none;
    width: 46px;
    height: 28px;
    background: #d0d5dd;
    border-radius: 999px;
    transition: background-color 0.18s ease;
}

.prf-switch-top {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25);
    transition: transform 0.18s ease;
}

.prf-switch[aria-checked="true"] {
    color: var(--success, #067647);
}

.prf-switch[aria-checked="true"] .prf-switch-iz {
    background: var(--ios-green, #34c759);
}

.prf-switch[aria-checked="true"] .prf-switch-top {
    transform: translateX(18px);
}

.prf-switch:hover .prf-switch-iz {
    filter: brightness(0.96);
}

.prf-switch:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.prf-switch-yazi {
    min-width: 4.6em;
}

@media (prefers-reduced-motion: reduce) {
    .prf-switch-iz,
    .prf-switch-top {
        transition: none;
    }
}

@media (max-width: 640px) {
    .prf-ayar {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px;
    }

    .prf-ayar-metin {
        flex-basis: calc(100% - 54px);
    }

    .prf-switch {
        margin-left: 54px;
    }
}

@media (max-width: 900px) {
    .prf-izgara {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .ws .card.prf-kimlik {
        gap: 14px;
    }

    .prf-avatar {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
    }

    .ws .prf-ad {
        font-size: 1.1rem;
    }

    .prf-izgara {
        gap: 16px;
    }

    .prf-form .gf-actions .btn {
        width: 100%;
    }
}

/* =============================================================================
   Menü - iOS tarzı (Ayarlar uygulaması düzeni)
   Web: sağda tam yükseklikte panel · Mobil (640px ve altı): tam ekran
   ============================================================================= */
:root {
    --topbar-h: 68px;
    --ios-bg: #f2f2f7;              /* systemGroupedBackground */
    --ios-cell: #ffffff;            /* secondarySystemGroupedBackground */
    --ios-label: #000000;
    --ios-secondary: #8e8e93;       /* secondaryLabel */
    --ios-group-title: #6d6d72;
    --ios-separator: rgba(60, 60, 67, 0.22);
    --ios-pressed: #e5e5ea;
    --ios-fill: rgba(120, 120, 128, 0.14);
    --ios-blue: #007aff;
    --ios-green: #34c759;
    --ios-indigo: #5856d6;
    --ios-red: #ff3b30;
    --ios-spring: cubic-bezier(0.32, 0.72, 0, 1);
    --ios-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Menü ikonu: çerçevesiz, sadece ikon ---------- */
.mnav-toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: -10px;
    color: var(--navy);
    border-radius: var(--radius);
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s, opacity 0.15s;
}

.mnav-toggle:hover {
    color: var(--brand);
}

.mnav-toggle:active {
    opacity: 0.5;
}

.mnav-toggle svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* ---------- Kap ve arka plan ---------- */
.mnav {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    font-family: var(--ios-font);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    transition: visibility 0s linear 0.5s; /* Kapanış animasyonu bitince gizle */
}

.mnav.is-open,
.mnav:target {
    visibility: visible;
    transition-delay: 0s;
}

.mnav-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mnav.is-open .mnav-overlay,
.mnav:target .mnav-overlay {
    opacity: 1;
}

/* ---------- Panel: varsayılan tam ekran (web düzeni aşağıda) ---------- */
.mnav-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--ios-label);
    background: var(--ios-bg);
    transform: translateX(100%);
    transition: transform 0.5s var(--ios-spring);
    will-change: transform;
}

.mnav.is-open .mnav-panel,
.mnav:target .mnav-panel {
    transform: translateX(0);
}

.mnav-panel:focus {
    outline: none;
}

.mnav-panel.is-dragging {
    transition: none;
}

/* ---------- Üst çubuk: büyük başlık + yuvarlak kapat ---------- */
.mnav-bar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(14px + env(safe-area-inset-top)) 16px 10px 20px;
}


.mnav-title {
    margin: 0;
    font-size: 2.125rem;            /* iOS Large Title: 34pt */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: var(--ios-label);
}

.mnav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--ios-secondary);
    background: var(--ios-fill);
    border-radius: 50%;
    transition: background-color 0.15s, transform 0.15s;
}

.mnav-close:hover {
    background: rgba(120, 120, 128, 0.22);
}

.mnav-close:active {
    transform: scale(0.92);
}

.mnav-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
}

/* ---------- Kaydırılabilir içerik ---------- */
.mnav-scroll {
    flex: 1;
    min-height: 0;
    padding: 6px 16px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Açılışta gruplar sırayla hafifçe yükselir */
.mnav.is-open .mnav-scroll > *,
.mnav:target .mnav-scroll > * {
    animation: mnav-rise 0.5s var(--ios-spring) both;
}

.mnav.is-open .mnav-scroll > :nth-child(2) { animation-delay: 0.04s; }
.mnav.is-open .mnav-scroll > :nth-child(3) { animation-delay: 0.08s; }
.mnav.is-open .mnav-scroll > :nth-child(4) { animation-delay: 0.12s; }
.mnav.is-open .mnav-scroll > :nth-child(5) { animation-delay: 0.16s; }

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

/* ---------- Gruplu liste ---------- */
.mnav-group {
    margin-top: 28px;
}

.mnav-scroll > .mnav-group:first-child {
    margin-top: 10px;
}

.mnav-group-title {
    margin: 0 0 7px;
    padding: 0 16px;
    font-size: 0.8125rem;           /* 13pt */
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--ios-group-title);
}

.mnav-group-foot {
    margin: 7px 0 0;
    padding: 0 16px;
    font-size: 0.8125rem;
    line-height: 1.38;
    color: var(--ios-group-title);
}

.mnav-list {
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    background: var(--ios-cell);
    border-radius: 12px;
}

.mnav-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 50px;
    padding: 0 16px 0 14px;
    font: inherit;
    font-size: 1.0625rem;           /* 17pt gövde metni */
    letter-spacing: -0.01em;
    color: var(--ios-label);
    text-align: left;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* iOS ayırıcı çizgisi: ikonun sağından başlar */
.mnav-list > li + li > .mnav-row::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 58px;
    height: 1px;
    background: var(--ios-separator);
    transform: scaleY(0.5);
    transform-origin: top;
}

.mnav-row:active {
    background: var(--ios-pressed);
    transition: none;
}

@media (hover: hover) {
    .mnav-row:not(.mnav-row-static):hover {
        background: #f7f7f9;
    }
}

.mnav-row:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--ios-blue);
    border-radius: 12px;
}

.mnav-row-static {
    cursor: default;
}

.mnav-row-static:active {
    background: transparent;
}

.mnav-row-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mnav-row[aria-current="page"] .mnav-row-label {
    font-weight: 600;
}

.mnav-row-value {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9375rem;
    color: var(--ios-secondary);
}

.mnav-row-value svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Renkli kare ikonlar (Ayarlar uygulaması gibi) */
.mnav-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    color: #fff;
    border-radius: 8px;
}

.mnav-ico svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mnav-ico-brand  { background: linear-gradient(160deg, #4f8dff, var(--brand) 60%, var(--brand-dark)); }
.mnav-ico-indigo { background: var(--ios-indigo); }
.mnav-ico-green  { background: var(--ios-green); }
.mnav-ico-blue   { background: var(--ios-blue); }

.mnav-chevron {
    width: 8px;
    height: 13px;
    flex-shrink: 0;
    fill: none;
    stroke: #c4c4c7;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mnav-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--ios-blue);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Çıkış: iOS "yıkıcı" eylem - ortalanmış kırmızı metin */
.mnav-row-danger {
    justify-content: center;
    padding: 0 16px;
    color: var(--ios-red);
}

.mnav-legal {
    margin: 28px 0 4px;
    font-size: 0.75rem;
    text-align: center;
    color: var(--ios-secondary);
}

body.mnav-open {
    overflow: hidden; /* Menü açıkken arka sayfa kaymasın */
}

/* ---------- Mobil: tam ekran ---------- */
@media (max-width: 640px) {
    :root {
        --topbar-h: 64px;
    }

    .topbar {
        padding: 0 16px;
    }

    .topbar-logo img {
        width: 128px;
    }

    /* Mobilde arama gizli (üst çubukta logo + kısayollar + menü ikonu) */
    .tb-search {
        display: none;
    }

    /* Arama yokken kısayollar ortaya kaymasın: sağa, menü ikonunun yanına dayanır */
    .tb-ikonlar {
        margin-left: auto;
    }

    .content {
        padding: 24px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mnav-panel,
    .mnav-overlay {
        transition-duration: 0.01ms !important;
    }

    .mnav .mnav-scroll > * {
        animation: none !important;
    }
}

/* ---------- Web (641px ve üstü): sağda tam yükseklikte panel ---------- */
@media (min-width: 641px) {
    .mnav-overlay {
        background: rgba(11, 23, 51, 0.18);
    }

    .mnav-panel {
        inset: 0 0 0 auto;
        width: 400px;
        border-left: 1px solid rgba(60, 60, 67, 0.12);
        box-shadow: -24px 0 60px -30px rgba(11, 23, 51, 0.35);
    }

    .mnav-bar {
        padding: 22px 20px 6px 24px;
    }

    .mnav-title {
        font-size: 1.75rem;
    }

    .mnav-scroll {
        padding: 6px 20px 24px;
    }

    .mnav-row {
        min-height: 46px;
        font-size: 1rem;
    }

    .mnav-list > li + li > .mnav-row::before {
        left: 56px;
    }
}

/* =============================================================================
   Mod seçimi
   ============================================================================= */
.mode-panel {
    max-width: 440px;
}

.mode-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mode-card {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 18px 18px 16px;
    color: inherit;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.mode-card:hover {
    border-color: var(--brand);
    box-shadow: 0 12px 28px -14px rgba(10, 92, 255, 0.45);
    transform: translateY(-1px);
}

.mode-card:focus-visible {
    outline-offset: 3px;
}

.mode-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    color: var(--white);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-radius: 14px;
}

.mode-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mode-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mode-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
}

.mode-desc {
    font-size: 0.88rem;
    color: var(--muted);
}

.mode-arrow {
    width: 20px;
    height: 20px;
    margin-left: auto;
    flex-shrink: 0;
    fill: none;
    stroke: var(--subtle);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.15s, stroke 0.15s;
}

.mode-card:hover .mode-arrow {
    stroke: var(--brand);
    transform: translateX(3px);
}

.mode-card[aria-disabled="true"] {
    opacity: 0.7;
    cursor: wait;
}

.mode-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eceff4;
}

.mode-footer form {
    margin: 0;
}

.mode-footer a.link-btn {
    text-decoration: underline;
}

/* =============================================================================
   Giriş doğrulama (SMS / Google Authenticator)
   ============================================================================= */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-steps {
    display: flex;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--subtle);
}

.auth-steps li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-steps li + li::before {
    content: "";
    width: 18px;
    height: 1px;
    margin-right: 2px;
    background: var(--border-strong);
}

.auth-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-strong);
}

.auth-steps .is-done {
    color: var(--success);
}

.auth-steps .is-done .auth-step-dot {
    background: var(--success);
}

.auth-steps .is-current {
    color: var(--brand-dark);
}

.auth-steps .is-current .auth-step-dot {
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(10, 92, 255, 0.18);
}

.verify-target {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 14px;
    font-size: 0.92rem;
    color: var(--text);
    background: var(--bg);
    border-radius: var(--radius);
}

.verify-target svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--brand);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.verify-target strong {
    letter-spacing: 0.08em;
}

.input-wrap input.otp-input {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.45em;
    font-variant-numeric: tabular-nums;
}

.input-wrap input.otp-input::placeholder {
    letter-spacing: 0.45em;
}

/* ---------- Doğrulama kodu: 6 ayrı kutu ---------- */
.otp-boxes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.otp-box {
    width: 100%;
    min-width: 0;
    height: 60px;
    padding: 0;
    font: inherit;
    font-size: 1.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: var(--navy);
    caret-color: var(--brand);
    background: #fafbfd;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.otp-box:hover {
    border-color: var(--border-strong);
}

.otp-box:focus {
    outline: none;
    background: var(--white);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(10, 92, 255, 0.14);
}

.otp-box.is-filled {
    background: var(--white);
    border-color: var(--brand-dark);
}

.otp-box[aria-invalid="true"] {
    border-color: var(--error);
}

.otp-box[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 4px rgba(196, 43, 43, 0.12);
}

@media (max-width: 400px) {
    .otp-boxes {
        gap: 6px;
    }

    .otp-box {
        height: 52px;
        font-size: 1.35rem;
    }
}

.field-help {
    margin: 8px 0 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    cursor: pointer;
}

.form-group label.checkbox {
    margin-bottom: 0;
}

.checkbox input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--brand);
    cursor: pointer;
}

.setup-steps {
    margin: 0 0 20px;
    padding-left: 20px;
    font-size: 0.92rem;
    color: var(--text);
}

.setup-steps li + li {
    margin-top: 6px;
}

.qr-box {
    width: 200px;
    margin: 0 auto 16px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.qr-box svg {
    display: block;
    width: 100%;
    height: auto;
}

.secret-key {
    margin-bottom: 24px;
    text-align: center;
}

.secret-key-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.84rem;
    color: var(--muted);
}

.secret-key code {
    display: inline-block;
    padding: 8px 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--navy);
    background: var(--bg);
    border-radius: 8px;
    user-select: all;
    overflow-wrap: anywhere; /* 4'lü gruplar boşluktan bölünür, gerekirse grup içinden */
}

.auth-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.auth-secondary form {
    margin: 0;
}

.link-btn {
    padding: 6px 0;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-dark);
    background: none;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-btn:hover {
    color: var(--brand);
}

.link-btn[disabled] {
    color: var(--subtle);
    text-decoration: none;
    cursor: not-allowed;
}

.link-btn.link-muted {
    color: var(--muted);
}

/* =============================================================================
   Görevler (/gorev/)
   ============================================================================= */
.content-narrow {
    max-width: 960px;
}

.count {
    display: inline-block;
    min-width: 26px;
    margin-left: 6px;
    padding: 1px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: var(--info-text);
    background: var(--info-bg);
    border-radius: 999px;
    vertical-align: middle;
}

/* ---------- Form alanları (ikonsuz) ---------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.form-span-2 {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.req {
    color: var(--error);
}

.form-control {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font: inherit;
    font-size: 0.97rem;
    color: var(--text);
    background: #fafbfd;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

textarea.form-control {
    height: auto;
    min-height: 120px;
    padding: 12px 14px;
    line-height: 1.5;
    resize: vertical;
}

select.form-control {
    padding-right: 40px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    cursor: pointer;
}

.form-control::placeholder {
    color: #a7aebd;
}

.form-control:hover {
    border-color: var(--border-strong);
}

.form-control:focus {
    outline: none;
    background-color: var(--white);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(10, 92, 255, 0.14);
}

.form-control[aria-invalid="true"] {
    border-color: var(--error);
}

.form-control[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 4px rgba(196, 43, 43, 0.12);
}

.form-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
}

.field-error {
    margin: 8px 0 0;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--error);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}

.form-actions .btn {
    height: 46px;
}

/* Gizlenen form öğesi .form-control'ün display:block'u yüzünden görünmesin
   (ör. combobox'a dönüşen asıl <select>) */
.form-control[hidden],
.combo > select[hidden] {
    display: none !important;
}

/* ---------- Görev formu: tek kart, tam genişlik, 12 kolonlu ızgara ---------- */
.gorev-form {
    margin-bottom: 24px;
    padding: 24px;
}

.gf-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px 20px;
}

.gf-grid > * {
    min-width: 0;
}

.gf-grid .form-group {
    margin-bottom: 0;
}

.gf-c3  { grid-column: span 3; }
.gf-c4  { grid-column: span 4; }
.gf-c6  { grid-column: span 6; }
.gf-c12 { grid-column: span 12; }

/* col-md-6: web'de (tablet dahil) yarım genişlik, mobilde tam genişlik */
.gf-md6 { grid-column: span 6; }

.gorev-form .form-group label {
    margin-bottom: 6px;
    font-size: 0.86rem;
}

.gorev-form .form-control {
    height: 44px;
    font-size: 0.95rem;
}

/* Eşzamanlı düzenleme: başka birinin kaydettiği güncel değerler (app/views/kayit_cakisma.php) */
.kayit-cakisma {
    margin: 0 0 20px;
    padding: 14px 16px;
    background: #fffaeb;
    border: 1px solid #fedf89;
    border-radius: var(--radius);
}

.kayit-cakisma-baslik {
    margin: 0 0 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #93370d;
}

.kayit-cakisma-liste {
    display: grid;
    gap: 6px;
    margin: 0;
}

.kayit-cakisma-liste > div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
}

.kayit-cakisma-liste dt {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--muted);
}

.kayit-cakisma-liste dd {
    margin: 0;
    font-size: 0.9rem;
    color: var(--navy);
    overflow-wrap: anywhere;
    white-space: pre-line;
}

@media (max-width: 640px) {
    .kayit-cakisma-liste > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
}

/* Proje / ürün görevinde müşteri seçimi yerine: bağlı olduğu proje / ürün (salt okunur kutu, input yüksekliğinde) */
.gf-etiket {
    display: block;
    margin-bottom: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--navy);
}

.gf-baglam {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 6px 12px 6px 6px;
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: var(--radius);
}

.gf-baglam.is-urun {
    background: #effaf4;
    border-color: #c4ead4;
}

.gf-baglam-ikon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--brand);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.gf-baglam.is-urun .gf-baglam-ikon {
    color: var(--success);
}

.gf-baglam-ikon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gf-baglam-metin {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.gf-baglam-metin strong {
    overflow: hidden;
    font-size: 0.95rem;
    color: var(--navy);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gf-baglam-metin small {
    overflow: hidden;
    font-size: 0.8rem;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Not alanı (müşteri formu): ~2,5 input yüksekliği, dikeyde büyütülebilir */
.gorev-form textarea.gf-note {
    height: 112px;
    min-height: 112px;
    padding: 11px 14px;
    line-height: 1.5;
    resize: vertical;
}

.gorev-form .field-error {
    margin-top: 6px;
}

.gf-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eceff4;
}

.gf-actions .btn {
    height: 44px;
    min-width: 120px;
}

/* Butonların solundaki kısa bilgi (müşteri formu) */
.gf-actions-note {
    align-self: center;
    margin: 0 auto 0 0;
}

/* Tablet: 2 kolon (Tip / Tutar / Bitiş üçlüsü aynı satırda kalır) */
@media (max-width: 900px) {
    .gf-c3 {
        grid-column: span 6;
    }

    .gf-c6 {
        grid-column: span 12;
    }
}

/* Mobil: tek kolon, butonlar tam genişlik */
@media (max-width: 640px) {
    .gorev-form {
        padding: 18px 16px;
    }

    .gf-grid {
        gap: 14px;
    }

    .gf-c3,
    .gf-c4,
    .gf-c6,
    .gf-md6 {
        grid-column: span 12;
    }

    .gf-actions {
        flex-wrap: wrap;
    }

    .gf-actions-note {
        flex: 1 0 100%;
    }

    .gf-actions .btn {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
    }

    /* İptal kısa kalır, kaydet butonu kalan alanı alır (yazı tek satırda) */
    .gf-actions .btn-outline {
        flex: 0 0 auto;
        min-width: 96px;
    }
}

/* ---------- Görev detayı ---------- */
.detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px 24px;
    margin: 8px 0 0;
}

.detail-list > div {
    min-width: 0;
}

.detail-span {
    grid-column: 1 / -1;
}

.detail-list dt {
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}

.detail-list dd {
    margin: 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

.detail-list a {
    color: var(--brand-dark);
}

.detail-note {
    line-height: 1.6;
}

.path-code {
    display: inline-block;
    max-width: 100%;
    padding: 6px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88rem;
    color: var(--navy);
    background: var(--bg);
    border-radius: 8px;
    overflow-wrap: anywhere;
    user-select: all;
}

/* ---------- Sayfalama ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

a.page-link:hover {
    border-color: var(--navy);
}

.page-link.is-current {
    color: var(--white);
    background: var(--brand);
    border-color: var(--brand);
}

.page-link.is-disabled {
    color: var(--subtle);
    background: var(--bg);
}

.page-gap {
    padding: 0 4px;
    color: var(--muted);
}

/* ---------- Promptlar: sade adım listesi ---------- */
/* Solda sıra dairesi (adımlar ince çizgiyle bağlı), ortada içerik, sağda ikon düğmeleri */
.pl {
    margin: 4px 0 20px;
    padding: 0;
    list-style: none;
}

.pl-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0 14px;
    padding: 14px 10px 14px 4px;
    border-radius: 12px;
    transition: background-color 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.pl-item:hover {
    background: #f8f9fc;
}

/* Adımları bağlayan çizgi (daire merkezinden bir sonraki daireye) */
.pl-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 46px;
    bottom: -14px;
    left: var(--pl-line-x, 43px); /* 4px boşluk + 22px tutamaç + 2px + daire merkezi 16px - 1px */
    width: 2px;
    background: #e6e9f0;
    border-radius: 2px;
    pointer-events: none;
}

.pl-item.is-done:not(:last-child)::after {
    background: #cdebd9;
}

.pl-side {
    display: flex;
    align-items: center;
    gap: 2px;
}

.pl-no {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--brand-dark);
    background: var(--info-bg);
    border: 1.5px solid var(--info-border);
    border-radius: 50%;
}

.pl-item.is-done .pl-no {
    color: #13663a;
    background: #e3f6ec;
    border-color: #bfe6cf;
}

/* Tamamlananlarda numaranın yerinde tik */
.pl-item.is-done .pl-num {
    display: none;
}

.pl-check svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Sürükleme tutamacı: sadece JS varken, satırın üzerine gelince belirgin */
.pl-handle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 32px;
    padding: 0;
    color: var(--subtle);
    background: transparent;
    border: 0;
    border-radius: 6px;
    opacity: 0.35;
    cursor: grab;
    touch-action: none;
    transition: opacity 0.15s, color 0.15s, background-color 0.15s;
}

.has-js .pl-handle {
    display: inline-flex;
}

.pl-item:hover .pl-handle,
.pl-handle:focus-visible {
    opacity: 1;
}

.pl-handle:hover {
    color: var(--navy);
    background: rgba(11, 23, 51, 0.06);
}

.pl-handle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
}

/* JS yoksa tutamaç yok: çizgi daire merkezine kaysın */
html:not(.has-js) .pl-item {
    --pl-line-x: 19px;
}

.pl-body {
    min-width: 0;
    padding-top: 5px;
}

.pl-text {
    font-size: 0.97rem;
    line-height: 1.6;
    color: var(--text);
    overflow-wrap: anywhere;
}

.pl-item.is-done .pl-text {
    color: var(--muted);
}

.pl-media {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.pl-media a {
    position: relative;
    display: block;
    width: 84px;
    height: 64px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.15s, transform 0.15s;
}

.pl-media a:hover {
    border-color: var(--brand);
    transform: translateY(-1px);
}

.pl-media img,
.pl-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pl-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(11, 23, 51, 0.28);
}

.pl-play svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.pl-item.is-done .pl-media a {
    opacity: 0.75;
}

.pl-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    margin: 8px 0 0;
    font-size: 0.78rem;
    color: var(--subtle);
}

.pl-status {
    font-weight: 600;
    color: var(--warning);
}

.pl-item.is-done .pl-status {
    color: var(--success);
}

/* Sağdaki ikon düğmeleri: sade, üzerine gelince belirgin */
.pl-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-top: 1px;
}

.pl-actions form,
.sort-fallback {
    display: inline-flex;
    gap: 2px;
    margin: 0;
}

.pl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--subtle);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
}

.pl-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pl-btn:hover {
    color: var(--navy);
    background: rgba(11, 23, 51, 0.06);
}

.pl-btn-ok:hover {
    color: #13663a;
    background: #e3f6ec;
}

.pl-btn-sil:hover {
    color: var(--error);
    background: var(--error-bg);
}

.pl-btn:focus-visible,
.pl-handle:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.has-js .sort-fallback,
.sort-hint {
    display: none;
}

.has-js .sort-hint {
    display: inline;
}

/* Kaydedilen / güncellenen promptu vurgula (#prompt-<id>) */
.pl-item.is-highlight {
    background: var(--info-bg);
    box-shadow: inset 0 0 0 1.5px var(--info-border);
}

/* Sürükleyerek sıralama */
.pl-item.is-dragging {
    z-index: 2;
    background: var(--white);
    box-shadow: 0 14px 30px -12px rgba(11, 23, 51, 0.32), 0 0 0 1px var(--border);
}

.pl-item.is-dragging::after {
    display: none;
}

.pl.is-sorting {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

.pl.is-sorting .pl-item:not(.is-dragging) {
    opacity: 0.6;
}

/* Dokunmatik ekranlarda üzerine gelme yok: tutamaç ve düğmeler her zaman görünür */
@media (hover: none) {
    .pl-handle {
        opacity: 0.7;
    }
}

@media (max-width: 640px) {
    .pl-item {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0 10px;
        padding: 12px 4px;
    }

    /* Mobilde düğmeler içeriğin altında */
    .pl-actions {
        grid-column: 2;
        justify-content: flex-start;
        margin: 6px 0 0 -8px;
    }

    .pl-media a {
        width: 72px;
        height: 56px;
    }
}

.link-btn.link-danger {
    color: var(--error);
}

.sort-status {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: var(--muted);
}

.sort-status:empty {
    display: none;
}

.sort-status.is-error {
    color: var(--error);
}

/* ---------- Prompt yazma alanı ---------- */
.prompt-new {
    padding-top: 20px;
    border-top: 1px solid #eceff4;
}

/* Sohbet kutusu: metin, ek önizlemeleri ve ikon şeridi tek çerçevede */
.composer-box {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(11, 23, 51, 0.04);
    cursor: text;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.composer-box:hover {
    border-color: var(--border-strong);
}

.composer-box:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(10, 92, 255, 0.12);
}

.composer-box:has(.composer-input[aria-invalid="true"]) {
    border-color: var(--error);
}

.composer.is-dropping .composer-box {
    background: var(--info-bg);
    border-color: var(--brand);
    border-style: dashed;
}

.composer-input {
    display: block;
    width: 100%;
    min-height: 76px;
    max-height: 320px;
    padding: 16px 18px 6px;
    font: inherit;
    font-size: 0.97rem;
    line-height: 1.55;
    color: var(--text);
    background: transparent;
    border: 0;
    border-radius: 16px 16px 0 0;
    outline: none;
    resize: none;
    overflow-y: auto;
}

.composer-input::placeholder {
    color: #a7aebd;
}

/* Ek önizlemeleri: kutunun içinde, metnin altında */
.composer-box .file-previews {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    margin: 4px 0 0;
    padding: 0 14px;
}

.composer-box .file-preview .media-name,
.composer-box .file-preview .media-size {
    font-size: 0.72rem;
}

.composer-box > .field-error {
    margin: 4px 18px 0;
}

/* Alt şerit: solda dosya + mikrofon, sağda gönder */
.composer-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 56px;
    padding: 8px 10px 10px;
}

.composer-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.composer-icon[hidden] {
    display: none;
}

.composer-icon:hover {
    color: var(--navy);
    background: var(--bg);
}

.composer-icon:focus-visible,
.composer-bar:has(input[type="file"]:focus-visible) label.composer-icon {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.composer-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mic-btn.is-recording {
    color: var(--white);
    background: var(--error);
    box-shadow: 0 0 0 0 rgba(196, 43, 43, 0.45);
    animation: mic-ring 1.4s ease-out infinite;
}

.mic-btn.is-recording:hover {
    color: var(--white);
    background: var(--error);
}

@keyframes mic-ring {
    70% {
        box-shadow: 0 0 0 8px rgba(196, 43, 43, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(196, 43, 43, 0);
    }
}

.mic-status {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 6px;
    overflow: hidden;
    font-size: 0.82rem;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.composer-send {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 0;
    color: var(--white);
    background: var(--brand);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 14px -6px rgba(10, 92, 255, 0.65);
    transition: background-color 0.15s, transform 0.1s, opacity 0.15s;
}

.composer-send:hover {
    background: var(--brand-dark);
}

.composer-send:active {
    transform: scale(0.94);
}

.composer-send:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

/* Yazı yokken (ve ek seçilmemişken) gönder düğmesi soluk; yine tıklanabilir, sunucu doğrular */
.composer-send.is-idle {
    background: #b9c6e4;
    box-shadow: none;
}

.composer-send-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.composer-send.is-loading .composer-send-icon {
    display: none;
}

.composer-send.is-loading .btn-spinner {
    display: inline-block;
}

.composer > .field-error {
    margin: 8px 4px 0;
}

@media (hover: none) {
    .kbd-hint {
        display: none;
    }
}

/* Seçilen dosyaların önizlemesi ve mevcut ekler */
.file-previews,
.media-edit-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.file-previews[hidden] {
    display: none;
}

.file-preview,
.media-edit-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.media-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg);
    border-radius: 8px;
}

.media-thumb img,
.media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-badge {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 2px 7px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(11, 23, 51, 0.75);
    border-radius: 6px;
}

.media-name {
    overflow: hidden;
    font-size: 0.8rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.media-size {
    font-size: 0.75rem;
    color: var(--muted);
}

.file-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--white);
    background: rgba(11, 23, 51, 0.75);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.file-remove:hover {
    background: var(--error);
}

.file-remove svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.media-edit {
    margin: 22px 0 0;
    padding: 0;
    border: 0;
}

.media-edit legend {
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

.media-edit-item {
    cursor: pointer;
}

.media-edit-item .checkbox {
    gap: 8px;
    font-size: 0.85rem;
}

.media-edit-item .checkbox input {
    width: 18px;
    height: 18px;
}

.media-edit-item:has(input:checked) {
    border-color: var(--error);
    background: var(--error-bg);
}

.media-edit-item:has(input:checked) .media-thumb {
    opacity: 0.45;
}

.danger-zone h2 {
    margin-bottom: 4px;
}

.danger-zone p {
    margin: 0;
}

@media (max-width: 640px) {
    .composer-input {
        padding: 14px 14px 4px;
        font-size: 1rem; /* iOS'ta odaklanınca yakınlaştırma olmasın */
    }

    .composer-box .file-previews {
        padding: 0 10px;
    }
}

/* =============================================================================
   Müşteriler
   ============================================================================= */

/* ---------- Görev formunda müşteri seçimi ---------- */
/* Etiket solda, "Yeni müşteri" bağlantısı sağda: seçim kutusunun sağ üst köşesi */
.field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.form-group .field-head label {
    min-width: 0;
    margin-bottom: 0;
}

.gorev-form .field-head {
    margin-bottom: 6px;
}

.field-head-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    /* Satır yüksekliğini artırmasın: yandaki alanlarla aynı hizada kalsın */
    margin: -4px 0;
    padding: 4px 0;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.field-head-link:hover {
    text-decoration: underline;
}

.field-head-link .btn-icon {
    width: 15px;
    height: 15px;
}

/* ---------- Combobox (arama yapılabilen seçim kutusu) ---------- */
.combo {
    position: relative;
}

.combo-input {
    padding-right: 44px;
}

.combo-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    transform: translateY(-50%);
    cursor: pointer;
}

.combo-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.15s;
}

.combo.is-open .combo-toggle svg {
    transform: rotate(180deg);
}

.combo-list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 300px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px -16px rgba(11, 23, 51, 0.35);
}

.combo-list[hidden] {
    display: none;
}

.combo-opt {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.combo-opt strong {
    font-weight: 600;
    color: var(--navy);
}

.combo-opt span {
    font-size: 0.82rem;
    color: var(--muted);
}

.combo-opt:hover,
.combo-opt.is-active {
    background: var(--info-bg);
}

.combo-opt[aria-selected="true"] strong::after {
    content: " ✓";
    color: var(--brand);
}

.combo-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* ---------- Modal (<dialog>) ---------- */
.modal {
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    color: var(--text);
    background: var(--white);
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px -20px rgba(11, 23, 51, 0.5);
}

.modal::backdrop {
    background: rgba(11, 23, 51, 0.45);
}

.modal[open] {
    animation: modal-in 0.18s ease-out;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
}

.modal-form {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 32px);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #eceff4;
}

.modal-head h2 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--navy);
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--muted);
    background: var(--bg);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--navy);
}

.modal-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.modal-body {
    padding: 20px 22px 4px;
    overflow-y: auto;
}

.modal-body .alert[hidden] {
    display: none;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #eceff4;
}

.modal-actions .btn {
    height: 44px;
}

.form-note {
    margin: -6px 0 16px;
}

.field-error[hidden] {
    display: none;
}

/* ---------- Rapor kartları ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.stat-grid-flat {
    margin: 8px 0 0;
}

.stat-grid-flat .stat {
    background: var(--bg);
    border-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.stat-sub {
    font-size: 0.84rem;
    color: var(--muted);
}

.rapor-list {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eceff4;
}

/* ---------- Müşteri listesi ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 4px 0 16px;
}

.filter-bar input[type="search"] {
    flex: 1 1 260px;
    height: 42px;
}

.filter-bar select {
    flex: 0 0 170px;
    height: 42px;
}

.filter-bar .btn {
    height: 42px;
}

/* Çok seçimli filtre (Tüm Görevler): seçimler biraz daha dar */
.filter-bar-cok select {
    flex-basis: 160px;
}

@media (max-width: 1100px) {
    .filter-bar-cok input[type="search"] {
        flex-basis: 100%;
    }

    .filter-bar-cok select {
        flex: 1 1 140px;
        width: auto;
        min-width: 0;
    }
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.card-head .btn-sm .btn-icon {
    width: 16px;
    height: 16px;
}

/* ---------- SweetAlert2 tema uyumu (onay pencereleri) ----------
   Ölçüler sabit px: kütüphanenin em tabanlı boşlukları, ikon (5em) ve düğme kenar boşlukları sıfırlanır.
   İki düğme eşit genişlik + eşit yükseklik (Vazgeç / Evet, sil). */
.swal2-popup.swal-ae {
    width: min(420px, calc(100vw - 32px));
    padding: 28px 24px 24px;
    font-family: var(--font);
    border-radius: var(--radius-lg);
}

.swal2-popup.swal-ae .swal2-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-width: 3px;
    line-height: 56px;
    zoom: 1;
}

.swal2-popup.swal-ae .swal2-icon .swal2-icon-content {
    font-size: 2.1rem;
    font-weight: 600;
}

.swal2-popup.swal-ae .swal2-icon.swal2-warning {
    color: var(--error);
    border-color: rgba(196, 43, 43, 0.35);
}

.swal2-popup.swal-ae .swal2-title {
    padding: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
}

.swal2-popup.swal-ae .swal2-html-container {
    margin: 8px 0 0;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--muted);
}

.swal2-popup.swal-ae .swal-ae-actions {
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    margin: 24px 0 0;
    padding: 0;
}

.swal2-popup.swal-ae .swal-ae-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 180px;
    height: 44px;
    margin: 0;
    padding: 0 16px;
    font-size: 0.95rem;
    line-height: 1;
    border-radius: var(--radius);
    box-shadow: none;
    transform: none;
}

.swal2-popup.swal-ae .swal-ae-actions .btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.btn-danger-solid {
    color: var(--white);
    background: var(--error);
    border-color: var(--error);
}

.btn-danger-solid:hover {
    background: #a52222;
}

.swal2-popup.swal-ae-toast {
    font-family: var(--font);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation-duration: 0.01ms !important;
    }
}

/* =============================================================================
   /gorev/ panosu (Yönetici Ekranı ana sayfası)
   Masaüstü: tablo · Mobil ve dar tablet (900px ve altı): kart listesi
   ============================================================================= */
/* Liste renkleri tüm görev modülünde geçerli (.ws: /gorev/ altındaki her sayfa) */
.gv,
.ws {
    --gv-danger: #d92d20;
    --gv-danger-bg: #fef3f2;
    --gv-warning: #b54708;
    --gv-warning-bg: #fffaeb;
    --gv-info: #175cd3;
    --gv-info-bg: #eff6ff;
    --gv-neutral: #667085;
    --gv-neutral-bg: #f2f4f7;
    --gv-line: #eaecf0;
}

/* ---------- Liste kartı ---------- */
.gv-board {
    padding: 0;
    overflow: hidden;
}

.gv-board-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gv-line);
}

.gv-board-head h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--navy);
}

.gv-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

html:not(.has-js) .gv-tools {
    display: none;
}

.gv-search {
    position: relative;
    display: block;
    width: 240px;
}

.gv-search svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--subtle);
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}

.gv-search input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 36px;
    font: inherit;
    font-size: 0.88rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: 10px;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.gv-search input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(10, 92, 255, 0.14);
}

/* ---------- Tablo ---------- */
.gv-table-wrap {
    overflow-x: auto;
}

.gv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.gv-table th {
    padding: 11px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    background: #fafbfc;
    border-bottom: 1px solid var(--gv-line);
}

.gv-table td {
    padding: 14px 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--gv-line);
}

.gv-table tbody tr:last-child td {
    border-bottom: 0;
}

.gv-row {
    transition: background-color 0.12s;
}

.gv-row[hidden] {
    display: none;
}

.gv-num {
    text-align: right !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.gv-c-gorev {
    min-width: 220px;
}

.gv-title {
    display: block;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    overflow-wrap: anywhere;
}

a.gv-title:hover {
    color: var(--brand);
}

/* Görev adının altında web adresi (şemasız) */
.gv-site {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 3px;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--muted);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Proje / ürün görevi etiketi (görev adının altında; kartta da görünür, müşteri sütunu kartta gizli) */
.gv-baglam {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    margin-top: 5px;
    padding: 2px 8px 2px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--info-text);
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 999px;
}

.gv-baglam.is-urun {
    color: #05603a;
    background: #ecfdf3;
    border-color: #abefc6;
}

.gv-baglam svg {
    flex: none;
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gv-baglam > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gv-c-gorev .gv-baglam {
    display: flex;
    width: fit-content;
}

a.gv-site:hover {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Tabloda tek satırlık adres / önizleme sütunu genişletmesin: hücre kadar yer kaplar, fazlası … ile kısalır
   (contain: inline-size, içeriğin en küçük genişliğe katkısını sıfırlar; uzun adres tabloyu ekrandan taşırıyordu) */
.gv-table .gv-site {
    width: auto;
    contain: inline-size;
}

/* Müşteri sütunu: firma, altında yetkili */
.gv-c-musteri {
    min-width: 160px;
}

.gv-firma {
    display: block;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    overflow-wrap: anywhere;
}

a.gv-firma:hover {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gv-yetkili {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}

/* Geçen gün rozeti: bekleyen işte 0-6 gün nötr, 7-29 gün uyarı, 30+ gün kırmızı (gorev_gecen_gun_ton) */
.gv-c-gun {
    width: 1%;
    white-space: nowrap;
}

.badge-gun {
    color: #475467;
    background: #f2f4f7;
    font-variant-numeric: tabular-nums;
}

.badge-gun-uyari {
    color: #93370d;
    background: #fef0c7;
}

.badge-gun-gecikti {
    color: #b42318;
    background: #fee4e2;
}

/* Prompt ilerlemesi: ince çubuk + "2/3" */
.gv-c-ilerleme {
    width: 1%;
    white-space: nowrap;
}

.gv-progress {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.gv-progress-bar {
    width: 64px;
    height: 6px;
    overflow: hidden;
    vertical-align: middle;
    background: #eaecf0;
    border: 0;
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
}

.gv-progress-bar::-webkit-progress-bar {
    background: #eaecf0;
    border-radius: 999px;
}

.gv-progress-bar::-webkit-progress-value {
    background: var(--brand);
    border-radius: 999px;
}

.gv-progress-bar::-moz-progress-bar {
    background: var(--brand);
    border-radius: 999px;
}

.gv-progress.is-full {
    color: #067647;
}

.gv-progress.is-full .gv-progress-bar::-webkit-progress-value {
    background: var(--success);
}

.gv-progress.is-full .gv-progress-bar::-moz-progress-bar {
    background: var(--success);
}

.gv-muted {
    font-size: 0.84rem;
    font-weight: 400;
    color: var(--subtle);
}

/* Müşteri listesi hücreleri */
.gv-c-ozet {
    min-width: 150px;
}

/* E-posta kelime ortasından bölünmez; sığmazsa üç noktayla kısalır (tamamı title / bağlantıda) */
.gv-mail {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    text-decoration: none;
}

a.gv-mail:hover {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gv-bekleyen {
    font-weight: 600;
    color: #b54708;
}

.gv-c-son {
    width: 1%;
    white-space: nowrap;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

/* Durum sütunu (yalnız /gorev/gorevler) */
.gv-c-durum {
    width: 1%;
    white-space: nowrap;
}

/* Tüm görevler sayfası: filtre çubuğu ve sayfalama kart içinde */
.gv-board-filtre {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gv-line);
}

.ws .gv-board-filtre .filter-bar {
    margin: 0;
}

.gv-board-foot {
    padding: 0 20px 20px;
    border-top: 1px solid var(--gv-line);
}

/* Başlık + Dışarı Aktar: her genişlikte aynı satır */
.gv-board-head.gv-board-head-satir {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.gv-board-head-satir h2 {
    min-width: 0;
}

.gv-board-head-satir .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Başlık satırının sağı: sayfa bilgisi + "Tümünü göster"; dar ekranda başlığın altına iner */
.gv-board-head-sag {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.gv-board-head.gv-board-head-satir:has(> .gv-board-head-sag) {
    flex-wrap: wrap;
}

/* Kart başlığının altındaki kısa açıklama (ör. güvenilir cihazlar) */
.gv-board-not {
    margin: 0;
    padding: 14px 20px;
    font-size: 0.86rem;
    color: var(--muted);
    border-bottom: 1px solid var(--gv-line);
}

/* =============================================================================
   Güvenlik (/guvenlik) ve güvenlik logları (/guvenlik/log): gv-table satırları
   ============================================================================= */
/* Hücre etiketi sadece kart görünümünde (900px ve altı; tablo başlığı gizliyken) */
.gv-mobil-etiket {
    display: none;
}

.gv-c-ip,
.gv-c-tarih,
.gv-c-zaman {
    width: 1%;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.gv-c-tarih {
    color: var(--muted);
}

/* Cihaz sütunu kalan genişliği alır; uzun tarayıcı bilgisi tabloyu genişletmez (max-width: 0 tablo hilesi) */
.gv-table-cihaz .gv-c-cihaz {
    width: 100%;
    min-width: 220px;
    max-width: 0;
}

.gv-c-cihaz .badge-info {
    margin-left: 8px;
    vertical-align: 1px;
}

/* Cihazın tam tarayıcı bilgisi: tek satır, sığmazsa üç nokta (tamamı title'da) */
.gv-ua {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-wrap: normal;
}

.gv-table-log .gv-c-olay {
    min-width: 200px;
}

/* Log tablosu dar masaüstünde (1024px) yatay kaydırmasız sığsın: uzun e-posta satır kırar */
.gv-table-log .gv-c-hesap .gv-mail {
    white-space: normal;
    overflow-wrap: anywhere;
}

.gv-table-log .gv-c-cihaz {
    min-width: 0;
    white-space: nowrap;
}

.gv-table-log .gv-c-ip .gv-firma {
    font-variant-numeric: tabular-nums;
}

.gv-c-durum .badge-info {
    margin-left: 0;
}

/* Hatalı kayıtlar: olay adı kırmızı tonda */
.gv-log-danger .gv-c-olay .gv-title {
    color: #b42318;
}

@media (max-width: 900px) {
    .gv-mobil-etiket {
        display: block;
        margin-bottom: 2px;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--subtle);
    }

    .gv-board-not {
        padding: 0 0 14px;
        border-bottom: 0;
    }

    .gv-c-ip,
    .gv-c-tarih,
    .gv-c-zaman {
        width: auto;
        font-size: 0.86rem;
    }

    /* Cihaz kartında iki sütun yan yana: dar ekranda tarih + saat alt satıra iner, çakışmaz */
    .gv-c-tarih {
        white-space: normal;
    }

    /* Güvenilir cihaz kartı */
    .gv-table-cihaz .gv-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        grid-template-areas:
            "cihaz   cihaz  aksiyon"
            "ip      bitis  bitis"
            "eklenme sonkul sonkul";
    }

    .gv-table-cihaz .gv-c-cihaz   { grid-area: cihaz; width: auto; min-width: 0; max-width: none; }
    .gv-table-cihaz .gv-c-ip      { grid-area: ip; }
    .gv-table-cihaz .gv-c-eklenme { grid-area: eklenme; }
    .gv-table-cihaz .gv-c-sonkul  { grid-area: sonkul; }
    .gv-table-cihaz .gv-c-bitis   { grid-area: bitis; }

    /* Log kartı: olay + durum, hesap, IP + zaman, cihaz */
    .gv-table-log .gv-row {
        grid-template-areas:
            "olay  durum"
            "hesap hesap"
            "ip    zaman"
            "cihaz cihaz";
        border-left-color: var(--border-strong);
    }

    .gv-table-log .gv-row.gv-log-success { border-left-color: #a6e2c0; }
    .gv-table-log .gv-row.gv-log-danger  { border-left-color: #fda29b; }
    .gv-table-log .gv-row.gv-log-warning { border-left-color: #fec84b; }
    .gv-table-log .gv-row.gv-log-info    { border-left-color: #b2ccff; }

    .gv-table-log .gv-c-olay  { grid-area: olay; min-width: 0; }
    .gv-table-log .gv-c-hesap { grid-area: hesap; min-width: 0; }
    .gv-table-log .gv-c-ip    { grid-area: ip; align-self: center; }
    .gv-table-log .gv-c-zaman { grid-area: zaman; align-self: center; justify-self: end; text-align: right; }
    .gv-table-log .gv-c-cihaz { grid-area: cihaz; font-size: 0.84rem; color: var(--muted); }

    /* Durum rozeti: kartın sağ üstünde (genel kart düzenindeki alt şerit yerine) */
    .gv-table-log .gv-c-durum {
        grid-area: durum;
        align-self: start;
        padding-top: 0 !important;
    }

    /* Zaman tek satır: "15.10.2026 20:39:33" */
    .gv-table-log .gv-c-zaman .gv-firma,
    .gv-table-log .gv-c-zaman .gv-yetkili {
        display: inline;
        margin: 0;
    }

    .gv-table-log .gv-c-zaman .gv-yetkili {
        margin-left: 6px;
    }
}

.gv-c-tutar {
    font-weight: 600;
    color: var(--navy);
}

/* Satır aksiyonları: sade ikon düğmeleri (düzenle, sil) + detay oku */
.gv-c-aksiyon {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.gv-c-aksiyon .inline-form {
    display: inline-flex;
    margin: 0;
    vertical-align: middle;
}

.gv-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    color: var(--subtle);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.gv-icon-btn + .gv-icon-btn,
.gv-icon-btn + .inline-form,
.inline-form + .gv-icon-btn {
    margin-left: 2px;
}

.gv-icon-btn:hover {
    color: var(--navy);
    background: #f2f4f7;
}

.gv-icon-btn:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.gv-icon-sil:hover {
    color: var(--error);
    background: var(--error-bg);
}

/* Detay oku: hafif çerçeveli, satırın üzerine gelince marka rengi */
.gv-open {
    color: var(--brand);
    border-color: var(--ws-line, #e4e7ec);
}

.gv-open:hover {
    color: var(--white);
    background: var(--brand);
    border-color: var(--brand);
}

.gv-icon-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Tıklanabilir satır (tr[data-href], JS): satırın her yeri detayı açar ----------
   Sakin geri bildirim: hafif zemin tonu, solda ince marka çizgisi, başlık marka rengi,
   › düğmesi dolar ve hafifçe ileri kayar. Sadece fareli cihazlarda (dokunmatikte hover takılı kalmasın). */
.has-js .gv-row[data-href] {
    cursor: pointer;
}

.gv-row > td {
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.gv-title,
.gv-open svg {
    transition: color 0.15s ease, transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .has-js .gv-row[data-href]:hover > td {
        background: #f7f9fe;
    }

    .has-js .gv-row[data-href]:hover > td:first-child {
        box-shadow: inset 3px 0 0 var(--brand);
    }

    .has-js .gv-row[data-href]:hover .gv-title {
        color: var(--brand);
    }

    .has-js .gv-row[data-href]:hover .gv-open {
        color: var(--white);
        background: var(--brand);
        border-color: var(--brand);
    }

    .has-js .gv-row[data-href]:hover .gv-open svg {
        transform: translateX(2px);
    }
}

/* Basılı an: zemin bir ton koyulaşır */
.has-js .gv-row[data-href]:active > td {
    background: #eff3fd;
}

/* Klavye: satırdaki › bağlantısına odaklanınca satır da vurgulanır */
.gv-row:has(.gv-open:focus-visible) > td {
    background: #f7f9fe;
}

.gv-row:has(.gv-open:focus-visible) > td:first-child {
    box-shadow: inset 3px 0 0 var(--brand);
}

@media (prefers-reduced-motion: reduce) {
    .gv-row > td,
    .gv-title,
    .gv-open svg {
        transition: none;
    }

    .has-js .gv-row[data-href]:hover .gv-open svg {
        transform: none;
    }
}

/* Tamamlanan görev / pasif müşteri: başlık sönük */
.gv-row.is-done .gv-title,
.gv-row.is-pasif .gv-title {
    color: var(--muted);
}

.gv-nomatch {
    margin: 0;
    padding: 28px 20px;
    text-align: center;
    color: var(--muted);
}

/* ---------- Boş durum ---------- */
.gv-empty {
    padding: 56px 24px;
    text-align: center;
}

.gv-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    color: #039855;
    background: #ecfdf3;
    border-radius: 50%;
}

.gv-empty-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gv-empty h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: var(--navy);
}

.gv-empty p {
    max-width: 420px;
    margin: 0 auto 20px;
    color: var(--muted);
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .gv-board-head {
        flex-direction: column;
        align-items: stretch;
    }

    .gv-tools {
        justify-content: space-between;
    }

    .gv-search {
        flex: 1 1 220px;
        width: auto;
        max-width: 360px;
    }

    .gv-board-head {
        gap: 12px;
    }

    .gv-table th,
    .gv-table td {
        padding-right: 12px;
        padding-left: 12px;
    }

    .gv-table th:first-child,
    .gv-table td:first-child {
        padding-left: 20px;
    }

    .gv-table th:last-child,
    .gv-table td:last-child {
        padding-right: 20px;
    }

    /* Orta genişlik: ilerleme çubuğu gizlenir, "2/3" kalır */
    .gv-progress-bar {
        display: none;
    }
}

/* ---------- Mobil + dar tablet: kart listesi ---------- */
@media (max-width: 900px) {
    .gv-board {
        overflow: visible;
        background: transparent;
        border: 0;
    }

    .gv-board-head {
        padding: 0 0 14px;
        border-bottom: 0;
    }

    .gv-tools {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        min-width: 0;
    }

    .gv-search {
        flex: none;
        width: 100%;
        max-width: none;
    }

    .gv-search input {
        height: 42px;
        background: var(--white);
        border-color: var(--border);
    }

    .gv-table-wrap {
        overflow: visible;
    }

    .gv-table,
    .gv-table tbody {
        display: block;
    }

    .gv-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    /* Her satır bir kart (sol kenar çizgisi: bekleyen marka, tamamlanan yeşil) */
    .gv-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "gorev    aksiyon"
            "musteri  musteri"
            "ilerleme gun"
            "alt      alt";
        gap: 10px 12px;
        margin-bottom: 10px;
        padding: 14px 14px 14px 16px;
        background: var(--white);
        border: 1px solid var(--gv-line);
        border-left: 3px solid #b2ccff;
        border-radius: 12px;
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    }

    .gv-row.is-done {
        border-left-color: #a6e2c0;
    }

    .gv-row.is-pasif {
        border-left-color: var(--border-strong);
    }

    /* Görev listeleri: kartta müşteri satırı yok (sütun gizli) */
    .gv-table-gorev .gv-row {
        grid-template-areas:
            "gorev    aksiyon"
            "ilerleme gun"
            "alt      alt";
    }

    /* Müşteri listesi: görev sayısı + son görev, alt şeritte tutar ve durum */
    .gv-table-musteri .gv-row {
        grid-template-areas:
            "gorev    aksiyon"
            "ozet     son"
            "alt      alt";
    }

    .gv-row[hidden] {
        display: none;
    }

    .gv-row {
        transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    }

    /* Kart görünümünde hücre zemini / sol çizgi yerine kartın kendisi vurgulanır */
    .has-js .gv-row[data-href]:hover > td,
    .has-js .gv-row[data-href]:active > td,
    .gv-row:has(.gv-open:focus-visible) > td {
        background: transparent;
        box-shadow: none !important;
    }

    .has-js .gv-row[data-href]:hover {
        border-color: #c7d7fe;
        box-shadow: 0 6px 18px -12px rgba(10, 92, 255, 0.45);
    }

    .has-js .gv-row[data-href]:active {
        background: #f7f9fe;
        transform: scale(0.995);
    }

    .gv-row:has(.gv-open:focus-visible) {
        border-color: #c7d7fe;
    }

    .gv-table td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .gv-table th:first-child,
    .gv-table td:first-child,
    .gv-table th:last-child,
    .gv-table td:last-child {
        padding: 0;
    }

    .gv-c-gorev    { grid-area: gorev; min-width: 0; }
    .gv-c-aksiyon  { grid-area: aksiyon; width: auto; align-self: start; }
    .gv-table .gv-c-musteri { display: none; }
    .gv-c-ilerleme { grid-area: ilerleme; align-self: center; width: auto; }
    .gv-c-gun      { grid-area: gun; align-self: center; justify-self: end; width: auto; }
    .gv-c-ozet     { grid-area: ozet; min-width: 0; }
    .gv-c-son      { grid-area: son; align-self: end; justify-self: end; width: auto; font-size: 0.84rem; }

    /* Alt şerit: tam genişlik ayraçlı tutar; durum rozeti aynı şeridin sağına biner */
    .gv-c-tutar {
        grid-area: alt;
        align-self: center;
        padding-top: 10px !important;
        text-align: left !important;
        border-top: 1px solid var(--gv-line) !important;
    }

    .gv-c-durum {
        grid-area: alt;
        align-self: center;
        justify-self: end;
        width: auto;
        padding-top: 10px !important;
    }

    .gv-c-ilerleme .gv-progress-bar {
        display: inline-block;
        width: 88px;
    }

    .gv-title {
        font-size: 1rem;
    }

    .gv-site {
        margin-top: 2px;
    }

    .gv-c-aksiyon .gv-icon-btn {
        width: 36px;
        height: 36px;
    }

    .gv-board-filtre {
        padding: 0 0 14px;
        border-bottom: 0;
    }

    .gv-board-foot {
        padding: 0;
        border-top: 0;
    }

    .gv-board > .empty {
        background: var(--white);
        border: 1px dashed var(--border);
        border-radius: 12px;
    }

    .gv-nomatch {
        padding: 24px 12px;
        background: var(--white);
        border: 1px dashed var(--border);
        border-radius: 12px;
    }
}

/* Dar tablet: kartlar iki sütun */
@media (min-width: 641px) and (max-width: 900px) {
    .gv-table tbody {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gv-row {
        align-content: start;
        margin-bottom: 0;
    }

    .gv-table-wrap + .gv-nomatch,
    .gv-board-foot {
        margin-top: 12px;
    }
}

/* =============================================================================
   Görev modülü ortak tasarım dili (.ws: /gorev/ altındaki tüm sayfaların <main>'i)
   Sayfa başlığı (başlık + aksiyonlar), kartlar, tablolar, formlar.
   Masaüstü: kurumsal, sade · Mobil (760px / 640px ve altı): uygulama düzeni
   ============================================================================= */
.ws {
    --ws-line: #e4e7ec;
    --ws-line-soft: #eef0f4;
    --ws-head-bg: #f9fafb;
    --ws-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    --ws-pad: 24px;
}

/* ---------- Sayfa başlığı ---------- */
.ph {
    margin-bottom: 24px;
}

/* Başlık solda, aksiyonlar sağa dayalı; her genişlikte tek satır (aksiyonlar alta taşmaz) */
.ph-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}

/* Sol blok: (geri düğmesi) + başlık. Başlık kalan genişliği alır, gerekirse kendi içinde satır kırar. */
.ph-lead {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.ph-row-geri .ph-lead {
    gap: 4px;
}

.ph-title {
    flex: 1 1 auto;
    min-width: 0;
}

/* Geri düğmesi (‹): çerçevesiz, hafif ikon düğmesi; başlığın ilk satırıyla aynı hizada.
   Ok, içerik kenarıyla hizalı dursun diye düğme sola taşar (dokunma alanı 38px kalır). */
.ph-geri {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: -9px;
    color: var(--muted);
    border-radius: 10px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.ph-geri svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hover / tıklama efekti yok; sadece klavyeyle odaklanınca halka (erişilebilirlik) */
.ph-geri:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

/* Başlık satırı geri düğmesi kadar yüksek: tek satırlık başlık düğmeyle ortalanır */
.content .ph-row-geri h1 {
    min-height: 38px;
}

.content .ph h1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin: 0;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--navy);
    overflow-wrap: anywhere;
}

/* Tıklanabilir başlık ($phTitleModal): başlık metni + küçük bilgi ikonu, modal açar */
.ph-title-ac {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.ph-title-ac-ikon {
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.15s ease;
}

.ph-title-ac:hover {
    color: var(--brand-dark);
}

.ph-title-ac:hover .ph-title-ac-ikon {
    stroke: var(--brand);
}

.ph-title-ac:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}

/* Müşteri bilgileri modalı: iki sütun, dar ekranda tek sütun */
.modal .musteri-bilgi-liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    margin: 0;
}

@media (max-width: 420px) {
    .modal .musteri-bilgi-liste {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ph h1 .badge {
    font-size: 0.75rem;
    letter-spacing: 0;
}

.ph-sub {
    margin: 6px 0 0;
    font-size: 0.93rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.ph-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.ph-actions .btn {
    white-space: nowrap;
}

/* ---------- Butonlar (modül içi: kurumsal, düz) ---------- */
.ws .ph-actions .btn,
.ws .gf-actions .btn,
.ws .form-actions .btn {
    height: 42px;
    padding: 0 18px;
    font-size: 0.92rem;
}

.ws .btn-icon {
    width: 17px;
    height: 17px;
}

.ws .btn-primary {
    background: var(--brand);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ws .btn-primary:hover {
    background: var(--brand-600);
    box-shadow: 0 4px 12px -4px rgba(10, 92, 255, 0.55);
    transform: none;
}

.ws .btn-outline {
    border-color: var(--ws-line);
    box-shadow: var(--ws-shadow);
}

.ws .btn-outline:hover {
    background: #f9fafb;
    border-color: var(--border-strong);
}

/* ---------- Kartlar ---------- */
.ws .card {
    padding: var(--ws-pad);
    border-color: var(--ws-line);
    border-radius: 14px;
    box-shadow: var(--ws-shadow);
}

/* Kart başlığı: kartın üstünde ayrı bir şerit (başlık + sayaç + kart aksiyonu) */
.ws .card > .card-head:first-child:not(:only-child),
.ws .card > h2:first-child {
    margin: calc(var(--ws-pad) * -1) calc(var(--ws-pad) * -1) 20px;
    padding: 14px var(--ws-pad);
    min-height: 58px;
    border-bottom: 1px solid var(--ws-line-soft);
}

.ws .card > h2:first-child {
    display: flex;
    align-items: center;
}

.ws .card h2 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 650;
    letter-spacing: -0.005em;
}

/* Kart başlığı: başlık solda, düğme/ek bilgi sağda; alt satıra taşmaz */
.ws .card-head:not(.danger-zone .card-head) {
    flex-wrap: nowrap;
}

.ws .card-head > h2 {
    min-width: 0;
}

.ws .card-head > .btn,
.ws .card-head > form {
    flex-shrink: 0;
    white-space: nowrap;
}

.ws .card-head > .muted {
    min-width: 0;
    text-align: right;
}

.ws .card-head h2 {
    display: flex;
    align-items: center;
}

.ws .count {
    color: var(--muted);
    background: var(--gv-neutral-bg, #f2f4f7);
}

/* ---------- Tablolar ---------- */
.ws .card > .table-wrap {
    margin: 0 calc(var(--ws-pad) * -1);
}

.ws .card > .card-head + .table-wrap {
    margin-top: -20px;
}

.ws .table th {
    padding: 11px 16px;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    background: var(--ws-head-bg);
    border-bottom: 1px solid var(--ws-line-soft);
}

.ws .table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ws-line-soft);
}

.ws .table th:first-child,
.ws .table td:first-child {
    padding-left: var(--ws-pad);
}

.ws .table th:last-child,
.ws .table td:last-child {
    padding-right: var(--ws-pad);
}

.ws .table tbody tr {
    transition: background-color 0.12s;
}

.ws .table tbody tr:hover {
    background: #fafbfd;
}

.ws .card > .table-wrap:last-child .table tbody tr:last-child td {
    border-bottom: 0;
}

.ws .row-actions .btn-sm {
    height: 34px;
}

/* Filtre çubuğu */
.ws .filter-bar {
    margin: 0 0 20px;
}

.ws .filter-bar .form-control,
.ws .filter-bar .btn {
    height: 42px;
}

/* Sayfalama */
.ws .pagination {
    margin-top: 20px;
}

.ws .page-link {
    border-color: var(--ws-line);
}

/* ---------- Detay listesi ve rapor ---------- */
.ws .detail-list {
    gap: 20px 28px;
    margin: 0;
}

.ws .detail-list dt {
    font-size: 0.74rem;
    letter-spacing: 0.05em;
}

.ws .detail-list dd {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy);
}

.ws .detail-note {
    font-weight: 400;
    color: var(--text);
}

.ws .stat-grid-flat {
    margin: 0;
}

.ws .stat-grid-flat .stat {
    background: var(--ws-head-bg);
    border: 1px solid var(--ws-line-soft);
    border-radius: 12px;
}

.ws .stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

/* Kendi iç düzeni olan kartlar ve kart içindeki başlık olmayan h2'ler */
.ws .card.gv-board {
    padding: 0;
}

.ws .card.gv-empty {
    padding: 56px 24px;
}

.ws .card.empty-state {
    padding: 64px 24px;
}

.ws .card.gv-empty h2,
.ws .card.empty-state h2 {
    margin: 0 0 6px;
    font-size: 1.12rem;
}

.ws .danger-zone h2 {
    margin-bottom: 4px;
}

/* ---------- Formlar ---------- */
.ws .gf-actions {
    border-top-color: var(--ws-line-soft);
}

/* ---------- Silme alanı ---------- */
.ws .danger-zone {
    border-color: var(--error-border);
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
    .ws {
        --ws-pad: 20px;
    }
}

@media (max-width: 900px) {
    .ws .gv-board {
        box-shadow: none;
    }
}

/* ---------- Mobil: uygulama düzeni ---------- */
@media (max-width: 640px) {
    .ws {
        --ws-pad: 16px;
    }

    .content.ws {
        padding-top: 16px;
        padding-bottom: 28px;
    }

    .ph {
        margin-bottom: 18px;
    }

    .content .ph h1 {
        font-size: 1.375rem;
    }

    .ph-sub {
        margin-top: 4px;
        font-size: 0.88rem;
    }

    /* Sabit sayfa açıklamaları mobilde gizlenir (başlık + düğme tek satırda kalsın) */
    .ph-sub-desktop {
        display: none;
    }

    /* Aksiyonlar: başlıkla aynı satırda, sağa dayalı */
    .ph-row {
        gap: 12px;
    }

    .ph-actions {
        gap: 8px;
    }

    .ws .ph-actions .btn {
        height: 42px;
        padding: 0 14px;
        font-size: 0.92rem;
    }

    .ws .card {
        margin-bottom: 16px;
        border-radius: 14px;
    }

    .ws .card > .card-head:first-child:not(:only-child),
    .ws .card > h2:first-child {
        margin-bottom: 16px;
        min-height: 52px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .ws .card-head .btn-sm {
        height: 34px;
    }

    .ws .detail-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .ws .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ws .stat {
        padding: 14px;
    }

    .ws .stat-value {
        font-size: 1.2rem;
    }

    /* Filtre: arama tam satır, durum + Filtrele alt satırda */
    .ws .filter-bar input[type="search"] {
        flex: 1 1 100%;
    }

    .ws .filter-bar select {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

    .ws .filter-bar .btn {
        flex: 0 0 auto;
    }

    /* Çok seçimli filtre: seçimler ikişer ikişer, Filtrele düğmesi son hücrede */
    .ws .filter-bar-cok select,
    .ws .filter-bar-cok .btn {
        flex: 1 1 calc(50% - 5px);
    }

    .ws .filter-bar-cok .link-btn {
        flex: 1 1 100%;
        text-align: center;
    }

    /* Form aksiyonları: ekranın altına yapışık çubuk (uzun formda da hep erişilebilir) */
    .ws .gf-actions {
        position: sticky;
        bottom: 0;
        z-index: 5;
        margin: 20px calc(var(--ws-pad) * -1) calc(var(--ws-pad) * -1);
        padding: 12px var(--ws-pad) calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--ws-line);
        border-radius: 0 0 14px 14px;
        -webkit-backdrop-filter: saturate(180%) blur(8px);
        backdrop-filter: saturate(180%) blur(8px);
    }

    .ws .gf-actions .btn {
        height: 46px;
    }

    .ws .gf-actions-note {
        font-size: 0.8rem;
    }

    /* Silme alanı: metin üstte, düğme tam genişlik */
    .ws .danger-zone .card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .ws .danger-zone .card-head form,
    .ws .danger-zone .card-head .btn {
        width: 100%;
        height: 42px;
    }

    /* Kart dışındaki form aksiyonları (prompt düzenleme): İptal kısa, Kaydet kalan alan */
    .ws .form-actions {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
    }

    .ws .form-actions .btn {
        height: 46px;
        padding: 0 18px;
    }

    .ws .pagination {
        gap: 4px;
    }

    .ws .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
    }
}

@media (max-width: 380px) {
    .ws .detail-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 359.98px) {
    /* Çok dar ekran: başlık aksiyonları yalnız ikon (etiket aria-label/title'da) */
    .ws .ph-actions .btn:has(.btn-icon) {
        width: 42px;
        padding: 0;
    }

    .ws .ph-actions .btn:has(.btn-icon) .ph-btn-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .ws .ph-actions .btn-icon {
        width: 20px;
        height: 20px;
    }
}

/* =============================================================================
   Prompt bağlantısı (görev detayı: başlıktaki "Prompt Oluştur" + modal)
   ============================================================================= */
.ph-form {
    display: contents; /* Form, başlık aksiyonlarında bağlantı düğmeleriyle aynı dizilsin */
}

.pm-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

textarea.form-control.pm-prompt {
    min-height: 150px;
    font-size: 0.84rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.pm-status {
    min-height: 1.4em;
    margin: 8px 0 0;
}

.pm-actions {
    align-items: center;
}

.pm-actions form {
    margin: 0;
}

.pm-spacer {
    flex: 1 1 auto;
}

@media (max-width: 520px) {
    .pm-spacer {
        flex-basis: 100%;
        height: 0;
    }

    .pm-actions .btn {
        flex: 1 1 0;
    }
}

/* Prompt düzenleme modalı (görev detayı) */
.modal-wide {
    width: min(760px, calc(100vw - 32px));
}

.modal .media-edit {
    margin-top: 18px;
}

.modal .modal-body {
    padding-bottom: 20px;
}

.modal-head h2 .muted {
    font-weight: 500;
}

/* Başlık aksiyonu: sadece ikon (page_header 'sadeceIkon', ör. teklif detayındaki Düzenle) */
.ws .ph-actions .btn.ph-btn-ikon {
    width: 42px;
    padding: 0;
}

.ph-btn-ikon .ph-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.ws .ph-btn-ikon .btn-icon {
    width: 20px;
    height: 20px;
    margin: 0;
}

/* =============================================================================
   Görev modülü: sayfa genişliği ve özet kartları
   ============================================================================= */
/* İçerik tam ekran genişliğindedir (.content: width 100%, üst çubukla aynı kenar boşlukları) */

/* Özet kartları (app/views/ozet_kartlar.php): 4 / 2 sütun */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}

.kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 16px 18px;
    color: inherit;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    transition: border-color 0.15s, box-shadow 0.15s;
}

a.kpi:hover {
    border-color: var(--border-strong);
    box-shadow: 0 6px 16px -10px rgba(16, 24, 40, 0.25);
}

a.kpi:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

/* Seçili kart: alttaki liste bu karta göre süzülüyor */
.kpi.is-active,
a.kpi.is-active:hover {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}

.kpi-ikon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.kpi-ikon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kpi-brand .kpi-ikon   { color: var(--brand);  background: var(--info-bg); }
.kpi-warning .kpi-ikon { color: #b54708;       background: #fffaeb; }
.kpi-success .kpi-ikon { color: #067647;       background: #ecfdf3; }
.kpi-neutral .kpi-ikon { color: #475467;       background: #f2f4f7; }

.kpi-metin {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kpi-etiket {
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.kpi-deger {
    margin-top: 2px;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.kpi-alt {
    margin-top: 2px;
    overflow: hidden;
    font-size: 0.76rem;
    color: var(--subtle);
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Kart içi küçük düğme (ör. domain detayında yetkili yoksa "Yetkili ekle") */
.kpi-aksiyon.btn {
    align-self: flex-start;
    gap: 6px;
    height: 28px;
    margin-top: 6px;
    padding: 0 10px;
    font-size: 0.8rem;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .kpi-grid {
        gap: 10px;
        margin-bottom: 18px;
    }

    /* İkon solda, etiket / değer / alt satır sağında (alt alta dizilmez) */
    .kpi {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 12px;
    }

    .kpi-ikon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .kpi-ikon svg {
        width: 18px;
        height: 18px;
    }

    .kpi-metin {
        flex: 1 1 auto;
    }

    /* Dar kartta etiket ve alt satır kesilmesin, gerekirse iki satıra insin */
    .kpi-etiket,
    .kpi-alt {
        overflow: visible;
        white-space: normal;
        text-overflow: clip;
        line-height: 1.3;
    }

    .kpi-etiket {
        font-size: 0.78rem;
    }

    .kpi-alt {
        font-size: 0.72rem;
    }

    .kpi-deger {
        font-size: 1.15rem;
        white-space: nowrap;
        overflow-wrap: normal;
    }

    /* Tutar gibi uzun değerler: tek sütun, kart tam genişlikte */
    .kpi-grid.kpi-grid-uzun {
        grid-template-columns: minmax(0, 1fr);
    }

    .kpi-grid-uzun .kpi {
        gap: 14px;
        padding: 14px 16px;
    }

    .kpi-grid-uzun .kpi-ikon {
        width: 38px;
        height: 38px;
    }
}

/* Telefon yatay / küçük tablet: uzun değerli kartlar da iki sütun sığar */
@media (min-width: 480px) and (max-width: 640px) {
    .kpi-grid.kpi-grid-uzun:not(.kpi-grid-3) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobil: başlıkta 3 ve daha fazla düğme varsa yazılı düğmeler de sadece ikon olur (başlığa yer kalsın).
   Etiket aria-label / title'da korunur. */
@media (max-width: 640px) {
    .ws .ph-actions:has(> :nth-child(3)) .btn:has(.btn-icon) {
        width: 42px;
        padding: 0;
    }

    .ws .ph-actions:has(> :nth-child(3)) .btn:has(.btn-icon) .ph-btn-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .ws .ph-actions:has(> :nth-child(3)) .btn-icon {
        width: 20px;
        height: 20px;
    }
}

/* Liste kartlarındaki "boş" mesajı kart içinde ortalı */
.gv-board > .empty {
    margin: 0;
    padding: 32px 20px;
    text-align: center;
}

/* Görev detayı: "Tüm promptları sil" (kırmızı mini rozet düğme, onay SweetAlert ile) */
.badge-sil {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 10px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.badge-sil:hover {
    color: var(--white);
    background: var(--error);
    border-color: var(--error);
}

.badge-sil:focus-visible {
    outline: 3px solid rgba(196, 43, 43, 0.35);
    outline-offset: 2px;
}

.badge-sil-kisa {
    display: none;
}

/* Çok dar ekran: kısa etiket (sayaçla çakışmasın) */
@media (max-width: 380px) {
    .badge-sil-uzun {
        display: none;
    }

    .badge-sil-kisa {
        display: inline;
    }
}

.badge-sil svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =============================================================================
   Görsel / video görüntüleyici (lightbox, app.js: a[data-lightbox])
   Karanlık tam ekran: üstte sayaç + dosya adı + İndir + Kapat, ortada medya, yanlarda oklar
   ============================================================================= */
.lb {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    color: var(--white);
    background: transparent;
    border: 0;
    overflow: hidden;
}

.lb::backdrop {
    background: rgba(6, 9, 18, 0.96);
}

.lb[open] {
    display: flex;
    flex-direction: column;
    animation: lb-in 0.16s ease-out;
}

@keyframes lb-in {
    from {
        opacity: 0;
    }
}

html.lb-acik {
    overflow: hidden;
}

.lb-bar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
}

.lb-sayac {
    flex: 0 0 auto;
    font-size: 0.85rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.75);
}

.lb-ad {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lb-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    min-width: 40px;
    padding: 0 14px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.lb-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lb-kapat {
    padding: 0;
}

.lb-btn svg,
.lb-ok svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lb-btn:focus-visible,
.lb-ok:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.lb-sahne {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 8px 72px calc(24px + env(safe-area-inset-bottom, 0px));
}

.lb-medya {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
    user-select: none;
    -webkit-user-select: none;
}

img.lb-medya {
    background: rgba(255, 255, 255, 0.04);
}

.lb-ok {
    position: absolute;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color 0.15s;
}

.lb-ok:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lb-ok[hidden] {
    display: none;
}

.lb-onceki {
    left: 14px;
}

.lb-sonraki {
    right: 14px;
}

/* Mobil: oklar altta, medya tam genişlik (kaydırarak da geçilir) */
@media (max-width: 640px) {
    .lb-bar {
        gap: 8px;
        padding-right: 10px;
        padding-left: 14px;
    }

    .lb-btn-yazi {
        display: none;
    }

    .lb-indir {
        padding: 0;
    }

    .lb-sahne {
        padding: 4px 8px calc(84px + env(safe-area-inset-bottom, 0px));
    }

    .lb-ok {
        top: auto;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        transform: none;
    }

    .lb-onceki {
        left: calc(50% - 60px);
    }

    .lb-sonraki {
        right: calc(50% - 60px);
    }
}

/* =============================================================================
   Domainler (/gorev/domainler, /gorev/domain/{id}, /gorev/domainler/ice-aktar)
   ============================================================================= */
.kpi-danger .kpi-ikon { color: #b42318; background: #fef3f2; }

.badge-danger.badge {
    font-variant-numeric: tabular-nums;
}

.alert-warning {
    color: #7a4700;
    background: #fffaeb;
    border-color: #fedf89;
}

/* Registrar filtresi: "Registrar belirtilmemiş" / uzun registrar adları kesilmesin */
.filter-bar-cok select.filtre-genis {
    flex-basis: 230px;
}

/* Liste tablosu */
.gv-c-no {
    width: 1%;
    color: var(--subtle);
    font-variant-numeric: tabular-nums;
}

.gv-table-domain th:first-child,
.gv-table-domain td.gv-c-no {
    padding-right: 4px;
}

.gv-c-kalan,
.gv-c-registrar {
    width: 1%;
    white-space: nowrap;
}

.gv-c-kalan .badge {
    font-variant-numeric: tabular-nums;
}

.gv-row.is-biten .gv-title {
    color: #b42318;
}

/* Domain adı + sağında kopyala düğmesi (uzun ad kırılır, düğme ilk satırın yanında kalır) */
.gv-domain-ad {
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
    max-width: 100%;
}

.gv-domain-ad .gv-title {
    min-width: 0;
}

.gv-kopya {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: -2px 0 0;
    padding: 0;
    color: var(--subtle);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.gv-kopya[hidden] {
    display: none;
}

.gv-kopya svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gv-kopya:hover {
    color: var(--brand);
    background: var(--info-bg);
}

.gv-kopya:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

/* Kopyalandı: kısa süre yeşil */
.gv-kopya.is-kopyalandi {
    color: #067647;
    background: #ecfdf3;
}

@media (max-width: 900px) {
    /* Dokunmatikte rahat hedef */
    .gv-kopya {
        width: 30px;
        height: 30px;
        margin-top: -4px;
    }
}

.gv-c-dtutar {
    width: 1%;
}

@media (max-width: 900px) {
    /* Kart: domain (tam genişlik) · bitiş + kalan · registrar + durum · alt şerit: yenileme tutarı + işlemler
       (yenile, düzenle, sil, detay: domain adının yanında sıkışmasın) */
    .gv-table-domain .gv-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "gorev     gorev"
            "dbitis    kalan"
            "registrar durum"
            "alt       alt";
    }

    .gv-table-domain .gv-c-aksiyon {
        grid-area: alt;
        align-self: center;
        justify-self: end;
        padding-top: 10px !important;
    }

    .gv-table-domain .gv-row.is-biten { border-left-color: #fda29b; }

    .gv-table-domain .gv-c-no        { display: none; }
    .gv-table-domain .gv-c-dbitis    { grid-area: dbitis; }
    .gv-table-domain .gv-c-kalan     { grid-area: kalan; align-self: end; justify-self: end; width: auto; }
    .gv-table-domain .gv-c-registrar { grid-area: registrar; min-width: 0; width: auto; white-space: normal; font-size: 0.88rem; }

    /* Tutar alt şeridin solunda; sağdaki dört işlem düğmesinin altına girmesin (ayraç çizgisi tam genişlik kalır) */
    .gv-table-domain .gv-c-dtutar    { width: auto; padding-right: 168px !important; }

    .gv-table-domain .gv-c-aksiyon .gv-icon-btn {
        width: 34px;
        height: 34px;
    }

    .gv-table-domain .gv-c-durum {
        grid-area: durum;
        align-self: center;
        justify-self: end;
        padding-top: 0 !important;
    }
}

/* =============================================================================
   Domain yenileme tahmini (/gorev/domainler/yenileme-tahmini)
   ============================================================================= */
/* Domainlerim liste başlığı: aktiflerin yenileme toplamı (rapora bağlantı) */
.dt-head-toplam {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.86rem;
    color: var(--muted);
    text-decoration: none;
}

.dt-head-toplam svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dt-head-toplam:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

.dt-head-toplam strong {
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.dt-head-toplam:hover,
.dt-head-toplam:hover strong {
    color: var(--brand);
}

/* Filtre: etiketli tarih alanları */
.dt-tarih {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.dt-tarih span {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.dt-tarih input[type="date"] {
    width: 160px;
    height: 42px;
}

/* Hızlı aralıklar */
.dt-hizli {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.dt-hizli a {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.dt-hizli a:hover {
    color: var(--navy);
    border-color: var(--border-strong);
}

.dt-hizli a[aria-current="true"] {
    color: var(--brand-dark);
    background: var(--white);
    border-color: #b2ccff;
}

.dt-hizli a:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

/* Plan başlığı altı: aralık + toplam */
.dt-plan-ozet {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    padding: 12px 20px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--gv-line);
}

.dt-plan-ozet strong {
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.dt-c-adet,
.dt-c-eksik {
    width: 1%;
}

.gv-table-tahmin .gv-c-gorev {
    width: 100%;
}

.gv-row.is-pasif .dt-c-toplam {
    color: var(--subtle);
    font-weight: 400;
}

/* Sonraki yılın tahmini yenilemesi (tarihin altında) */
.dt-tahmini {
    display: block;
    margin-top: 2px;
    font-size: 0.76rem;
    color: var(--subtle);
}

@media (max-width: 900px) {
    .dt-plan-ozet {
        padding: 0 2px 14px;
        border-bottom: 0;
    }

    /* Kart: dönem + aç · yenilenecek + tutarı yok · alt şerit: beklenen tutar */
    .gv-table-tahmin .gv-row {
        grid-template-areas:
            "gorev aksiyon"
            "adet  eksik"
            "alt   alt";
    }

    .gv-table-tahmin .gv-c-gorev { width: auto; }
    .gv-table-tahmin .dt-c-adet  { grid-area: adet; width: auto; text-align: left !important; }
    .gv-table-tahmin .dt-c-eksik { grid-area: eksik; width: auto; }
}

@media (max-width: 640px) {
    .ws .dt-filtre .dt-tarih {
        flex: 1 1 calc(50% - 5px);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        min-width: 0;
    }

    .ws .dt-filtre .dt-tarih span {
        font-size: 0.76rem;
    }

    .ws .dt-filtre .dt-tarih input[type="date"] {
        width: 100%;
        min-width: 0;
    }
}

/* Modallar */
.modal-dar {
    width: min(480px, calc(100vw - 32px));
}

/* Aranabilir müşteri listesi modalın içinde kesilmesin */
.modal-body:has(.combo.is-open) {
    overflow: visible;
}

.modal .combo-list {
    max-height: 240px;
}

.modal-actions-sol {
    margin-right: auto;
}

.form-control.form-file {
    height: auto;
    padding: 10px 12px;
}

/* "Tarih yok" rozeti (liste): tıklanınca bitiş tarihi gir modalı açılır */
.badge-tarih-gir {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(181, 71, 8, 0.18);
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.badge-tarih-gir svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.badge-tarih-gir:hover {
    background: #ffe7b0;
    box-shadow: inset 0 0 0 1px rgba(181, 71, 8, 0.35);
}

.badge-tarih-gir:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .badge-tarih-gir {
        transition: none;
    }
}

/* Bitiş tarihi gir modalı */
.bitis-domain {
    margin: 0 0 16px;
    font-weight: 650;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.bitis-hizli {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.yenile-ozet {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 0 0 18px;
    padding: 14px 16px;
    background: var(--ws-head-bg, #f9fafb);
    border: 1px solid var(--ws-line-soft, #eef0f4);
    border-radius: 12px;
}

.yenile-ozet dt {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.yenile-ozet dd {
    margin: 2px 0 0;
    font-weight: 600;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.yenile-yeni strong {
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.yetkili-domain {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.yetkili-domain svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--brand);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Detay sayfası */
.domain-izgara {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 24px;
    margin-bottom: 24px;
}

.domain-izgara > .card {
    margin-bottom: 0;
}

.detail-alt {
    display: block;
    margin-top: 2px;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--muted);
}

.domain-not-alan {
    min-height: 84px;
    resize: vertical;
}

.domain-not-form textarea {
    min-height: 132px;
    resize: vertical;
}

.domain-not-aksiyon {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.table td.cell-wrap {
    min-width: 180px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.table-dns code {
    font-size: 0.82rem;
    word-break: break-all;
}

.whois-fark {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

.whois-fark form {
    margin: 0;
}

.whois-liste span {
    display: block;
}

.whois-durumlar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.whois-durumlar .badge {
    white-space: normal;
    overflow-wrap: anywhere;
}

.whois-ham {
    margin-top: 20px;
    border-top: 1px solid var(--ws-line-soft, #eef0f4);
}

.whois-ham summary {
    padding: 14px 0 4px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
}

.whois-ham pre {
    max-height: 360px;
    margin: 10px 0 0;
    padding: 14px;
    overflow: auto;
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: var(--ws-head-bg, #f9fafb);
    border: 1px solid var(--ws-line-soft, #eef0f4);
    border-radius: 10px;
}

.danger-zone .card-head {
    flex-wrap: wrap;
    gap: 12px 20px;
}

/* İçeri aktarma */
.aktarim-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
}

.aktarim-baslik {
    padding-top: 34px;
}

.aktarim-onizleme-baslik {
    margin: 4px 0 10px;
    font-size: 0.95rem;
    color: var(--navy);
}

.ws .card > .aktarim-onizleme {
    margin: 0;
    border: 1px solid var(--ws-line-soft, #eef0f4);
    border-radius: 10px;
}

.aktarim-onizleme .table th[scope="row"] {
    width: 1%;
    font-weight: 500;
}

.aktarim-not {
    margin: 12px 0 0;
}

/* Sonuç: bitiş tarihi olmadan kaydedilenler kartındaki açıklama */
.aktarim-tarihsiz-not {
    margin: 0 0 12px;
}

.aktarim-aksiyon {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 1024px) {
    .domain-izgara {
        grid-template-columns: minmax(0, 1fr);
    }

    .aktarim-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aktarim-baslik {
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .domain-izgara {
        gap: 16px;
        margin-bottom: 16px;
    }

    /* Geçmiş ve DNS tabloları: her satır bir blok (dar sütunlara sıkışmasın, yatay kaydırma olmasın) */
    .table-gecmis thead,
    .table-dns thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .table-gecmis,
    .table-gecmis tbody,
    .table-dns,
    .table-dns tbody {
        display: block;
    }

    .table-gecmis tr,
    .table-dns tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 10px;
        padding: 12px var(--ws-pad, 16px);
        border-bottom: 1px solid var(--ws-line-soft, #eef0f4);
    }

    .ws .table-gecmis td,
    .ws .table-dns td {
        padding: 0 !important;
        border: 0;
    }

    .table-gecmis td:first-child {
        flex: 1 1 auto;
        font-size: 0.84rem;
        color: var(--muted);
    }

    .table-gecmis td:nth-child(3),
    .table-gecmis td:nth-child(4),
    .table-dns td:nth-child(3) {
        flex: 1 1 100%;
        min-width: 0;
        white-space: normal; /* Uzun e-posta / açıklama satıra sığsın (tablonun nowrap'ı burada geçerli değil) */
    }

    .table-gecmis td:nth-child(4):empty {
        display: none;
    }

    .table-dns td:nth-child(2) {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.86rem;
        overflow-wrap: anywhere;
    }

    .table-dns td.gv-num {
        font-size: 0.78rem;
        color: var(--subtle);
    }

    .table-dns td.gv-num::before {
        content: "TTL ";
    }

    .table td.cell-wrap {
        min-width: 0;
    }

    .aktarim-grid,
    .yenile-ozet {
        grid-template-columns: minmax(0, 1fr);
    }

    .aktarim-aksiyon .btn {
        flex: 1 1 auto;
    }
}

/* =============================================================================
   Müşteri talep ekranı (görev detayındaki "Müşteri Girsin", app/talep.php)
   ============================================================================= */

/* ---------- Görev detayı: yazma kutusunun sağ üst köşesindeki bağlantı ---------- */
.prompt-new-head {
    justify-content: flex-end;
    margin-bottom: 10px;
}

/* Sol tarafta görev notu: prompt yazarken ne istendiği görünsün; tek satır, taşan kısım "…",
   tıklanınca tamamı "Görev bilgileri" modalında */
.gd-not {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    margin: -4px auto -4px 0;
    padding: 4px 10px;
    font-size: 0.86rem;
    line-height: 1.35;
    color: var(--text);
    text-decoration: none;
    background: var(--info-bg);
    border-radius: 8px;
}

.gd-not:hover,
.gd-not:focus-visible {
    color: var(--brand-dark);
}

.gd-not:hover .gd-not-metin {
    text-decoration: underline;
}

.gd-not .btn-icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    color: var(--brand-dark);
}

.gd-not-etiket {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--brand-dark);
}

.gd-not-metin {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Not yoksa sadece küçük "Görev detayı" bağlantısı */
.gd-not.is-bos {
    padding: 4px 0;
    font-weight: 600;
    color: var(--muted);
    background: none;
}

.gd-not.is-bos .btn-icon {
    color: inherit;
}

/* Modaldaki not ve uzun web adresi taşmasın */
.gd-not-tam,
.gd-url {
    overflow-wrap: anywhere;
}

/* Bağlantı açıkken küçük yeşil nokta */
.tm-acik {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 2px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.18);
}

/* Prompt listesinde müşterinin eklediği promptlar */
.pl-kaynak {
    padding: 0 7px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--brand-dark);
    background: var(--info-bg);
    border-radius: 999px;
}

/* ---------- "Müşteri Girsin" modalı ---------- */
.tm-aciklama {
    margin: 0 0 16px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--muted);
}

.tm-kanal {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 11px 14px;
    font-size: 0.88rem;
    color: var(--text);
    background: var(--bg);
    border-radius: var(--radius);
    overflow-wrap: anywhere;
}

.tm-kanal svg {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    fill: none;
    stroke: var(--success);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tm-kanal strong {
    font-weight: 600;
    color: var(--navy);
}

.form-control.tm-url {
    height: 46px;
    font-size: 0.86rem;
    text-overflow: ellipsis;
}

.tm-tarih {
    margin: 0;
}

.pm-modal .modal-body .alert {
    margin-bottom: 16px;
}

.modal-head h2 .badge {
    margin-left: 6px;
    font-size: 0.72rem;
    vertical-align: middle;
}

/* Devre dışı bağlantı: gri nokta */
.tm-acik.is-kapali {
    background: var(--subtle);
    box-shadow: 0 0 0 3px rgba(138, 147, 166, 0.2);
}

/* Bağlantı kontrolleri: 4 düğme, dar ekranda 2 sütun */
.tm-kontrol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 0;
}

.tm-kontrol form {
    margin: 0;
}

.btn.tm-btn {
    width: 100%;
    height: 40px;
    gap: 6px;
    padding: 0 10px;
    font-size: 0.84rem;
    white-space: nowrap;
}

.tm-btn .btn-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn.tm-btn-uyari {
    color: #b54708;
}

.btn.tm-btn-ok {
    color: #067647;
}

.btn.tm-btn-sil {
    color: var(--error);
}

.btn.tm-btn-sil:hover {
    border-color: var(--error);
}

/* Erişim kayıtları */
.tm-log-bolum {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eceff4;
}

.tm-log-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.tm-log-head h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--navy);
}

.tm-log-head h3 .muted {
    font-weight: 500;
}

.tm-log {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tm-log li {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f2f4f7;
}

.tm-log li:last-child {
    border-bottom: 0;
}

.tm-log-nokta {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-top: 7px;
    background: var(--subtle);
    border-radius: 50%;
}

.tm-log-success .tm-log-nokta { background: var(--success); }
.tm-log-danger .tm-log-nokta  { background: var(--error); }

.tm-log-metin {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 0.86rem;
    line-height: 1.45;
}

.tm-log-metin strong {
    font-weight: 600;
    color: var(--navy);
}

.tm-log-danger .tm-log-metin strong {
    color: var(--error);
}

.tm-log-detay {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.tm-log-meta {
    font-size: 0.76rem;
    color: var(--subtle);
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .tm-kontrol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Talep ekranı: üst çubuk (menü / arama yok) ---------- */
.talep-topbar-sag {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.talep-kim {
    max-width: 260px;
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.talep-topbar-sag form {
    margin: 0;
}

.btn.talep-cikis {
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    font-size: 0.88rem;
}

.talep-cikis .btn-icon {
    width: 17px;
    height: 17px;
}

/* İçerik ortada, okunur genişlikte */
.content.talep-main {
    max-width: 1040px;
    margin: 0 auto;
}

/* ---------- İlerleme çubuğu (<progress>) ---------- */
.talep-ilerleme {
    display: block;
    width: 100%;
    height: 8px;
    margin: -8px 0 24px;
    overflow: hidden;
    color: var(--success);
    background: #e4e7ec;
    border: 0;
    border-radius: 999px;
    -webkit-appearance: none;
    appearance: none;
}

.talep-ilerleme::-webkit-progress-bar {
    background: #e4e7ec;
    border-radius: 999px;
}

.talep-ilerleme::-webkit-progress-value {
    background: var(--success);
    border-radius: 999px;
}

.talep-ilerleme::-moz-progress-bar {
    background: var(--success);
    border-radius: 999px;
}

/* ---------- "Nasıl kullanılır?" (açılır kart) ---------- */
.ws .card.talep-yardim {
    padding: 0;
    scroll-margin-top: calc(var(--topbar-h, 68px) + 16px);
}

.talep-yardim summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 14px var(--ws-pad, 24px);
    font-size: 1.02rem;
    font-weight: 650;
    color: var(--navy);
    list-style: none;
    cursor: pointer;
    border-radius: 14px;
}

.talep-yardim summary::-webkit-details-marker {
    display: none;
}

/* Sağda aç / kapa oku */
.talep-yardim summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid var(--subtle);
    border-bottom: 2px solid var(--subtle);
    transform: rotate(45deg);
    transition: transform 0.15s;
}

.talep-yardim[open] summary::after {
    transform: rotate(-135deg);
}

.talep-yardim[open] summary {
    border-bottom: 1px solid var(--ws-line-soft, #eef0f4);
    border-radius: 14px 14px 0 0;
}

.talep-yardim summary svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--brand);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.talep-yardim-liste {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
    margin: 0;
    padding: 20px var(--ws-pad, 24px) 22px calc(var(--ws-pad, 24px) + 20px);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text);
}

.talep-yardim-liste li::marker {
    font-weight: 700;
    color: var(--brand);
}

.talep-yardim-liste strong {
    color: var(--navy);
}

/* ---------- Yeni istek ---------- */
.talep-yeni-baslik {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--navy);
}

.talep-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: var(--subtle);
}

.talep-alt svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--success);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Giriş ekranı ---------- */
.talep-giris-gorev {
    font-weight: 600;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.talep-giris-not {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

.talep-giris-uyari {
    margin: 24px 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
    color: var(--subtle);
}

.verify-target span {
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* ---------- Geçersiz bağlantı sayfası ---------- */
.talep-durum-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px 16px;
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(10, 92, 255, 0.08), transparent 70%),
        var(--white);
}

.talep-durum {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.talep-durum-logo {
    width: 220px;
    max-width: 70%;
    margin: 0 auto 32px;
}

.talep-durum-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    color: var(--brand);
    background: var(--info-bg);
    border-radius: 16px;
}

.talep-durum-ikon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.talep-durum h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: var(--navy);
}

.talep-durum p {
    margin: 0;
    line-height: 1.6;
    color: var(--muted);
}

.talep-durum-ikon.is-tamam {
    color: #067647;
    background: #ecfdf3;
}

/* İkinci paragraf (ör. "Yeni bir düzenleme talebiniz varsa ..."): ayrı kutuda */
.talep-durum p.talep-durum-ek {
    margin-top: 18px;
    padding: 12px 16px;
    font-size: 0.93rem;
    color: var(--text);
    background: var(--bg);
    border-radius: var(--radius);
}

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 900px) {
    .talep-yardim-liste {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .talep-kim {
        max-width: 38vw;
        font-size: 0.84rem;
    }

    .talep-ilerleme {
        margin: -4px 0 18px;
    }

    .talep-yardim-liste {
        gap: 12px;
        padding-left: calc(var(--ws-pad, 16px) + 18px);
    }
}

@media (max-width: 400px) {
    .talep-kim {
        display: none;
    }
}

/* =============================================================================
   Ödemelerim (/gorev/odemeler)
   ============================================================================= */
/* Özet kartı tonları: kırmızı (Yapılacak Ödemeler, eksi kasa) */
.kpi-danger .kpi-ikon { color: #b42318; background: #fef3f2; }

.kpi-deger-arti { color: #067647; }
.kpi-deger-eksi { color: #b42318; }

/* 3 sütunlu özet (col-md-4): 768px ve üstünde yan yana 3 kart, altında tek sütun */
.kpi-grid.kpi-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 767.98px) {
    .kpi-grid.kpi-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .kpi-grid-3 .kpi {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }
}

/* Kart içinde uzun açıklama ("... 1.500,00 ₺ fazla") alt satıra insin */
.kpi-grid-3 .kpi-alt {
    white-space: normal;
}

/* Satır satır alt bilgi (ör. gelir gider kartları: nakit + havale / kredi kartı): geniş kartta satır bölünmez.
   768-900px arasında 3 kart dar kalır: orada satır alta iner (tutar kesilmesin; "₺" tutardan ayrılmaz). */
@media (max-width: 767.98px), (min-width: 900px) {
    .kpi-grid-3 .kpi-alt.kpi-alt-satir {
        white-space: nowrap;
    }
}

.kpi-alt-satir + .kpi-alt-satir {
    margin-top: 1px;
}

/* Tablo hücreleri */
.gv-c-tip,
.gv-c-sekil {
    width: 1%;
    white-space: nowrap;
}

.gv-c-sekil {
    color: var(--muted);
}

.gv-c-otarih {
    color: var(--text);
}

/* Dar masaüstünde (≈1024px) tarih + "95 gün gecikti" rozeti tek satıra sığmazsa rozet alta geçer (tablo kaymasın) */
@media (min-width: 901px) and (max-width: 1280px) {
    .gv-table-odeme .gv-c-otarih {
        white-space: normal;
    }

    .gv-table-odeme .gv-c-otarih .gv-tarih-rozet {
        white-space: nowrap;
    }
}

.gv-tarih-rozet {
    margin-left: 8px;
    vertical-align: 1px;
}

.gv-tutar-arti {
    color: #067647;
}

.gv-tutar-eksi {
    color: #b42318;
}

.gv-row.is-done .gv-tutar-arti,
.gv-row.is-done .gv-tutar-eksi {
    color: var(--muted);
}

.gv-icon-ok:hover {
    color: #067647;
    background: #ecfdf3;
}

/* Ekle / düzenle modalı: tip seçimi iki büyük kart */
.odeme-tip-sec {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.odeme-tip-secenek {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.odeme-tip-secenek input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.odeme-tip-secenek > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.odeme-tip-secenek strong {
    font-size: 0.95rem;
    color: var(--navy);
}

.odeme-tip-secenek small {
    font-size: 0.78rem;
    color: var(--muted);
}

.odeme-tip-alacak input:checked + span {
    background: #ecfdf3;
    border-color: #32a467;
}

.odeme-tip-alacak input:checked + span strong {
    color: #067647;
}

.odeme-tip-odeme input:checked + span {
    background: #fef3f2;
    border-color: #e5484d;
}

.odeme-tip-odeme input:checked + span strong {
    color: #b42318;
}

.odeme-tip-secenek input:focus-visible + span {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

/* Ödeme ekle / düzenle modalı: tutar · tarih · şekil · durum mobilde de iki sütun (başlık ve açıklama tam satır) */
@media (max-width: 640px) {
    .odeme-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
    }

    .odeme-form-grid .form-control {
        min-width: 0;
    }

    .odeme-form-grid input[type="date"] {
        padding-inline: 10px;
    }
}

/* Çok dar ekranda tarih yan yana sütunda kesilmesin: yazı biraz küçülür, takvim ikonu yaklaşır */
@media (max-width: 380px) {
    .odeme-form-grid input[type="date"] {
        padding-inline: 8px;
        font-size: 0.86rem;
    }

    .odeme-form-grid input[type="date"]::-webkit-calendar-picker-indicator {
        margin-left: 2px;
        padding: 0;
    }
}

/* Liste: başlığın altındaki açıklama; satır sonları korunur */
.gv-table-odeme .odeme-aciklama {
    white-space: pre-line;
    line-height: 1.45;
}

/* Mobil + dar tablet: her kayıt bir kart */
@media (max-width: 900px) {
    .gv-table-odeme .gv-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "gorev  aksiyon"
            "tip    durum"
            "tarih  sekil"
            "alt    alt";
    }

    .gv-table-odeme .gv-row.is-alacak { border-left-color: #a6e2c0; }
    .gv-table-odeme .gv-row.is-odeme  { border-left-color: #fda29b; }
    .gv-table-odeme .gv-row.is-done   { border-left-color: var(--border-strong); }

    .gv-table-odeme .gv-c-gorev   { grid-area: gorev; }
    .gv-table-odeme .gv-c-aksiyon { grid-area: aksiyon; }
    .gv-table-odeme .gv-c-tip     { grid-area: tip; width: auto; align-self: center; }
    .gv-table-odeme .gv-c-durum   { grid-area: durum; width: auto; align-self: center; justify-self: end; padding-top: 0 !important; }
    .gv-table-odeme .gv-c-otarih  { grid-area: tarih; width: auto; white-space: normal; }
    .gv-table-odeme .gv-c-sekil   { grid-area: sekil; width: auto; justify-self: end; text-align: right; }
    .gv-table-odeme .gv-c-tutar   { grid-area: alt; font-size: 1.02rem; }

    .gv-table-odeme .gv-tarih-rozet {
        margin-left: 6px;
    }
}

@media (max-width: 380px) {
    .odeme-tip-sec {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Ödemeler: liste başlığında Filtrele düğmesi, uygulanan filtre etiketleri, filtre modalı ---------- */
.gv-board-head-arac {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    white-space: nowrap;
}

.gv-filtre-btn {
    gap: 6px;
}

.gv-filtre-btn .btn-icon {
    width: 16px;
    height: 16px;
}

.gv-filtre-btn.is-aktif {
    color: var(--brand-dark);
    background: #f5f8ff;
    border-color: #b2ccff;
}

.gv-filtre-sayi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    background: var(--brand);
    border-radius: 999px;
}

.odeme-filtre-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 14px;
}

.odeme-filtre-tarih {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.odeme-filtre-tarih legend {
    margin-bottom: 10px;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

/* Tarih alanları yan yana (380px altında alt alta) */
.odeme-filtre-tarih .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}

.odeme-filtre-tarih .form-group {
    margin-bottom: 8px;
}

.odeme-filtre-tarih .form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
}

.odeme-filtre-tarih input[type="date"] {
    min-width: 0;
}

/* Ödemeler: tablonun üstündeki arama; mobilde de arama kutusu ve "Ara" aynı satırda */
@media (max-width: 640px) {
    .ws .filter-bar.odeme-ara input[type="search"] {
        flex: 1 1 0;
        min-width: 0;
    }

    .ws .filter-bar.odeme-ara .link-btn {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    /* Sayfa bilgisi altta sayfalamada da var; başlık satırında Filtrele düğmesine yer kalsın */
    .gv-board-head-arac .gv-sayfa-bilgi {
        display: none;
    }

    /* Tip + durum yan yana, ödeme şekli altta tam satır */
    .odeme-filtre-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .odeme-filtre-grid > :last-child {
        grid-column: 1 / -1;
    }

    /* Temizle · Vazgeç · Uygula tek satırda, eşit genişlikte (sarınca Uygula tek başına alta düşüyordu) */
    .odeme-filtre-aksiyon {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        padding-inline: 18px;
    }

    .odeme-filtre-aksiyon .btn {
        min-width: 0;
        padding-inline: 8px;
    }

    .odeme-filtre-aksiyon .modal-actions-sol {
        margin-right: 0;
    }
}

/* Çok dar ekranda tarih alanları alt alta (yan yana iken tarih metni kesiliyor) */
@media (max-width: 380px) {
    .odeme-filtre-tarih .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Liste başlığı: Filtrele · Aylık bazda göster · Ödemeler PDF */
.gv-board-head-arac {
    gap: 8px;
}

.gv-board-head-arac .gv-sayfa-bilgi {
    margin-right: 4px;
}

@media (max-width: 640px) {
    .gv-arac-mobil-ikon {
        justify-content: center;
        width: 36px;
        padding: 0;
    }

    .gv-arac-mobil-ikon .gv-arac-etiket {
        display: none;
    }
}

/* Çok dar ekranda Filtrele de sadece ikon (+ uygulanan filtre sayısı); başlık tek satırda kalsın */
@media (max-width: 400px) {
    .gv-filtre-btn:not(.gv-arac-mobil-ikon) {
        min-width: 36px;
        padding: 0 9px;
    }

    .gv-filtre-btn .gv-filtre-etiket-metin {
        display: none;
    }

    .gv-board-head.gv-board-head-satir:has(> .gv-board-head-arac) {
        column-gap: 10px;
    }

    .gv-board-head-satir:has(> .gv-board-head-arac) h2 {
        font-size: 1rem;
    }

    .gv-board-head-arac {
        gap: 6px;
    }
}

/* ---------- Aylık ödeme planı (/gorev/odemeler/aylik) ---------- */
.gv-table-aylik .gv-c-gorev {
    width: 100%;
}

.gv-table-aylik .gv-title .badge {
    margin-left: 8px;
    vertical-align: 1px;
}

.ay-c-tahsil,
.ay-c-gelecek,
.ay-c-yapilacak,
.ay-c-kalan {
    width: 1%;
    font-weight: 600;
}

.gv-table-aylik th.gv-num,
.gv-table-aylik td.gv-num {
    min-width: 132px;
}

/* Tahsil edilen tutar: yeşil hap (bekleyen "Gelecek" tutarından ayrışsın) */
.ay-tahsil {
    display: inline-block;
    padding: 2px 8px;
    color: #067647;
    white-space: nowrap;
    background: #ecfdf3;
    border-radius: 999px;
}

/* Bu ayın tahsilat özeti */
.ws .card.ay-ozet {
    margin-bottom: 24px;
}

.ay-ozet-ust {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
}

.ay-ozet-metin {
    min-width: 0;
}

.ws .ay-ozet .ay-ozet-baslik {
    margin: 0 0 6px;
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.ay-ozet-cumle {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 650;
    line-height: 1.4;
    color: var(--navy);
}

.ay-ozet-gecikmis {
    margin: 8px 0 0;
    font-size: 0.92rem;
    color: #b42318;
}

.ay-ozet-gecikmis a {
    margin-left: 6px;
    font-weight: 600;
    color: inherit;
}

.ay-ozet-oran {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.ay-ozet-yuzde {
    font-size: 1.9rem;
    font-weight: 750;
    color: #067647;
    font-variant-numeric: tabular-nums;
}

.ay-ozet-yuzde-alt {
    font-size: 0.8rem;
    color: var(--muted);
}

.ay-ozet-bar {
    display: block;
    width: 100%;
    height: 10px;
    margin: 16px 0 4px;
    overflow: hidden;
    background: #eaecf0;
    border: 0;
    border-radius: 999px;
    appearance: none;
}

.ay-ozet-bar::-webkit-progress-bar {
    background: #eaecf0;
    border-radius: 999px;
}

.ay-ozet-bar::-webkit-progress-value {
    background: linear-gradient(90deg, #12b76a, #067647);
    border-radius: 999px;
}

.ay-ozet-bar::-moz-progress-bar {
    background: #067647;
    border-radius: 999px;
}

.ay-ozet-liste {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
}

.ay-ozet-liste > div {
    min-width: 0;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid var(--ws-line-soft, #eef0f4);
    border-radius: 12px;
}

.ay-ozet-liste dt {
    margin-bottom: 2px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.ay-ozet-liste dd {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.ay-ozet-liste dd a {
    color: inherit;
    text-decoration: none;
}

.ay-ozet-liste dd a.gv-tutar-arti {
    color: #067647;
}

.ay-ozet-liste dd a:hover {
    text-decoration: underline;
}

.ay-ozet-ara {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--muted);
}

.ay-ozet-alt {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--muted);
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .ay-ozet-liste {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .ay-ozet-liste > div {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 2px 12px;
    }

    .ay-ozet-liste dd {
        text-align: right;
    }

    .ay-ozet-cumle {
        font-size: 1.05rem;
    }

    .ay-ozet-yuzde {
        font-size: 1.5rem;
    }
}

/* Çok dar telefon: etiket üstte, tutar altında (sağa yaslı satır kırılınca dağılmasın) */
@media (max-width: 420px) {
    .ay-ozet-liste > div {
        display: block;
    }

    .ay-ozet-liste dd {
        text-align: left;
    }
}

.gv-row.is-gecikmis .gv-title {
    color: #b42318;
}

.gv-table-aylik .gv-row.is-pasif .gv-title {
    color: var(--muted);
}

/* Kaydı olmayan aylar daha alçak (plan kesintisiz okunur, liste uzamaz) */
.gv-table-aylik .gv-row.is-pasif > td {
    padding-top: 9px;
    padding-bottom: 9px;
}

/* Toplam satırı (tfoot): başlık hücresi tablo başlığı gibi görünmesin */
.gv-table .ay-toplam > th,
.gv-table .ay-toplam > td {
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--navy);
    white-space: nowrap;
    background: #f5f8ff;
    border-top: 1px solid var(--gv-line);
    border-bottom: 0;
}

.gv-table .ay-toplam .gv-yetkili {
    font-weight: 400;
}

@media (max-width: 900px) {
    .gv-table-aylik tfoot {
        display: block;
    }

    /* Kart: ay + aç · gelecek + yapılacak · alt şerit: kalan */
    .gv-table-aylik .gv-row {
        grid-template-areas:
            "gorev   aksiyon"
            "gelecek yapilacak"
            "alt     alt";
    }

    /* Tahsilat olan ay: ayın altında "Tahsil edilen" satırı; olmayan ayda hücre gizli */
    .gv-table-aylik .gv-row.has-tahsil {
        grid-template-areas:
            "gorev   aksiyon"
            "tahsil  tahsil"
            "gelecek yapilacak"
            "alt     alt";
    }

    .gv-table-aylik .gv-row:not(.has-tahsil) > .ay-c-tahsil {
        display: none;
    }

    .gv-table-aylik .ay-c-tahsil {
        grid-area: tahsil;
        width: auto;
        text-align: left !important;
    }

    .gv-table-aylik .ay-c-tahsil .gv-mobil-etiket {
        display: inline;
        margin: 0 8px 0 0;
    }

    .gv-table-aylik .gv-row.is-gecikmis { border-left-color: #fda29b; }

    .gv-table-aylik th.gv-num,
    .gv-table-aylik td.gv-num {
        min-width: 0;
    }

    .gv-table-aylik .gv-c-gorev     { width: auto; }
    .gv-table-aylik .ay-c-gelecek   { grid-area: gelecek; width: auto; text-align: left !important; }
    .gv-table-aylik .ay-c-yapilacak { grid-area: yapilacak; width: auto; }
    .gv-table-aylik .ay-c-kalan     { grid-area: alt; width: auto; font-size: 1.02rem; }
    .gv-table-aylik .ay-c-kalan .gv-mobil-etiket { display: inline; margin: 0 8px 0 0; }

    /* Boş ay kartı tek satır: ay adı + "kayıt yok" (tutar hücreleri gizli) */
    .gv-table-aylik .gv-row.is-pasif {
        grid-template-areas: "gorev aksiyon";
        padding-top: 10px;
        padding-bottom: 10px;
        box-shadow: none;
    }

    .gv-table-aylik .gv-row.is-pasif > td {
        padding: 0;
    }

    .gv-table-aylik .gv-row.is-pasif > td:not(.gv-c-gorev) {
        display: none;
    }

    .gv-table-aylik .gv-row.is-pasif .gv-title {
        font-size: 0.92rem;
    }

    .gv-table .ay-toplam {
        margin: 12px 0 0;
        background: #f5f8ff;
        border-left-color: var(--brand);
    }

    .gv-table .ay-toplam > th,
    .gv-table .ay-toplam > td {
        display: block;
        padding: 0;
        background: transparent;
        border-top: 0;
    }

    .gv-table .ay-toplam > .ay-c-kalan {
        padding-top: 10px !important;
        border-top: 1px solid #dfe7fb !important;
    }

    .gv-table .ay-toplam > .gv-c-aksiyon {
        display: none;
    }
}

/* Başlık aksiyonu: mobilde kısa etiket (page_header 'mobilEtiket'), ör. "Hatırlatma Ekle" -> "Ekle" */
.ph-etiket-kisa {
    display: none;
}

@media (max-width: 640px) {
    .ph-etiket-tam {
        display: none;
    }

    .ph-etiket-kisa {
        display: inline;
    }
}

/* Başlık aksiyonu: mobilde sadece ikon (page_header 'mobilIkon') */
@media (max-width: 640px) {
    .ws .ph-actions .btn.ph-btn-mobil-ikon {
        width: 42px;
        padding: 0;
    }

    .ph-btn-mobil-ikon .ph-btn-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .ws .ph-btn-mobil-ikon .btn-icon {
        width: 20px;
        height: 20px;
        margin: 0;
    }
}

/* =============================================================================
   Yapılacaklar (/gorev/yapilacaklar, /gorev/yapilacak/{id})
   ============================================================================= */
/* Listede başlığın altında detayın tek satırlık önizlemesi */
.yapilacak-onizleme {
    max-width: 640px;
}

.gv-table-yapilacak .gv-c-son {
    width: 1%;
    white-space: nowrap;
}

.gv-table-yapilacak .gv-c-son .badge {
    margin-top: 4px;
}

.gv-table-yapilacak .gv-c-durum {
    width: 1%;
    white-space: nowrap;
}

/* Yeni eklenen / adresle hedeflenen satır kısa süre vurgulanır */
.gv-table-yapilacak .gv-row:target > td {
    animation: yapilacak-vurgu 2.4s ease-out;
}

@keyframes yapilacak-vurgu {
    from {
        background: var(--info-bg);
    }
}

/* Detay alanı: dikeyde büyütülebilir */
textarea.form-control.yapilacak-detay {
    min-height: 140px;
    line-height: 1.6;
    resize: vertical;
}

/* Detay: prompt yazma kutusu (app/views/prompt_alanlar.php); sayaç kutunun hemen altında */
.yapilacak-detay-alan .composer-input {
    min-height: 140px;
}

.modal .yapilacak-detay-alan .composer-input {
    min-height: 120px;
}

/* Form grubu içinde: genel ".form-group label" kuralı (blok, alt boşluk, kalın) dosya ekle simgesine uygulanmasın */
.form-group label.composer-icon {
    display: inline-flex;
    margin-bottom: 0;
    font-weight: inherit;
}

.yapilacak-detay-alan .muted {
    font-weight: 400;
}

.yapilacak-detay-alan .yapilacak-sayac {
    margin-top: 6px;
}

/* Listede ek sayısı (ataç + "3 ek") */
.yapilacak-ek {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    margin-top: 4px;
    padding: 1px 8px 1px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    background: #f2f4f7;
    border-radius: 999px;
}

.yapilacak-ek svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gv-c-gorev .yapilacak-ek {
    display: flex;
}

/* Detay sayfasındaki "Ekler" kartı: belgeler satır satır, görseller küçük resim */
.ek-goster {
    display: grid;
    gap: 12px;
}

.ek-goster .pl-belgeler,
.ek-goster .pl-media {
    margin: 0;
}

.yapilacak-sayac {
    font-variant-numeric: tabular-nums;
}

.yapilacak-sayac.is-yakin {
    color: var(--warning);
}

.yapilacak-sayac.is-dolu {
    font-weight: 600;
    color: var(--error);
}

/* Detay sayfası: solda form, sağda bilgiler + silme */
.yapilacak-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
}

.yapilacak-grid .card {
    margin-bottom: 0;
}

.yapilacak-yan {
    display: grid;
    gap: 24px;
}

.ws .detail-list.yapilacak-bilgi {
    grid-template-columns: 1fr;
    gap: 16px;
}

.yapilacak-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

@media (max-width: 1024px) {
    .yapilacak-grid {
        grid-template-columns: 1fr;
    }

    .ws .detail-list.yapilacak-bilgi {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Kart görünümü (900px ve altı): başlık + işlemler üstte, eklenme ve durum altta */
@media (max-width: 900px) {
    .gv-table-yapilacak .gv-row {
        grid-template-areas:
            "gorev aksiyon"
            "son   durum";
    }

    .gv-table-yapilacak .gv-c-son {
        grid-area: son;
        align-self: center;
        justify-self: start;
        width: auto;
    }

    .gv-table-yapilacak .gv-c-son .gv-firma,
    .gv-table-yapilacak .gv-c-son .gv-yetkili,
    .gv-table-yapilacak .gv-c-son .badge {
        display: inline-block;
        margin: 0 6px 0 0;
    }

    .gv-table-yapilacak .gv-c-durum {
        grid-area: durum;
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-top: 0 !important;
    }

    .yapilacak-onizleme {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

@media (max-width: 640px) {
    .yapilacak-form-actions .btn {
        width: 100%;
    }

    /* Filtre: arama tam genişlik, durum + sıralama yan yana (kesilmeden), düğme tam genişlik */
    .ws .filter-bar.filter-bar-yapilacak {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
    }

    .filter-bar-yapilacak input[type="search"],
    .filter-bar-yapilacak .btn,
    .filter-bar-yapilacak .link-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .filter-bar-yapilacak .link-btn {
        text-align: center;
    }
}

/* =============================================================================
   Notlar (/gorev/notlar, /gorev/not/{id})
   ============================================================================= */
/* Liste: başlığın altında notun tek satırlık önizlemesi */
.not-onizleme {
    max-width: 640px;
}

/* Boşluksuz uzun başlık / metin satırı taşırmasın */
.gv-table-not .gv-c-gorev {
    overflow-wrap: anywhere;
}

.gv-table-not .gv-c-son,
.gv-table-not .gv-c-durum {
    width: 1%;
    white-space: nowrap;
}

.gv-table-not th:last-child {
    text-align: right;
}

/* Yeni eklenen / düzenlenen satır kısa süre vurgulanır */
.gv-table-not .gv-row:target > td {
    animation: yapilacak-vurgu 2.4s ease-out;
}

/* Modal: not alanı dikeyde büyütülebilir, sayaç sınıra yaklaşınca renk değiştirir */
textarea.form-control.not-detay-alan {
    min-height: 180px;
    line-height: 1.6;
    resize: vertical;
}

.not-sayac {
    font-variant-numeric: tabular-nums;
}

.not-sayac.is-yakin {
    color: var(--warning);
}

.not-sayac.is-dolu {
    font-weight: 600;
    color: var(--error);
}

/* Detay: solda not metni, sağda işlemler + bilgiler */
.not-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
}

.not-grid .card {
    margin-bottom: 0;
}

.not-yan {
    display: grid;
    gap: 24px;
}

.not-metin {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.not-islem-aciklama {
    margin: 0 0 14px;
}

.not-islem-dugmeler {
    display: grid;
    gap: 8px;
}

.not-islem-dugmeler form {
    margin: 0;
}

.not-islem-dugmeler .btn {
    width: 100%;
    height: 44px;
    justify-content: center;
}

.not-islem-dugmeler .btn.is-loading .btn-icon {
    display: none;
}

.ws .detail-list.not-bilgi {
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Tek sütun (1024px ve altı): işlemler en üstte, sonra not metni, en altta bilgiler */
@media (max-width: 1024px) {
    .not-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .not-yan {
        display: contents;
    }

    .not-islemler {
        order: -1;
    }

    .not-islem-dugmeler {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ws .detail-list.not-bilgi {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Kart görünümü (900px ve altı): başlık + işlemler üstte, eklenme ve durum altta */
@media (max-width: 900px) {
    .gv-table-not .gv-row {
        grid-template-areas:
            "gorev aksiyon"
            "son   durum";
    }

    .gv-table-not .gv-c-son {
        grid-area: son;
        align-self: center;
        justify-self: start;
        width: auto;
        padding-top: 10px !important;
        border-top: 1px solid var(--gv-line) !important;
    }

    .gv-table-not .gv-c-durum {
        grid-area: durum;
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-top: 10px !important;
        border-top: 1px solid var(--gv-line) !important;
    }

    .not-onizleme {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

@media (max-width: 640px) {
    .not-islem-dugmeler {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Filtre: arama tam genişlik, durum + düğme yan yana */
    .ws .filter-bar.filter-bar-not {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .filter-bar-not input[type="search"],
    .filter-bar-not .link-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .filter-bar-not .link-btn {
        text-align: center;
    }
}

/* =============================================================================
   Projeler (/gorev/projeler, /gorev/proje/ekle, /gorev/proje/{id}, /gorev/proje/{id}/duzenle)
   Detay ekranı notlarla aynı iskeleti (not-grid, not-yan, not-islemler) kullanır.
   ============================================================================= */
/* Logo kutusu: listede 44px, logo yoksa baş harfler */
.proje-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    vertical-align: middle;
    background: var(--white);
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 10px;
}

.proje-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.proje-logo-bos {
    font-size: 0.84rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: var(--brand);
    background: var(--info-bg);
    border-color: var(--info-border);
}

.proje-logo-buyuk {
    width: 84px;
    height: 84px;
    font-size: 1.5rem;
    border-radius: 16px;
}

/* Liste */
.gv-table-proje .gv-c-logo {
    width: 1%;
    padding-right: 4px;
}

.gv-table-proje .gv-c-gorev {
    overflow-wrap: anywhere;
}

.gv-table-proje .gv-c-durum {
    width: 1%;
    white-space: nowrap;
}

.gv-table-proje th:last-child {
    text-align: right;
}

.proje-url {
    color: var(--brand);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.proje-url:hover {
    text-decoration: underline;
}

.proje-url:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

.proje-url-ikon svg {
    width: 14px;
    height: 14px;
    margin-left: 3px;
    vertical-align: -2px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gv-table-proje .gv-row:target > td {
    animation: yapilacak-vurgu 2.4s ease-out;
}

/* Form (ekle / düzenle) */
.gf-c8 { grid-column: span 8; }

.gorev-form textarea.proje-detay-alan {
    height: 180px;
    min-height: 112px;
}

.proje-mevcut-baslik {
    margin: 0 0 8px;
}

.proje-form-logo img {
    max-width: 160px;
    max-height: 80px;
}

.proje-form-galeri {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.proje-form-gorsel {
    display: block;
    overflow: hidden;
    cursor: pointer;
    background: var(--white);
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 10px;
    transition: border-color 0.15s ease;
}

.proje-form-gorsel img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f2f4f7;
    transition: opacity 0.15s ease;
}

.proje-form-kaldir {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    font-size: 0.82rem;
    color: var(--muted);
    border-top: 1px solid var(--ws-line, #e4e7ec);
}

.proje-form-kaldir input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--error);
}

/* Kaldırılmak üzere işaretlenen dosya: soluk + kırmızı çerçeve */
.proje-form-gorsel:has(input:checked) {
    border-color: var(--error-border);
}

.proje-form-gorsel:has(input:checked) img {
    opacity: 0.35;
}

.proje-form-gorsel:has(input:checked) .proje-form-kaldir {
    color: var(--error);
    background: var(--error-bg);
}

.proje-form-gorsel:has(input:focus-visible) {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.proje-dosya:has(.proje-dosya-kaldir input:checked) {
    background: var(--error-bg);
    border-color: var(--error-border);
}

.proje-dosya:has(.proje-dosya-kaldir input:checked) .proje-dosya-isim {
    color: var(--muted);
    text-decoration: line-through;
}

.proje-dosya-kaldir {
    flex: none;
    margin: 0;
    font-size: 0.86rem;
}

/* Detay */
.proje-ana {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.proje-ana .card {
    margin-bottom: 0;
}

.proje-detay-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 116px;
    margin-bottom: 14px;
    padding: 16px;
    background: repeating-conic-gradient(#f2f4f7 0% 25%, #fff 0% 50%) 50% / 16px 16px;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 12px;
}

.proje-detay-logo img {
    display: block;
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

/* Görseller: kare olmayan küçük resimler, tıklanınca görüntüleyici */
.proje-galeri {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.proje-galeri a {
    display: block;
    overflow: hidden;
    background: #f2f4f7;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 10px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.proje-galeri a:hover {
    border-color: var(--brand);
    transform: translateY(-1px);
}

.proje-galeri a:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.proje-galeri img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Tanıtım dosyaları: tür rozeti, ad + boyut, indir düğmesi */
.proje-dosya-liste {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.proje-dosya {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 10px;
}

.proje-dosya-ikon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--brand);
    background: var(--info-bg);
    border-radius: 9px;
}

.proje-dosya-ikon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.proje-dosya-ad {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.proje-dosya-isim {
    overflow: hidden;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.proje-dosya-boyut {
    font-size: 0.8rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.proje-dosya .gv-icon-btn {
    flex: none;
}

/* Kart görünümü (900px ve altı): logo + ad + işlemler üstte, web adresi ve durum altta */
@media (max-width: 900px) {
    .gv-table-proje .gv-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "logo gorev aksiyon"
            "alt  alt   alt";
        align-items: center;
    }

    .gv-table-proje .gv-c-logo {
        grid-area: logo;
        width: auto;
    }

    .gv-table-proje .gv-c-gorev,
    .gv-table-proje .gv-c-aksiyon {
        align-self: center;
    }

    /* Alt şerit: tam genişlik ayraçlı web adresi; durum rozeti aynı şeridin sağına biner */
    .gv-table-proje .gv-c-url {
        grid-area: alt;
        align-self: stretch;
        min-width: 0;
        padding: 10px 112px 0 0 !important;
        font-size: 0.88rem;
        border-top: 1px solid var(--gv-line) !important;
    }

    .gv-table-proje .gv-c-durum {
        grid-area: alt;
        align-self: center;
        justify-self: end;
        width: auto;
        padding-top: 10px !important;
    }
}

@media (max-width: 640px) {
    .gf-c8 {
        grid-column: span 12;
    }

    /* Dar kartta ad için yer kalsın */
    .gv-table-proje .proje-logo {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }

    .gv-table-proje .gv-c-aksiyon .gv-icon-btn {
        width: 34px;
        height: 34px;
    }

    .gv-table-proje .gv-row {
        column-gap: 10px;
    }

    .proje-galeri {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
        gap: 8px;
    }

    .proje-form-galeri {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .proje-dosya {
        gap: 10px;
        padding: 9px 10px;
    }

    .proje-dosya-ikon {
        width: 38px;
        height: 38px;
    }
}

/* =============================================================================
   Ürünlerim (/gorev/urunler, /gorev/urun/ekle, /gorev/urun/{id}, /gorev/urun/{id}/duzenle)
   Form, galeri, dosya satırı ve detay iskeleti Projeler ile ortaktır (proje-* sınıfları).
   ============================================================================= */
/* Kapak görseli: listede ilk ürün görseli (4:3), yoksa kutu ikonu */
.urun-kapak {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 42px;
    overflow: hidden;
    vertical-align: middle;
    background: #f2f4f7;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 8px;
}

.urun-kapak img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.urun-kapak-bos {
    color: var(--brand);
    background: var(--info-bg);
    border-color: var(--info-border);
}

.urun-kapak-bos svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Liste */
.gv-table-urun .gv-c-logo {
    width: 1%;
    padding-right: 4px;
}

.gv-table-urun .gv-c-gorev {
    overflow-wrap: anywhere;
}

.gv-table-urun .gv-c-tutar,
.gv-table-urun .gv-c-durum {
    width: 1%;
    white-space: nowrap;
}

.gv-table-urun th:last-child {
    text-align: right;
}

.gv-table-urun .gv-row:target > td {
    animation: yapilacak-vurgu 2.4s ease-out;
}

/* Detay: işlemler kartındaki fiyat */
.urun-fiyat-kutu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
    padding: 14px 16px;
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 12px;
}

.urun-fiyat-etiket {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.urun-fiyat {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.urun-fiyat.is-bos {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--muted);
}

/* Listede yeni talep rozeti: ürün adının altında */
.urun-yeni-talep {
    display: block;
    width: fit-content;
    margin-top: 4px;
    text-decoration: none;
}

/* Kart görünümü (900px ve altı):
     [kapak] Ürün adı
     [kapak] Fiyat                 Durum
     demo adresi ─────────── [işlemler]   (ayraçlı alt şerit) */
@media (max-width: 900px) {
    .gv-table-urun .gv-row {
        --urun-gap: 12px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "logo gorev gorev"
            "logo tutar durum"
            "url  url   aksiyon";
        column-gap: var(--urun-gap);
        row-gap: 4px;
        align-items: center;
    }

    .gv-table-urun .gv-c-logo {
        grid-area: logo;
        width: auto;
    }

    .gv-table-urun .gv-c-gorev {
        align-self: end;
    }

    .gv-table-urun .gv-c-tutar {
        grid-area: tutar;
        align-self: start;
        width: auto;
        padding-top: 0 !important;
        font-size: 0.9rem;
        border-top: 0 !important;
    }

    .gv-table-urun .gv-c-durum {
        grid-area: durum;
        align-self: start;
        justify-self: end;
        width: auto;
        padding-top: 0 !important;
    }

    /* Ayraç çizgisi demo adresi ile işlemler arasında kesilmesin (sütun boşluğu kadar uzar) */
    .gv-table-urun .gv-c-url {
        grid-area: url;
        align-self: stretch;
        min-width: 0;
        margin: 6px calc(-1 * var(--urun-gap)) 0 0;
        padding: 10px var(--urun-gap) 0 0 !important;
        font-size: 0.88rem;
        border-top: 1px solid var(--gv-line) !important;
    }

    .gv-table-urun .gv-c-aksiyon {
        align-self: stretch;
        margin-top: 6px;
        padding-top: 8px !important;
        border-top: 1px solid var(--gv-line) !important;
    }
}

@media (max-width: 640px) {
    .gv-table-urun .urun-kapak {
        width: 48px;
        height: 36px;
    }

    .gv-table-urun .gv-c-aksiyon .gv-icon-btn {
        width: 34px;
        height: 34px;
    }

    .gv-table-urun .gv-row {
        --urun-gap: 10px;
    }

    /* Dar kartta demo adresi tek satır (işlem düğmeleri yanında yer kalsın) */
    .gv-table-urun .gv-c-url {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

/* =============================================================================
   Ürün paylaşımı (/gorev/urun/{id}: Paylaş modalı, Paylaşımlar, Satın alma talepleri)
   ============================================================================= */
/* Kanal seçimi: 2x2 seçim kartı */
.up-kanallar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.up-legend {
    grid-column: 1 / -1;
    margin-bottom: 8px;
    padding: 0;
    font-weight: 600;
    color: var(--navy);
}

.up-kanal-sec {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    cursor: pointer;
    background: var(--white);
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 12px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.up-kanal-sec input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.up-kanal-sec:hover {
    border-color: #c7d7fe;
}

.up-kanal-sec:has(input:checked) {
    background: #f5f8ff;
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}

.up-kanal-sec:has(input:focus-visible) {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.up-kanal-ikon,
.up-kanal-rozet {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--brand);
    background: var(--info-bg);
    border-radius: 10px;
}

.up-kanal-ikon svg,
.up-kanal-rozet svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.up-kanal-whatsapp .up-kanal-ikon,
.up-kanal-rozet.up-kanal-whatsapp {
    color: #0b8a3e;
    background: #e9f9ef;
}

.up-kanal-yazi {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.up-kanal-yazi strong {
    font-size: 0.95rem;
    color: var(--navy);
}

.up-kanal-yazi small {
    font-size: 0.78rem;
    color: var(--muted);
}

/* JS seçilen kanala göre ilgili alanı gösterir (JS yoksa hepsi görünür) */
.has-js [data-up-form]:not([data-kanal="sms"]) .up-alan[data-up-alan="sms"],
.has-js [data-up-form]:not([data-kanal="mail"]) .up-alan[data-up-alan="mail"] {
    display: none;
}

.gorev-form textarea.up-mesaj,
textarea.up-mesaj {
    min-height: 116px;
    resize: vertical;
}

.up-modal .field-help code {
    font-size: 0.78rem;
}

/* Paylaşıma hazır */
.up-hazir-alt {
    margin: -4px 0 14px;
}

.up-hazir-dugmeler {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.up-hazir-dugmeler .btn {
    justify-content: center;
    width: 100%;
    min-height: 48px;
}

.btn.up-btn-wa:not(.btn-outline) {
    color: #fff;
    background: #1fa855;
    border-color: #1fa855;
}

.btn.up-btn-wa:not(.btn-outline):hover {
    background: #178a45;
    border-color: #178a45;
}

.up-mesaj-kopya {
    margin-top: 8px;
}

/* Paylaşımlar / talepler listesi */
.up-kart {
    margin-top: 24px;
}

.up-liste {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.up-oge {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 12px;
}

.up-oge.is-yeni {
    background: #fffbf0;
    border-color: #fde3a7;
}

.up-oge.is-kapali {
    background: #f9fafb;
}

.up-oge.is-kapali .up-ad,
.up-oge.is-kapali .up-kanal-rozet {
    opacity: 0.6;
}

.up-bilgi {
    flex: 1 1 auto;
    min-width: 0;
}

.up-satir {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}

.up-ad {
    color: var(--navy);
    overflow-wrap: anywhere;
}

.up-iletisim {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin-top: 2px;
    font-size: 0.92rem;
}

.up-iletisim a {
    color: var(--brand);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.up-iletisim a:hover {
    text-decoration: underline;
}

.up-not {
    margin: 6px 0 0;
    padding: 8px 10px;
    font-size: 0.92rem;
    white-space: pre-line;
    overflow-wrap: anywhere;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--ws-line-soft, #eef0f4);
    border-radius: 8px;
}

.up-meta {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.up-ilgi {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.up-ilgi li {
    padding: 2px 9px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    background: #f2f4f7;
    border-radius: 999px;
}

.up-ilgi li.is-var {
    color: #0b2fa8;
    background: var(--info-bg);
}

.up-ilgi li.is-form {
    color: #067647;
    background: #ecfdf3;
}

.up-islem {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
}

@media (max-width: 640px) {
    .up-oge {
        flex-wrap: wrap;
        padding: 12px;
    }

    .up-bilgi {
        flex-basis: calc(100% - 48px);
    }

    /* İşlemler alt satırda, sağa dayalı (dar kartta ad için yer kalsın) */
    .up-islem {
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid var(--ws-line-soft, #eef0f4);
    }

    .up-oge:not(:has(.up-kanal-rozet)) .up-bilgi {
        flex-basis: 100%;
    }
}

@media (max-width: 350px) {
    .up-kanallar {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =============================================================================
   Ürün tanıtım sayfası (müşteri: /tanitim/{anahtar}, önizleme: /gorev/urun/{id}/onizle)
   Bağımsız, satış odaklı sayfa: yönetici menüsü yok. Mobilde altta sabit CTA çubuğu.
   ============================================================================= */
.tanitim-page {
    --tn-wa: #1fa855;
    --tn-wa-koyu: #178a45;
    --tn-mobil-cta: 0px;
    color: var(--text);
    background: var(--white);
    scroll-behavior: smooth;
}

html:has(.tanitim-page) {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
    html:has(.tanitim-page) {
        scroll-behavior: auto;
    }
}

.tn-kap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.tn-kap-dar {
    max-width: 820px;
}

.tn-atla {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    color: #fff;
    background: var(--navy);
    border-radius: 8px;
}

.tn-atla:focus {
    top: 12px;
}

.tn-onizleme {
    padding: 10px 0;
    font-size: 0.9rem;
    color: #7a4b00;
    background: #fff7e0;
    border-bottom: 1px solid #fde3a7;
}

.tn-onizleme-ic {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
}

.tn-onizleme a {
    font-weight: 600;
    color: inherit;
}

/* Üst çubuk */
.tn-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--ws-line, #e4e7ec);
    backdrop-filter: saturate(1.6) blur(12px);
    -webkit-backdrop-filter: saturate(1.6) blur(12px);
}

.tn-bar-ic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.tn-marka {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--navy);
    text-decoration: none;
}

.tn-marka img {
    width: auto;
    max-width: 180px;
    height: 40px;
    object-fit: contain;
}

.tn-marka-ad {
    overflow: hidden;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tn-bar-sag {
    display: flex;
    flex: none;
    align-items: center;
    gap: 16px;
}

.tn-bar-tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap;
}

.tn-bar-tel:hover {
    color: var(--brand);
}

.tanitim-page svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Düğmeler */
.tn-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tn-btn:active {
    transform: translateY(1px);
}

.tn-btn-sm {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.92rem;
}

.tn-btn-lg {
    min-height: 54px;
    padding: 14px 22px;
    font-size: 1.04rem;
    border-radius: 14px;
}

.tn-btn-tam {
    width: 100%;
}

.tn-btn-birincil {
    color: #fff;
    background: var(--brand);
    box-shadow: 0 10px 24px -12px rgba(10, 92, 255, 0.7);
}

.tn-btn-birincil:hover {
    background: var(--brand-600);
}

.tn-btn-ikincil {
    color: var(--navy);
    background: var(--white);
    border-color: var(--border-strong);
}

.tn-btn-ikincil:hover {
    border-color: var(--navy);
}

.tn-btn-wa {
    color: #fff;
    background: var(--tn-wa);
}

.tn-btn-wa:hover {
    background: var(--tn-wa-koyu);
}

.tn-btn-beyaz {
    color: var(--navy);
    background: #fff;
}

.tn-btn-beyaz:hover {
    background: #eef3ff;
}

.tn-btn-cerceve {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
}

.tn-btn-cerceve:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
}

.tn-btn-cerceve small {
    font-weight: 400;
    opacity: 0.8;
}

.tn-btn-ok {
    transition: transform 0.15s ease;
}

.tn-btn:hover .tn-btn-ok {
    transform: translateX(3px);
}

.tn-btn:focus-visible,
.tn-iletisim-oge:focus-visible,
.tn-mc:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}

.tn-btn.is-loading .btn-spinner {
    display: inline-block;
}

/* Hero */
.tn-hero {
    padding: 56px 0 64px;
    background:
        radial-gradient(ellipse 70% 60% at 85% 10%, rgba(10, 92, 255, 0.10), transparent 70%),
        linear-gradient(180deg, #f5f8ff 0%, #fff 100%);
}

.tn-hero-ic {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
}

.tn-ust-yazi {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--brand-dark);
    background: #e3ecff;
    border-radius: 999px;
}

.tn-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.tn-hero-ozet {
    margin: 0 0 24px;
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--muted);
}

.tn-fiyat {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 14px;
    box-shadow: 0 8px 24px -18px rgba(11, 23, 51, 0.4);
}

.tn-fiyat-etiket {
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.tn-fiyat-deger {
    font-size: 1.9rem;
    font-weight: 750;
    line-height: 1.15;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.tn-fiyat-deger.is-ozel {
    font-size: 1.35rem;
}

.tn-fiyat-not {
    font-size: 0.88rem;
    color: var(--muted);
}

.tn-cta-grup {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tn-guven {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 22px 0 0;
    padding: 0;
    font-size: 0.92rem;
    color: var(--text);
    list-style: none;
}

.tn-guven li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tn-guven svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    stroke-width: 2.4;
}

.tn-hero-gorsel a {
    display: block;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 20px;
    box-shadow: 0 30px 60px -30px rgba(11, 23, 51, 0.45);
    transition: transform 0.2s ease;
}

.tn-hero-gorsel a:hover {
    transform: translateY(-2px);
}

.tn-hero-gorsel img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.tn-hero-bos {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    color: var(--brand);
    background: linear-gradient(135deg, #e3ecff, #f5f8ff);
    border-radius: 20px;
}

.tn-hero-bos svg {
    width: 96px;
    height: 96px;
    stroke-width: 1.2;
}

/* Bölümler */
.tn-bolum {
    padding: 64px 0;
}

.tn-bolum-beyaz {
    background: #f8fafc;
}

.tn-bolum-bas {
    margin-bottom: 28px;
}

.tn-bolum-bas h2,
.tn-bant h2,
.tn-satin h2 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--navy);
}

.tn-bolum-bas p {
    margin: 0;
    color: var(--muted);
}

.tn-orta {
    text-align: center;
}

.tn-galeri {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tn-galeri a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tn-galeri a:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -20px rgba(11, 23, 51, 0.5);
}

.tn-galeri a:focus-visible,
.tn-hero-gorsel a:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}

.tn-galeri img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f2f4f7;
}

.tn-metin {
    font-size: 1.05rem;
    line-height: 1.75;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* Karar bandı */
.tn-bant {
    padding: 56px 0;
    color: #dbe4ff;
    background:
        radial-gradient(ellipse 60% 120% at 100% 0%, rgba(10, 92, 255, 0.45), transparent 60%),
        var(--navy);
}

.tn-bant-ic {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.tn-bant h2 {
    color: #fff;
}

.tn-bant p {
    max-width: 520px;
    margin: 0;
    line-height: 1.6;
}

.tn-bant-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Adımlar */
.tn-adimlar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.tn-adimlar li {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 16px;
}

.tn-adim-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    font-weight: 750;
    color: #fff;
    background: var(--brand);
    border-radius: 12px;
}

.tn-adimlar h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: var(--navy);
}

.tn-adimlar p {
    margin: 0;
    line-height: 1.6;
    color: var(--muted);
}

/* Satın alma */
.tn-satin {
    background: linear-gradient(180deg, #fff 0%, #f5f8ff 100%);
}

.tn-satin-ic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    align-items: start;
    gap: 48px;
}

.tn-satin-metin p {
    margin: 0 0 20px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--muted);
}

.tn-iletisim {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tn-iletisim-oge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--navy);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 14px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.tn-iletisim-oge:hover {
    border-color: var(--brand);
    transform: translateY(-1px);
}

.tn-iletisim-oge span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tn-iletisim-oge small {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.tn-iletisim-ikon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--brand);
    background: var(--info-bg);
    border-radius: 12px;
}

.tn-iletisim-oge.is-wa .tn-iletisim-ikon {
    color: #fff;
    background: var(--tn-wa);
}

.tn-form-kart {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 20px;
    box-shadow: 0 30px 60px -36px rgba(11, 23, 51, 0.45);
}

.tn-form-baslik {
    margin: 0;
    font-size: 1.25rem;
    color: var(--navy);
}

.tn-form-alt {
    margin: 2px 0 18px;
    font-size: 0.9rem;
    color: var(--muted);
}

.tn-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.tn-form .form-group {
    margin-bottom: 14px;
}

.tn-form textarea {
    min-height: 88px;
    resize: vertical;
}

.tn-onay {
    align-items: flex-start;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--muted);
}

.tn-onay input {
    flex: none;
    margin-top: 2px;
}

/* Tuzak alan: ekran dışında (ekran okuyucudan da gizli) */
.tn-tuzak {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tn-tesekkur {
    text-align: center;
}

.tn-tesekkur-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    color: #067647;
    background: #ecfdf3;
    border-radius: 20px;
}

.tn-tesekkur-ikon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.4;
}

.tn-tesekkur h3 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    color: var(--navy);
}

.tn-tesekkur p {
    margin: 0 0 18px;
    color: var(--muted);
}

/* Alt bilgi */
.tn-alt {
    padding: 28px 0 calc(28px + var(--tn-mobil-cta));
    font-size: 0.88rem;
    color: var(--muted);
    border-top: 1px solid var(--ws-line, #e4e7ec);
}

.tn-alt-ic {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
}

.tn-alt-ic > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tn-alt strong {
    color: var(--navy);
}

.tn-alt-sag {
    text-align: right;
}

.tn-alt a {
    color: var(--brand);
    text-decoration: none;
}

/* Mobil sabit CTA çubuğu (masaüstünde gizli) */
.tn-mobil-cta {
    display: none;
}

.tn-durum-firma {
    margin: 0 0 24px !important;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy) !important;
}

@media (max-width: 900px) {
    .tn-hero {
        padding: 36px 0 44px;
    }

    .tn-hero-ic,
    .tn-satin-ic {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    /* Görsel metnin üstünde: ürün ilk bakışta görünsün (tablette ekranı kaplamasın) */
    .tn-hero-gorsel {
        order: -1;
        width: 100%;
        max-width: 560px;
    }

    .tn-adimlar {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .tn-bolum {
        padding: 44px 0;
    }
}

@media (max-width: 640px) {
    .tanitim-page {
        --tn-mobil-cta: 72px;
    }

    .tn-kap {
        padding: 0 16px;
    }

    .tn-bar-ic {
        min-height: 60px;
    }

    .tn-marka img {
        max-width: 140px;
        height: 34px;
    }

    /* Üst çubukta sadece logo + telefon ikonu; CTA'lar alttaki sabit çubukta */
    .tn-bar-sag .tn-btn,
    .tn-bar-tel span {
        display: none;
    }

    .tn-bar-tel {
        justify-content: center;
        width: 44px;
        height: 44px;
        color: var(--brand);
        background: var(--info-bg);
        border-radius: 12px;
    }

    .tn-hero {
        padding: 20px 0 36px;
    }

    .tn-hero-gorsel a,
    .tn-hero-bos {
        border-radius: 16px;
    }

    .tn-hero-ozet {
        font-size: 1.02rem;
    }

    .tn-fiyat {
        display: flex;
    }

    .tn-cta-grup .tn-btn {
        width: 100%;
    }

    .tn-galeri {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tn-galeri a {
        border-radius: 10px;
    }

    .tn-bant-cta,
    .tn-bant-cta .tn-btn {
        width: 100%;
    }

    .tn-form-kart {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .tn-alt-sag {
        text-align: left;
    }

    .tn-mobil-cta {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 40;
        display: flex;
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--ws-line, #e4e7ec);
        box-shadow: 0 -10px 30px -20px rgba(11, 23, 51, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .tn-mc {
        display: inline-flex;
        flex: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 58px;
        min-height: 52px;
        padding: 4px 8px;
        font-size: 0.72rem;
        font-weight: 650;
        color: var(--navy);
        text-decoration: none;
        background: #f2f4f7;
        border-radius: 12px;
    }

    .tn-mc-wa {
        color: #fff;
        background: var(--tn-wa);
    }

    .tn-mc-ana {
        flex: 1 1 auto;
        font-size: 0.98rem;
        color: #fff;
        background: var(--brand);
    }
}

/* =============================================================================
   Teklifler (/gorev/teklifler, /gorev/teklif/ekle, /gorev/teklif/{id}, /gorev/teklif/ayarlar)
   ============================================================================= */

/* Liste */
.gv-teklif-no {
    font-variant-numeric: tabular-nums;
}

.gv-c-ttarih {
    color: var(--text);
}

/* Tablo görünümünde geçerlilik rozeti tarihin altına iner (sütun daralsın, › düğmesi taşmasın) */
.gv-table-teklif .gv-c-ttarih .gv-tarih-rozet {
    display: block;
    width: fit-content;
    margin: 4px 0 0;
}

.gv-gonderildi {
    margin-top: 4px;
    font-size: 0.76rem;
    color: #067647;
}

.gv-gonderildi::before {
    content: "✓ ";
}

.gv-table-teklif .gv-c-durum {
    white-space: nowrap;
}

.gv-row.gv-teklif-red .gv-title {
    color: var(--muted);
}

@media (max-width: 900px) {
    /* Kart: konu + işlemler · müşteri · tarih + durum · tutar */
    .gv-table-teklif .gv-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "gorev   aksiyon"
            "musteri musteri"
            "tarih   durum"
            "alt     alt";
    }

    .gv-table-teklif .gv-row.gv-teklif-kabul { border-left-color: #a6e2c0; }
    .gv-table-teklif .gv-row.gv-teklif-red   { border-left-color: #fda29b; }
    .gv-table-teklif .gv-row.gv-teklif-bekliyor { border-left-color: #fec84b; }

    /* Görev kartları müşteri satırını gizler; teklif kartında müşteri asıl bilgidir */
    .gv-table.gv-table-teklif .gv-c-musteri { display: block; grid-area: musteri; min-width: 0; }
    .gv-table-teklif .gv-c-ttarih { grid-area: tarih; width: auto; white-space: normal; align-self: center; }
    .gv-table-teklif .gv-c-durum {
        grid-area: durum;
        align-self: center;
        justify-self: end;
        padding-top: 0 !important;
        text-align: right;
    }
    .gv-table-teklif .gv-c-tutar { grid-area: alt; font-size: 1.02rem; font-weight: 650; }

    /* Dört işlem düğmesi dar kartta sıkışmasın */
    .gv-table-teklif .gv-c-aksiyon .gv-icon-btn {
        width: 34px;
        height: 34px;
    }
}

/* Form (ekle / düzenle / ayarlar) */
.ws .teklif-form .tf-bolum,
.ws .proje-form .tf-bolum,
.ws .urun-form .tf-bolum {
    margin: 6px 0 -4px;
    padding-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-dark, var(--brand));
    border-bottom: 1px solid var(--ws-line-soft, #eef0f4);
}

.ws .teklif-form .tf-bolum:not(:first-child),
.ws .proje-form .tf-bolum:not(:first-child),
.ws .urun-form .tf-bolum:not(:first-child) {
    margin-top: 18px;
}

.teklif-form .tf-not {
    margin: -6px 0 0;
}

.teklif-form .tf-not code {
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.gorev-form textarea.tf-adres {
    height: 70px;
    min-height: 70px;
}

.gorev-form textarea.tf-detay {
    height: 220px;
    min-height: 140px;
}

.tf-doldur {
    padding: 14px 16px;
    background: var(--ws-head-bg, #f9fafb);
    border: 1px dashed var(--ws-line, #e4e7ec);
    border-radius: 12px;
}

.gorev-form .ta-renk {
    padding: 4px 6px;
    cursor: pointer;
}

.ta-logo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-bottom: 10px;
    padding: 12px;
    background: repeating-conic-gradient(#f2f4f7 0% 25%, #fff 0% 50%) 50% / 16px 16px;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 10px;
}

.ta-logo img {
    max-width: 220px;
    max-height: 70px;
    object-fit: contain;
}

.ta-logo .checkbox {
    padding: 4px 8px;
    background: var(--white);
    border-radius: 8px;
}

/* Detay */
.teklif-metin {
    line-height: 1.65;
    color: var(--text);
    overflow-wrap: anywhere;
}

.teklif-durum-form {
    display: grid;
    gap: 14px;
}

.teklif-durum-sec {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.teklif-durum-secenek {
    position: relative;
    display: block;
    cursor: pointer;
}

.teklif-durum-secenek input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.teklif-durum-secenek span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    font-weight: 600;
    color: var(--navy);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.15s, background-color 0.15s;
}

.teklif-durum-secenek span::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}

.teklif-durum-bekliyor span::before { background: #f79009; }
.teklif-durum-kabul span::before    { background: #17b26a; }
.teklif-durum-red span::before      { background: #f04438; }

.teklif-durum-bekliyor input:checked + span { background: #fffaeb; border-color: #f79009; }
.teklif-durum-kabul input:checked + span    { background: #ecfdf3; border-color: #17b26a; }
.teklif-durum-red input:checked + span      { background: #fef3f2; border-color: #f04438; }

.teklif-durum-secenek input:focus-visible + span {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.teklif-baglanti {
    display: flex;
    gap: 10px;
}

.teklif-baglanti .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.teklif-baglanti .btn {
    flex: 0 0 auto;
}

.teklif-baglanti-bos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

.teklif-baglanti-bos p {
    margin: 0;
}

.teklif-islem-dugmeler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.teklif-islem-dugmeler form {
    margin: 0;
}

/* Gönder modalı */
.tg-teklif {
    margin: 0 0 16px;
    font-weight: 600;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.tg-kanal {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 12px;
}

.tg-kanal .checkbox {
    font-weight: 600;
}

.tg-kanal .checkbox small {
    font-weight: 400;
}

.tg-kanal:has(input[type="checkbox"]:checked) {
    background: #f7f9fe;
    border-color: #c7d7fe;
}

@media (max-width: 640px) {
    .teklif-baglanti {
        flex-direction: column;
    }

    .teklif-islem-dugmeler {
        width: 100%;
    }

    .teklif-islem-dugmeler form,
    .teklif-islem-dugmeler .btn {
        flex: 1 1 auto;
    }

    .teklif-islem-dugmeler form .btn {
        width: 100%;
    }
}

/* =============================================================================
   Hatırlatmalar (/gorev/hatirlatmalar, /gorev/hatirlatmalar/takvim)
   Durum renkleri: günü gelen kırmızı, yaklaşan (7 gün) turuncu, ileri tarihli marka mavisi, tamamlanan yeşil / sönük
   ============================================================================= */
/* Liste / Takvim geçişi (başlık satırının sağı) */
.ht-gorunum {
    display: inline-flex;
    flex-shrink: 0;
    gap: 2px;
    padding: 3px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.ht-gorunum a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-radius: 7px;
    transition: color 0.15s, background-color 0.15s;
}

.ht-gorunum svg,
.ht-ay-ok svg,
.ht-gun-ekle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ht-gorunum a:hover {
    color: var(--navy);
}

.ht-gorunum a[aria-current="page"] {
    color: var(--brand-dark);
    background: var(--white);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
}

.ht-gorunum a:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

/* ---------- Liste ---------- */
.gv-table-hatirlatma .ht-c-vakit,
.gv-table-hatirlatma .gv-c-durum {
    width: 1%;
    white-space: nowrap;
}

.ht-c-vakit .gv-firma {
    display: block;
    font-variant-numeric: tabular-nums;
}

.ht-c-vakit strong {
    font-weight: 650;
    color: var(--navy);
}

.ht-c-vakit .badge {
    margin-top: 4px;
}

.gv-row.is-done .ht-c-vakit strong {
    color: var(--muted);
}

/* Satır başında durum çizgisi: günü gelen kırmızı, yaklaşan turuncu */
.gv-table-hatirlatma .gv-row.is-gelen > td:first-child {
    box-shadow: inset 3px 0 0 #f04438;
}

.gv-table-hatirlatma .gv-row.is-yaklasan > td:first-child {
    box-shadow: inset 3px 0 0 #f79009;
}

/* Yeni eklenen / takvimden hedeflenen satır kısa süre vurgulanır */
.gv-table-hatirlatma .gv-row:target > td {
    animation: yapilacak-vurgu 2.4s ease-out;
}

/* ---------- Modal ---------- */
.hatirlatma-form-grid [data-hatirlatma-durum-alan][hidden] {
    display: none;
}

/* Yeni hatırlatmada durum alanı yok: tarih tam genişlik */
.hatirlatma-form-grid:has(> [data-hatirlatma-durum-alan][hidden]) {
    grid-template-columns: minmax(0, 1fr);
}

/* ---------- Takvim ---------- */
.ht-takvim-head {
    flex-wrap: wrap;
}

.ht-takvim-arac {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.ht-ay-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ws .ht-ay-nav .btn {
    height: 36px;
}

.ws .ht-ay-nav .ht-ay-ok {
    width: 36px;
    padding: 0;
}

.ht-takvim {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.ht-takvim th {
    padding: 10px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
    color: var(--muted);
    background: #fafbfc;
    border-bottom: 1px solid var(--gv-line);
}

.ht-takvim th abbr {
    text-decoration: none;
    cursor: default;
}

.ht-takvim th.is-hafta-sonu {
    color: var(--subtle);
}

.ht-takvim td {
    position: relative;
    height: 122px;
    padding: 6px;
    vertical-align: top;
    border-right: 1px solid var(--gv-line);
    border-bottom: 1px solid var(--gv-line);
}

.ht-takvim td:last-child {
    border-right: 0;
}

.ht-takvim tbody tr:last-child td {
    border-bottom: 0;
}

.ht-gun.is-hafta-sonu {
    background: #fcfcfd;
}

.ht-gun.is-diger-ay {
    background: #f9fafb;
}

.ht-gun-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    margin-bottom: 4px;
}

.ht-gun-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 0.86rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--navy);
    text-decoration: none;
    border-radius: 999px;
}

a.ht-gun-no:hover {
    color: var(--brand-dark);
    background: var(--info-bg);
}

a.ht-gun-no:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.ht-gun.is-diger-ay .ht-gun-no {
    color: var(--subtle);
}

.ht-gun.is-bugun .ht-gun-no,
.ht-gun.is-bugun a.ht-gun-no:hover {
    color: var(--white);
    background: var(--brand);
}

/* Güne hatırlatma ekle (+): fareyle hücrenin üstüne gelince görünür (JS yoksa gizli) */
.ht-gun-ekle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.12s, color 0.12s, background-color 0.12s;
}

.ht-gun-ekle[hidden] {
    display: none;
}

.ht-gun:hover .ht-gun-ekle,
.ht-gun-ekle:focus-visible {
    opacity: 1;
}

.ht-gun-ekle:hover {
    color: var(--brand);
    background: var(--info-bg);
}

.ht-gun-ekle:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

@media (hover: none) {
    .ht-gun-ekle {
        opacity: 0.6;
    }
}

.ht-olaylar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ht-olaylar li {
    min-width: 0;
}

.ht-olay {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 3px 6px;
    font-size: 0.76rem;
    line-height: 1.3;
    color: var(--brand-dark);
    text-decoration: none;
    background: var(--info-bg);
    border-left: 3px solid var(--brand);
    border-radius: 6px;
    transition: background-color 0.12s;
}

.ht-olay:hover {
    background: #dfe9ff;
}

.ht-olay:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

.ht-olay-saat {
    flex-shrink: 0;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.ht-olay-ad {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ht-olay.is-gelen {
    color: #b42318;
    background: #fef3f2;
    border-left-color: #f04438;
}

.ht-olay.is-gelen:hover {
    background: #fee4e2;
}

.ht-olay.is-yaklasan {
    color: #93370d;
    background: #fffaeb;
    border-left-color: #f79009;
}

.ht-olay.is-yaklasan:hover {
    background: #fef0c7;
}

.ht-olay.is-done {
    color: var(--muted);
    background: var(--gv-neutral-bg);
    border-left-color: #32a467;
}

.ht-olay.is-done:hover {
    background: #eaecf0;
}

.ht-olay.is-done .ht-olay-ad {
    text-decoration: line-through;
}

.ht-gun.is-diger-ay .ht-olay {
    opacity: 0.7;
}

.ht-daha {
    display: inline-block;
    margin-top: 3px;
    padding: 1px 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-radius: 6px;
}

.ht-daha:hover {
    color: var(--brand-dark);
    background: var(--info-bg);
}

/* Renk açıklaması */
.ht-lejant {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    padding: 12px 20px;
    font-size: 0.8rem;
    color: var(--muted);
    list-style: none;
    border-top: 1px solid var(--gv-line);
}

.ht-lejant li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ht-lejant-nokta {
    width: 10px;
    height: 10px;
    background: var(--brand);
    border-radius: 3px;
}

.ht-lejant-nokta.is-gelen    { background: #f04438; }
.ht-lejant-nokta.is-yaklasan { background: #f79009; }
.ht-lejant-nokta.is-done     { background: #32a467; }

@media (max-width: 1024px) {
    .ht-takvim td {
        height: 104px;
        padding: 5px;
    }

    .ht-olay {
        padding: 2px 5px;
        font-size: 0.72rem;
    }
}

/* Kart görünümü (900px ve altı): liste kartları, takvim kendi beyaz kutusunda */
@media (max-width: 900px) {
    .gv-table-hatirlatma .gv-row {
        grid-template-areas:
            "gorev aksiyon"
            "son   durum";
    }

    .gv-table-hatirlatma .gv-row.is-gelen    { border-left-color: #f04438; }
    .gv-table-hatirlatma .gv-row.is-yaklasan { border-left-color: #f79009; }

    .gv-table-hatirlatma .gv-row.is-gelen > td:first-child,
    .gv-table-hatirlatma .gv-row.is-yaklasan > td:first-child {
        box-shadow: none;
    }

    .gv-table-hatirlatma .ht-c-vakit {
        grid-area: son;
        align-self: center;
        justify-self: start;
        width: auto;
        white-space: normal;
        font-size: 0.86rem;
    }

    .ht-c-vakit .gv-firma,
    .ht-c-vakit .badge {
        display: inline-block;
        margin: 0 6px 0 0;
    }

    .gv-table-hatirlatma .gv-c-durum {
        grid-area: durum;
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-top: 0 !important;
    }

    .ht-takvim-wrap {
        overflow: hidden;
        background: var(--white);
        border: 1px solid var(--gv-line);
        border-radius: 12px;
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    }

    .ht-lejant {
        padding: 12px 2px 0;
        border-top: 0;
    }
}

/* Mobil: hücrede gün + renkli noktalar; güne dokununca o günün listesi açılır */
@media (max-width: 640px) {
    .ht-takvim-arac {
        justify-content: space-between;
        width: 100%;
    }

    .ht-gorunum a {
        padding: 0 10px;
    }

    .ht-takvim th {
        padding: 8px 2px;
        font-size: 0.66rem;
        letter-spacing: 0.02em;
        text-align: center;
    }

    .ht-takvim td {
        height: 58px;
        padding: 4px 2px;
        text-align: center;
    }

    .ht-gun-ust {
        justify-content: center;
        min-height: 30px;
        margin-bottom: 2px;
    }

    .ht-gun-no {
        min-width: 30px;
        height: 30px;
        padding: 0 4px;
    }

    /* Gün bağlantısı tüm hücreyi kaplar */
    a.ht-gun-no::after {
        content: "";
        position: absolute;
        inset: 0;
    }

    .ht-gun.has-olay:not(.is-bugun) .ht-gun-no {
        color: var(--brand-dark);
    }

    .ht-gun-ekle,
    .ht-gun-ekle:not([hidden]) {
        display: none;
    }

    .ht-olaylar {
        display: flex;
        justify-content: center;
        gap: 3px;
        pointer-events: none;
    }

    .ht-olay {
        width: 6px;
        height: 6px;
        padding: 0;
        background: var(--brand);
        border: 0;
        border-radius: 50%;
    }

    .ht-olay.is-gelen    { background: #f04438; }
    .ht-olay.is-yaklasan { background: #f79009; }
    .ht-olay.is-done     { background: #32a467; }

    .ht-olay-saat,
    .ht-olay-ad,
    .ht-daha-metin {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .ht-daha {
        display: block;
        margin-top: 2px;
        padding: 0;
        font-size: 0.64rem;
        line-height: 1;
        pointer-events: none;
    }

    .ht-lejant {
        gap: 6px 14px;
        font-size: 0.76rem;
    }
}

/* =============================================================================
   Zengin metin editörü (assets/js/zengin-editor.js) ve gösterimi (.zm-icerik)
   Teklif formu "Hizmet detayı". Görünüm .form-control ile aynı aile: kenarlık, odak halkası, hata rengi.
   ============================================================================= */
.zm.zm-hazir {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.zm.zm-hazir:hover {
    border-color: var(--border-strong);
}

.zm.zm-hazir.is-odak {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(10, 92, 255, 0.14);
}

.zm.zm-hazir.is-hata {
    border-color: var(--error);
}

.zm.zm-hazir.is-hata.is-odak {
    box-shadow: 0 0 0 4px rgba(196, 43, 43, 0.12);
}

/* Araç çubuğu: uzun metinde kaydırırken üstte kalır */
.zm-arac {
    position: sticky;
    top: var(--topbar-h, 68px);
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 2px;
    padding: 6px 8px;
    background: var(--ws-head-bg, #f9fafb);
    border-bottom: 1px solid var(--ws-line, #e4e7ec);
    border-radius: var(--radius) var(--radius) 0 0;
}

.zm-grup {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 6px;
    margin-right: 4px;
    border-right: 1px solid var(--ws-line, #e4e7ec);
}

.zm-grup:last-child,
.zm-grup-son {
    border-right: 0;
}

.zm-grup-son {
    margin-left: auto;
    margin-right: 0;
    padding-right: 0;
}

.zm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #475467;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}

.zm-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.zm-btn circle {
    fill: currentColor;
    stroke: none;
}

.zm-btn:hover:not(:disabled) {
    color: var(--navy);
    background: #eef1f6;
}

.zm-btn[aria-pressed="true"] {
    color: var(--brand);
    background: var(--info-bg);
    border-color: var(--info-border);
}

.zm-btn:disabled {
    opacity: 0.38;
    cursor: default;
}

.zm-btn:focus-visible,
.zm-blok:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

.zm-blok {
    height: 34px;
    padding: 0 28px 0 10px;
    font: inherit;
    font-size: 0.86rem;
    color: var(--text);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    appearance: none;
    cursor: pointer;
}

/* Bağlantı çubuğu */
.zm-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--info-bg);
    border-bottom: 1px solid var(--info-border);
}

.zm-link[hidden] {
    display: none;
}

.zm-link .zm-link-girdi {
    flex: 1 1 220px;
    min-width: 0;
    height: 36px;
    font-size: 0.92rem;
}

.zm-link .btn-sm {
    height: 36px;
}

.zm-link-hata {
    flex-basis: 100%;
    margin: 0;
}

.zm-link-hata[hidden],
.zm-link .btn[hidden] {
    display: none;
}

/* Yazı alanı */
.zm-alan {
    min-height: 220px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 14px 16px;
    font-size: 0.97rem;
    line-height: 1.6;
    color: var(--text);
    overflow-wrap: anywhere;
    outline: none;
}

/* Boşken yer tutucu: boş ilk paragrafın üstüne bindirilir (yükseklik 0, imleç paragrafta kalır) */
.zm-alan.is-bos::before {
    content: attr(data-placeholder);
    display: block;
    height: 0;
    color: #a7aebd;
    pointer-events: none;
}

.zm-alt {
    display: flex;
    justify-content: flex-end;
    padding: 6px 12px;
    border-top: 1px solid var(--ws-line-soft, #eef0f4);
    border-radius: 0 0 var(--radius) var(--radius);
}

.zm-sayac {
    font-size: 0.78rem;
    color: var(--subtle);
    font-variant-numeric: tabular-nums;
}

.zm-sayac.is-asim {
    font-weight: 600;
    color: var(--error);
}

/* İçerik tipografisi: editör ve detay sayfası aynı (PDF'teki görünüme yakın) */
.zm-alan > :first-child,
.zm-icerik > :first-child {
    margin-top: 0;
}

.zm-alan > :last-child,
.zm-icerik > :last-child {
    margin-bottom: 0;
}

.zm-alan p,
.zm-icerik p {
    margin: 0 0 0.6em;
}

.zm-alan h3,
.zm-icerik h3 {
    margin: 1.1em 0 0.4em;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy);
}

.zm-alan h4,
.zm-icerik h4 {
    margin: 1em 0 0.35em;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #344054;
}

.zm-alan ul,
.zm-alan ol,
.zm-icerik ul,
.zm-icerik ol {
    margin: 0 0 0.6em;
    padding-left: 1.5em;
}

.zm-alan li,
.zm-icerik li {
    margin: 0.15em 0;
}

.zm-alan li > ul,
.zm-alan li > ol,
.zm-alan ul ul,
.zm-alan ol ol,
.zm-icerik li > ul,
.zm-icerik li > ol {
    margin: 0.15em 0 0;
}

.zm-alan ul ul,
.zm-icerik ul ul {
    list-style-type: circle;
}

.zm-alan ul ul ul,
.zm-icerik ul ul ul {
    list-style-type: square;
}

.zm-alan li::marker,
.zm-icerik li::marker {
    color: var(--brand);
}

.zm-alan blockquote,
.zm-icerik blockquote {
    margin: 0.4em 0 0.8em;
    padding: 2px 0 2px 14px;
    color: #475467;
    border-left: 3px solid var(--brand);
}

.zm-alan hr,
.zm-icerik hr {
    height: 0;
    margin: 1em 0;
    border: 0;
    border-top: 1px solid var(--ws-line, #e4e7ec);
}

.zm-alan a,
.zm-icerik a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.zm-alan strong,
.zm-icerik strong {
    font-weight: 700;
}

@media (max-width: 640px) {
    /* Mobil: düğmeler satırlara bölünür (yana kaydırma yok, hepsi görünür) */
    .zm-arac {
        top: var(--topbar-h, 64px);
        flex-wrap: wrap;
        row-gap: 2px;
        padding: 6px;
    }

    .zm-grup {
        flex: 0 0 auto;
        padding-right: 4px;
        margin-right: 2px;
    }

    .zm-btn {
        width: 36px;
        height: 36px;
    }

    .zm-blok {
        height: 36px;
    }

    .zm-grup-son {
        margin-left: 0;
    }

    .zm-alan {
        min-height: 200px;
        padding: 12px 14px;
    }
}

/* =============================================================================
   Mobil düzen düzeltmeleri (tüm /gorev/ ekranları)
   ============================================================================= */

/* Sayfa başlığı: kelime ortasından bölünmesin ("Domainl / erim"); sadece satıra sığmayan çok uzun kelime / adres
   bölünür. Başlık metni h1 (flex) içinde ayrı öğe: min-width: 0 olmadan uzun kelime başlığı ekrandan taşırıyordu. */
.content .ph h1,
.ph-sub {
    overflow-wrap: break-word;
}

.ph h1 .ph-baslik,
.ph-title-ac {
    min-width: 0;
}

/* Kalabalık başlık: üstte (‹) + başlık tam genişlikte, aksiyonlar altta ayrı satırda, sağa dayalı (gerekirse kırılır).
   Geri düğmeli alt sayfada 2+ aksiyon: 640px ve altı · geri düğmesiz 4+ aksiyon: 374px ve altı */
@media (max-width: 640px) {
    .ph-row-geri:has(> .ph-actions > :nth-child(2)) {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ph-row-geri:has(> .ph-actions > :nth-child(2)) > .ph-actions {
        flex-wrap: wrap;
        justify-content: flex-end; /* Masaüstündeki gibi sağa dayalı */
        margin-left: 0;
    }

    /* Aksiyonlar kendi satırında: yer olduğu için yazılı düğmeler etiketini korur
       (yalnız 'sadeceIkon' / 'mobilIkon' düğmeler ikon kalır) */
    .ws .ph-row-geri:has(> .ph-actions > :nth-child(2)) > .ph-actions .btn:not(.ph-btn-ikon):not(.ph-btn-mobil-ikon) {
        width: auto;
        padding: 0 14px;
    }

    .ws .ph-row-geri:has(> .ph-actions > :nth-child(2)) > .ph-actions .btn:not(.ph-btn-ikon):not(.ph-btn-mobil-ikon) .ph-btn-label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }

    .ws .ph-row-geri:has(> .ph-actions > :nth-child(2)) > .ph-actions .btn:not(.ph-btn-ikon):not(.ph-btn-mobil-ikon) .btn-icon {
        width: 17px;
        height: 17px;
    }
}

@media (max-width: 374px) {
    .ph-row:has(> .ph-actions > :nth-child(4)) {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ph-row:has(> .ph-actions > :nth-child(4)) > .ph-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-left: 0;
    }
}

/* Özet kartı: uzun tek kelime (ör. "Authenticator") kartın dışına taşmasın */
@media (max-width: 640px) {
    .kpi-etiket,
    .kpi-alt {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 360px) {
    .kpi-grid:not(.kpi-grid-uzun):not(.kpi-grid-3) .kpi {
        gap: 8px;
        padding: 11px 10px;
    }

    .kpi-grid:not(.kpi-grid-uzun):not(.kpi-grid-3) .kpi-ikon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .kpi-grid:not(.kpi-grid-uzun):not(.kpi-grid-3) .kpi-ikon svg {
        width: 16px;
        height: 16px;
    }
}

/* Liste başlığındaki "Dışarı Aktar": çok dar ekranda sadece ikon (başlık + sayı tek satırda kalsın).
   Metin font-size: 0 ile gizlenir; ekran okuyucu yine okur, title'da da var. */
@media (max-width: 400px) {
    .gv-board-head-satir > .btn.btn-sm:has(> .btn-icon) {
        justify-content: center;
        width: 34px;
        padding: 0;
        font-size: 0;
    }
}

/* Çok seçimli filtreler: dar ekranda her seçim tam satır ("Tüm duruml…" gibi kesilmesin) */
@media (max-width: 400px) {
    .ws .filter-bar-cok select,
    .ws .filter-bar-cok select.filtre-genis {
        flex: 1 1 100%;
    }

    .ws .filter-bar.filter-bar-yapilacak {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Kart görünümü: işlem düğmeleri alt şeridin sağında; başlık kartın tam genişliğini kullanır */
@media (max-width: 900px) {
    .gv-table-odeme .gv-row {
        grid-template-areas:
            "gorev  gorev"
            "tip    durum"
            "tarih  sekil"
            "alt    alt";
    }

    .gv-table-teklif .gv-row {
        grid-template-areas:
            "gorev   gorev"
            "musteri musteri"
            "tarih   durum"
            "alt     alt";
    }

    .gv-table-odeme .gv-c-aksiyon,
    .gv-table-teklif .gv-c-aksiyon {
        grid-area: alt;
        align-self: center;
        justify-self: end;
        padding-top: 10px !important;
    }

    /* Hatırlatma: başlık tam satır · vakit · durum + işlemler */
    .gv-table-hatirlatma .gv-row {
        grid-template-areas:
            "gorev gorev"
            "son   son"
            "durum aksiyon";
    }

    .gv-table-hatirlatma .gv-c-durum {
        justify-self: start;
        justify-content: flex-start;
        width: auto;
    }

    .gv-table-hatirlatma .gv-c-aksiyon {
        align-self: center;
    }

    /* Log kartı: tarih ve saat alt alta; olay başlığına yer kalsın */
    .gv-table-log .gv-c-zaman .gv-firma,
    .gv-table-log .gv-c-zaman .gv-yetkili {
        display: block;
    }

    .gv-table-log .gv-c-zaman .gv-yetkili {
        margin-left: 0;
    }
}

/* Arama sonuçları: kart ekran genişliğini aşmasın; dar ekranda grup rozeti açıklamanın altında */
.mode-list {
    grid-template-columns: minmax(0, 1fr);
}

.mode-text {
    flex: 1 1 auto;
}


/* Notlar özeti (kpi-dikey-3): her genişlikte yan yana 3 kart. Renkler ve seçili hali diğer özet kartlarıyla
   (ör. Hatırlatmalar) aynı: beyaz kart, renkli ikon kutusu, seçili kartta mavi çerçeve.
   641px ve üstünde standart yerleşim (ikon solda); telefonda ikon üstte, ortalı ve sıkı. */
.kpi-grid.kpi-grid-3.kpi-dikey-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 767.98px) {
    /* kpi-grid-3'ün tek sütun kuralını ezer: telefonda da 3 kart yan yana */
    .kpi-grid.kpi-grid-3.kpi-dikey-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .kpi-grid.kpi-dikey-3 .kpi {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 14px 8px 12px;
        text-align: center;
    }

    .kpi-grid.kpi-dikey-3 .kpi-metin {
        align-items: center;
        align-self: stretch;
    }

    .kpi-grid.kpi-dikey-3 .kpi-etiket {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Üç dar kartta alt satıra yer yok */
    .kpi-grid.kpi-dikey-3 .kpi-alt {
        display: none;
    }
}

@media (max-width: 400px) {
    .kpi-grid.kpi-grid-3.kpi-dikey-3 {
        gap: 8px;
    }

    .kpi-grid.kpi-dikey-3 .kpi {
        padding: 12px 6px 10px;
    }

    .kpi-grid.kpi-dikey-3 .kpi-etiket {
        font-size: 0.72rem;
    }
}

/* =============================================================================
   Fikirler (/gorev/fikirler, /gorev/fikir/ekle, /gorev/fikir/{id}, /gorev/fikir/{id}/duzenle)
   Liste ve detay, Notlar'ın sınıflarını (gv-table-not, not-grid ...) kullanır; burada sadece farklar var.
   ============================================================================= */

/* Liste: başlığın altında hedef kitle, detay önizlemesi ve görsel sayısı */
.fikir-kitle {
    max-width: 640px;
    color: var(--text);
}

.fikir-kitle-etiket {
    font-weight: 600;
    color: var(--muted);
}

.fikir-gorsel-sayi {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 2px 8px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--brand);
    background: var(--info-bg);
    border-radius: 999px;
}

.fikir-gorsel-sayi svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Form */
.fikir-form .gf-c8 {
    grid-column: span 8;
}

.gorev-form textarea.fikir-kitle-alan {
    height: 76px;
    min-height: 60px;
}

.gorev-form textarea.fikir-detay-alan {
    height: 240px;
    min-height: 140px;
    line-height: 1.6;
}

.fikir-gorsel-etiket {
    display: block;
    margin-bottom: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--navy);
}

.fikir-dropzone {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 16px;
    background: var(--bg);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    transition: background 0.15s, border-color 0.15s;
}

.fikir-form.is-dropping .fikir-dropzone {
    background: var(--info-bg);
    border-color: var(--brand);
}

.fikir-dropzone .fikir-gorsel-sec {
    flex: 0 0 auto;
    height: 40px;
    cursor: pointer;
}

/* Gizli dosya alanı klavyeyle odaklanınca görünür düğme halka alır */
.fikir-dropzone:has(input[type="file"]:focus-visible) .fikir-gorsel-sec {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.fikir-dropzone-yardim {
    flex: 1 1 240px;
    margin: 0;
}

.fikir-gorseller > .field-error {
    margin-top: 6px;
}

/* Detay: görsel galerisi (görüntüleyicide açılır) */
.fikir-galeri {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fikir-galeri a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s, transform 0.15s;
}

.fikir-galeri a:hover {
    border-color: var(--brand);
    transform: translateY(-1px);
}

.fikir-galeri img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fikir-ana .card-head .count {
    margin-left: 6px;
}

@media (max-width: 900px) {
    .fikir-kitle {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

@media (max-width: 640px) {
    .fikir-form .gf-c8 {
        grid-column: span 12;
    }

    .fikir-galeri {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .fikir-dropzone {
        padding: 14px;
    }

    .fikir-dropzone .fikir-gorsel-sec {
        width: 100%;
        justify-content: center;
    }

    /* Seçilen ve mevcut görseller telefonda iki sütun */
    .fikir-form .file-previews,
    .fikir-form .media-edit-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

/* =============================================================================
   Alınacaklar (/gorev/alinacaklar): liste + ekle / düzenle modalı + detay modalı
   ============================================================================= */
/* Boşluksuz uzun ad / bağlantı satırı taşırmasın */
.gv-table-alinacak .gv-c-gorev {
    overflow-wrap: anywhere;
}

.gv-table-alinacak .gv-c-fiyat,
.gv-table-alinacak .gv-c-son,
.gv-table-alinacak .gv-c-durum {
    width: 1%;
    white-space: nowrap;
}

.gv-table-alinacak .gv-c-fiyat,
.gv-table-alinacak th:nth-child(2) {
    text-align: right;
}

.gv-c-fiyat {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--navy);
}

.gv-c-fiyat.is-bos {
    font-weight: 400;
    color: var(--subtle);
}

.gv-table-alinacak th:last-child {
    text-align: right;
}

/* Alınan ürün: fiyat da sönük */
.gv-table-alinacak .gv-row.is-done .gv-c-fiyat {
    color: var(--muted);
}

/* Yeni eklenen / düzenlenen satır kısa süre vurgulanır */
.gv-table-alinacak .gv-row:target > td {
    animation: yapilacak-vurgu 2.4s ease-out;
}

/* Ürün bağlantısı (liste + detay): tıklanabilir, sonunda küçük "dışarı açılır" ikonu */
a.alinacak-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    color: var(--brand-dark);
}

a.gv-site.alinacak-link {
    display: flex;
    color: var(--brand-dark);
}

/* Detay modalı: bağlantı yoksa gizli kalsın (display kuralı hidden'ı ezmesin) */
a.alinacak-link[hidden] {
    display: none;
}

/* Uzun adres "…" ile kısalır, ikon her zaman görünür */
.alinacak-link-metin {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alinacak-link-ikon {
    flex: none;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Satırdaki "Tamamlandı yap": üzerine gelince yeşil */
.gv-icon-tamam:hover {
    color: var(--success);
    background: #ecfdf3;
}

.gv-icon-tamam.is-geri:hover {
    color: var(--warning);
    background: #fffaeb;
}

/* Satırın boş yerine tıklayınca detay modalı açılır (JS) */
.has-js .gv-table-alinacak .gv-row {
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .has-js .gv-table-alinacak .gv-row:hover > td {
        background: #f7f9fe;
    }

    .has-js .gv-table-alinacak .gv-row:hover > td:first-child {
        box-shadow: inset 3px 0 0 var(--brand);
    }
}

textarea.form-control.alinacak-not-alan {
    min-height: 120px;
    line-height: 1.6;
    resize: vertical;
}

/* Detay modalı */
.alinacak-detay-baslik {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ws .detail-list.alinacak-detay-liste,
.detail-list.alinacak-detay-liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    margin: 0 0 16px;
}

.alinacak-detay-not {
    line-height: 1.6;
    white-space: pre-wrap;
}

.alinacak-durum-btn .alinacak-ikon-geri,
.alinacak-durum-btn.is-geri .alinacak-ikon-tamam {
    display: none;
}

.alinacak-durum-btn.is-geri .alinacak-ikon-geri {
    display: inline-block;
}

/* Kart görünümü (900px ve altı): ad + bağlantı tam satır · fiyat + eklenme · durum + işlemler */
@media (max-width: 900px) {
    .gv-table-alinacak .gv-row {
        grid-template-areas:
            "gorev gorev"
            "fiyat son"
            "durum aksiyon";
    }

    .has-js .gv-table-alinacak .gv-row:hover > td {
        background: transparent;
        box-shadow: none;
    }

    /* Sağ kenar boşluğu sütun aralığını (12px) kapatır: ayırıcı çizgi eklenme hücresine kesintisiz bağlanır */
    .gv-table-alinacak .gv-c-fiyat {
        grid-area: fiyat;
        align-self: stretch;
        display: flex;
        align-items: center;
        width: auto;
        margin-right: -12px;
        padding-top: 10px !important;
        text-align: left;
        border-top: 1px solid var(--gv-line) !important;
    }

    .gv-table-alinacak .gv-c-son {
        grid-area: son;
        align-self: stretch;
        justify-self: stretch;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        padding-top: 10px !important;
        border-top: 1px solid var(--gv-line) !important;
    }

    .gv-table-alinacak .gv-c-durum {
        grid-area: durum;
        align-self: center;
        justify-self: start;
        width: auto;
        padding-top: 0 !important;
    }

    .gv-table-alinacak .gv-c-aksiyon {
        grid-area: aksiyon;
        align-self: center;
        justify-self: end;
    }

    .gv-table-alinacak .not-onizleme {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* Telefon: detay bilgileri tek sütun, modal düğmeleri eşit genişlikte */
@media (max-width: 480px) {
    .ws .detail-list.alinacak-detay-liste,
    .detail-list.alinacak-detay-liste {
        grid-template-columns: minmax(0, 1fr);
    }

    #alinacak-detay .modal-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #alinacak-detay .modal-actions .alinacak-durum-btn {
        grid-column: 1 / -1;
        order: -1;
    }

    #alinacak-detay .modal-actions .btn {
        justify-content: center;
    }
}

/* =============================================================================
   Raporlar (/gorev/raporlar): dönem, alarm merkezi, birleşik takvim + ajanda, analiz kartları
   Grafikler sunucuda SVG olarak çizilir (app/rapor_grafik.php, .rg-*); renkler .rg-r-* sınıflarıyla.
   Çubuk / çizgi alanı genişliğe yayılır (preserveAspectRatio="none"); eksen yazıları HTML'de, ölçeklenmez.
   İpucu kutusu: .rg-ipucu (assets/js/app.js, [data-ipucu]); JS yoksa SVG <title>.
   ============================================================================= */
.rp [id^="rapor-"] {
    scroll-margin-top: calc(var(--topbar-h, 68px) + 12px);
}

.rp .kpi-grid:has(+ .kpi-grid) {
    margin-bottom: 16px;
}

/* ---------- Grafik renkleri ---------- */
.rg-r-mavi         { color: #0a5cff; fill: #0a5cff; stroke: #0a5cff; }
.rg-r-yesil        { color: #12b76a; fill: #12b76a; stroke: #12b76a; }
.rg-r-kirmizi      { color: #f04438; fill: #f04438; stroke: #f04438; }
.rg-r-turuncu      { color: #f79009; fill: #f79009; stroke: #f79009; }
.rg-r-mor          { color: #7a5af8; fill: #7a5af8; stroke: #7a5af8; }
.rg-r-camgobegi    { color: #15b79e; fill: #15b79e; stroke: #15b79e; }
.rg-r-pembe        { color: #ee46bc; fill: #ee46bc; stroke: #ee46bc; }
.rg-r-gri          { color: #98a2b3; fill: #98a2b3; stroke: #98a2b3; }
.rg-r-lacivert     { color: #0b1733; fill: #0b1733; stroke: #0b1733; }
.rg-r-yesil-acik   { color: #a6f4c5; fill: #a6f4c5; stroke: #a6f4c5; }
.rg-r-kirmizi-acik { color: #fecdca; fill: #fecdca; stroke: #fecdca; }
.rg-r-mavi-acik    { color: #b2ccff; fill: #b2ccff; stroke: #b2ccff; }
.rg-r-sari         { color: #fdb022; fill: #fdb022; stroke: #fdb022; }

/* ---------- Çubuk / çizgi / alan ---------- */
.rg {
    margin: 0;
    min-width: 0;
}

.rg-govde {
    display: flex;
    gap: 8px;
}

.rg-y {
    position: relative;
    flex: 0 0 auto;
    width: 52px;
    height: 220px;
    font-size: 0.72rem;
    color: var(--subtle);
    font-variant-numeric: tabular-nums;
}

.rg-y span {
    position: absolute;
    right: 0;
    white-space: nowrap;
    transform: translateY(50%);
}

.rg-y-0 { bottom: 0; }
.rg-y-1 { bottom: 25%; }
.rg-y-2 { bottom: 50%; }
.rg-y-3 { bottom: 75%; }
.rg-y-4 { bottom: 100%; }

.rg-cizim {
    flex: 1 1 auto;
    min-width: 0;
}

.rg-svg {
    display: block;
    width: 100%;
    height: 220px;
    overflow: visible;
}

.rg-kisa .rg-svg,
.rg-kisa .rg-y {
    height: 180px;
}

.rg-izgara {
    stroke: #eaecf0;
    stroke-width: 1px;
}

.rg-sifir {
    stroke: #98a2b3;
    stroke-width: 1px;
}

.rg .rg-cubuk {
    stroke: none;
}

.rg .rg-cizgi {
    fill: none;
    stroke-width: 2.5px;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.rg .rg-alan {
    stroke: none;
    fill-opacity: 0.14;
}

.rg-hedef {
    fill: transparent;
    cursor: crosshair;
}

.rg-hedef:hover,
.rg-hedef.is-ipucu {
    fill: rgba(10, 92, 255, 0.06);
}

.rg-x {
    display: flex;
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--muted);
}

.rg-x span {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
}

.rg-x .is-ara {
    visibility: hidden;
}

/* Lejant */
.rg-lejant {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 12px 0 0;
    padding: 0;
    font-size: 0.8rem;
    color: var(--muted);
    list-style: none;
}

.rg-lejant li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.rg-nokta {
    flex: none;
    width: 10px;
    height: 10px;
    background: currentColor;
    border-radius: 3px;
}

.rg-nokta.is-cizgi {
    width: 14px;
    height: 3px;
    border-radius: 2px;
}

.rg-bos-not {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: var(--subtle);
}

/* Veri tablosu (açılır) */
.rg-veri {
    margin-top: 12px;
    font-size: 0.84rem;
}

.rg-veri summary {
    width: fit-content;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-dark);
    cursor: pointer;
}

.rg-veri summary:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

.rg-veri-kaydir {
    margin-top: 10px;
    overflow-x: auto;
    border: 1px solid var(--gv-line);
    border-radius: 10px;
}

.rg-veri table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.rg-veri th,
.rg-veri td {
    padding: 7px 12px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--gv-line);
}

.rg-veri tbody tr:last-child th,
.rg-veri tbody tr:last-child td {
    border-bottom: 0;
}

.rg-veri thead th {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    background: #fafbfc;
}

.rg-veri tbody th {
    font-weight: 500;
    color: var(--text);
}

.rg-veri tfoot th,
.rg-veri tfoot td {
    font-weight: 700;
    color: var(--navy);
    background: #fafbfc;
    border-top: 1px solid var(--gv-line);
    border-bottom: 0;
}

/* ---------- Halka (donut) ---------- */
.rg-halka-kutu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.rg-halka {
    position: relative;
    flex: 0 0 auto;
    width: 156px;
    height: 156px;
}

.rg-halka svg {
    display: block;
    width: 100%;
    height: 100%;
}

.rg-halka-zemin {
    fill: none;
    stroke: #f2f4f7;
    stroke-width: 6;
}

.rg .rg-dilim {
    fill: none;
    stroke-width: 6;
    transition: stroke-width 0.15s ease;
}

.rg .rg-dilim:hover,
.rg .rg-dilim.is-ipucu {
    stroke-width: 7.4;
}

.rg-halka-merkez {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    text-align: center;
    pointer-events: none;
}

.rg-halka-merkez strong {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.rg-halka-merkez span {
    margin-top: 2px;
    font-size: 0.72rem;
    color: var(--subtle);
}

.rg-lejant-dikey {
    flex: 1 1 auto;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 9px;
    margin: 0;
    min-width: 0;
}

.rg-lejant-dikey li {
    display: flex;
    gap: 8px;
}

.rg-lejant-ad {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rg-lejant-ad a {
    color: inherit;
    text-decoration: none;
}

.rg-lejant-ad a:hover {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rg-lejant-deger {
    flex: none;
    font-weight: 600;
    text-align: right;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.rg-lejant-deger small {
    margin-left: 6px;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--subtle);
}

/* ---------- Gösterge (yarım daire) ---------- */
.rp-gostergeler {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    gap: 16px;
}

.rg-gosterge {
    flex: 1 1 0;
    min-width: 0;
    max-width: 240px;
    text-align: center;
}

.rg-gosterge svg {
    display: block;
    width: 100%;
    max-width: 210px;
    margin: 0 auto;
}

.rg-gosterge-zemin {
    fill: none;
    stroke: #f2f4f7;
    stroke-width: 12;
    stroke-linecap: round;
}

.rg .rg-gosterge-dolu {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
}

.rg-gosterge figcaption {
    margin-top: -30px;
}

.rg-gosterge figcaption strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.rg-gosterge figcaption span {
    display: block;
    margin-top: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--muted);
}

.rg-gosterge figcaption small {
    display: block;
    margin-top: 2px;
    font-size: 0.74rem;
    color: var(--subtle);
    overflow-wrap: anywhere;
}

/* ---------- Yatay çubuklar ---------- */
.rg-yatay {
    display: grid;
    grid-template-columns: minmax(0, 1fr); /* Uzun müşteri / görev adı satırı genişletmesin (ad … ile kısalır) */
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rg-yatay-ust {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.86rem;
}

.rg-yatay-ad {
    min-width: 0;
    overflow: hidden;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rg-yatay-ad a {
    color: inherit;
    text-decoration: none;
}

.rg-yatay-ad a:hover {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rg-yatay-deger {
    flex: none;
    font-weight: 600;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.rg-yatay-cubuk {
    display: block;
    width: 100%;
    height: 8px;
    margin-top: 5px;
    overflow: hidden;
    border-radius: 999px;
}

.rg-yatay-cubuk rect {
    stroke: none;
}

.rg-yatay-zemin {
    fill: #f2f4f7;
}

.rg-yatay-alt {
    display: block;
    margin-top: 3px;
    font-size: 0.74rem;
    color: var(--subtle);
}

.rg-yatay li.is-ipucu .rg-yatay-ad {
    color: var(--brand);
}

/* ---------- Isı haritası ---------- */
.rg-isi-kaydir {
    overflow-x: auto;
    padding-bottom: 4px;
}

.rg-isi svg {
    display: block;
    width: 100%;
    min-width: 620px;
    max-width: 1000px;
    height: auto;
}

.rg-isi-metin {
    font-family: var(--font);
    font-size: 8px;
    fill: var(--subtle);
}

.rg-isi-0 { fill: #f2f4f7; }
.rg-isi-1 { fill: #d1e0ff; }
.rg-isi-2 { fill: #84adff; }
.rg-isi-3 { fill: #2970ff; }
.rg-isi-4 { fill: #0040c1; }

.rg-isi rect:hover,
.rg-isi rect.is-ipucu {
    stroke: var(--navy);
    stroke-width: 1px;
}

.rg-isi-lejant {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--subtle);
}

.rg-isi-kare {
    width: 11px;
    height: 11px;
    border-radius: 3px;
}

.rg-isi-kare.rg-isi-0 { background: #f2f4f7; }
.rg-isi-kare.rg-isi-1 { background: #d1e0ff; }
.rg-isi-kare.rg-isi-2 { background: #84adff; }
.rg-isi-kare.rg-isi-3 { background: #2970ff; }
.rg-isi-kare.rg-isi-4 { background: #0040c1; }

/* ---------- İpucu kutusu (JS) ---------- */
.rg-ipucu {
    position: fixed;
    z-index: 1000;
    max-width: 280px;
    padding: 8px 11px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #fff;
    background: rgba(11, 23, 51, 0.95);
    border-radius: 9px;
    box-shadow: 0 10px 28px -10px rgba(16, 24, 40, 0.5);
    pointer-events: none;
}

.rg-ipucu[hidden] {
    display: none;
}

.rg-ipucu strong {
    display: block;
    margin-bottom: 2px;
    font-weight: 650;
}

.rg-ipucu span {
    display: block;
    color: rgba(255, 255, 255, 0.86);
    font-variant-numeric: tabular-nums;
}

/* ---------- Dönem kartı ve bölüm gezintisi ---------- */
.rp-donem-metin {
    white-space: normal;
    text-align: right;
}

.rp-bolumler {
    display: flex;
    gap: 6px;
    padding: 12px 20px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.rp-bolumler a {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--ws-line);
    border-radius: 999px;
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.rp-bolumler a:hover {
    color: var(--brand-dark);
    border-color: #b2ccff;
    background: var(--info-bg);
}

.rp-bolumler a:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.rp-bolum-sayi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.72rem;
    color: var(--white);
    background: #f04438;
    border-radius: 999px;
}

/* ---------- Bölüm başlığı ve kart ızgarası ---------- */
.rp-bolum {
    margin: 0 0 24px;
}

.rp-bolum-bas {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 20px;
    margin: 8px 0 14px;
}

.rp-bolum-bas > div {
    min-width: 0;
}

.rp-bolum-bas h2 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--navy);
}

.rp-bolum-bas p {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.rp-bolum-bas .btn {
    flex-shrink: 0;
}

.rp-izgara {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ws .rp-izgara > .card {
    margin: 0;
    min-width: 0;
}

.rp-genis {
    grid-column: 1 / -1;
}

.rp-kart {
    container-type: inline-size;
}

/* Kart başlığı: başlık + özet; sığmazsa özet alt satıra iner */
.ws.rp .card > .card-head.rp-kart-bas:not(.danger-zone .card-head) {
    flex-wrap: wrap;
    gap: 6px 16px;
}

.rp-kart-bas h3 {
    flex: 1 0 auto;
    max-width: 100%;
    margin: 0;
    min-width: 0;
    font-size: 1.02rem;
    font-weight: 650;
    color: var(--navy);
}

.rp-kart-ozet {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rp-kart-ozet strong {
    color: var(--navy);
}

.rp-kart-link {
    display: inline-block;
    margin-top: 12px;
}

.rp-board-baslik {
    margin: 0;
    font-size: 1.05rem;
    color: var(--navy);
}

.rp-musteri {
    margin: 16px 0 0;
}

.rp-alt-not {
    border-top: 1px solid var(--gv-line);
    border-bottom: 0;
}

.rp-dipnot {
    margin: 8px 0 0;
    text-align: center;
}

/* Kısa istatistikler */
.rp-istatistik {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
}

.rp-istatistik > div {
    min-width: 0;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid var(--gv-line);
    border-radius: 10px;
}

.rp-istatistik dt {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted);
}

.rp-istatistik dd {
    margin: 2px 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.rp-istatistik dd small {
    display: block;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--subtle);
}

.rp-istatistik dd.gv-tutar-arti { color: #067647; }
.rp-istatistik dd.gv-tutar-eksi { color: #b42318; }
.rp-istatistik .is-kritik { background: #fffbfa; border-color: #fecdca; }
.rp-istatistik .is-kritik dd { color: #b42318; }
.rp-istatistik .is-uyari { background: #fffcf5; border-color: #fedf89; }
.rp-istatistik .is-uyari dd { color: #b54708; }

.rp-gostergeler + .rp-istatistik {
    margin-top: 18px;
}

/* Dar kartta: halka üstte, lejant altta; istatistikler tek sütun */
@container (max-width: 400px) {
    .rg-halka-kutu {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .rg-halka {
        align-self: center;
    }

    .rp-istatistik {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Alarm merkezi ---------- */
.rp-segment {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 3px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.rp-segment[hidden] {
    display: none;
}

.rp-segment button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
}

.rp-segment button:hover:not(:disabled) {
    color: var(--navy);
}

.rp-segment button[aria-pressed="true"] {
    color: var(--brand-dark);
    background: var(--white);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
}

.rp-segment button:disabled {
    cursor: default;
    opacity: 0.45;
}

.rp-segment button:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.rp-segment-sayi,
.rp-mini {
    display: inline-block;
    min-width: 18px;
    padding: 0 6px;
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 18px;
    text-align: center;
    color: var(--muted);
    background: var(--gv-neutral-bg);
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

.rp-segment-sayi.is-kritik, .rp-mini.is-kritik { color: #b42318; background: #fee4e2; }
.rp-segment-sayi.is-uyari,  .rp-mini.is-uyari  { color: #93370d; background: #fef0c7; }
.rp-segment-sayi.is-bilgi,  .rp-mini.is-bilgi  { color: var(--info-text); background: var(--info-bg); }

.rp-alarm-moduller {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 16px 20px;
    list-style: none;
    border-bottom: 1px solid var(--gv-line);
}

.rp-alarm-moduller li {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--gv-line);
    border-top: 3px solid #a6e2c0;
    border-radius: 12px;
}

.rp-alarm-moduller li.is-kritik { border-top-color: #f04438; background: #fffbfa; }
.rp-alarm-moduller li.is-uyari  { border-top-color: #f79009; background: #fffcf5; }
.rp-alarm-moduller li.is-bilgi  { border-top-color: #84adff; }

.rp-alarm-modul-ikon {
    display: inline-flex;
    color: #067647;
}

.rp-alarm-moduller li.is-kritik .rp-alarm-modul-ikon { color: #b42318; }
.rp-alarm-moduller li.is-uyari .rp-alarm-modul-ikon  { color: #b54708; }
.rp-alarm-moduller li.is-bilgi .rp-alarm-modul-ikon  { color: var(--brand); }

.rp-alarm-modul-ikon svg,
.rp-modul svg,
.rp-modul-ikon svg,
.rp-ajanda-ikon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rp-alarm-modul-ad {
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--navy);
}

.rp-alarm-modul-sayi {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.rp-temiz {
    font-size: 0.76rem;
    font-weight: 600;
    color: #067647;
}

/* Alarm tablosu */
.gv-table-alarm .rp-c-seviye,
.gv-table-alarm .rp-c-modul,
.gv-table-alarm .rp-c-durum,
.gv-table-alarm .gv-c-tarih {
    width: 1%;
    white-space: nowrap;
}

.gv-table-alarm .gv-c-gorev {
    min-width: 240px;
}

.rp-modul {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: var(--muted);
}

.rp-modul svg {
    width: 15px;
    height: 15px;
}

.gv-table-alarm .gv-row.is-kritik > td:first-child { box-shadow: inset 3px 0 0 #f04438; }
.gv-table-alarm .gv-row.is-uyari > td:first-child  { box-shadow: inset 3px 0 0 #f79009; }
.gv-table-alarm .gv-row.is-bilgi > td:first-child  { box-shadow: inset 3px 0 0 #84adff; }

/* ---------- Birleşik takvim + ajanda ---------- */
.rp-takvim-izgara {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.rp-takvim-sol {
    min-width: 0;
    border-right: 1px solid var(--gv-line);
}

.rp-ajanda-kutu {
    min-width: 0;
    padding: 14px 16px;
}

.rp-alt-baslik {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--navy);
}

.rp-ajanda-kaydir {
    max-height: 720px;
    padding-right: 4px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.rp-ajanda {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp-ajanda-tarih {
    margin: 0 0 6px;
    font-size: 0.74rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}

.rp-ajanda-gun.is-bugun .rp-ajanda-tarih {
    color: var(--brand-dark);
}

.rp-ajanda ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Tür rengi: --rp-tur */
.rp-tur-hatirlatma { --rp-tur: #0a5cff; --rp-tur-bg: #eef4ff; }
.rp-tur-domain     { --rp-tur: #6172f3; --rp-tur-bg: #eef1ff; }
.rp-tur-alacak     { --rp-tur: #12b76a; --rp-tur-bg: #ecfdf3; }
.rp-tur-odeme      { --rp-tur: #7a5af8; --rp-tur-bg: #f4f3ff; }
.rp-tur-teklif     { --rp-tur: #15b79e; --rp-tur-bg: #f0fdf9; }

.rp-ajanda-olay {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    color: inherit;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--gv-line);
    border-left: 3px solid var(--rp-tur, var(--brand));
    border-radius: 10px;
    transition: border-color 0.15s, background-color 0.15s;
}

.rp-ajanda-olay:hover {
    background: #f9fafb;
    border-color: var(--border);
    border-left-color: var(--rp-tur, var(--brand));
}

.rp-ajanda-olay:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.rp-ajanda-ikon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--rp-tur, var(--brand));
    background: var(--rp-tur-bg, var(--info-bg));
    border-radius: 8px;
}

.rp-ajanda-ikon svg {
    width: 16px;
    height: 16px;
}

.rp-ajanda-metin {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.rp-ajanda-metin strong,
.rp-ajanda-metin small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rp-ajanda-metin strong {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--navy);
}

.rp-ajanda-metin small {
    font-size: 0.74rem;
    color: var(--subtle);
}

.rp-ajanda-sag {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
}

.rp-ajanda-saat {
    font-weight: 650;
    color: var(--navy);
}

.rp-ajanda-tutar {
    font-weight: 600;
    color: var(--muted);
}

.rp-ajanda-olay.is-done {
    opacity: 0.75;
}

.rp-ajanda-olay.is-done strong {
    color: var(--muted);
    text-decoration: line-through;
}

/* Takvim hücresindeki olaylar: türüne göre renk; gecikmiş kırmızı, tamamlanan sönük */
.rp-olay.rp-olay-hatirlatma { color: #0b2fa8; background: #eef4ff; border-left-color: #0a5cff; }
.rp-olay.rp-olay-domain     { color: #3538cd; background: #eef1ff; border-left-color: #6172f3; }
.rp-olay.rp-olay-alacak     { color: #067647; background: #ecfdf3; border-left-color: #12b76a; }
.rp-olay.rp-olay-odeme      { color: #5925dc; background: #f4f3ff; border-left-color: #7a5af8; }
.rp-olay.rp-olay-teklif     { color: #107569; background: #f0fdf9; border-left-color: #15b79e; }
.ht-olay.rp-olay.is-gelen   { color: #b42318; background: #fef3f2; border-left-color: #f04438; }
.ht-olay.rp-olay.is-done    { color: var(--muted); background: var(--gv-neutral-bg); border-left-color: #98a2b3; }

.rp-olay:hover {
    filter: brightness(0.96);
}

.ht-lejant-nokta.rp-nokta-hatirlatma { background: #0a5cff; }
.ht-lejant-nokta.rp-nokta-domain     { background: #6172f3; }
.ht-lejant-nokta.rp-nokta-alacak     { background: #12b76a; }
.ht-lejant-nokta.rp-nokta-odeme      { background: #7a5af8; }
.ht-lejant-nokta.rp-nokta-teklif     { background: #15b79e; }
.ht-lejant-nokta.rp-nokta-done       { background: #98a2b3; }

/* Ayın olay listesi (mobilde takvim hücresi yalnız nokta gösterir) */
.rp-ay-liste {
    display: none;
}

.rp-ay-liste summary {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--brand-dark);
    cursor: pointer;
}

/* ---------- İş takibi tablosu ---------- */
.gv-table-rp-modul .gv-c-gorev {
    width: 100%;
}

.gv-table-rp-modul td.gv-num {
    width: 1%;
}

.rp-modul-ad {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rp-modul-ad > span:last-child {
    min-width: 0;
}

.rp-modul-ikon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--brand);
    background: var(--info-bg);
    border-radius: 10px;
}

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 1100px) {
    .rp-alarm-moduller {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .rp-takvim-izgara {
        grid-template-columns: minmax(0, 1fr);
    }

    .rp-takvim-sol {
        border-right: 0;
    }

    .rp-ajanda-kutu {
        border-top: 1px solid var(--gv-line);
    }

    .rp-ajanda-kaydir {
        max-height: 520px;
    }
}

@media (max-width: 900px) {
    .rp-izgara {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .rp-bolumler {
        margin: 0 -2px;
        padding: 0 2px 14px;
    }

    .rp-alarm-moduller {
        padding: 0 0 14px;
        border-bottom: 0;
    }

    .rp-alt-not {
        padding: 10px 2px 0;
        border-top: 0;
    }

    /* Ajanda kendi beyaz kutusunda (takvim gibi) */
    .rp-ajanda-kutu {
        margin-top: 12px;
        background: var(--white);
        border: 1px solid var(--gv-line);
        border-radius: 12px;
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    }

    /* Alarm kartı: başlık + aç · modül + seviye · tarih (sol) ve durum (sağ) aynı şeritte · tutar.
       Tarih ve durum tek alanı paylaşır: uzun durum rozeti başlık sütununu daraltmasın */
    .gv-table-alarm .gv-row {
        grid-template-areas:
            "gorev   aksiyon"
            "modul   seviye"
            "tarih   tarih"
            "alt     alt";
    }

    .gv-table-alarm .gv-row.is-kritik { border-left-color: #f04438; }
    .gv-table-alarm .gv-row.is-uyari  { border-left-color: #f79009; }
    .gv-table-alarm .gv-row.is-bilgi  { border-left-color: #84adff; }

    .gv-table-alarm .gv-row > td:first-child {
        box-shadow: none !important;
    }

    .gv-table-alarm .gv-c-gorev  { min-width: 0; }
    .gv-table-alarm .rp-c-seviye { grid-area: seviye; align-self: center; justify-self: end; width: auto; }
    .gv-table-alarm .rp-c-modul  { grid-area: modul; align-self: center; width: auto; }
    .gv-table-alarm .gv-c-tarih  { grid-area: tarih; align-self: center; justify-self: start; width: auto; font-size: 0.84rem; }
    .gv-table-alarm .rp-c-durum  { grid-area: tarih; align-self: center; justify-self: end; width: auto; }
    .gv-table-alarm .gv-c-tutar.is-bos { display: none; }

    /* Modül kartı: ad + aç · toplam + bekleyen · tamamlanan + dönemde · ilerleme */
    .gv-table-rp-modul .gv-row {
        grid-template-areas:
            "gorev    aksiyon"
            "toplam   bekleyen"
            "tamam    donem"
            "ilerleme ilerleme";
    }

    .gv-table-rp-modul .gv-c-gorev { width: auto; }
    .gv-table-rp-modul .rp-c-toplam   { grid-area: toplam; width: auto; text-align: left !important; }
    .gv-table-rp-modul .rp-c-bekleyen { grid-area: bekleyen; width: auto; }
    .gv-table-rp-modul .rp-c-tamam    { grid-area: tamam; width: auto; text-align: left !important; }
    .gv-table-rp-modul .rp-c-donem    { grid-area: donem; width: auto; }
    .gv-table-rp-modul .gv-c-ilerleme { padding-top: 10px !important; border-top: 1px solid var(--gv-line) !important; }

    .gv-table-rp-modul .gv-c-ilerleme .gv-progress {
        display: flex;
    }

    .gv-table-rp-modul .gv-c-ilerleme .gv-progress-bar {
        flex: 1 1 auto;
        width: auto;
    }
}

@media (max-width: 640px) {
    .rp-bolum-bas {
        align-items: center;
    }

    .rp-bolum-bas h2 {
        font-size: 1.05rem;
    }

    .rp-alarm-moduller {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .rp-alarm-moduller li {
        padding: 10px;
    }

    .rp .gv-board-head-sag:has(.rp-segment) {
        width: 100%;
    }

    .rp-segment {
        width: 100%;
    }

    .rp-segment button {
        flex: 1 1 auto;
        justify-content: center;
        padding: 0 6px;
    }

    .rg-y {
        width: 42px;
        font-size: 0.68rem;
    }

    .rg-svg,
    .rg-y,
    .rg-kisa .rg-svg,
    .rg-kisa .rg-y {
        height: 170px;
    }

    .rg-x {
        font-size: 0.66rem;
    }

    .rg-x .is-mobil-ara {
        visibility: hidden;
    }

    .rp-gostergeler {
        gap: 8px;
    }

    .rg-gosterge figcaption strong {
        font-size: 1.15rem;
    }

    .rp-ay-liste {
        display: block;
        padding: 14px 2px 0;
    }

    .rp-ajanda-kaydir {
        max-height: none;
    }

    /* Takvim hücresinde tür renginde nokta */
    .ht-olay.rp-olay-hatirlatma { background: #0a5cff; }
    .ht-olay.rp-olay-domain     { background: #6172f3; }
    .ht-olay.rp-olay-alacak     { background: #12b76a; }
    .ht-olay.rp-olay-odeme      { background: #7a5af8; }
    .ht-olay.rp-olay-teklif     { background: #15b79e; }
    .ht-olay.rp-olay.is-gelen   { background: #f04438; }
    .ht-olay.rp-olay.is-done    { background: #98a2b3; }
}

@media (max-width: 380px) {
    .rp-alarm-moduller {
        grid-template-columns: minmax(0, 1fr);
    }

    .rp-bolum-bas {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rg .rg-dilim {
        transition: none;
    }
}

/* ---------- Yazdırma (tarayıcıdan) ---------- */
@media print {
    .topbar,
    .mnav,
    .ph-actions,
    .rp-bolumler,
    .rp .gv-board-filtre,
    .rp-segment,
    .ht-ay-nav,
    .rg-veri,
    .gv-c-aksiyon {
        display: none !important;
    }

    .rp .card,
    .rp-kart,
    .rp-alarm-moduller li {
        break-inside: avoid;
        box-shadow: none;
    }

    .rp-ajanda-kaydir {
        max-height: none;
        overflow: visible;
    }
}

/* Raporlar: alarm listesinin "Tümünü göster" şeridi */
.rp-alarm-foot {
    padding: 14px 20px;
    text-align: center;
}

.rp-alarm-foot[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .rp-alarm-foot {
        padding: 4px 0 0;
    }
}

/* =============================================================================
   Raporlar: düzen, mobil uyum ve okunabilirlik
   Dönem formu · yapışkan bölüm gezintisi · 8'li özet ızgarası · öne çıkanlar · boş durumlar ·
   mobilde sade alarm / modül kartları
   ============================================================================= */

/* ---------- Dönem formu ---------- */
.rp-donem-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.rp-alan {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin: 0;
}

.rp-alan > span {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted);
}

.rp-alan .form-control {
    width: 170px;
    height: 42px;
}

.ws .rp-donem-btn {
    height: 42px;
}

.rp-hizli {
    scrollbar-width: none;
}

.rp-hizli::-webkit-scrollbar {
    display: none;
}

.rp-donem-not {
    margin: 12px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ---------- Bölüm gezintisi: üst çubuğun altında yapışık ---------- */
.rp-bolumler {
    position: sticky;
    top: var(--topbar-h, 68px);
    z-index: 20;
    margin: -8px 0 16px;
    padding: 8px 0;
    background: rgba(244, 246, 250, 0.94);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    backdrop-filter: saturate(160%) blur(8px);
    scrollbar-width: none;
}

.rp-bolumler::-webkit-scrollbar {
    display: none;
}

.rp-bolumler a[aria-current="true"] {
    color: var(--white);
    background: var(--brand);
    border-color: var(--brand);
}

.rp-bolumler a[aria-current="true"] .rp-bolum-sayi {
    color: #b42318;
    background: var(--white);
}

.rp [id^="rapor-"] {
    scroll-margin-top: calc(var(--topbar-h, 68px) + 60px);
}

/* ---------- Özet: 8 kart tek ızgarada (4 / 2 sütun) ---------- */
.rp .kpi-grid.rp-kpi {
    margin-bottom: 16px;
}

.rp-genel {
    margin-bottom: 24px;
}

/* ---------- Öne çıkanlar ---------- */
.ws .card.rp-notlar {
    margin: 0;
}

.rp-not-liste {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp-not-liste li {
    min-width: 0;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--text);
    background: #f9fafb;
    border: 1px solid var(--gv-line);
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.rp-not-satir {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 100%;
    padding: 10px 12px;
    color: inherit;
    text-decoration: none;
    border-radius: 10px;
}

a.rp-not-satir:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.rp-not-liste li:has(a.rp-not-satir:hover) {
    border-color: var(--border-strong);
    box-shadow: 0 4px 12px -8px rgba(16, 24, 40, 0.3);
}

.rp-not-liste li.is-kritik { background: #fffbfa; border-color: #fecdca; }
.rp-not-liste li.is-uyari  { background: #fffcf5; border-color: #fedf89; }
.rp-not-liste li.is-iyi    { background: #f6fef9; border-color: #abefc6; }

.rp-not-ikon {
    display: inline-flex;
    flex: none;
    color: var(--brand);
}

.rp-not-liste li.is-kritik .rp-not-ikon { color: #d92d20; }
.rp-not-liste li.is-uyari .rp-not-ikon  { color: #dc6803; }
.rp-not-liste li.is-iyi .rp-not-ikon    { color: #079455; }

.rp-not-ikon svg,
.rp-not-git svg,
.rg-bos svg,
.rp-mobil-meta svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rp-not-ikon svg {
    width: 18px;
    height: 18px;
}

.rp-not-metin {
    flex: 1 1 auto;
    min-width: 0;
}

.rp-not-git {
    display: inline-flex;
    flex: none;
    color: var(--subtle);
}

a.rp-not-satir:hover .rp-not-git {
    color: var(--brand);
}

.rp-not-git svg {
    width: 16px;
    height: 16px;
}

/* ---------- Kart başlığının altındaki seri bilgisi ---------- */
.rp-kart-alt {
    display: block;
    margin-top: 2px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--subtle);
}

/* ---------- Boş durum (veri yokken grafik yerine) ---------- */
.rg-bos {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: var(--muted);
    background: #f9fafb;
    border: 1px dashed var(--border);
    border-radius: 10px;
}

.rg-bos svg {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--subtle);
}

.rg-bos p {
    margin: 0;
    font-size: 0.88rem;
}

.ws .card.rp-bos-bolum {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 16px var(--ws-pad);
}

.rp-bos-bolum .rg-bos {
    flex: 1 1 260px;
    padding: 0;
    background: none;
    border: 0;
}

.rg-lejant-dikey li.is-sifir {
    opacity: 0.5;
}

/* ---------- Ajanda: "Tümünü göster" ---------- */
.rp-daha {
    margin-top: 12px;
    text-align: center;
}

.rp-daha[hidden] {
    display: none;
}

.rp-ajanda-gun[hidden],
.rp-ajanda li[hidden] {
    display: none;
}

/* Mobil kart: modül + seviye satırı (masaüstünde ayrı sütunlar) */
.rp-mobil-meta {
    display: none;
}

/* Isı haritası mobilde yatay kayar; JS en yeni haftaya kaydırır */
.rg-isi-kaydir {
    scrollbar-width: thin;
}

/* Eksen etiketi komşu (gizli) etiketlerin alanına taşabilir: "28 Eyl" kırpılmasın */
.rg-x span {
    overflow: visible;
}

/* İstatistik kutuları dar kartta da iki sütun kalsın (yalnız çok dar kartta tek sütun) */
@container (max-width: 400px) {
    .rp-istatistik {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (max-width: 290px) {
    .rp-istatistik {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1100px) {
    .rp-alan .form-control {
        width: 150px;
    }
}

@media (max-width: 900px) {
    .rp-not-liste {
        grid-template-columns: minmax(0, 1fr);
    }

    .rp-bolumler {
        margin: -6px 0 14px;
        padding: 6px 0;
    }

    /* Alarm kartı (sade): başlık + aç · tarih ve durum · tutar */
    .gv-table-alarm .gv-row {
        grid-template-areas:
            "gorev aksiyon"
            "tarih tarih"
            "alt   alt";
        gap: 8px 12px;
        padding: 12px 12px 12px 14px;
    }

    .gv-table-alarm .rp-c-seviye,
    .gv-table-alarm .rp-c-modul {
        display: none;
    }

    .rp-mobil-meta {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-top: 5px;
        font-size: 0.76rem;
        color: var(--muted);
    }

    .rp-mobil-meta svg {
        width: 13px;
        height: 13px;
    }

    .rp-mobil-seviye.is-kritik { font-weight: 650; color: #b42318; }
    .rp-mobil-seviye.is-uyari  { font-weight: 650; color: #b54708; }
    .rp-mobil-seviye.is-bilgi  { font-weight: 650; color: var(--info-text); }

    .gv-table-alarm .gv-c-tutar {
        padding-top: 0 !important;
        font-size: 0.9rem;
        border-top: 0 !important;
    }

    .gv-table-alarm .gv-c-tutar .gv-mobil-etiket {
        display: none;
    }

    /* Modül kartı (sade): ad + aç · 4 sayı tek satırda · ilerleme */
    .gv-table-rp-modul .gv-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-areas:
            "gorev    gorev    gorev    aksiyon"
            "toplam   bekleyen tamam    donem"
            "ilerleme ilerleme ilerleme ilerleme";
        gap: 10px 8px;
    }

    .gv-table-rp-modul .gv-c-aksiyon {
        justify-self: end;
    }

    .gv-table-rp-modul td.gv-num {
        text-align: left !important;
    }

    .gv-table-rp-modul .rp-c-bekleyen,
    .gv-table-rp-modul .rp-c-donem {
        text-align: left !important;
    }

    .gv-table-rp-modul .gv-mobil-etiket {
        font-size: 0.64rem;
        letter-spacing: 0.02em;
    }
}

@media (max-width: 640px) {
    /* Dönem: tarih + tarih · gruplama + düğme */
    .rp-donem-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .rp-alan .form-control {
        width: 100%;
        min-width: 0;
    }

    .ws .rp-donem-btn {
        width: 100%;
    }

    /* Hızlı aralıklar: satırlara bölünür, hepsi görünür (yana kaydırma yok) */
    .rp-hizli {
        flex-wrap: wrap;
    }

    .rp-hizli a {
        flex: none;
    }

    /* Özet kartları: iki sütun; ikon solda, etiket / değer / alt satır sağında (diğer özet kartlarıyla aynı) */
    .rp .kpi-grid.rp-kpi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .rp .rp-kpi .kpi {
        flex-direction: row;
        align-items: center;
        gap: 9px;
        padding: 12px 10px;
    }

    .rp .rp-kpi .kpi-ikon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .rp .rp-kpi .kpi-ikon svg {
        width: 16px;
        height: 16px;
    }

    .rp .rp-kpi .kpi-metin {
        flex: 1 1 auto;
        min-width: 0;
    }

    .rp .rp-kpi .kpi-deger {
        font-size: 0.98rem;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .rp .rp-kpi .kpi-alt {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .rp-not-liste li {
        font-size: 0.84rem;
    }

    .rp-not-satir {
        padding: 9px 10px;
    }

    /* Kart başlığı: alt bilgi başlığın altında, sola dayalı */
    .ws .rp-kart-bas > .muted {
        width: 100%;
        text-align: left;
    }

    .rp-kart-ozet {
        justify-content: flex-start;
    }

    /* Modül alarm sayıları: üç sütun, ikon yok */
    .rp-alarm-moduller {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .rp-alarm-moduller li {
        gap: 3px;
        padding: 8px;
    }

    .rp-alarm-modul-ikon {
        display: none;
    }

    .rp-alarm-modul-ad {
        font-size: 0.8rem;
    }

    .rp-mini,
    .rp-temiz {
        font-size: 0.66rem;
    }

    .ws .card.rp-bos-bolum {
        padding: 14px;
    }
}

@media (max-width: 380px) {
    .rp-alarm-moduller {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rp .rp-kpi .kpi-deger {
        font-size: 0.92rem;
    }
}

/* Çok dar telefon: iki sütunda tutar ("+14.000,00 ₺") kırılır; kartlar tek sütun, ikon yine solda */
@media (max-width: 359.98px) {
    .rp .kpi-grid.rp-kpi {
        grid-template-columns: minmax(0, 1fr);
    }

    .rp .rp-kpi .kpi {
        gap: 12px;
        padding: 12px 14px;
    }

    .rp .rp-kpi .kpi-deger {
        font-size: 1rem;
    }
}

/* Raporlar: liste kartlarının içindeki boş durum ve gizlenen gösterge */
.gv-board > .rg-bos {
    margin: 16px 20px 20px;
}

.rp-gostergeler[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .gv-board > .rg-bos {
        margin: 0;
        background: var(--white);
    }
}

/* =============================================================================
   Prompt belgeleri (txt, md, pdf, Office, zip) + kod / hata metni ekleme
   ============================================================================= */
/* Önizleme ve düzenleme modalındaki belge kutucuğu: görsel yerine uzantı */
.media-thumb-belge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--info-bg);
    border: 1px solid var(--info-border);
}

.media-ext {
    max-width: calc(100% - 12px);
    overflow: hidden;
    padding: 4px 9px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--white);
    white-space: nowrap;
    text-overflow: ellipsis;
    background: var(--brand);
    border-radius: 6px;
}

/* Prompt listesindeki belgeler: uzantı rozeti + ad + boyut */
.pl-belgeler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.pl-belgeler li {
    min-width: 0;
    max-width: 100%;
}

.pl-belge {
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 320px;
    min-height: 44px;
    padding: 6px 12px 6px 6px;
    color: var(--text);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.15s, transform 0.15s;
}

.pl-belge:hover {
    border-color: var(--brand);
    transform: translateY(-1px);
}

.pl-belge:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.pl-belge-ikon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 32px;
    padding: 0 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--brand-dark);
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 7px;
}

.pl-belge-ad {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pl-belge-boyut {
    flex: 0 0 auto;
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
}

.pl-item.is-done .pl-belge {
    opacity: 0.8;
}

@media (max-width: 640px) {
    .pl-belgeler li {
        flex: 1 1 100%;
    }

    .pl-belge {
        max-width: none;
    }
}

/* Görüntüleyicide metin belgesi: düz yazı, kaydırılabilir */
.lb-btn[hidden] {
    display: none;
}

.lb-medya.lb-metin {
    width: min(960px, 100%);
    max-height: 100%;
    margin: 0;
    padding: 18px 20px;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #e6e9f0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    tab-size: 4;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    user-select: text;
    -webkit-user-select: text;
    overscroll-behavior: contain;
}

.lb-medya.lb-metin:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .lb-kopyala {
        padding: 0;
    }

    .lb-medya.lb-metin {
        padding: 14px;
        font-size: 0.78rem;
    }
}

/* Yapıştırılan kod dosyaya çevrildi bildirimi (yazma alanının içinde) */
.composer-not {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 6px 14px 0;
    padding: 8px 8px 8px 12px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--info-text);
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 10px;
}

.composer-not[hidden] {
    display: none;
}

.composer-not-yazi {
    flex: 1 1 220px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.composer-not-btn,
.composer-not-kapat {
    flex: 0 0 auto;
    font: inherit;
    color: var(--brand-dark);
    cursor: pointer;
    background: var(--white);
    border: 1px solid var(--info-border);
}

.composer-not-btn {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
}

.composer-not-kapat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
}

.composer-not-kapat svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.composer-not-btn:hover,
.composer-not-kapat:hover {
    border-color: var(--brand);
}

.composer-not-btn:focus-visible,
.composer-not-kapat:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

/* Kod / hata metni ekle penceresi */
.kod-modal .kod-modal-bilgi {
    margin: 0 0 14px;
}

.kod-modal .kod-modal-metin {
    min-height: 220px;
    max-height: 50vh;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84rem;
    line-height: 1.5;
    white-space: pre;
    overflow: auto;
    tab-size: 4;
    resize: vertical;
}

.kod-modal .kod-modal-cit {
    margin: 0 0 6px;
}

.kod-modal .kod-modal-cit.is-pasif {
    opacity: 0.55;
}

.kod-modal .field-error[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .kod-modal .kod-modal-metin {
        height: 170px;
        min-height: 120px;
        font-size: 0.8rem;
    }
}

/* Dar ekranda yazma alanındaki ek önizlemeleri iki sütun (tek sütunda kutucuklar çok büyüyordu) */
@media (max-width: 480px) {
    .composer-box .file-previews {
        grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
        gap: 8px;
        padding: 0 10px;
    }

    .composer-not {
        margin-right: 10px;
        margin-left: 10px;
    }
}

/* =============================================================================
   Site Ayarları (/ayarlar/), denetim kaydı (/ayarlar/denetim) ve sağlık (/ayarlar/saglik)
   Liste dili gv-board / gv-table ile aynı: 900px ve altında satırlar karta döner.
   ============================================================================= */
.ws code {
    padding: 1px 6px;
    font-size: 0.84em;
    color: var(--navy);
    background: var(--ws-head-bg, #f9fafb);
    border: 1px solid var(--ws-line-soft, #eef0f4);
    border-radius: 6px;
    overflow-wrap: anywhere;
}

.ayar-not {
    margin: -6px 0 14px;
    font-size: 0.86rem;
    color: var(--muted);
}

.prf-ayar-metin .ayar-son {
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--muted);
}

/* Kullanıcılar: rol seçimi satırda (seçim + Kaydet) */
.gv-table-kullanici .gv-c-kullanici {
    width: 100%;
    min-width: 220px;
}

.gv-c-kullanici .badge-info {
    margin-left: 8px;
    vertical-align: 1px;
}

.gv-table-kullanici .gv-c-durum .badge + .badge {
    margin-left: 6px;
}

.gv-c-rol {
    width: 1%;
    white-space: nowrap;
}

.rol-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.rol-form .form-control {
    width: auto;
    min-width: 140px;
    height: 36px;
    padding-top: 0;
    padding-bottom: 0;
}

.rol-form .btn {
    height: 36px;
}

/* Denetim kaydı listesi */
.gv-table-denetim .gv-c-kayit {
    width: 100%;
    min-width: 240px;
}

.gv-table-denetim .gv-c-aktor {
    width: 1%;
    min-width: 160px;
    white-space: nowrap;
}

.denetim-filtre-not {
    margin: 10px 0 0;
    font-size: 0.86rem;
    color: var(--muted);
}

/* Denetim ayrıntısı: işlem bilgileri */
.ws .card.denetim-ozet {
    padding: 18px var(--ws-pad);
}

.denetim-dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px 24px;
    margin: 0;
}

.denetim-dl dt {
    margin-bottom: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.denetim-dl dd {
    margin: 0;
    font-weight: 500;
    color: var(--navy);
    overflow-wrap: anywhere;
}

/* Önce / sonra tablosu */
.gv-table-fark tbody th {
    width: 22%;
    min-width: 140px;
    padding: 14px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--navy);
    white-space: normal;
    vertical-align: top;
    background: transparent;
    border-bottom: 1px solid var(--gv-line);
}

.gv-table-fark td {
    vertical-align: top;
}

.gv-table-fark tbody tr:last-child th {
    border-bottom: 0;
}

.fark-deger {
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.gv-c-once .fark-deger {
    color: #912018;
}

.gv-c-sonra .fark-deger {
    color: #05603a;
}

/* Sağlık: servis tablosu, cron yardımı, yedek özeti */
.gv-table-saglik .gv-c-servis {
    width: 40%;
    min-width: 220px;
}

.gv-table-saglik .gv-c-basari,
.gv-table-saglik .gv-c-hata {
    min-width: 150px;
}

.gv-saglik-hata .gv-c-servis .gv-title {
    color: #b42318;
}

.saglik-cron {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--gv-line);
}

.saglik-cron h3 {
    margin: 0 0 6px;
    font-size: 0.92rem;
    color: var(--navy);
}

.saglik-cron p {
    margin: 0 0 10px;
    font-size: 0.86rem;
    color: var(--muted);
}

.saglik-cron pre {
    margin: 0 0 8px;
    padding: 12px 14px;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--navy);
    background: var(--ws-head-bg, #f9fafb);
    border: 1px solid var(--ws-line-soft, #eef0f4);
    border-radius: 10px;
}

.saglik-cron pre code {
    padding: 0;
    font-size: inherit;
    background: none;
    border: 0;
    overflow-wrap: normal;
}

.saglik-cron p.muted {
    margin: 0;
}

.saglik-son {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 14px 20px;
    font-size: 0.86rem;
    color: var(--text);
    border-bottom: 1px solid var(--gv-line);
}

.saglik-hata-satir {
    flex-basis: 100%;
    color: #b42318;
    overflow-wrap: anywhere;
}

.ws .gv-board .saglik-uyari {
    margin: 14px 20px;
}

.gv-table-yedek .gv-c-dosya {
    width: 100%;
}

.gv-dosya-ad {
    font-variant-numeric: tabular-nums;
}

.gv-c-tur,
.gv-c-boyut {
    width: 1%;
    white-space: nowrap;
}

.saglik-izgara {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
    margin-bottom: 24px;
}

.ws .saglik-izgara .card {
    margin-bottom: 0;
}

/* Anahtar / değer satırları (disk, ortam) */
.saglik-dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.saglik-dl > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ws-line-soft, #eef0f4);
}

.saglik-dl > div:first-child {
    padding-top: 0;
}

.saglik-dl > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.saglik-dl dt {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.saglik-dl dd {
    font-size: 0.88rem;
    text-align: right;
}

.saglik-meter {
    display: block;
    width: 100%;
    min-width: 160px;
    height: 10px;
    margin-top: 6px;
}

@media (max-width: 900px) {
    /* Kullanıcı kartı: ad + e-posta, durum rozetleri, son giriş + rol */
    .gv-table-kullanici .gv-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "kullanici kullanici"
            "durum     durum"
            "tarih     rol";
    }

    .gv-table-kullanici .gv-c-kullanici { grid-area: kullanici; width: auto; min-width: 0; }
    .gv-table-kullanici .gv-c-durum { grid-area: durum; justify-self: start; padding-top: 0 !important; white-space: normal; }
    .gv-table-kullanici .gv-c-tarih { grid-area: tarih; align-self: end; }
    .gv-table-kullanici .gv-c-rol { grid-area: rol; align-self: end; justify-self: end; width: auto; text-align: right; }

    /* Denetim kartı: kayıt + ok, işlemi yapan, zaman + işlem rozeti */
    .gv-table-denetim .gv-row {
        grid-template-areas:
            "kayit aksiyon"
            "aktor aktor"
            "zaman durum";
    }

    .gv-table-denetim .gv-row.gv-denetim-ekle { border-left-color: #a6e2c0; }
    .gv-table-denetim .gv-row.gv-denetim-sil  { border-left-color: #fda29b; }

    .gv-table-denetim .gv-c-kayit { grid-area: kayit; width: auto; min-width: 0; }
    .gv-table-denetim .gv-c-aktor { grid-area: aktor; width: auto; min-width: 0; white-space: normal; }
    .gv-table-denetim .gv-c-zaman { grid-area: zaman; align-self: center; }
    .gv-table-denetim .gv-c-durum { grid-area: durum; align-self: center; justify-self: end; padding-top: 0 !important; }

    .gv-table-denetim .gv-c-zaman .gv-firma,
    .gv-table-denetim .gv-c-zaman .gv-yetkili {
        display: inline;
        margin: 0;
    }

    .gv-table-denetim .gv-c-zaman .gv-yetkili {
        margin-left: 6px;
    }

    .denetim-filtre-not {
        margin-top: 4px;
    }

    /* Önce / sonra kartı */
    .gv-table-fark .gv-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "alan alan"
            "once sonra";
        border-left-color: var(--border-strong);
    }

    .gv-table-fark .gv-row:not(:has(.gv-c-once)),
    .gv-table-fark .gv-row:not(:has(.gv-c-sonra)) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "alan"
            "deger";
    }

    .gv-table-fark tbody th {
        display: block;
        grid-area: alan;
        width: auto;
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .gv-table-fark .gv-c-once  { grid-area: once; }
    .gv-table-fark .gv-c-sonra { grid-area: sonra; }

    .gv-table-fark .gv-row:not(:has(.gv-c-once)) .gv-c-sonra,
    .gv-table-fark .gv-row:not(:has(.gv-c-sonra)) .gv-c-once {
        grid-area: deger;
    }

    /* Sağlık kartı: servis + durum, son başarılı + son hata */
    .gv-table-saglik .gv-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "servis servis"
            "basari hata"
            "durum  durum";
    }

    .gv-table-saglik .gv-row.gv-saglik-ok      { border-left-color: #a6e2c0; }
    .gv-table-saglik .gv-row.gv-saglik-hata    { border-left-color: #fda29b; }
    .gv-table-saglik .gv-row.gv-saglik-gecikti { border-left-color: #fec84b; }
    .gv-table-saglik .gv-row.gv-saglik-yok     { border-left-color: var(--border-strong); }

    .gv-table-saglik .gv-c-servis { grid-area: servis; width: auto; min-width: 0; }
    .gv-table-saglik .gv-c-basari { grid-area: basari; min-width: 0; }
    .gv-table-saglik .gv-c-hata   { grid-area: hata; min-width: 0; }
    .gv-table-saglik .gv-c-durum  { grid-area: durum; justify-self: start; }

    /* Yedek kartı: dosya adı + tür, tarih + boyut */
    .gv-table-yedek .gv-row {
        grid-template-areas:
            "dosya tur"
            "tarih boyut";
        border-left-color: var(--border-strong);
    }

    .gv-table-yedek .gv-c-dosya { grid-area: dosya; width: auto; min-width: 0; }
    .gv-table-yedek .gv-c-tur   { grid-area: tur; justify-self: end; width: auto; }
    .gv-table-yedek .gv-c-tarih { grid-area: tarih; }
    .gv-table-yedek .gv-c-boyut { grid-area: boyut; justify-self: end; width: auto; text-align: right !important; }

    .gv-dosya-ad {
        font-size: 0.9rem;
    }

    /* Liste kartı mobilde zeminsiz: kart içi bloklar kendi kutusunda */
    .saglik-cron,
    .saglik-son {
        margin-bottom: 10px;
        padding: 14px;
        background: var(--white);
        border: 1px solid var(--gv-line);
        border-radius: 12px;
    }

    .ws .gv-board .saglik-uyari {
        margin: 0 0 10px;
    }

    .saglik-izgara {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .gv-table-fark .gv-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .gv-table-fark .gv-row:has(.gv-c-once):has(.gv-c-sonra) {
        grid-template-areas:
            "alan"
            "once"
            "sonra";
    }

    .gv-table-kullanici .gv-row {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "kullanici"
            "durum"
            "tarih"
            "rol";
    }

    .gv-table-kullanici .gv-c-rol {
        justify-self: stretch;
        text-align: left;
    }

    .rol-form .form-control {
        flex: 1 1 auto;
        min-width: 0;
    }

    .saglik-dl dd {
        text-align: left;
    }
}

/* =============================================================================
   Gelen Mesajlar (/gorev/mesajlar, /gorev/mesaj/{id}, /gorev/mesajlar/api)
   Liste notlarla aynı iskelet (gv-table-not), detay not-grid / not-yan / not-islemler.
   ============================================================================= */
/* Bekleyen (açılmamış) mesaj: gönderen kalın, sol kenar turuncu */
.gv-table-mesaj .gv-row.is-yeni .gv-title {
    font-weight: 700;
}

.gv-table-mesaj .gv-row.is-yeni > td:first-child {
    box-shadow: inset 3px 0 0 var(--warning);
}

.gv-table-mesaj .mesaj-konu {
    font-weight: 600;
    color: var(--text);
}

.gv-table-mesaj .gv-c-site {
    width: 1%;
    white-space: nowrap;
}

.gv-table-mesaj .gv-c-site .gv-mobil-etiket {
    display: none;
}

.mesaj-kirilir {
    overflow-wrap: anywhere;
}

/* Api Ayar: adımlar, site formu, anahtar, döküman */
.mesaj-api-adim-liste {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    padding-left: 20px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text);
}

.mesaj-api-uc {
    margin: 0;
    overflow-wrap: anywhere;
}

.ws .filter-bar.mesaj-site-form .form-control {
    flex: 1 1 280px;
    max-width: 420px;
}

.gv-table-mesaj-site .gv-c-anahtar {
    width: 1%;
    white-space: nowrap;
}

.gv-table-mesaj-site .gv-c-anahtar .gv-mobil-etiket,
.gv-table-mesaj-site .gv-c-son .gv-mobil-etiket {
    display: none;
}

.gv-table-mesaj-site .gv-c-son {
    width: 1%;
    white-space: nowrap;
}

.gv-table-mesaj-site .gv-row.is-secili > td {
    background: var(--info-bg);
}

.mesaj-anahtar {
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}

/* .ws .card-head:not(...) satırı tek satıra zorlar; bu kartta düğmeler alt satıra inebilsin */
.ws .mesaj-dokuman .card-head.mesaj-dokuman-bas {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mesaj-dokuman-bas p {
    margin: 4px 0 0;
}

/* Başlık metni dar ekranda daralıp harf harf kırılmasın: önce düğmeler alt satıra iner */
.mesaj-dokuman-bas > div:first-child {
    flex: 1 1 280px;
    min-width: 0;
}

.ws .mesaj-dokuman-bas h2 {
    overflow-wrap: anywhere;
}

.mesaj-dokuman-dugmeler {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mesaj-dokuman-sec {
    display: flex;
    gap: 8px;
    margin: 0;
}

.mesaj-dokuman-sec .form-control {
    width: auto;
    min-width: 180px;
}

.mesaj-dokuman-sec .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

textarea.form-control.mesaj-dokuman-metin {
    min-height: 420px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    white-space: pre;
    background: var(--ws-head-bg, #f8fafc);
    resize: vertical;
}

@media (max-width: 900px) {
    /* Mesaj kartı: gönderen + işlemler, site, tarih + durum */
    .gv-table-mesaj .gv-row {
        grid-template-areas:
            "gorev aksiyon"
            "site  site"
            "son   durum";
    }

    .gv-table-mesaj .gv-row.is-yeni {
        border-left-color: var(--warning);
    }

    .gv-table-mesaj .gv-row.is-yeni > td:first-child {
        box-shadow: none;
    }

    .gv-table-mesaj .gv-c-site {
        grid-area: site;
        width: auto;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .gv-table-mesaj .gv-c-site .gv-mobil-etiket {
        display: block;
    }

    /* Site kartı: site + durum, anahtar, son mesaj; dört işlem düğmesi altta ayrı şeritte (dar ekranda site adı sıkışmasın) */
    .gv-table-mesaj-site .gv-row {
        grid-template-areas:
            "gorev   durum"
            "anahtar anahtar"
            "son     son"
            "aksiyon aksiyon";
    }

    .gv-table-mesaj-site .gv-c-gorev {
        overflow-wrap: anywhere;
    }

    .gv-table-mesaj-site .gv-c-anahtar {
        grid-area: anahtar;
        width: auto;
    }

    .gv-table-mesaj-site .gv-c-son {
        grid-area: son;
        justify-self: start;
        width: auto;
        font-size: inherit;
    }

    .gv-table-mesaj-site .gv-c-durum {
        grid-area: durum;
        align-self: start;
        justify-self: end;
        padding-top: 0 !important;
    }

    .gv-table-mesaj-site .gv-c-aksiyon {
        grid-area: aksiyon;
        justify-self: stretch;
        padding-top: 10px !important;
        text-align: right;
        border-top: 1px solid var(--gv-line) !important;
    }

    .gv-table-mesaj-site .gv-c-anahtar .gv-mobil-etiket,
    .gv-table-mesaj-site .gv-c-son .gv-mobil-etiket {
        display: block;
    }

    .gv-table-mesaj-site .gv-row.is-secili > td {
        background: transparent;
    }

    .gv-table-mesaj-site .gv-row.is-secili {
        border-color: #c7d7fe;
    }
}

@media (max-width: 640px) {
    /* Özet kartları: iki kelimelik etiket ("Bekleyen Mesajlar") kesilmesin, iki satıra insin */
    .kpi-grid.kpi-dikey-3.kpi-grid-mesaj .kpi-etiket {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        text-align: center;
        line-height: 1.25;
    }

    /* Filtre: arama tam genişlik, site + Ara yan yana */
    .ws .filter-bar.filter-bar-mesaj select {
        min-width: 0;
    }

    .ws .filter-bar.mesaj-site-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .ws .filter-bar.mesaj-site-form .form-control {
        max-width: none;
    }

    .mesaj-dokuman-dugmeler,
    .mesaj-dokuman-sec {
        width: 100%;
    }

    .mesaj-dokuman-sec .form-control {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mesaj-dokuman-dugmeler > .btn {
        width: 100%;
        justify-content: center;
    }

    textarea.form-control.mesaj-dokuman-metin {
        min-height: 360px;
        font-size: 0.74rem;
    }
}

/* =============================================================================
   Gelen Siparişler (/gorev/siparisler, /gorev/siparis/{id}, düzenle, Api Ayar, Sipariş Raporları)
   Liste gv-board + gv-table-siparis; işlem modalı (sm-*); detay domain-izgara + sp-*; rapor rp + sr-*.
   Api Ayar sayfası mesaj-* sınıflarını paylaşır.
   ============================================================================= */
/* ---------- Filtre: arama + site + ödeme + tip / tarih aralığı + düğmeler ---------- */
.ws .filter-bar.filter-bar-siparis {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
}

.filter-bar-siparis > label {
    display: block;
    grid-column: span 2;
    min-width: 0;
    margin: 0;
}

.filter-bar-siparis > label.sp-filtre-ara {
    grid-column: span 6;
}

.filter-bar-siparis > label.sp-filtre-tarih {
    display: flex;
    grid-column: span 3;
    align-items: center;
    gap: 8px;
}

.filter-bar-siparis .sp-filtre-tarih > span {
    flex: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.ws .filter-bar-siparis .form-control {
    width: 100%;
    min-width: 0;
}

.filter-bar-siparis .sp-filtre-dugmeler {
    display: flex;
    grid-column: span 6;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

/* ---------- Liste ---------- */
.sp-no {
    font-weight: 600;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.gv-table-siparis .gv-c-site,
.gv-table-siparis .gv-c-son,
.gv-table-siparis .gv-c-odeme,
.gv-table-siparis .gv-c-durum,
.gv-table-siparis .gv-c-tutar {
    width: 1%;
    white-space: nowrap;
}

.gv-table-siparis .gv-c-site {
    max-width: 220px;
}

.gv-table-siparis .gv-c-site .gv-firma,
.gv-table-siparis .gv-c-site .gv-yetkili {
    overflow: hidden;
    text-overflow: ellipsis;
}

.gv-table-siparis .gv-c-odeme .gv-yetkili {
    margin-top: 4px;
}

.gv-table-siparis .gv-c-tutar {
    font-weight: 700;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.gv-table-siparis .gv-c-gorev .gv-site {
    overflow-wrap: anywhere;
}

/* Bekleyen sipariş: ürün adı kalın, sol kenar turuncu; iptal: sönük */
.gv-table-siparis .gv-siparis-bekliyor .gv-title {
    font-weight: 700;
}

.gv-table-siparis .gv-siparis-bekliyor > td:first-child {
    box-shadow: inset 3px 0 0 var(--warning);
}

.gv-table-siparis .gv-siparis-iptal .gv-title,
.gv-table-siparis .gv-siparis-iptal .gv-c-tutar {
    color: var(--muted);
}

.gv-table-siparis .gv-siparis-iptal .gv-c-tutar {
    text-decoration: line-through;
}

/* İşlem düğmesi: ikon + "İşlem" yazısı (modal açar) */
.gv-icon-btn.sp-islem-btn {
    gap: 6px;
    width: auto;
    padding: 0 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--brand);
    background: var(--info-bg);
    border-color: var(--info-border);
}

.gv-icon-btn.sp-islem-btn:hover {
    color: var(--white);
    background: var(--brand);
    border-color: var(--brand);
}

.gv-icon-btn.sp-islem-btn svg {
    width: 16px;
    height: 16px;
}

/* ---------- İşlem modalı ---------- */
.sm-ozet {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0 0 18px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid var(--gv-line);
    border-radius: 10px;
}

.sm-ozet > div {
    min-width: 0;
}

.sm-ozet .sm-ozet-genis {
    grid-column: 1 / -1;
}

.sm-ozet dt {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--muted);
}

.sm-ozet dd {
    margin: 2px 0 0;
    font-weight: 600;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.sm-ozet .sm-ozet-genis dd {
    font-size: 1.02rem;
}

.sm-secim {
    min-width: 0;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.sm-secim legend {
    margin-bottom: 8px;
    padding: 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--navy);
}

.sm-secim .field-help {
    margin: 8px 0 0;
}

.sm-secenekler {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sm-secenekler.sm-secenekler-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sm-secenek {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.sm-secenek:hover {
    border-color: var(--border-strong);
}

.sm-secenek input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--brand);
}

.sm-secenek > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sm-secenek b {
    font-weight: 600;
    color: var(--navy);
}

.sm-secenek small {
    font-size: 0.76rem;
    line-height: 1.35;
    color: var(--muted);
}

.sm-secenek:has(input:focus-visible) {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.sm-secenek.is-onay:has(input:checked) {
    background: #ecfdf3;
    border-color: #6ce9a6;
    box-shadow: 0 0 0 1px #6ce9a6;
}

.sm-secenek.is-onay input { accent-color: var(--success); }

.sm-secenek.is-bekle:has(input:checked) {
    background: #fffaeb;
    border-color: #fec84b;
    box-shadow: 0 0 0 1px #fec84b;
}

.sm-secenek.is-bekle input { accent-color: #dc6803; }

.sm-secenek.is-iptal:has(input:checked) {
    background: var(--error-bg);
    border-color: #f97066;
    box-shadow: 0 0 0 1px #f97066;
}

.sm-secenek.is-iptal input { accent-color: var(--error); }

.siparis-islem-modal .modal-actions .sm-detay {
    margin-right: auto;
}

.siparis-islem-modal .modal-actions .sm-detay[hidden] {
    display: none;
}

/* ---------- Detay ---------- */
.sp-izgara {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sp-metin {
    overflow-wrap: anywhere;
    white-space: normal;
}

.sp-satir-form {
    margin: 16px 0 0;
}

.sp-kasa {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    background: #fffaeb;
    border: 1px solid #fedf89;
    border-radius: 10px;
}

.sp-kasa.is-tamam {
    background: #ecfdf3;
    border-color: #abefc6;
}

.sp-kasa-metin {
    display: flex;
    flex: 1 1 220px;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sp-kasa-metin strong {
    color: var(--navy);
}

.sp-kasa-metin span {
    font-size: 0.86rem;
    color: var(--muted);
}

.sp-kasa-dugmeler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-kasa-dugmeler form {
    margin: 0;
}

.sp-not-form {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.sp-not-form textarea {
    width: 100%;
}

/* Yazdırma başlığı ve not metni yalnız kâğıtta (ekranda not, kutunun içinde) */
.sp-yazdir-bas,
.sp-yazdir-not {
    display: none;
}

/* ---------- Düzenle ---------- */
.ws .sp-form .sp-form-baslik {
    margin: 26px 0 14px;
    padding-top: 18px;
    font-size: 1rem;
    color: var(--navy);
    border-top: 1px solid var(--gv-line);
}

.ws .sp-form .sp-form-baslik:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.sp-form-sabit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    font-weight: 600;
    color: var(--navy);
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-wrap: anywhere;
}

.sp-form-not {
    margin: 18px 0 0;
}

/* ---------- Raporlar ---------- */
@container (min-width: 560px) {
    .rp-istatistik.sr-site-ist {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.sr-site-ist + .rg {
    margin-top: 16px;
}

.ws .sr-site-tablo {
    margin-bottom: 20px;
}

.gv-table-sr-site .gv-c-gorev {
    overflow-wrap: anywhere;
}

.gv-table-sr-site .gv-num {
    width: 1%;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.gv-table-sr-site .gv-c-tutar {
    font-weight: 700;
    color: #067647;
}

.gv-table-sr-site tfoot th,
.gv-table-sr-site tfoot td {
    padding-top: 14px;
    padding-bottom: 14px;
    font-weight: 700;
    color: var(--navy);
    text-align: left;
    background: #f9fafb;
    border-top: 1px solid var(--gv-line);
}

.gv-table-sr-site tfoot .gv-num {
    text-align: right;
}

.sr-site-kart h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .ws .filter-bar.filter-bar-siparis {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .filter-bar-siparis > label.sp-filtre-ara {
        grid-column: 1 / -1;
    }

    .filter-bar-siparis > label.sp-filtre-tarih,
    .filter-bar-siparis .sp-filtre-dugmeler {
        grid-column: span 2;
    }

    .gv-table-siparis .gv-c-site {
        max-width: 160px;
    }
}

/* Dar masaüstü / yatay tablet: tablo sığsın (tarih iki satır, "İşlem" yalnız ikon) */
@media (min-width: 901px) and (max-width: 1200px) {
    .gv-table-siparis .gv-c-son {
        width: 6.5em;
        min-width: 6.5em;
        white-space: normal;
    }

    .gv-table-siparis .gv-c-son .gv-firma {
        overflow-wrap: normal;
        word-break: normal;
    }

    .gv-table-siparis .sp-islem-yazi {
        display: none;
    }

    .gv-table-siparis .gv-icon-btn.sp-islem-btn {
        width: 34px;
        padding: 0;
    }
}

@media (max-width: 1024px) {
    .sp-izgara {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Kart görünümü ---------- */
@media (max-width: 900px) {
    /* Sipariş kartı: ürün + işlemler / site + tarih / ödeme / tutar + durum */
    .gv-table-siparis .gv-row {
        grid-template-areas:
            "gorev aksiyon"
            "site  son"
            "odeme odeme"
            "alt   alt";
    }

    .gv-table-siparis .gv-siparis-bekliyor {
        border-left-color: #fdb022;
    }

    .gv-table-siparis .gv-siparis-tamamlandi {
        border-left-color: #a6e2c0;
    }

    .gv-table-siparis .gv-siparis-iptal {
        border-left-color: var(--border-strong);
    }

    .gv-table-siparis .gv-siparis-bekliyor > td:first-child {
        box-shadow: none;
    }

    .gv-table-siparis .gv-c-site {
        grid-area: site;
        width: auto;
        max-width: none;
        white-space: normal;
    }

    .gv-table-siparis .gv-c-site .gv-firma,
    .gv-table-siparis .gv-c-site .gv-yetkili {
        overflow: visible;
        overflow-wrap: anywhere;
    }

    .gv-table-siparis .gv-c-son {
        align-self: start;
        width: auto;
        text-align: right;
    }

    .gv-table-siparis .gv-c-durum {
        width: auto;
    }

    .gv-table-siparis .gv-c-odeme {
        display: flex;
        grid-area: odeme;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 8px;
        width: auto;
        white-space: normal;
    }

    .gv-table-siparis .gv-c-odeme .gv-mobil-etiket {
        flex-basis: 100%;
        margin: 0;
    }

    .gv-table-siparis .gv-c-odeme .gv-yetkili {
        margin: 0;
    }

    .gv-table-siparis .gv-c-tutar {
        width: auto;
        font-size: 1.02rem;
    }

    .gv-table-siparis .gv-c-aksiyon {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .gv-table-siparis .gv-c-aksiyon .gv-icon-btn.sp-islem-btn {
        width: auto;
    }

    /* Site özeti kartı: site + ok / ciro, ödenen, ortalama / sipariş, iptal */
    .gv-table-sr-site .gv-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        grid-template-areas:
            "gorev  gorev  aksiyon"
            "tutar  odenen odenen"
            "ort    adet   adet"
            "iptal  iptal  iptal";
    }

    .gv-table-sr-site .gv-c-aksiyon { justify-self: end; }
    .gv-table-sr-site .gv-c-sr-adet { grid-area: adet; }
    .gv-table-sr-site .gv-c-sr-odenen { grid-area: odenen; }
    .gv-table-sr-site .gv-c-sr-ort { grid-area: ort; }
    .gv-table-sr-site .gv-c-sr-iptal { grid-area: iptal; }

    .gv-table-sr-site .gv-num {
        width: auto;
        min-width: 0;
        text-align: left !important;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .gv-table-sr-site .gv-c-tutar {
        font-size: 0.94rem;
        white-space: nowrap;
        grid-area: tutar;
        align-self: start;
        padding-top: 0 !important;
        border-top: 0 !important;
    }

    /* Toplamlar özet kartlarında; kart görünümünde dip satırı yok */
    .gv-table-sr-site tfoot {
        display: none;
    }
}

/* ---------- Telefon ---------- */
@media (max-width: 640px) {
    .ws .filter-bar.filter-bar-siparis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .filter-bar-siparis > label,
    .filter-bar-siparis > label.sp-filtre-tarih {
        grid-column: span 1;
    }

    .filter-bar-siparis > label.sp-filtre-ara,
    .filter-bar-siparis > label[for="siparis-site"],
    .filter-bar-siparis .sp-filtre-dugmeler {
        grid-column: 1 / -1;
    }

    .filter-bar-siparis > label.sp-filtre-tarih {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .filter-bar-siparis .sp-filtre-dugmeler .btn {
        flex: 1 1 auto;
    }

    .kpi-grid.kpi-grid-siparis .kpi-etiket {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.25;
    }

    .sm-ozet {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
    }

    .sm-ozet > div:last-child {
        grid-column: 1 / -1;
    }

    .sm-secenekler {
        grid-template-columns: minmax(0, 1fr);
    }

    .sm-secenek {
        padding: 10px 12px;
    }

    .siparis-islem-modal .modal-actions {
        flex-wrap: wrap;
    }

    .sp-kasa-dugmeler {
        width: 100%;
    }

    .sp-kasa-dugmeler > .btn,
    .sp-kasa-dugmeler > form {
        flex: 1 1 auto;
    }

    .sp-kasa-dugmeler > form .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    /* Çok dar kartta "İşlem" yazısı gizlenir, ikon kalır */
    .gv-table-siparis .sp-islem-yazi {
        display: none;
    }

    .gv-icon-btn.sp-islem-btn {
        width: 36px;
        padding: 0;
    }
}

/* ---------- Yazdırma: sipariş detayı ---------- */
@media print {
    .sp-detay .alert,
    .sp-detay .ph-geri,
    .sp-detay .sp-satir-form,
    .sp-detay .sp-not-form,
    .sp-detay .sp-kasa-dugmeler,
    .sp-detay .sp-islemler,
    .siparis-islem-modal {
        display: none !important;
    }

    .sp-detay .sp-yazdir-bas {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        margin: 0 0 14px;
        padding-bottom: 10px;
        font-size: 0.82rem;
        border-bottom: 1px solid #d0d5dd;
    }

    .sp-detay .sp-yazdir-not {
        display: block;
    }

    .sp-detay .card,
    .sp-detay .kpi {
        break-inside: avoid;
        box-shadow: none;
    }

    .sp-detay .sp-izgara {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sp-detay .sp-kasa {
        background: none;
    }
}

/* ===================================================================== Site Ayarları: seçimli ayar satırları */
/* Seçimli ayar: seçenekler ayrı gönder düğmeleri (JS gerekmez); seçili olan aria-pressed="true" */
.ayar-secim {
    display: inline-flex;
    flex: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: 46%;
}

.ayar-secim-btn {
    min-height: 40px;
    padding: 6px 12px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 999px;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.ayar-secim-btn:hover {
    color: var(--navy);
    border-color: #c7d7fe;
}

.ayar-secim-btn[aria-pressed="true"] {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.ayar-secim-btn:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .prf-ayar-secimli {
        flex-wrap: wrap;
    }

    .prf-ayar-secimli .ayar-secim {
        justify-content: flex-start;
        max-width: none;
        width: 100%;
    }
}

/* ===================================================================== Ayarlar (/ayarlar/): uygulamadaki Sistem Ayarları ile aynı */
/* Görünüm sitenin çalışma alanı (.ws) diliyle aynı: tek çerçeveli kartlar, başlık şeridi, kenardan kenara satırlar,
   yumuşak tonlu ikonlar, iOS tarzı anahtar ve bölümlü seçim. JS kancaları: assets/js/ayarlar.js */
.ay-sayfa {
    --ay-pad: 24px;
    --ay-ikon: 36px;
    --ay-ust: calc(var(--topbar-h, 68px) + 16px);
    scroll-behavior: smooth;
}

.ay-duzen {
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* ------------------------------------------------------------------ Sol sütun */
.ay-menu {
    position: sticky;
    top: var(--ay-ust);
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - var(--ay-ust) - 16px);
    padding: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    background: var(--white);
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 14px;
    box-shadow: var(--ws-shadow, 0 1px 2px rgba(16, 24, 40, 0.05));
}

.ay-hesap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 12px;
    color: var(--navy);
    text-decoration: none;
    background: var(--ws-head-bg, #f9fafb);
    border: 1px solid var(--ws-line-soft, #eef0f4);
    border-radius: 12px;
    transition: background-color 0.15s, border-color 0.15s;
}

.ay-hesap:hover {
    background: #f2f6ff;
    border-color: #d6e2ff;
}

.ay-hesap:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.ay-hesap-metin {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.ay-hesap-metin strong {
    overflow: hidden;
    font-size: 0.92rem;
    font-weight: 650;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ay-hesap-metin small {
    margin-top: 2px;
    overflow: hidden;
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Baş harfli yuvarlak (Profilim'deki avatarın küçüğü) */
.ay-avatar {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 0.86rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-radius: 50%;
    box-shadow: 0 6px 14px -8px rgba(10, 92, 255, 0.75);
}

.ay-avatar-kucuk {
    width: var(--ay-ikon);
    height: var(--ay-ikon);
    font-size: 0.78rem;
}

.ay-ara {
    position: relative;
    display: block;
}

.ay-ara svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--subtle);
    stroke-width: 2;
    stroke-linecap: round;
    transform: translateY(-50%);
    pointer-events: none;
}

.ay-ara input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px 8px 38px;
    font: inherit;
    font-size: 0.9rem;
    color: var(--text);
    background: #f2f4f7;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.ay-ara input::placeholder {
    color: var(--subtle);
}

.ay-ara input:focus {
    background: #fff;
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 4px rgba(10, 92, 255, 0.12);
}

.ay-menu-liste {
    display: flex;
    flex-direction: column;
}

.ay-menu-grup {
    margin: 14px 10px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--subtle);
    text-transform: uppercase;
}

.ay-menu-liste > .ay-menu-grup:first-child {
    margin-top: 4px;
}

.ay-menu ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ay-menu a[data-bolum] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 6px 10px 6px 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #344054;
    text-decoration: none;
    border-radius: 9px;
    transition: background-color 0.15s, color 0.15s;
}

.ay-menu a[data-bolum]:hover {
    color: var(--navy);
    background: #f5f7fa;
}

.ay-menu a[data-bolum][aria-current="true"] {
    font-weight: 650;
    color: var(--brand-dark);
    background: #eef4ff;
}

/* Seçili bölümün solunda ince çizgi */
.ay-menu a[data-bolum][aria-current="true"]::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: -12px;
    width: 3px;
    content: "";
    background: var(--brand);
    border-radius: 0 3px 3px 0;
}

.ay-menu a[data-bolum]:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

.ay-menu-ad {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
}

/* Mac durumu: menüde yeşil / turuncu nokta (yazısı ekran okuyucuda) */
.ay-menu-nokta {
    flex: none;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

.ay-menu .ay-ikon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.ay-menu .ay-ikon svg {
    width: 16px;
    height: 16px;
}

.ay-menu-deger {
    flex: none;
    max-width: 44%;
    padding: 2px 8px;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475467;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: #f2f4f7;
    border-radius: 999px;
}

.ay-menu-deger.ay-iyi {
    background: #ecfdf3;
}

.ay-menu-deger.ay-uyari {
    background: #fffaeb;
}

/* ------------------------------------------------------------------ Bölüm kartları */
.ay-icerik {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.ws .card.ay-bolum {
    margin: 0;
    padding: 0;
    overflow: hidden;
    scroll-margin-top: var(--ay-ust);
}

.ay-bolum[hidden] {
    display: none;
}

.ay-bolum-bas {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px var(--ay-pad);
    border-bottom: 1px solid var(--ws-line-soft, #eef0f4);
}

.ay-bolum-yazi {
    min-width: 0;
}

.ws .ay-bolum-bas h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--navy);
}

.ay-bolum-bas p {
    margin: 2px 0 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--muted);
}

/* Grup başlığı: kartın içinde ince şerit */
.ay-grup-baslik {
    margin: 0;
    padding: 10px var(--ay-pad) 9px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #667085;
    text-transform: uppercase;
    background: var(--ws-head-bg, #f9fafb);
    border-top: 1px solid var(--ws-line-soft, #eef0f4);
    border-bottom: 1px solid var(--ws-line-soft, #eef0f4);
}

.ay-bolum-bas + .ay-grup-baslik {
    border-top: 0;
}

.ay-grup-baslik span {
    margin-left: 4px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--subtle);
    text-transform: none;
}

.ay-grup {
    margin: 0;
    background: var(--white);
}

/* Arka arkaya iki grup: arada ince boşluk şeridi (telefondaki gruplu liste gibi) */
.ay-grup + .ay-grup {
    border-top: 8px solid var(--ws-head-bg, #f9fafb);
    box-shadow: inset 0 1px 0 var(--ws-line-soft, #eef0f4);
}

/* ------------------------------------------------------------------ Satırlar */
.ay-satir {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    min-height: 64px;
    margin: 0;
    padding: 14px var(--ay-pad);
    color: var(--navy);
    text-decoration: none;
    background: transparent;
    transition: background-color 0.15s, opacity 0.15s;
}

.ay-grup > * + * {
    border-top: 1px solid var(--ws-line-soft, #eef0f4);
}

a.ay-satir:hover {
    background: #f9fafb;
}

a.ay-satir:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

.ay-satir.is-kaydediliyor {
    opacity: 0.55;
    pointer-events: none;
}

.ay-gizli,
.ay-satir.ay-gizli {
    display: none !important;
}

.ay-metin {
    display: flex;
    flex: 1 1 220px;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.ay-metin strong {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--navy);
}

.ay-metin small {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--muted);
}

.ay-metin .ay-son {
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--subtle);
}

/* Tarih ve saat ayrı satırlara bölünmez ("24.10.2026" / "23:06") */
.ay-tarih {
    white-space: nowrap;
}

/* Denetimler satır sığmazsa alt satırda sağa yaslanır */
.ay-satir > .prf-switch,
.ay-satir > .btn,
.ay-satir > form,
.ay-satir > .ay-deger,
.ay-satir > .ay-ok,
.ay-satir > .ay-liste,
.ay-satir > .ay-secim {
    margin-left: auto;
}

.ay-deger {
    flex: none;
    max-width: 55%;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475467;
    text-align: right;
    overflow-wrap: anywhere;
}

.ay-iyi {
    color: #067647 !important;
}

.ay-uyari {
    color: #b54708 !important;
}

.ay-kotu {
    color: #d92d20 !important;
}

/* Durumlu değer: noktalı hap (Çevrimiçi, Kurulu, Kapalı...) */
.ay-deger.ay-iyi,
.ay-deger.ay-uyari,
.ay-deger.ay-kotu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    border-radius: 999px;
}

.ay-deger.ay-iyi::before,
.ay-deger.ay-uyari::before,
.ay-deger.ay-kotu::before {
    flex: none;
    width: 6px;
    height: 6px;
    content: "";
    background: currentColor;
    border-radius: 50%;
}

.ay-deger.ay-iyi { background: #ecfdf3; }
.ay-deger.ay-uyari { background: #fffaeb; }
.ay-deger.ay-kotu { background: #fef3f2; }

.ay-ok {
    display: inline-flex;
    flex: none;
    color: #98a2b3;
}

.ay-ok svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

a.ay-satir:hover .ay-ok {
    color: var(--navy);
}

.ay-etiketler {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-top: 6px;
}

.ay-etiketler .ay-son {
    margin: 0;
}

/* ------------------------------------------------------------------ İkonlar: yumuşak tonlu kutu */
.ay-ikon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: var(--ay-ikon);
    height: var(--ay-ikon);
    color: #475467;
    background: #f2f4f7;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.04);
}

.ay-ikon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ay-ikon-buyuk {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.ay-ikon-buyuk svg {
    width: 22px;
    height: 22px;
}

.ay-ikon-daire {
    border-radius: 50%;
}

.ay-r-mavi { color: #175cd3; background: #eff8ff; }
.ay-r-kirmizi { color: #d92d20; background: #fef3f2; }
.ay-r-yesil { color: #067647; background: #ecfdf3; }
.ay-r-turuncu { color: #c4320a; background: #fff6ed; }
.ay-r-mor { color: #6927da; background: #f4f3ff; }
.ay-r-civit { color: #3538cd; background: #eef4ff; }
.ay-r-turkuaz { color: #0e7090; background: #ecfdff; }
.ay-r-gri { color: #475467; background: #f2f4f7; }
.ay-r-koyugri { color: #344054; background: #eaecf0; }

/* ------------------------------------------------------------------ Denetimler */
/* Anahtar: yazı solda, sade; açıkken yeşil */
.ay-sayfa .prf-switch {
    flex-direction: row-reverse;
    gap: 10px;
    min-height: 36px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--subtle);
}

.ay-sayfa .prf-switch[aria-checked="true"] {
    color: #067647;
}

.ay-sayfa .prf-switch-yazi {
    min-width: 0;
    text-align: right;
}

.ay-sayfa .prf-switch:focus-visible {
    outline: 2px solid var(--brand);
}

.ay-sayfa .prf-switch:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Bölümlü seçim (iOS segmented control) */
.ay-sayfa .ay-secim {
    display: inline-flex;
    flex: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
    max-width: 60%;
    padding: 3px;
    background: #f2f4f7;
    border-radius: 10px;
}

.ay-sayfa .ayar-secim-btn {
    min-height: 32px;
    padding: 4px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475467;
    white-space: nowrap;
    background: transparent;
    border: 0;
    border-radius: 7px;
    transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.ay-sayfa .ayar-secim-btn:hover {
    color: var(--navy);
    background: rgba(255, 255, 255, 0.6);
}

.ay-sayfa .ayar-secim-btn[aria-pressed="true"] {
    color: var(--brand-dark);
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
}

.ay-sayfa .ayar-secim-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 0;
}

.ay-liste,
.ay-rol {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
}

.ay-sayfa .ay-select,
.ay-sayfa .ay-rol .form-control,
.ay-sayfa .ay-soylet .form-control {
    height: 40px;
    font-size: 0.9rem;
    background-color: #fff;
    border-color: var(--ws-line, #e4e7ec);
    border-radius: 10px;
    box-shadow: var(--ws-shadow, 0 1px 2px rgba(16, 24, 40, 0.05));
}

.ay-sayfa .ay-select:hover,
.ay-sayfa .ay-rol .form-control:hover {
    border-color: #d0d5dd;
}

.ay-sayfa .ay-select:focus,
.ay-sayfa .ay-rol .form-control:focus,
.ay-sayfa .ay-soylet .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(10, 92, 255, 0.12);
}

.ay-sayfa .ay-select {
    min-width: 220px;
    max-width: 300px;
}
/* Saat ayarı (Bakara başlama / bitiş): hazır düğmeler + saat kutusu */
.ay-sayfa .ay-saat {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.ay-sayfa .ay-saat-girdi {
    width: auto;
    min-width: 110px;
    height: 34px;
    padding-top: 2px;
    padding-bottom: 2px;
}
.ay-sayfa .ay-saat-girdi.is-secili {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--info-border);
}

.ay-sayfa .ay-rol .form-control {
    min-width: 150px;
}

.ay-sayfa .ay-satir .btn-sm,
.ay-sayfa .ay-soylet .btn {
    flex: none;
    height: 36px;
    padding: 0 14px;
    font-size: 0.86rem;
    white-space: nowrap;
    border-radius: 9px;
}

.ay-sayfa .ay-soylet .btn {
    height: 40px;
}

/* ------------------------------------------------------------------ Notlar, bildirim, boş arama */
.ay-not {
    margin: 0;
    padding: 14px var(--ay-pad);
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--muted);
    background: var(--ws-head-bg, #f9fafb);
    border-top: 1px solid var(--ws-line-soft, #eef0f4);
}

.ay-bolum-bas + .ay-not {
    border-top: 0;
}

.ay-not + .ay-grup-baslik {
    border-top: 0;
}

.ay-not a {
    font-weight: 600;
    color: var(--brand);
}

.ay-not strong {
    color: #344054;
}

.ay-not code,
.ay-bolum .alert code {
    padding: 1px 6px;
    font-size: 0.8em;
    background: #eaecf0;
    border-radius: 5px;
}

.ay-bolum > .alert {
    margin: 16px var(--ay-pad);
}

/* Kaydedildi / hata: altta ortada kısa süreli bildirim */
.ay-bildiri {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 90;
    width: min(460px, calc(100% - 32px));
    transform: translateX(-50%);
    pointer-events: none;
}

.ay-bildiri .alert {
    margin: 0;
    font-weight: 500;
    pointer-events: auto;
    box-shadow: 0 18px 40px -14px rgba(16, 24, 40, 0.35), 0 2px 6px rgba(16, 24, 40, 0.08);
    animation: ay-bildiri-gel 0.24s var(--ios-spring, ease-out);
}

@keyframes ay-bildiri-gel {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
}

.ay-ara-bos {
    margin: 0;
    padding: 40px 24px;
    color: var(--muted);
    text-align: center;
    background: var(--white);
    border: 1px dashed #d0d5dd;
    border-radius: 14px;
}

/* ------------------------------------------------------------------ Bilgisayar (Mac) ve İşlemler */
.ay-ses .ay-aralik {
    flex: 1 1 200px;
    max-width: 320px;
    accent-color: var(--brand);
}

/* Düğme sırası: soldan dizilir; ikonlu bir grubun içindeyse metin sütunuyla hizalanır */
.ay-satir.ay-dugmeler {
    gap: 8px;
    min-height: 0;
}

.ay-satir.ay-dugmeler > .btn {
    margin-left: 0;
}

/* İkonlu bir grupta ikonsuz satır (Sunucu, Android, düğme sırası) metin sütunuyla hizalanır */
.ay-grup:has(.ay-ikon) > .ay-satir:not(:has(> .ay-ikon, > .ay-avatar)) {
    padding-left: calc(var(--ay-pad) + var(--ay-ikon) + 14px);
}

.ay-soylet {
    display: flex;
    gap: 8px;
    padding: 14px var(--ay-pad);
}

.ay-soylet input {
    flex: 1 1 auto;
    min-width: 0;
}

.ay-is progress {
    width: 100%;
    height: 6px;
    margin-top: 8px;
    overflow: hidden;
    color: var(--brand);
    background: #eaecf0;
    border: 0;
    border-radius: 999px;
    appearance: none;
}

.ay-is progress::-webkit-progress-bar {
    background: #eaecf0;
    border-radius: 999px;
}

.ay-is progress::-webkit-progress-value {
    background: var(--brand);
    border-radius: 999px;
}

.ay-is progress::-moz-progress-bar {
    background: var(--brand);
    border-radius: 999px;
}

.ay-gunluk {
    border-top: 1px solid var(--ws-line-soft, #eef0f4);
}

.ay-gunluk summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px var(--ay-pad);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
}

.ay-gunluk summary::-webkit-details-marker {
    display: none;
}

/* Açılır ok (CSS üçgeni) */
.ay-gunluk summary::before {
    width: 0;
    height: 0;
    content: "";
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid #98a2b3;
    transition: transform 0.15s;
}

.ay-gunluk[open] summary::before {
    transform: rotate(90deg);
}

.ay-gunluk summary:hover {
    background: #f9fafb;
}

.ay-gunluk summary:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

.ay-gunluk pre {
    max-height: 340px;
    margin: 0 var(--ay-pad) 18px;
    padding: 14px 16px;
    overflow: auto;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.76rem;
    line-height: 1.6;
    color: #d0d5dd;
    white-space: pre-wrap;
    background: #101828;
    border-radius: 10px;
}

.ay-kullanici.is-pasif {
    opacity: 0.7;
}

/* ------------------------------------------------------------------ Uygulama (indir) */
.ay-apk {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px var(--ay-pad);
    background: linear-gradient(180deg, #f5f8ff 0%, #fff 100%);
    border-bottom: 1px solid var(--ws-line-soft, #eef0f4);
}

.ay-apk-logo {
    flex: none;
    width: 56px;
    height: 56px;
    padding: 6px;
    object-fit: contain;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.06), 0 6px 16px -6px rgba(11, 23, 51, 0.22);
}

.ay-apk-metin {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ay-apk-metin strong {
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--navy);
}

.ay-apk-metin small {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--muted);
}

.ay-apk .btn {
    flex: none;
    height: 42px;
    padding: 0 22px;
}

/* ------------------------------------------------------------------ Dar ekranlar */
@media (max-width: 1180px) {
    .ay-duzen {
        grid-template-columns: 244px minmax(0, 1fr);
        gap: 20px;
    }
}

/* Tablet ve telefon: sol sütun kalkar; arama üstte, bölümler yapışkan yatay sekmeler */
@media (max-width: 900px) {
    .ay-sayfa {
        --ay-ust: calc(var(--topbar-h, 64px) + 64px);
        --ay-kenar: 24px;
    }

    .ay-duzen {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ay-menu {
        display: contents;
    }

    .ay-hesap {
        display: none;
    }

    .ay-ara input {
        min-height: 44px;
        background: #fff;
        border-color: var(--ws-line, #e4e7ec);
        box-shadow: var(--ws-shadow, 0 1px 2px rgba(16, 24, 40, 0.05));
    }

    .ay-menu-liste {
        position: sticky;
        top: var(--topbar-h, 64px);
        z-index: 15;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        margin: 0 calc(-1 * var(--ay-kenar));
        padding: 8px var(--ay-kenar);
        overflow-x: auto;
        scrollbar-width: none;
        /* Düz zemin: bulanıklık (backdrop-filter) telefonda kaydırırken titremeye yol açar */
        background: var(--bg, #f4f6fa);
        border-bottom: 1px solid var(--ws-line-soft, #eef0f4);
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .ay-menu-liste::-webkit-scrollbar {
        display: none;
    }

    .ay-menu-grup {
        display: none;
    }

    .ay-menu ul {
        display: flex;
        gap: 6px;
    }

    .ay-menu a[data-bolum] {
        flex: none;
        gap: 8px;
        min-height: 38px;
        padding: 5px 14px 5px 6px;
        font-size: 0.86rem;
        white-space: nowrap;
        background: #fff;
        border: 1px solid var(--ws-line, #e4e7ec);
        border-radius: 999px;
    }

    .ay-menu a[data-bolum][aria-current="true"] {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
    }

    .ay-menu a[data-bolum][aria-current="true"]::before {
        display: none;
    }

    .ay-menu a[data-bolum][aria-current="true"] .ay-ikon {
        color: #fff;
        background: rgba(255, 255, 255, 0.2);
        box-shadow: none;
    }

    .ay-menu .ay-ikon {
        width: 26px;
        height: 26px;
        border-radius: 50%;
    }

    .ay-menu .ay-ikon svg {
        width: 15px;
        height: 15px;
    }

    .ay-menu-ad {
        overflow: visible;
    }

    .ay-menu-deger {
        display: none;
    }
}

@media (max-width: 640px) {
    .ay-sayfa {
        --ay-pad: 16px;
        --ay-kenar: 16px;
    }

    .ay-icerik {
        gap: 14px;
    }

    .ay-bolum-bas {
        padding: 16px var(--ay-pad);
    }

    /* İkon başlıkla aynı hizada (çok satırlı satırlarda ortada kalmaz); anahtar ortada */
    .ay-satir {
        gap: 10px 12px;
        min-height: 60px;
    }

    .ay-satir:has(> .ay-metin > small, > .ay-metin > .ay-etiketler) {
        align-items: flex-start;
    }

    .ay-satir > .prf-switch,
    .ay-satir > .ay-deger,
    .ay-satir > .ay-ok,
    .ay-satir > .btn,
    .ay-satir > form {
        align-self: center;
    }

    .ay-metin {
        flex-basis: 140px;
    }

    /* Başlık ve iki ikon düğme (Denetim kaydı, Sağlık) tek satırda; ayrı satıra düşüp boşluk bırakmaz */
    .ay-sayfa .ph-row-geri:has(> .ph-actions > :nth-child(2)) {
        flex-direction: row;
        align-items: center;
    }

    .ay-sayfa .ph-row-geri:has(> .ph-actions > :nth-child(2)) > .ph-actions {
        flex-wrap: nowrap;
        margin-left: auto;
    }

    .ay-sayfa .ph {
        margin-bottom: 16px;
    }

    /* Salt okunur satır (durum, sürüm, Mac bilgisi): değer metnin yanında kalır, gerekirse kendi içinde kırılır.
       Alt satıra düşüp sağa yaslanan yalnız değer kalmaz; satır yüksekliği değer değişince oynamaz */
    .ay-satir.ay-satir-bilgi {
        flex-wrap: nowrap;
        align-items: center;
    }

    .ay-satir-bilgi > .ay-metin {
        flex: 1 1 0;
    }

    .ay-satir-bilgi > .ay-deger {
        flex: 0 1 auto;
        max-width: 50%;
    }

    /* Eylem satırı: kısa düğme (Gönder) metnin yanında; uzun düğme (Telefonda temizle) metni üç satıra
       sıkıştırmak yerine alt satıra, sağa geçer */
    .ay-satir.js-eylem > .ay-metin {
        flex: 1 1 60%;
    }

    /* Telefonda anahtarın yazısı yok (iOS gibi); durum anahtarın kendisinden okunur */
    .ay-sayfa .prf-switch-yazi {
        display: none;
    }

    .ay-sayfa .prf-switch {
        min-height: 32px;
        padding: 2px;
    }

    /* Seçim ve liste: metnin altında, ikon hizasından başlayıp tam genişlik */
    .ay-satir-secimli > .ay-secim,
    .ay-satir-liste > .ay-liste,
    .ay-satir > .ay-rol {
        flex: 1 1 100%;
        max-width: none;
        margin-left: calc(var(--ay-ikon) + 12px);
    }

    /* Bölümlü seçim: kelimeler hiçbir zaman ortadan bölünmez ("Bilgis/ayar" olmaz). Sığmazsa seçenekler
       eşit genişlikte ikinci sıraya geçer */
    .ay-sayfa .ay-secim {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .ay-sayfa .ayar-secim-btn {
        flex: 1 1 auto;
        min-width: max-content;
        padding: 6px 10px;
        line-height: 1.25;
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: keep-all;
    }

    /* Tam dört seçenek (Düşük / Orta / Yüksek / Maks, kilit süresi...): düzgün 2 × 2 (3 + 1 kalmaz) */
    .ay-sayfa .ay-secim:has(> :nth-child(4)):not(:has(> :nth-child(5))) {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ay-sayfa .ay-secim:has(> :nth-child(4)):not(:has(> :nth-child(5))) > .ayar-secim-btn {
        min-width: 0;
    }

    .ay-sayfa .ay-select,
    .ay-sayfa .ay-rol .form-control {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }

    .ay-deger {
        max-width: 100%;
    }

    .ay-apk {
        flex-wrap: wrap;
    }

    .ay-apk .btn {
        width: 100%;
    }

    .ay-bildiri {
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ay-sayfa {
        scroll-behavior: auto;
    }

    .ay-bildiri .alert {
        animation: none;
    }
}

/* ===================================================================== Agent Ekibi uygulamasının içinde (html.ae-uyg) */
/* Uygulama (2.3.0+) siteyi kendi arayüzüyle açar: iOS tarzı gezinme çubuğu (‹ Ana Ekran · başlık · bildirimler · menü),
   düz beyaz çubuk, dokunma vurgusu yok, uygulama gibi basma tepkisi. Tarayıcıda site değişmez (app/mobil.php). */
html.ae-uyg {
    --topbar-h: 56px;
    -webkit-tap-highlight-color: transparent;
}

html.ae-uyg .topbar {
    gap: 0;
    height: var(--topbar-h);
    padding: 0 6px 0 2px;
    background: #fff;
    border-bottom: 0;
    box-shadow: 0 0.5px 0 rgba(60, 60, 67, 0.29);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    -webkit-user-select: none;
    user-select: none;
}

html.ae-uyg .tb-search {
    display: none;
}

.tb-uyg-geri {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0;
    height: 44px;
    padding: 0 10px 0 2px;
    font-family: var(--ios-font);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--brand);
    text-decoration: none;
    border-radius: 10px;
    transition: opacity 0.15s;
}

.tb-uyg-geri svg {
    width: 28px;
    height: 28px;
    margin-right: -2px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tb-uyg-geri:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 0;
}

/* "‹ Ana Ekran" yerine logo: dokununca uygulamanın ana ekranı */
.tb-uyg-logo {
    padding: 0 8px 0 12px;
}

.tb-uyg-logo img {
    display: block;
    width: auto;
    height: 30px;
    max-width: 130px;
    object-fit: contain;
}

/* Ortada sayfa başlığı (kaydırınca belirir) */
.tb-uyg-baslik {
    position: absolute;
    top: 0;
    left: 50%;
    max-width: calc(100% - 270px);
    margin: 0;
    overflow: hidden;
    font-family: var(--ios-font);
    font-size: 17px;
    font-weight: 600;
    line-height: var(--topbar-h);
    letter-spacing: -0.01em;
    color: var(--navy);
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.topbar-uyg.is-baslikli .tb-uyg-baslik {
    opacity: 1;
    transform: translate(-50%, 0);
}

html.ae-uyg .tb-ikonlar {
    margin-left: auto;
}

/* Bildirim paneli (mobil): uygulama çubuğunda backdrop-filter yok, bu yüzden fixed panelin kapsayıcısı üst çubuk
   değil ekran olur ve "top: 100%" paneli ekranın altına iter (zile basınca görünmez). Konum ekrana göre verilir;
   üst çubuk sticky (top: 0) olduğundan her zaman ekranın en üstündedir. */
@media (max-width: 640px) {
    html.ae-uyg .bld-panel {
        top: var(--topbar-h);
        border-top: 0; /* Çubuğun alt çizgisi (gölge) yeterli: çift çizgi olmasın */
    }
}

/* Zil açıkken vurgulu kalır (dokunmatikte :hover takılı kalıp rengi sıfırlamasın) */
html.ae-uyg .tb-ikon[aria-expanded="true"],
html.ae-uyg .tb-ikon[aria-expanded="true"]:hover {
    color: var(--brand);
    background: #eef3fd;
}

/* Panel açılışı: hafifçe aşağı süzülerek belirir */
@media (prefers-reduced-motion: no-preference) {
    html.ae-uyg .bld-panel:not([hidden]) {
        animation: bld-uyg-gir 0.18s ease-out;
    }
}

@keyframes bld-uyg-gir {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Basma tepkisi: iOS gibi soluklaşma (hover yok) */
html.ae-uyg .tb-uyg-geri:active,
html.ae-uyg .tb-ikon:active,
html.ae-uyg .mnav-toggle:active {
    opacity: 0.35;
}

html.ae-uyg .tb-ikon:hover,
html.ae-uyg .mnav-toggle:hover {
    color: inherit;
}

@media (max-width: 360px) {
    .tb-uyg-geri {
        font-size: 16px;
    }

    .tb-uyg-baslik {
        max-width: calc(100% - 230px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tb-uyg-baslik {
        transition: none;
    }
}

/* ===================================================================== Görev ekle: ödeme olarak da ekle (app/views/gorev_form.php) */
/* Tutar girilince varsayılan olarak açık kutu: "Gelecek ödeme olarak da eklenecek" + ödeme şekli ve tarihi.
   "Ödeme olarak eklemeyi iptal et" ile tek satıra iner ("Ödeme olarak ekle" ile geri gelir). */
.gf-odeme {
    padding: 16px;
    background: linear-gradient(180deg, #f3faf6 0%, #fbfdfc 100%);
    border: 1px solid #c9ead6;
    border-radius: 14px;
    transition: background-color 0.2s, border-color 0.2s;
}

.gf-odeme[hidden] {
    display: none;
}

.gf-odeme.is-kapali {
    padding: 12px 16px;
    background: var(--ws-head-bg, #f9fafb);
    border-color: var(--ws-line, #e4e7ec);
    border-style: dashed;
}

/* JS varsa onay kutusu gizli (düğmeler onu işaretler); JS yoksa görünür ve tek denetim odur */
.has-js .gf-odeme-kutu {
    display: none;
}

.gf-odeme-kutu {
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--navy);
}

.gf-odeme-bas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.gf-odeme-ikon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #067647;
    background: #dcfae6;
    border-radius: 12px;
}

.gf-odeme-ikon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gf-odeme-metin {
    display: flex;
    flex: 1 1 240px;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gf-odeme-metin strong {
    font-size: 0.98rem;
    font-weight: 650;
    color: var(--navy);
}

.gf-odeme-metin small {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--muted);
}

.gf-odeme-tutar {
    font-weight: 700;
    color: #067647;
    white-space: nowrap;
}

.gf-odeme-tutar:empty {
    display: none;
}

.gf-odeme .link-btn {
    flex: none;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.gf-odeme-iptal {
    color: var(--error);
}

.gf-odeme-iptal:hover {
    color: #b42318;
}

.gf-odeme-alanlar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #d7efe1;
}

.gf-odeme-alanlar .form-group {
    margin-bottom: 0;
}

.gf-odeme-alanlar .form-control {
    background-color: #fff;
}

.gf-odeme-kapali {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 14px;
    font-size: 0.9rem;
    color: var(--muted);
}

.gf-odeme-kapali[hidden],
.gf-odeme-acik[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .gf-odeme {
        padding: 14px;
    }

    .gf-odeme-alanlar {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .gf-odeme-bas .gf-odeme-iptal {
        margin-left: 54px;
    }
}

/* =============================================================================
   Gelişmiş ürün: form (/gorev/urun/ekle, /duzenle), yönetici detayı (/gorev/urun/{id}) ve tanıtım sayfası eklemeleri
   (SSS, öne çıkan özellikler, teknik tablo, KDV / indirim, video, sipariş formu)
   ============================================================================= */

/* ---------- Form: bölüm gezintisi ---------- */
.uf-bolumler {
    position: sticky;
    top: calc(var(--topbar-h, 68px) + 8px);
    z-index: 5;
    display: flex;
    gap: 6px;
    margin: -4px 0 18px;
    padding: 6px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 12px;
    scrollbar-width: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.uf-bolumler::-webkit-scrollbar {
    display: none;
}

.uf-bolumler a {
    flex: none;
    padding: 6px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px;
}

.uf-bolumler a:hover,
.uf-bolumler a:focus-visible {
    color: var(--brand-dark);
    background: var(--info-bg);
}

.urun-form .tf-bolum {
    scroll-margin-top: calc(var(--topbar-h, 68px) + 70px);
}

.uf-bolum-not {
    margin: -2px 0 10px;
}

.uf-fiyat-ozet {
    margin: -6px 0 0;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--info-text);
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 10px;
}

.urun-form textarea.uf-ozet {
    min-height: 64px;
}

/* ---------- Form: tekrarlanan satırlar ---------- */
.uf-tekrar-liste {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: uf-satir;
}

.uf-tekrar-satir {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 12px;
    background: var(--ws-head-bg, #f9fafb);
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 12px;
    counter-increment: uf-satir;
}

.uf-tekrar.is-hata .uf-tekrar-satir {
    border-color: var(--error-border);
}

.uf-tekrar-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: 24px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-dark);
    background: var(--info-bg);
    border-radius: 8px;
}

.uf-tekrar-no::before {
    content: counter(uf-satir);
}

.uf-tekrar-alanlar {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 10px;
    min-width: 0;
}

.uf-tekrar-alanlar:has(.is-genis) {
    grid-template-columns: minmax(0, 1fr);
}

.uf-tekrar-alan {
    display: grid;
    gap: 4px;
    min-width: 0;
    margin: 0;
}

.uf-tekrar-etiket {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

.uf-tekrar-alan textarea {
    min-height: 76px;
    resize: vertical;
}

.uf-tekrar-dugmeler {
    display: flex;
    gap: 4px;
    margin-top: 22px;
}

.uf-tekrar-dugmeler .gv-icon-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.uf-tekrar-alt {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

/* Kapak seçimi (mevcut görseller) */
.uf-galeri .proje-form-gorsel {
    position: relative;
}

.uf-kapak-sec {
    position: absolute;
    top: 6px;
    left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.18);
    cursor: pointer;
}

.uf-kapak-sec:has(input:checked) {
    color: #fff;
    background: var(--brand);
}

.uf-kapak-sec input {
    margin: 0;
    accent-color: #fff;
}

@media (max-width: 640px) {
    .uf-tekrar-satir {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .uf-tekrar-no {
        display: none;
    }

    .uf-tekrar-alanlar {
        grid-template-columns: minmax(0, 1fr);
    }

    .uf-tekrar-dugmeler {
        justify-content: flex-end;
        margin-top: 0;
    }
}

/* ---------- Yönetici ürün detayı ---------- */
.ud-slogan {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 650;
    line-height: 1.4;
    color: var(--navy);
}

.ud-ozet {
    margin: 0 0 14px;
    padding: 10px 14px;
    color: var(--text);
    background: var(--ws-head-bg, #f9fafb);
    border-left: 3px solid var(--brand);
    border-radius: 0 8px 8px 0;
}

.ud-video {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    font-weight: 600;
}

.ud-video svg,
.ud-ozellikler svg,
.ud-kontrol svg {
    flex: none;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ud-ozellikler {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ud-ozellikler li {
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 10px;
}

.ud-ozellikler svg {
    margin-top: 2px;
    color: var(--success);
}

.ud-ozellikler strong {
    display: block;
    color: var(--navy);
}

.ud-ozellikler span {
    display: block;
    margin-top: 2px;
    font-size: 0.88rem;
    color: var(--muted);
}

.ud-teknik,
.tn-teknik {
    width: 100%;
    border-collapse: collapse;
}

.ud-teknik th,
.ud-teknik td {
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--ws-line-soft, #eef0f4);
}

.ud-teknik th {
    width: 38%;
    font-weight: 600;
    color: var(--muted);
}

.ud-sss details {
    border-bottom: 1px solid var(--ws-line-soft, #eef0f4);
}

.ud-sss summary {
    padding: 11px 0;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
}

.ud-sss-cevap {
    padding: 0 0 12px;
    line-height: 1.6;
    color: var(--text);
}

.ud-doluluk-cubuk {
    height: 8px;
    margin-bottom: 14px;
    overflow: hidden;
    background: var(--ws-line-soft, #eef0f4);
    border-radius: 999px;
}

.ud-doluluk-dolu {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand), #3d8bff);
    border-radius: inherit;
}

.ud-w-0 { width: 2%; }
.ud-w-10 { width: 10%; }
.ud-w-20 { width: 20%; }
.ud-w-30 { width: 30%; }
.ud-w-40 { width: 40%; }
.ud-w-50 { width: 50%; }
.ud-w-60 { width: 60%; }
.ud-w-70 { width: 70%; }
.ud-w-80 { width: 80%; }
.ud-w-90 { width: 90%; }
.ud-w-100 { width: 100%; background: var(--success); }

.ud-kontrol {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    font-size: 0.88rem;
    list-style: none;
}

.ud-kontrol li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.ud-kontrol li.is-tamam {
    color: var(--text);
}

.ud-kontrol li.is-tamam svg {
    color: var(--success);
}

.ud-kontrol a {
    font-weight: 600;
}

.sp-urun-bag {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---------- Tanıtım sayfası: üst çubuk gezintisi ---------- */
.tn-bar-nav {
    display: flex;
    gap: 2px;
    min-width: 0;
    margin: 0 auto;
}

.tn-bar-nav a {
    padding: 8px 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 10px;
}

.tn-bar-nav a:hover,
.tn-bar-nav a:focus-visible {
    color: var(--navy);
    background: #f2f4f7;
}

@media (max-width: 1100px) {
    .tn-bar-nav {
        display: none;
    }
}

/* ---------- Hero eklemeleri ---------- */
.tn-ust-satir {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.tn-ust-satir .tn-ust-yazi {
    margin: 0;
}

.tn-kategori {
    display: inline-block;
    margin: 0;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 999px;
}

.tn-slogan {
    margin: -4px 0 14px;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--brand-dark);
}

.tn-fiyat {
    min-width: 260px;
}

.tn-fiyat-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tn-indirim {
    padding: 3px 9px;
    font-size: 0.78rem;
    font-weight: 750;
    color: #fff;
    background: #e5484d;
    border-radius: 999px;
}

.tn-fiyat-satir {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}

.tn-fiyat-eski {
    font-size: 1.05rem;
    color: var(--subtle);
}

.tn-fiyat-toplam {
    display: block;
    font-weight: 600;
    color: var(--text);
}

.tn-teslim {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    border-top: 1px dashed var(--ws-line, #e4e7ec);
}

.tanitim-page .tn-teslim svg {
    width: 16px;
    height: 16px;
    color: var(--brand);
}

.tn-hero-gorsel .tn-hero-kucuk {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.tn-hero-gorsel .tn-hero-kucuk a {
    position: relative;
    border-radius: 12px;
    box-shadow: none;
}

.tn-hero-gorsel .tn-hero-kucuk img {
    aspect-ratio: 4 / 3;
}

.tn-hero-kucuk-daha {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 750;
    color: #fff;
    background: rgba(11, 23, 51, 0.55);
}

/* ---------- Öne çıkan özellikler ---------- */
.tn-ozellikler {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tn-ozellikler li {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tn-ozellikler li:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -26px rgba(11, 23, 51, 0.45);
}

.tn-ozellik-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    color: var(--brand);
    background: var(--info-bg);
    border-radius: 12px;
}

.tanitim-page .tn-ozellik-ikon svg {
    stroke-width: 2.4;
}

.tn-ozellikler h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--navy);
}

.tn-ozellikler p {
    margin: 0;
    line-height: 1.55;
    color: var(--muted);
}

/* ---------- Video ---------- */
.tn-kap-orta {
    max-width: 960px;
}

.tn-video {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--navy);
    border-radius: 18px;
    box-shadow: 0 30px 60px -34px rgba(11, 23, 51, 0.6);
}

.tn-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tn-video-alt {
    margin: 12px 0 0;
    font-size: 0.9rem;
    text-align: center;
}

.tn-video-alt a,
.tn-sss-alt a {
    font-weight: 600;
    color: var(--brand);
}

/* ---------- Ürün hakkında + bir bakışta ---------- */
.tn-detay-ic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    align-items: start;
    gap: 48px;
}

.tn-metin {
    white-space: normal;
}

.tn-metin p {
    margin: 0 0 1em;
}

.tn-metin p:last-child {
    margin-bottom: 0;
}

.tn-etiketler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.tn-etiketler li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 0.85rem;
    color: var(--muted);
    background: #f2f4f7;
    border-radius: 999px;
}

.tanitim-page .tn-etiketler svg {
    width: 14px;
    height: 14px;
}

.tn-bakis {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 10px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 18px;
    box-shadow: 0 24px 48px -36px rgba(11, 23, 51, 0.5);
}

.tn-bakis h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: var(--navy);
}

.tn-bakis dl {
    display: grid;
    gap: 0;
    margin: 0 0 6px;
}

.tn-bakis dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--ws-line-soft, #eef0f4);
}

.tn-bakis dt {
    flex: none;
    max-width: 45%;
    color: var(--muted);
}

.tn-bakis dd {
    min-width: 0;
    margin: 0;
    font-weight: 600;
    color: var(--navy);
    text-align: right;
    overflow-wrap: anywhere;
}

.tn-bakis dd small {
    display: block;
    font-weight: 400;
    color: var(--muted);
}

/* ---------- Teknik özellikler ---------- */
.tn-teknik {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 14px;
    border-collapse: separate;
    border-spacing: 0;
}

.tn-teknik th,
.tn-teknik td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--ws-line-soft, #eef0f4);
}

.tn-teknik tr:last-child th,
.tn-teknik tr:last-child td {
    border-bottom: 0;
}

.tn-teknik th {
    width: 38%;
    font-weight: 650;
    color: var(--navy);
    background: #f8fafc;
}

.tn-teknik td {
    line-height: 1.55;
    color: var(--text);
    overflow-wrap: anywhere;
}

/* ---------- SSS ---------- */
.tn-sss {
    display: grid;
    gap: 10px;
}

.tn-sss-oge {
    background: #fff;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tn-sss-oge[open] {
    border-color: #c7d7fe;
    box-shadow: 0 16px 32px -28px rgba(10, 92, 255, 0.6);
}

.tn-sss-oge summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    font-weight: 650;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
}

.tn-sss-oge summary::-webkit-details-marker {
    display: none;
}

.tn-sss-oge summary::after {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    margin-left: auto;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.15s ease;
}

.tn-sss-oge[open] summary::after {
    transform: rotate(-135deg) translateY(-3px);
}

.tn-sss-oge summary:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 14px;
}

.tn-sss-ikon {
    display: inline-flex;
    flex: none;
    color: var(--brand);
}

.tn-sss-soru {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tn-sss-cevap {
    padding: 0 18px 18px 50px;
    line-height: 1.7;
    color: var(--text);
    overflow-wrap: anywhere;
}

.tn-sss-alt {
    margin: 22px 0 0;
    text-align: center;
    color: var(--muted);
}

/* ---------- Sipariş / talep formu ---------- */
.tn-sekme {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    background: #f2f4f7;
    border-radius: 12px;
}

.tn-sekme a {
    padding: 10px;
    font-weight: 650;
    color: var(--muted);
    text-align: center;
    text-decoration: none;
    border-radius: 9px;
}

.tn-sekme a[aria-current="page"] {
    color: var(--navy);
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.tn-sekme a:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.tn-sepet {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 12px 16px;
    margin-bottom: 16px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 14px;
}

.tn-sepet-urun {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tn-sepet-urun img {
    flex: none;
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
}

.tn-sepet-urun strong {
    display: block;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.tn-sepet-urun span {
    font-size: 0.86rem;
    color: var(--muted);
}

.tn-form .tn-sepet-adet {
    margin: 0;
}

.tn-sepet-adet label {
    font-size: 0.8rem;
}

.tn-sepet-toplam {
    display: flex;
    grid-column: 1 / -1;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}

.tn-sepet-toplam span {
    color: var(--muted);
}

.tn-sepet-toplam strong {
    font-size: 1.35rem;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.tn-form-ikili {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}

.tn-fatura {
    margin-bottom: 14px;
    padding: 0 14px;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 12px;
}

.tn-fatura summary {
    padding: 12px 0;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
}

.tn-fatura[open] summary {
    margin-bottom: 4px;
}

.tn-form fieldset.tn-odeme {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
}

.tn-odeme legend {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--navy);
}

.tn-odeme-secenek {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tn-odeme-secenek:has(input:checked) {
    background: #f5f8ff;
    border-color: var(--brand);
}

.tn-odeme-secenek input {
    flex: none;
    margin-top: 3px;
    accent-color: var(--brand);
}

.tn-odeme-secenek strong {
    display: block;
    color: var(--navy);
}

.tn-odeme-secenek small {
    display: block;
    color: var(--muted);
}

.tn-guvenli {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.tanitim-page .tn-guvenli svg {
    flex: none;
    color: var(--success);
}

.tn-siparis-ozet {
    display: grid;
    margin: 18px 0;
    padding: 4px 16px;
    background: #f8fafc;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 14px;
}

.tn-siparis-ozet > div,
.tn-banka dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ws-line-soft, #eef0f4);
}

.tn-siparis-ozet > div:last-child,
.tn-banka dl > div:last-child {
    border-bottom: 0;
}

.tn-siparis-ozet dt,
.tn-banka dt {
    color: var(--muted);
}

.tn-siparis-ozet dd,
.tn-banka dd {
    margin: 0;
    font-weight: 600;
    color: var(--navy);
    text-align: right;
    overflow-wrap: anywhere;
}

.tn-banka {
    margin-bottom: 16px;
    padding: 16px;
    background: #f5f8ff;
    border: 1px solid #c7d7fe;
    border-radius: 14px;
}

.tn-banka h4 {
    margin: 0 0 6px;
    color: var(--navy);
}

.tn-banka dl {
    margin: 0 0 8px;
}

.tn-banka p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.tn-iban {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-variant-numeric: tabular-nums;
}

.tn-kopyala {
    padding: 4px 10px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--brand);
    cursor: pointer;
    background: #fff;
    border: 1px solid #c7d7fe;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .tn-detay-ic {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .tn-bakis {
        position: static;
    }
}

@media (max-width: 640px) {
    .tn-fiyat {
        min-width: 0;
    }

    .tn-hero-gorsel .tn-hero-kucuk {
        gap: 6px;
        margin-top: 8px;
    }

    .tn-hero-gorsel .tn-hero-kucuk a {
        border-radius: 8px;
    }

    .tn-ozellikler {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .tn-ozellikler li {
        padding: 16px;
    }

    .tn-video {
        border-radius: 12px;
    }

    .tn-teknik th,
    .tn-teknik td {
        display: block;
        width: auto;
        padding: 10px 14px;
    }

    .tn-teknik th {
        padding-bottom: 2px;
        border-bottom: 0;
    }

    .tn-sss-cevap {
        padding: 0 16px 16px;
    }

    .tn-form-ikili {
        grid-template-columns: minmax(0, 1fr);
    }

    .tn-sepet {
        grid-template-columns: minmax(0, 1fr) 84px;
    }
}

/* ---------- Ürün: ekran görüntüleri ve videolar (form, yönetici detayı, tanıtım sayfası) ---------- */
.uf-medya-satir {
    grid-template-columns: auto 132px minmax(0, 1fr) auto;
}

.uf-medya-onizleme {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eef1f6;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 10px;
}

.uf-medya-onizleme img,
.uf-medya-onizleme video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0b1733;
}

.uf-medya-onizleme.is-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    background: var(--info-bg);
}

.uf-medya-onizleme.is-link svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.uf-medya-alanlar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.uf-medya-bilgi {
    font-size: 0.8rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.uf-medya-kaldir {
    width: fit-content;
    font-size: 0.85rem;
}

.uf-yukle-etiket {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
}

.ud-videolar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ud-videolar video,
.ud-video-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b1733;
    border-radius: 10px;
}

.ud-video-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #0b1733, #1f3b8a);
}

.ud-video-link svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ud-video-ad {
    display: grid;
    gap: 2px;
    margin-top: 8px;
}

.ud-video-ad strong {
    color: var(--navy);
}

.ud-video-ad span {
    font-size: 0.82rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.ud-ekranlar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ud-ekranlar a {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 10px;
}

.ud-ekranlar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ud-ekranlar span {
    display: block;
    margin-top: 6px;
    font-size: 0.84rem;
    color: var(--text);
}

.ud-ekranlar span.is-bos {
    color: var(--subtle);
}

/* Tanıtım: ekran görüntüleri (açıklamalı) */
.tn-ekranlar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tn-ekranlar figure {
    margin: 0;
}

.tn-ekranlar a {
    display: block;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ws-line, #e4e7ec);
    border-radius: 14px;
    box-shadow: 0 18px 36px -30px rgba(11, 23, 51, 0.55);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tn-ekranlar a:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px -26px rgba(11, 23, 51, 0.55);
}

.tn-ekranlar a:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}

.tn-ekranlar img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    background: #f2f4f7;
}

.tn-ekranlar figcaption {
    margin-top: 10px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--navy);
}

/* Tanıtım: videolar */
.tn-video-oge {
    margin: 0;
}

.tn-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.tn-video-oge figcaption {
    margin-top: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--navy);
}

.tn-video-oge figcaption a {
    font-weight: 600;
    color: var(--brand);
}

.tn-video-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.tn-video-liste .tn-video {
    border-radius: 14px;
    box-shadow: 0 18px 36px -28px rgba(11, 23, 51, 0.6);
}

.tn-video-liste figcaption {
    font-size: 0.95rem;
    text-align: left;
}

@media (max-width: 640px) {
    .uf-medya-satir {
        grid-template-columns: minmax(0, 1fr);
    }

    .uf-medya-onizleme {
        max-width: 240px;
    }

    .tn-ekranlar {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .tn-video-liste {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

/* ==========================================================================
   IDE Seçimi (/ayarlar/ide) ve IDE kullanım raporu (/ayarlar/ide-rapor)
   ========================================================================== */
.ide-sayfa {
    --ay-ikon: 36px;
}
.ide-sayfa .prf-switch:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.ide-not {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}
.ide-sekme {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.ide-sekme a {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}
.ide-sekme a.is-aktif {
    color: var(--brand-dark);
    border-color: var(--info-border);
    background: var(--info-bg);
}
.ide-sekme a:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.ide-kart {
    margin-bottom: 18px;
    padding: 20px;
    scroll-margin-top: 90px;
}
.ide-kart.is-kapali {
    background: #fafbfc;
}
.ide-kart.is-kapali .ide-kart-bas .ay-ikon {
    filter: grayscale(1);
    opacity: 0.6;
}
.ide-kart-bas {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.ide-kart-yazi {
    flex: 1 1 auto;
    min-width: 0;
}
.ide-kart-yazi h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0 0 4px;
    font-size: 1.08rem;
    color: var(--navy);
}
.ide-no {
    color: var(--subtle);
    font-weight: 600;
}
.ide-kart-yazi p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}
.ide-kart-dugme,
.ide-hesap-dugme {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.ide-kart-dugme form,
.ide-hesap-dugme form,
.ide-satir-ici {
    margin: 0;
}
.btn-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding-left: 8px;
    padding-right: 8px;
}
.btn-ikon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ide-bilgi {
    display: grid;
    gap: 8px;
    margin: 16px 0 6px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}
.ide-bilgi-satir {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.9rem;
}
.ide-bilgi-satir small {
    color: var(--muted);
}
.ide-bilgi-ad {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 76px;
    font-weight: 600;
    color: var(--navy);
}
.ide-bilgi-ad svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
}
.ide-model {
    display: flex;
    flex: 1 1 280px;
    gap: 8px;
    margin: 0;
}
.ide-model .form-control {
    max-width: 320px;
    height: 36px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 0.9rem;
}
.ide-alt-baslik {
    margin: 18px 0 10px;
    font-size: 0.95rem;
    color: var(--navy);
}
.ide-bos {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.9rem;
}
.ide-hesaplar {
    display: grid;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}
.ide-hesap {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    scroll-margin-top: 90px;
}
.ide-hesap:target {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--info-border);
}
.ide-hesap.is-kapali {
    background: #fafbfc;
    opacity: 0.85;
}
.ide-hesap-ust {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.ide-hesap-no {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--info-bg);
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 700;
}
.ide-hesap-metin {
    display: grid;
    flex: 1 1 auto;
    gap: 3px;
    min-width: 0;
}
.ide-hesap-metin strong {
    color: var(--navy);
    overflow-wrap: anywhere;
}
.ide-hesap-metin small {
    color: var(--muted);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}
.ide-hesap-durum {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}
.ide-kotu {
    color: var(--error) !important;
}
.ide-duzenle,
.ide-ekle {
    margin-top: 10px;
}
.ide-duzenle > summary {
    display: inline-block;
    color: var(--brand-dark);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}
.ide-ekle > summary {
    display: inline-flex;
    list-style: none;
    cursor: pointer;
}
.ide-ekle > summary::-webkit-details-marker {
    display: none;
}
.ide-form {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}
.ide-form .form-group {
    margin-bottom: 14px;
}
.ide-form-secenek {
    display: grid;
    gap: 8px;
}
.ide-form-secenek .field-help {
    margin: -2px 0 4px 30px;
}
.ide-form-dugme {
    display: flex;
    justify-content: flex-end;
}
.ide-sil {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0 0;
}
/* Nasıl bağlanır? (IDE kartı) */
.ide-rehber {
    margin: 10px 0 0;
    padding: 10px 14px;
    border: 1px solid var(--info-border);
    border-radius: var(--radius);
    background: var(--info-bg);
}
.ide-rehber > summary {
    color: var(--brand-dark);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.ide-rehber ol {
    display: grid;
    gap: 6px;
    margin: 10px 0 2px;
    padding-left: 20px;
    color: var(--text, inherit);
    font-size: 0.88rem;
    line-height: 1.55;
}
/* Panelden giriş (hesabın altında) */
.ide-giris {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--info-border);
    border-radius: var(--radius);
    background: var(--info-bg);
}
/* display: flex / grid "hidden" niteliğini ezmesin */
.ide-giris[hidden],
.ide-giris [hidden] {
    display: none !important;
}
.ide-giris.is-tamam {
    border-color: #abefc6;
    background: #ecfdf3;
}
.ide-giris.is-hata {
    border-color: var(--error-border, #fecdca);
    background: var(--error-bg);
}
.ide-giris.is-iptal {
    border-color: var(--border);
    background: var(--bg);
}
.ide-giris-bas {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}
.ide-giris-bas strong {
    color: var(--navy);
}
.ide-giris-bas small,
.ide-giris-ipucu,
.ide-giris-yenile {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}
.ide-giris-satir {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.ide-giris-kod {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    user-select: all;
}
.ide-giris-yaz {
    display: grid;
    gap: 6px;
    margin: 0;
}
.ide-giris-yaz label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--navy);
}
.ide-giris-yaz.is-istek label {
    color: var(--brand-dark);
}
.ide-giris-yaz-alan {
    display: flex;
    gap: 8px;
}
.ide-giris-yaz-alan .btn {
    flex: none;
    white-space: nowrap;
}
.ide-giris-yaz-alan .form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.88rem;
}
.ide-giris-ekran > summary {
    color: var(--muted);
    font-size: 0.84rem;
    cursor: pointer;
}
.ide-giris-ekran pre {
    max-height: 220px;
    margin: 6px 0 0;
    padding: 8px 10px;
    overflow: auto;
    border-radius: 6px;
    background: #101828;
    color: #e4e7ec;
    font-size: 0.78rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.ide-giris-dugme {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ide-giris-dugme form {
    margin: 0;
}
.ide-bildiri {
    position: sticky;
    top: 70px;
    z-index: 5;
}
.ide-yardim ul {
    margin: 10px 0 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
.ide-yardim h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--navy);
}
/* Rapor */
.ide-donem {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
}
.ide-uyari-liste {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0 20px 18px;
    list-style: none;
}
.ide-uyari {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: #fff6ed;
    font-size: 0.9rem;
}
.ide-uyari.is-kritik {
    background: var(--error-bg);
}
.ide-uyari a {
    margin-left: auto;
    font-weight: 600;
    color: var(--brand-dark);
}
.ide-tablo small.gv-yetkili {
    display: block;
}
.ide-tablo tr.is-pasif {
    opacity: 0.6;
}
.ide-kota progress {
    display: block;
    width: 100%;
    max-width: 180px;
    height: 8px;
    accent-color: var(--success);
}
.ide-kota progress.is-uyari {
    accent-color: #f79009;
}
.ide-kota progress.is-dolu {
    accent-color: var(--error);
}
.ide-kota small {
    color: var(--muted);
    font-size: 0.8rem;
}
@media (max-width: 700px) {
    .ide-kart {
        padding: 16px;
    }
    .ide-kart-bas,
    .ide-hesap-ust {
        flex-wrap: wrap;
    }
    .ide-kart-dugme,
    .ide-hesap-dugme {
        flex: 1 1 100%;
        justify-content: flex-start;
    }
    .ide-model {
        flex-wrap: wrap;
    }
    .ide-model .form-control {
        max-width: none;
    }
}
.ide-tablo td.ide-ad a {
    font-weight: 600;
    color: var(--navy);
}
/* IDE Merkezi (/gorev/ide) */
.im-canli {
    display: grid;
    gap: 12px;
    padding: 0 20px 18px;
}
.im-aktif p {
    margin: 0 0 4px;
}
.im-alt {
    color: var(--muted);
    font-size: 0.9rem;
}
.im-aktif progress {
    width: 100%;
    max-width: 360px;
    height: 8px;
    accent-color: var(--brand);
}
.im-dugmeler {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.im-dugmeler form {
    margin: 0;
}
.im-soru {
    padding: 12px 14px;
    border: 1px solid var(--info-border);
    border-radius: var(--radius);
    background: var(--info-bg);
}
.im-soru p {
    margin: 4px 0 8px;
    font-size: 0.92rem;
    white-space: pre-line;
}
.im-kuyruk h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
}
.im-kuyruk ol {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 0.9rem;
}
.im-arac-cubugu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0 20px 12px;
}
.im-arac-cubugu label {
    font-weight: 600;
    color: var(--navy);
}
.im-ide-sec {
    max-width: 420px;
}
.im-gorev-form,
.im-prompt-form {
    margin: 0;
}
.im-prompt-form {
    padding: 0 20px;
}
.im-isler {
    display: grid;
    gap: 6px;
    padding: 0 20px 12px;
}
.im-is {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}
.im-is small {
    flex: 1 1 100%;
    color: var(--muted);
}
.im-is form {
    margin: 0;
}
.im-ide-izgara {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    padding: 0 20px 14px;
}
.im-ide {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
}
.im-ide > div {
    flex: 1 1 auto;
    min-width: 0;
}
.im-ide strong,
.im-ide small {
    display: block;
}
.im-ide small {
    color: var(--muted);
    font-size: 0.84rem;
}
.im-ide.is-kapali {
    opacity: 0.6;
}
.im-ide form {
    margin: 0;
}
.im-dugmeler[hidden],
.im-sayfa form[hidden] {
    display: none;
}
.im-ide .btn {
    flex: none;
    white-space: nowrap;
}

/* =============================================================================
   Uygulama içi yerel görünüm (html.ae-uyg.ae-yerel: Agent Ekibi uygulaması 2.5.0+)
   Sitenin uygulamada açılan sayfaları uygulamanın kendi ekranlarıyla (ana ekran, Kontrol Paneli, Bildirimler,
   Ödeme İşlemleri, Sistem Ayarları) aynı tasarım dilinde çizilir. Ölçüler ve renkler uygulamadaki
   Gorunum.kt / FinansTemel.kt ile birebir aynıdır:
     zemin #F2F2F7 · kart #FFF (köşe 12–14) · yazı #000 · soluk #6E6E73 · ayırıcı #C6C6C8 · mavi #007AFF
     üstte "‹ Kontrol Paneli" / "‹ Geri" (17) + sağda 36'lık yuvarlak simge düğmeleri · büyük başlık 32 kalın
     grup başlığı 13 BÜYÜK HARF soluk · satır başlığı 17 · alt yazı 13 · rozet (hap) köşe 8, 12 kalın
     geniş düğme 50 yükseklik, köşe 13, 16.5 kalın · segment: #E4E4E9 zemin, seçili beyaz
   Tarayıcıda (ve 2.3–2.4 sürümlerinde) site değişmez. Gezinme satırı: app/views/page_header.php
   ============================================================================= */
html.ae-yerel {
    --u-zemin: #f2f2f7;
    --u-kart: #ffffff;
    --u-yazi: #000000;
    --u-koyu: #1c1c1e;
    --u-soluk: #6e6e73;
    --u-gri: #8e8e93;
    --u-ayirici: #c6c6c8;
    --u-cizgi: rgba(60, 60, 67, 0.18);
    --u-dolgu: rgba(118, 118, 128, 0.12);
    --u-basili: rgba(0, 0, 0, 0.08);
    --u-mavi: #007aff;
    --u-mavi-koyu: #0062cc;
    --u-yesil: #34c759;
    --u-yesil-koyu: #248a3d;
    --u-turuncu: #ff9500;
    --u-turuncu-koyu: #c93400;
    --u-kirmizi: #ff3b30;
    --u-kirmizi-koyu: #d70015;
    --u-mor: #af52de;
    --u-civit: #5856d6;
    --u-turkuaz: #30b0c7;
    --u-pad: 16px;
    --u-nav-h: 48px;
    --u-font: system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

    /* Sitenin genel değişkenleri uygulamanın renklerine döner: tüm bileşenler aynı paletle çizilir */
    --brand: var(--u-mavi);
    --brand-600: var(--u-mavi-koyu);
    --brand-dark: var(--u-mavi-koyu);
    --navy: var(--u-yazi);
    --navy-800: var(--u-koyu);
    --text: var(--u-koyu);
    --muted: var(--u-soluk);
    --subtle: var(--u-gri);
    --border: #d1d1d6;
    --border-strong: var(--u-ayirici);
    --bg: var(--u-zemin);
    --error: var(--u-kirmizi-koyu);
    --error-bg: rgba(255, 59, 48, 0.12);
    --error-border: transparent;
    --info-bg: rgba(0, 122, 255, 0.12);
    --info-border: transparent;
    --info-text: var(--u-mavi-koyu);
    --warning: var(--u-turuncu-koyu);
    --success: var(--u-yesil-koyu);
    --radius: 12px;
    --radius-lg: 14px;
    --font: var(--u-font);
    --ios-font: var(--u-font);
    --topbar-h: var(--u-nav-h);
    --ws-line: var(--u-cizgi);
    --ws-line-soft: rgba(60, 60, 67, 0.12);
    --ws-head-bg: var(--u-kart);
    --ws-shadow: none;
    --gv-line: rgba(60, 60, 67, 0.12);
    --gv-danger: var(--u-kirmizi-koyu);
    --gv-danger-bg: rgba(255, 59, 48, 0.12);
    --gv-warning: var(--u-turuncu-koyu);
    --gv-warning-bg: rgba(255, 149, 0, 0.16);
    --gv-info: var(--u-mavi-koyu);
    --gv-info-bg: rgba(0, 122, 255, 0.12);
    --gv-neutral: var(--u-soluk);
    --gv-neutral-bg: rgba(0, 0, 0, 0.06);
    background: var(--u-zemin);
}

html.ae-yerel body,
html.ae-yerel .app-page {
    font-family: var(--u-font);
    color: var(--u-koyu);
    background: var(--u-zemin);
    -webkit-font-smoothing: antialiased;
}

html.ae-yerel .ws {
    --ws-line: var(--u-cizgi);
    --ws-line-soft: rgba(60, 60, 67, 0.12);
    --ws-head-bg: var(--u-kart);
    --ws-shadow: none;
    --ws-pad: 16px;
    --gv-line: rgba(60, 60, 67, 0.12);
    --gv-danger: var(--u-kirmizi-koyu);
    --gv-danger-bg: rgba(255, 59, 48, 0.12);
    --gv-warning: var(--u-turuncu-koyu);
    --gv-warning-bg: rgba(255, 149, 0, 0.16);
    --gv-info: var(--u-mavi-koyu);
    --gv-info-bg: rgba(0, 122, 255, 0.12);
    --gv-neutral: var(--u-soluk);
    --gv-neutral-bg: rgba(0, 0, 0, 0.06);
}

/* İçerik: uygulamadaki gibi 16 kenar boşluğu, altta 40 */
html.ae-yerel .content,
html.ae-yerel .content.ws {
    padding: 0 var(--u-pad) 40px;
}

@media (min-width: 700px) {
    html.ae-yerel {
        --u-pad: 24px;
    }
}

/* ---------- Gezinme satırı: "‹ Kontrol Paneli" · (kısa başlık) · simge düğmeleri ---------- */
html.ae-yerel .uyg-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--u-nav-h);
    margin: 0 calc(var(--u-pad) * -1);
    padding: 0 calc(var(--u-pad) - 6px) 0 calc(var(--u-pad) - 10px);
    background: var(--u-zemin);
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* İçerik altına kayınca ince çizgi (Kontrol Paneli'ndeki üst çubuk gibi) */
html.ae-yerel .uyg-nav::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--u-cizgi);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

html.ae-yerel .uyg-nav.is-kaydi::after {
    opacity: 1;
}

html.ae-yerel .uyg-geri {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    min-width: 0;
    min-height: 36px;
    padding: 8px 10px;
    overflow: hidden;
    font-size: 17px;
    font-weight: 400;
    line-height: 20px;
    color: var(--u-mavi);
    white-space: nowrap;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.15s;
}

html.ae-yerel .uyg-geri-ok {
    flex: none;
    margin-right: 0.28em;
}

html.ae-yerel .uyg-geri-ad {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.ae-yerel .uyg-geri:active {
    background: var(--u-basili);
}

html.ae-yerel .uyg-geri:focus-visible {
    outline: 2px solid var(--u-mavi);
    outline-offset: 0;
}

/* Kısa başlık: büyük başlık satırın altına girince ortada belirir (app.js genişliği ayarlar) */
html.ae-yerel .uyg-nav-baslik {
    position: absolute;
    top: 0;
    left: 50%;
    max-width: 40%;
    margin: 0;
    overflow: hidden;
    font-size: 17px;
    font-weight: 600;
    line-height: var(--u-nav-h);
    color: var(--u-yazi);
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

html.ae-yerel .uyg-nav.is-baslikli .uyg-nav-baslik:not(.is-dar) {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Sağdaki düğmeler: 36'lık beyaz daire + mavi simge; birincil düğme mavi daire + beyaz simge */
html.ae-yerel .uyg-nav-sag {
    position: relative;
    z-index: 1;
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

html.ae-yerel .uyg-nav-sag .ph-form {
    display: flex;
    margin: 0;
}

html.ae-yerel .uyg-nav-sag .btn.uyg-dugme {
    flex: none;
    gap: 6px;
    width: 36px;
    height: 36px;
    min-height: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--u-mavi);
    background: var(--u-kart);
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    transform: none;
    transition: opacity 0.15s, background-color 0.15s;
}

html.ae-yerel .uyg-nav-sag .btn.uyg-dugme.btn-primary {
    color: #fff;
    background: var(--u-mavi);
}

html.ae-yerel .uyg-nav-sag .btn.uyg-dugme.btn-danger {
    color: var(--u-kirmizi);
}

html.ae-yerel .uyg-nav-sag .btn.uyg-dugme:active {
    opacity: 0.55;
}

html.ae-yerel .uyg-nav-sag .btn.uyg-dugme:focus-visible {
    outline: 2px solid var(--u-mavi);
    outline-offset: 2px;
}

html.ae-yerel .uyg-nav-sag .uyg-dugme .btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

html.ae-yerel .uyg-nav-sag .uyg-dugme:not(.uyg-dugme-yazi) .ph-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Simgesi olmayan aksiyon: yuvarlak köşeli yazılı düğme (kısa etiket varsa o görünür) */
html.ae-yerel .uyg-nav-sag .btn.uyg-dugme-yazi {
    width: auto;
    max-width: 160px;
    padding: 0 14px;
    border-radius: 18px;
}

html.ae-yerel .uyg-dugme-yazi .ph-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.ae-yerel .uyg-nav-sag .ph-etiket-kisa {
    display: inline;
}

html.ae-yerel .uyg-nav-sag .ph-etiket-kisa ~ *,
html.ae-yerel .uyg-nav-sag .ph-etiket-tam:has(+ .ph-etiket-kisa) {
    display: none;
}

/* ---------- Büyük başlık + alt başlık (uygulamada 20 soldan, 32 kalın, 44 yükseklik) ---------- */
html.ae-yerel .ph.ph-uyg {
    margin: 0 4px 14px;
}

html.ae-yerel .content .ph-uyg h1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    min-height: 44px;
    margin: 0;
    font-size: clamp(24px, 8.2vw, 32px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: var(--u-yazi);
    overflow-wrap: anywhere;
}

html.ae-yerel .ph-uyg h1 .badge {
    font-size: 12px;
}

html.ae-yerel .ph-uyg .ph-title-ac-ikon {
    width: 22px;
    height: 22px;
    stroke: var(--u-mavi);
}

html.ae-yerel .ph-uyg .ph-sub {
    display: -webkit-box;
    margin: 2px 0 0;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--u-soluk);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- Kartlar (fKart: beyaz, köşe 14, çerçevesiz, gölgesiz) ---------- */
html.ae-yerel .content > .card,
html.ae-yerel .content > form > .card {
    margin-bottom: 16px;
}

html.ae-yerel .card,
html.ae-yerel .ws .card {
    padding: 16px;
    background: var(--u-kart);
    border: 0;
    border-radius: 14px;
    box-shadow: none;
}

/* Kart başlığı (fKartBasligi): kartın içinde 16.5 kalın; şerit ve çizgi yok */
html.ae-yerel .ws .card > .card-head:first-child:not(:only-child),
html.ae-yerel .ws .card > h2:first-child {
    min-height: 0;
    margin: 0 0 12px;
    padding: 0;
    border-bottom: 0;
}

html.ae-yerel .card h2,
html.ae-yerel .ws .card h2 {
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--u-yazi);
}

html.ae-yerel .card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--u-yazi);
}

html.ae-yerel .ws .card > .card-head + .table-wrap {
    margin-top: 0;
}

html.ae-yerel .muted,
html.ae-yerel .gv-muted {
    color: var(--u-soluk);
}

html.ae-yerel .count,
html.ae-yerel .ws .count {
    min-width: 0;
    padding: 1px 7px 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--u-soluk);
    background: rgba(0, 0, 0, 0.06);
    border-radius: 8px;
}

/* Silme / tehlikeli işlemler kartı */
html.ae-yerel .ws .danger-zone,
html.ae-yerel .danger-zone {
    border: 0;
    box-shadow: none;
}

/* ---------- Rozetler (fHap: köşe 8, 12 kalın, yumuşak zemin) ---------- */
html.ae-yerel .badge {
    padding: 2px 7px 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--u-soluk);
    background: rgba(0, 0, 0, 0.08);
    border: 0;
    border-radius: 8px;
}

html.ae-yerel .badge-success,
html.ae-yerel .badge-iyi {
    color: var(--u-yesil-koyu);
    background: rgba(52, 199, 89, 0.14);
}

html.ae-yerel .badge-warning,
html.ae-yerel .badge-gun-uyari {
    color: var(--u-turuncu-koyu);
    background: rgba(255, 149, 0, 0.16);
}

html.ae-yerel .badge-info {
    color: var(--u-mavi-koyu);
    background: rgba(0, 122, 255, 0.12);
}

html.ae-yerel .badge-danger,
html.ae-yerel .badge-gun-gecikti,
html.ae-yerel .badge-sil {
    color: var(--u-kirmizi-koyu);
    background: rgba(255, 59, 48, 0.12);
}

html.ae-yerel .badge-muted,
html.ae-yerel .badge-gun {
    color: var(--u-soluk);
    background: rgba(0, 0, 0, 0.06);
}

/* ---------- Düğmeler ---------- */
html.ae-yerel .btn {
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    font-size: 15.5px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: none;
    transform: none;
    -webkit-tap-highlight-color: transparent;
}

html.ae-yerel .btn:active {
    opacity: 0.6;
}

html.ae-yerel .btn-primary,
html.ae-yerel .ws .btn-primary {
    color: #fff;
    background: var(--u-mavi);
    border-color: transparent;
    box-shadow: none;
}

html.ae-yerel .btn-primary:hover,
html.ae-yerel .ws .btn-primary:hover {
    background: var(--u-mavi);
    box-shadow: none;
    transform: none;
}

/* İkincil düğme: iOS "gri" düğme (yarı saydam dolgu, mavi yazı), çerçevesiz */
html.ae-yerel .btn-outline,
html.ae-yerel .ws .btn-outline {
    color: var(--u-mavi);
    background: var(--u-dolgu);
    border-color: transparent;
    box-shadow: none;
}

html.ae-yerel .btn-outline:hover,
html.ae-yerel .ws .btn-outline:hover {
    color: var(--u-mavi);
    background: var(--u-dolgu);
    border-color: transparent;
}

html.ae-yerel .btn-danger,
html.ae-yerel .btn-outline.btn-danger,
html.ae-yerel .ws .btn-outline.btn-danger {
    color: var(--u-kirmizi);
}

html.ae-yerel .btn-primary.btn-danger,
html.ae-yerel .btn-danger-solid {
    color: #fff;
    background: var(--u-kirmizi);
    border-color: transparent;
}

html.ae-yerel .btn-sm,
html.ae-yerel .ws .row-actions .btn-sm {
    height: 34px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 10px;
}

html.ae-yerel .btn-lg {
    height: 50px;
    font-size: 16.5px;
    border-radius: 13px;
}

/* Formun ana düğmeleri (fDugme): 50 yükseklik, köşe 13, 16.5 kalın */
html.ae-yerel .ws .gf-actions .btn,
html.ae-yerel .ws .form-actions .btn,
html.ae-yerel .gf-actions .btn,
html.ae-yerel .form-actions .btn,
html.ae-yerel .modal-actions .btn {
    height: 50px;
    padding: 0 18px;
    font-size: 16.5px;
    border-radius: 13px;
}

html.ae-yerel .ws .gf-actions,
html.ae-yerel .gf-actions {
    border-top: 0;
}

html.ae-yerel .link-btn,
html.ae-yerel .link-muted {
    -webkit-tap-highlight-color: transparent;
}

html.ae-yerel .link-btn {
    color: var(--u-mavi);
}

/* ---------- Formlar (yarı saydam dolgulu alanlar, çerçevesiz; etiket 13 soluk) ---------- */
html.ae-yerel .gf-grid {
    gap: 16px 16px;
}

/* Mesaj / prompt yazma kutusu */
html.ae-yerel .composer-box {
    border-color: rgba(60, 60, 67, 0.18);
    border-radius: 14px;
    box-shadow: none;
}

html.ae-yerel .form-group label:not(.checkbox):not(.composer-icon),
html.ae-yerel .sm-secim legend {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--u-soluk);
}

html.ae-yerel .form-control {
    height: 46px;
    padding: 0 14px;
    font-size: 16px;
    color: var(--u-yazi);
    background-color: var(--u-dolgu);
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: none;
}

html.ae-yerel textarea.form-control {
    height: auto;
    padding: 11px 14px;
}

html.ae-yerel select.form-control {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
}

html.ae-yerel .form-control::placeholder {
    color: #a1a1a6;
}

html.ae-yerel .form-control:hover {
    border-color: transparent;
}

html.ae-yerel .form-control:focus {
    background-color: var(--u-kart);
    border-color: var(--u-mavi);
    box-shadow: 0 0 0 1px var(--u-mavi);
}

html.ae-yerel .form-control[aria-invalid="true"],
html.ae-yerel .form-control.is-invalid {
    border-color: var(--u-kirmizi);
    box-shadow: 0 0 0 1px var(--u-kirmizi);
}

html.ae-yerel .field-help,
html.ae-yerel .form-note {
    font-size: 13px;
    color: var(--u-soluk);
}

html.ae-yerel .field-error {
    font-size: 13px;
    color: var(--u-kirmizi-koyu);
}

html.ae-yerel .req {
    color: var(--u-kirmizi);
}

html.ae-yerel input[type="checkbox"],
html.ae-yerel input[type="radio"],
html.ae-yerel input[type="range"],
html.ae-yerel progress {
    accent-color: var(--u-mavi);
}

/* ---------- Uyarı şeritleri (fSerit: köşe 12, yumuşak zemin, çerçevesiz, 14) ---------- */
html.ae-yerel .alert {
    gap: 10px;
    margin-bottom: 16px;
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.4;
    border: 0;
    border-radius: 12px;
}

html.ae-yerel .alert-icon {
    width: 20px;
    height: 20px;
    margin-top: 0;
}

html.ae-yerel .alert-error {
    color: var(--u-kirmizi-koyu);
    background: rgba(255, 59, 48, 0.12);
}

html.ae-yerel .alert-info {
    color: var(--u-mavi-koyu);
    background: rgba(0, 122, 255, 0.12);
}

html.ae-yerel .alert-success {
    color: var(--u-yesil-koyu);
    background: rgba(52, 199, 89, 0.14);
}

html.ae-yerel .alert-warning {
    color: var(--u-turuncu-koyu);
    background: rgba(255, 149, 0, 0.16);
    border: 0;
}

/* ---------- Boş durum (fBos: gri simge + 14 soluk yazı) ---------- */
html.ae-yerel .empty {
    padding: 18px 16px;
    font-size: 14px;
    color: var(--u-soluk);
    background: transparent;
    border: 0;
}

html.ae-yerel .ws .card.gv-empty,
html.ae-yerel .ws .card.empty-state,
html.ae-yerel .gv-empty {
    padding: 36px 20px;
}

html.ae-yerel .gv-empty-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    color: var(--u-ayirici);
    background: transparent;
}

html.ae-yerel .gv-empty-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.8;
}

html.ae-yerel .gv-empty h2,
html.ae-yerel .ws .card.gv-empty h2,
html.ae-yerel .ws .card.empty-state h2 {
    font-size: 17px;
    font-weight: 600;
}

html.ae-yerel .gv-empty p {
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--u-soluk);
}

html.ae-yerel .gv-nomatch {
    font-size: 14px;
    color: var(--u-soluk);
}

/* ---------- Özet kutucukları (fKutucuk: simge + etiket üstte, büyük değer, açıklama) ---------- */
html.ae-yerel .kpi-grid,
html.ae-yerel .kpi-grid.kpi-grid-uzun,
html.ae-yerel .kpi-grid.kpi-grid-uzun:not(.kpi-grid-3) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

@media (min-width: 900px) {
    html.ae-yerel .kpi-grid,
    html.ae-yerel .kpi-grid.kpi-grid-uzun,
    html.ae-yerel .kpi-grid.kpi-grid-uzun:not(.kpi-grid-3) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    html.ae-yerel .kpi-grid.kpi-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

html.ae-yerel .kpi,
html.ae-yerel .kpi-grid-uzun .kpi {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: 11px 12px 12px;
    background: var(--u-kart);
    border: 0;
    border-radius: 14px;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

html.ae-yerel a.kpi:hover {
    border-color: transparent;
    box-shadow: none;
}

html.ae-yerel a.kpi:active {
    background: #e9e9ee;
}

html.ae-yerel .kpi.is-active,
html.ae-yerel a.kpi.is-active:hover {
    box-shadow: 0 0 0 2px var(--u-mavi);
}

/* Simge: 24'lük renkli daire, beyaz çizgi simge; etiketle aynı satırda */
html.ae-yerel .kpi-ikon,
html.ae-yerel .kpi-grid-uzun .kpi-ikon {
    position: absolute;
    width: 24px;
    height: 24px;
    margin: 0;
    color: #fff;
    background: var(--u-gri);
    border-radius: 50%;
}

html.ae-yerel .kpi {
    position: relative;
}

html.ae-yerel .kpi-ikon svg,
html.ae-yerel .kpi-grid-uzun .kpi-ikon svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.3;
}

html.ae-yerel .kpi-brand .kpi-ikon   { color: #fff; background: var(--u-mavi); }
html.ae-yerel .kpi-warning .kpi-ikon { color: #fff; background: var(--u-turuncu); }
html.ae-yerel .kpi-success .kpi-ikon { color: #fff; background: var(--u-yesil); }
html.ae-yerel .kpi-neutral .kpi-ikon { color: #fff; background: var(--u-gri); }
html.ae-yerel .kpi-danger .kpi-ikon  { color: #fff; background: var(--u-kirmizi); }

html.ae-yerel .kpi-metin,
html.ae-yerel .kpi-grid-uzun .kpi-metin {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

html.ae-yerel .kpi-etiket,
html.ae-yerel .kpi-grid-uzun .kpi-etiket {
    display: -webkit-box;
    min-height: 24px;
    padding: 3px 0 0 32px;
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--u-soluk);
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

html.ae-yerel .kpi-deger,
html.ae-yerel .kpi-grid-uzun .kpi-deger {
    margin-top: 6px;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: -0.01em;
    color: var(--u-koyu);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.ae-yerel .kpi-deger-arti { color: var(--u-yesil-koyu); }
html.ae-yerel .kpi-deger-eksi { color: var(--u-kirmizi-koyu); }

html.ae-yerel .kpi-alt,
html.ae-yerel .kpi-grid-uzun .kpi-alt {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--u-soluk);
    white-space: normal;
}

/* Üç dar kutucuk yan yana (kpi-dikey-3): simge üstte, altında etiket ve değer; hepsi sola yaslı */
html.ae-yerel .kpi-grid.kpi-dikey-3 .kpi {
    align-items: stretch;
    padding: 11px 10px 12px;
    text-align: left;
}

html.ae-yerel .kpi-grid.kpi-dikey-3 .kpi-ikon {
    position: static;
    display: inline-flex;
}

html.ae-yerel .kpi-grid.kpi-dikey-3 .kpi-metin {
    align-items: stretch;
}

html.ae-yerel .kpi-grid.kpi-dikey-3 .kpi-etiket {
    display: block;
    min-height: 0;
    margin-top: 8px;
    padding: 0;
    font-size: 12.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

html.ae-yerel .kpi-grid.kpi-dikey-3 .kpi-deger {
    margin-top: 2px;
}

html.ae-yerel .kpi-aksiyon.btn {
    align-self: flex-start;
    margin-top: 8px;
}

/* ---------- Liste panosu (gv-board): grup başlığı + arama + beyaz grup içinde satırlar ---------- */
html.ae-yerel .ws .card.gv-board,
html.ae-yerel .gv-board {
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

html.ae-yerel .gv-board-head,
html.ae-yerel .ws .card.gv-board > .gv-board-head:first-child {
    gap: 10px;
    margin: 0;
    padding: 6px 0 10px;
    border-bottom: 0;
}

/* Grup başlığı: 13 BÜYÜK HARF soluk (uygulamadaki grupBasligi) */
html.ae-yerel .gv-board-head h2,
html.ae-yerel .ws .card.gv-board .gv-board-head h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--u-soluk);
}

html.ae-yerel .gv-board-head h2 .count {
    padding: 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--u-soluk);
    background: transparent;
}

html.ae-yerel .gv-board-head h2 .count::before {
    content: "· ";
}

html.ae-yerel .gv-board-head-satir {
    gap: 8px;
}

html.ae-yerel .gv-board-not {
    padding: 0 16px 10px;
    font-size: 13px;
    color: var(--u-soluk);
}

html.ae-yerel .gv-board-foot {
    margin-top: 12px;
}

/* Arama alanları (uygulamadaki arama kutusu: #E4E4E9 dolgu, köşe 11, soluk simge) */
html.ae-yerel .gv-search input,
html.ae-yerel .filter-bar input[type="search"],
html.ae-yerel .filter-bar .form-control,
html.ae-yerel .ws .filter-bar .form-control {
    height: 40px;
    font-size: 16px;
    background-color: rgba(118, 118, 128, 0.12);
    border: 1px solid transparent;
    border-radius: 11px;
}

html.ae-yerel .gv-search input {
    padding-left: 36px;
}

/* Filtre çubuğundaki arama: uygulamadaki gibi solda büyüteç */
html.ae-yerel .filter-bar input[type="search"] {
    padding-left: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.2'/%3E%3Cpath d='M15.6 15.6L20 20'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 18px;
}

html.ae-yerel .filter-bar label:not(.visually-hidden),
html.ae-yerel .filter-bar .filtre-etiket {
    font-size: 13px;
    font-weight: 500;
    color: var(--u-soluk);
}

html.ae-yerel .gv-search svg {
    left: 11px;
    width: 18px;
    height: 18px;
    stroke: var(--u-soluk);
}

html.ae-yerel .gv-search input:focus,
html.ae-yerel .filter-bar .form-control:focus {
    background-color: var(--u-kart);
    border-color: var(--u-mavi);
    box-shadow: 0 0 0 1px var(--u-mavi);
}

html.ae-yerel .filter-bar,
html.ae-yerel .ws .filter-bar {
    gap: 8px;
    margin: 0 0 14px;
}

html.ae-yerel .gv-board-filtre {
    padding: 0 0 12px;
    border-bottom: 0;
}

html.ae-yerel .ws .gv-board-filtre .filter-bar {
    margin: 0;
}

html.ae-yerel .gv-board-foot {
    padding: 0;
    border-top: 0;
}

html.ae-yerel .filter-bar .btn,
html.ae-yerel .ws .filter-bar .btn {
    height: 40px;
    border-radius: 11px;
}

html.ae-yerel .filter-bar-not {
    font-size: 13px;
    color: var(--u-soluk);
}

/* Tablo (geniş ekran): beyaz grup, başlık satırı 12 soluk, ince ayırıcılar */
html.ae-yerel .gv-table-wrap {
    background: var(--u-kart);
    border-radius: 12px;
}

html.ae-yerel .gv-table th,
html.ae-yerel .ws .table th,
html.ae-yerel .table th {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--u-soluk);
    background: var(--u-kart);
    border-bottom: 1px solid rgba(60, 60, 67, 0.12);
}

html.ae-yerel .gv-table td,
html.ae-yerel .ws .table td,
html.ae-yerel .table td {
    border-bottom: 1px solid rgba(60, 60, 67, 0.12);
}

html.ae-yerel .ws .table tbody tr:hover,
html.ae-yerel .has-js .gv-row[data-href]:hover > td {
    background: transparent;
}

html.ae-yerel .has-js .gv-row[data-href]:hover > td:first-child,
html.ae-yerel .gv-row:has(.gv-open:focus-visible) > td:first-child {
    box-shadow: none;
}

html.ae-yerel .has-js .gv-row[data-href]:active > td {
    background: #e9e9ee;
}

html.ae-yerel .gv-title {
    font-weight: 500;
    color: var(--u-yazi);
}

html.ae-yerel .has-js .gv-row[data-href]:hover .gv-title,
html.ae-yerel a.gv-title:hover {
    color: var(--u-yazi);
}

html.ae-yerel .gv-firma {
    color: var(--u-koyu);
}

html.ae-yerel .gv-yetkili,
html.ae-yerel .gv-site {
    color: var(--u-soluk);
}

html.ae-yerel .gv-c-tutar {
    font-weight: 600;
    color: var(--u-koyu);
}

html.ae-yerel .gv-tutar-arti {
    color: var(--u-yesil-koyu);
}

/* Satır simge düğmeleri: soluk, çerçevesiz; detay oku uygulamadaki "›" gibi */
html.ae-yerel .gv-icon-btn {
    color: var(--u-gri);
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
}

html.ae-yerel .gv-icon-btn:hover {
    color: var(--u-gri);
    background: transparent;
}

html.ae-yerel .gv-icon-btn:active {
    background: var(--u-basili);
}

html.ae-yerel .gv-icon-sil:hover {
    color: var(--u-gri);
    background: transparent;
}

html.ae-yerel .gv-open,
html.ae-yerel .gv-open:hover,
html.ae-yerel .has-js .gv-row[data-href]:hover .gv-open {
    width: 24px;
    color: var(--u-ayirici);
    background: transparent;
    border-color: transparent;
}

html.ae-yerel .gv-open svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.4;
}

html.ae-yerel .has-js .gv-row[data-href]:hover .gv-open svg {
    transform: none;
}

html.ae-yerel .gv-baglam {
    color: var(--u-mavi-koyu);
    background: rgba(0, 122, 255, 0.12);
    border: 0;
    border-radius: 8px;
}

html.ae-yerel .gv-baglam.is-urun {
    color: var(--u-yesil-koyu);
    background: rgba(52, 199, 89, 0.14);
}

/* Dar ekran (900 ve altı): her satır ayrı kart yerine tek beyaz grubun satırları; aralarında soldan girintili ayırıcı */
@media (max-width: 900px) {
    html.ae-yerel .gv-table-wrap {
        overflow: hidden;
    }

    /* Tek sütunlu liste (dar tablette de iki sütunlu kart ızgarası yerine gruplu liste) */
    html.ae-yerel .gv-table tbody {
        display: block;
        overflow: hidden;
        background: var(--u-kart);
        border-radius: 12px;
    }

    html.ae-yerel .gv-row,
    html.ae-yerel .gv-table-log .gv-row {
        position: relative;
        gap: 8px 12px;
        margin: 0;
        padding: 12px 14px 12px 16px;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    html.ae-yerel .gv-row:not([hidden]) ~ .gv-row::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 16px;
        height: 1px;
        background: var(--u-ayirici);
        transform: scaleY(0.5);
        transform-origin: top;
    }

    html.ae-yerel .gv-row > td {
        padding: 0;
        border: 0;
    }

    html.ae-yerel .gv-title {
        font-size: 17px;
        line-height: 1.3;
    }

    html.ae-yerel .gv-mobil-etiket {
        margin-bottom: 1px;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: none;
        color: var(--u-soluk);
    }

    html.ae-yerel .gv-board-head {
        padding: 6px 0 10px;
    }

    html.ae-yerel .gv-search input {
        height: 40px;
        background-color: rgba(118, 118, 128, 0.12);
        border-color: transparent;
    }
}

/* ---------- Detay listesi (etiket 12 soluk, değer 16) ---------- */
html.ae-yerel .detail-list dt,
html.ae-yerel .ws .detail-list dt {
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--u-soluk);
}

html.ae-yerel .detail-list dd,
html.ae-yerel .ws .detail-list dd {
    font-size: 16px;
    font-weight: 400;
    color: var(--u-yazi);
}

html.ae-yerel .ws .detail-list {
    gap: 14px 20px;
}

html.ae-yerel .ws .stat-grid-flat .stat {
    background: #f6f6f8;
    border: 0;
    border-radius: 11px;
}

html.ae-yerel .ws .stat-label {
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--u-soluk);
}

/* Form bölüm başlıkları (Müşteri, Teklif ...): grup başlığı gibi 13 BÜYÜK HARF soluk, çizgisiz */
html.ae-yerel .ws .teklif-form .tf-bolum,
html.ae-yerel .ws .proje-form .tf-bolum,
html.ae-yerel .ws .urun-form .tf-bolum,
html.ae-yerel .urun-form .tf-bolum {
    padding-bottom: 0;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--u-soluk);
    border-bottom: 0;
}

html.ae-yerel .tf-doldur {
    background: #f6f6f8;
    border: 0;
}

/* Durum seçenekleri (teklif durumu): dolgulu satırlar, seçili olan renkli zemin + halka */
html.ae-yerel .teklif-durum-secenek span {
    font-weight: 500;
    color: var(--u-yazi);
    background: var(--u-dolgu);
    border: 0;
    border-radius: 12px;
    box-shadow: none;
}

html.ae-yerel .teklif-durum-bekliyor span::before { background: var(--u-turuncu); }
html.ae-yerel .teklif-durum-kabul span::before    { background: var(--u-yesil); }
html.ae-yerel .teklif-durum-red span::before      { background: var(--u-kirmizi); }
html.ae-yerel .teklif-durum-bekliyor input:checked + span { background: rgba(255, 149, 0, 0.16); box-shadow: inset 0 0 0 2px var(--u-turuncu); }
html.ae-yerel .teklif-durum-kabul input:checked + span    { background: rgba(52, 199, 89, 0.14); box-shadow: inset 0 0 0 2px var(--u-yesil); }
html.ae-yerel .teklif-durum-red input:checked + span      { background: rgba(255, 59, 48, 0.12); box-shadow: inset 0 0 0 2px var(--u-kirmizi); }

/* ---------- Sayfalama ---------- */
html.ae-yerel .page-link,
html.ae-yerel .ws .page-link {
    color: var(--u-mavi);
    background: var(--u-kart);
    border: 0;
    border-radius: 10px;
}

html.ae-yerel .page-link.is-current {
    color: #fff;
    background: var(--u-mavi);
}

html.ae-yerel .page-link.is-disabled {
    color: var(--u-ayirici);
}

/* ---------- Segment / sekme seçiciler (uygulamadaki Segment: #E4E4E9, seçili beyaz köşe 8) ---------- */
html.ae-yerel .rp-segment,
html.ae-yerel .tn-sekme,
html.ae-yerel .bld-segment {
    gap: 0;
    padding: 2px;
    background: #e4e4e9;
    border: 0;
    border-radius: 10px;
}

html.ae-yerel .rp-segment button,
html.ae-yerel .tn-sekme a {
    min-height: 34px;
    height: auto;
    padding: 5px 8px 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #505055;
    border-radius: 8px;
}

html.ae-yerel .rp-segment button[aria-pressed="true"],
html.ae-yerel .tn-sekme a[aria-current="page"] {
    color: var(--u-yazi);
    background: var(--u-kart);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Çip sırası (IDE sekmeleri, seçim düğmeleri): beyaz hap, seçili mavi */
html.ae-yerel .ide-sekme a,
html.ae-yerel .ayar-secim-btn {
    color: var(--u-koyu);
    background: var(--u-kart);
    border: 0;
    border-radius: 999px;
}

html.ae-yerel .ide-sekme a.is-aktif,
html.ae-yerel .ayar-secim-btn[aria-pressed="true"] {
    color: #fff;
    background: var(--u-mavi);
}

html.ae-yerel .sm-secenek {
    background: var(--u-kart);
    border: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.12);
}

html.ae-yerel .sm-secenek:has(input:checked) {
    box-shadow: inset 0 0 0 2px var(--u-mavi);
}

/* ---------- Pencereler (dialog): telefonda alttan açılan panel (altPanel gibi) ---------- */
html.ae-yerel .modal {
    color: var(--u-koyu);
    background: var(--u-kart);
    border-radius: 14px;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.45);
}

html.ae-yerel .modal::backdrop {
    background: rgba(0, 0, 0, 0.35);
}

html.ae-yerel .modal-head {
    padding: 14px 16px 10px;
    border-bottom: 0;
}

html.ae-yerel .modal-head h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--u-yazi);
}

html.ae-yerel .modal-close {
    width: 30px;
    height: 30px;
    color: var(--u-soluk);
    background: var(--u-dolgu);
}

html.ae-yerel .modal-close svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.6;
}

html.ae-yerel .modal-body {
    padding: 6px 16px 4px;
}

html.ae-yerel .modal-actions {
    padding: 12px 16px 16px;
    border-top: 0;
}

@media (max-width: 640px) {
    html.ae-yerel .modal,
    html.ae-yerel .modal.modal-wide,
    html.ae-yerel .modal.modal-dar {
        width: 100%;
        max-width: 100%;
        max-height: 88dvh;
        margin: auto 0 0;
        border-radius: 18px 18px 0 0;
        box-shadow: none;
    }

    html.ae-yerel .modal .modal-form {
        max-height: 88dvh;
    }

    /* Tutamak (altPanel'deki gri çizgi) */
    html.ae-yerel .modal::before {
        content: "";
        display: block;
        width: 38px;
        height: 5px;
        margin: 8px auto 0;
        background: #c7c7cc;
        border-radius: 3px;
    }

    /* Düğmeler yan yana sığarsa eşit paylaşır, sığmazsa alt satıra iner (yazı asla harf harf kırılmaz) */
    html.ae-yerel .modal-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    html.ae-yerel .modal-actions > .pm-spacer,
    html.ae-yerel .modal-actions > .modal-actions-sol:empty {
        display: none;
    }

    html.ae-yerel .modal-actions > .btn,
    html.ae-yerel .modal-actions > form,
    html.ae-yerel .modal-actions > a {
        flex: 1 1 auto;
        min-width: min(100%, 120px);
        max-width: 100%;
        margin: 0;
    }

    html.ae-yerel .modal-actions > form {
        display: flex;
    }

    html.ae-yerel .modal-actions .btn {
        min-width: 0;
        white-space: nowrap;
    }

    html.ae-yerel .modal-actions > form > .btn {
        flex: 1 1 auto;
    }

    html.ae-yerel .modal-actions .btn > span,
    html.ae-yerel .modal-actions .btn-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    @media (prefers-reduced-motion: no-preference) {
        html.ae-yerel .modal[open] {
            animation: uyg-panel-gir 0.26s cubic-bezier(0.32, 0.72, 0, 1);
        }
    }
}

@keyframes uyg-panel-gir {
    from {
        transform: translateY(100%);
    }

    to {
        transform: none;
    }
}

/* ---------- Onay pencereleri (SweetAlert2): uygulamadaki uyarı penceresi gibi ---------- */
html.ae-yerel .swal2-popup {
    font-family: var(--u-font);
    border-radius: 14px;
}

html.ae-yerel .swal2-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--u-yazi);
}

html.ae-yerel .swal2-html-container {
    font-size: 15px;
    color: var(--u-soluk);
}

html.ae-yerel .swal2-actions .swal2-styled {
    min-height: 44px;
    padding: 0 18px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: none;
}

html.ae-yerel .swal2-actions .swal2-cancel {
    color: var(--u-mavi);
    background: var(--u-dolgu);
}

/* ---------- Profilim: kimlik kartı ve bağlantı listeleri (Kontrol Paneli'ndeki profil kartı ve satırlar gibi) ---------- */
html.ae-yerel .ws .card.prf-kimlik {
    gap: 14px;
    border-radius: 16px;
}

html.ae-yerel .prf-avatar {
    width: 60px;
    height: 60px;
    font-size: 22px;
    font-weight: 600;
    background: var(--u-mavi);
    box-shadow: none;
}

html.ae-yerel .ws .prf-ad {
    font-size: 20px;
    font-weight: 600;
    color: var(--u-yazi);
}

html.ae-yerel .prf-mail {
    font-size: 15px;
    color: var(--u-soluk);
}

html.ae-yerel .prf-son {
    font-size: 13px;
    color: var(--u-soluk);
}

/* Bağlantılar: tek grup, satırlar arasında simgeden sonra başlayan ayırıcı (girinti 60) */
html.ae-yerel .prf-baglantilar {
    gap: 0;
    margin: 0 -16px -16px;
}

html.ae-yerel .prf-baglantilar li {
    position: relative;
}

html.ae-yerel .prf-baglantilar li + li::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 60px;
    height: 1px;
    background: var(--u-ayirici);
    transform: scaleY(0.5);
    transform-origin: top;
}

html.ae-yerel .prf-baglantilar a {
    gap: 14px;
    min-height: 60px;
    padding: 8px 14px 8px 16px;
    color: var(--u-yazi);
    border: 0;
    border-radius: 0;
}

html.ae-yerel .prf-baglantilar li:last-child a {
    border-radius: 0 0 16px 16px;
}

html.ae-yerel .prf-baglantilar a:hover {
    background: transparent;
}

html.ae-yerel .prf-baglantilar a:active {
    background: #e9e9ee;
}

html.ae-yerel .prf-baglantilar a > span:nth-child(2) {
    font-size: 17px;
    font-weight: 400;
}

html.ae-yerel .prf-baglantilar a > span:nth-child(2) strong,
html.ae-yerel .prf-baglantilar a > span:nth-child(2) b {
    font-weight: 400;
}

html.ae-yerel .prf-baglantilar small {
    font-size: 13px;
    color: var(--u-soluk);
}

html.ae-yerel .prf-baglantilar a > svg {
    width: 18px;
    height: 18px;
    color: var(--u-ayirici);
    stroke-width: 2.4;
}

/* Satır simgesi: 30'luk renkli yuvarlak kare, beyaz simge (iOS Ayarlar) */
html.ae-yerel .prf-bag-ikon {
    width: 30px;
    height: 30px;
    color: #fff;
    background: var(--u-mavi);
    border-radius: 7px;
}

html.ae-yerel .prf-bag-ikon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

html.ae-yerel .prf-baglantilar li:nth-child(2) .prf-bag-ikon { background: var(--u-yesil); }
html.ae-yerel .prf-baglantilar li:nth-child(3) .prf-bag-ikon { background: var(--u-gri); }
html.ae-yerel .prf-baglantilar li:nth-child(4) .prf-bag-ikon { background: var(--u-turuncu); }

/* Hatırlatmalar: Liste / Takvim seçici (Segment) */
html.ae-yerel .ht-gorunum {
    gap: 0;
    padding: 2px;
    background: #e4e4e9;
    border: 0;
    border-radius: 10px;
}

html.ae-yerel .ht-gorunum a {
    height: 32px;
    font-size: 13.5px;
    color: #505055;
    border-radius: 8px;
}

html.ae-yerel .ht-gorunum a[aria-current="page"] {
    color: var(--u-yazi);
    background: var(--u-kart);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Listenin başlığındaki düğmeler (Ekle, Excel): küçük hap */
html.ae-yerel .gv-board-head .btn:not(.gv-icon-btn) {
    height: 32px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 16px;
}

html.ae-yerel .gv-board-head .btn .btn-icon {
    width: 16px;
    height: 16px;
}

/* Liste boşken: beyaz grup içinde soluk metin */
html.ae-yerel .gv-board > .empty,
html.ae-yerel .gv-board > .gv-board-govde > .empty {
    padding: 28px 16px;
    background: var(--u-kart);
    border: 0;
    border-radius: 12px;
}

/* ---------- Sistem Ayarları (/ayarlar/): uygulamadaki Sistem Ayarları ekranıyla aynı gruplu liste ---------- */
/* Bölüm kartı kalkar: bölüm başlığı (fBolumBasligi) · grup başlığı (13 BÜYÜK HARF, grubun dışında) ·
   beyaz grup (köşe 12) · satırlar (30'luk renkli ikon, 17 başlık, 13 açıklama, soldan 60 girintili ayırıcı) */
html.ae-yerel .ay-sayfa {
    --ay-pad: 16px;
    --ay-ikon: 30px;
    --ay-kenar: var(--u-pad);
}

@media (max-width: 900px) {
    html.ae-yerel .ay-sayfa {
        --ay-ust: calc(var(--u-nav-h) + 56px);
    }

    html.ae-yerel .ay-menu-liste {
        top: var(--u-nav-h);
        padding: 4px var(--ay-kenar) 10px;
        background: var(--u-zemin);
        border-bottom: 0;
    }

    html.ae-yerel .ay-menu a[data-bolum] {
        min-height: 36px;
        padding: 4px 14px 4px 5px;
        font-size: 15px;
        font-weight: 500;
        color: var(--u-yazi);
        background: var(--u-kart);
        border: 0;
    }

    html.ae-yerel .ay-menu a[data-bolum][aria-current="true"] {
        color: #fff;
        background: var(--u-mavi);
    }

    html.ae-yerel .ay-ara input {
        min-height: 40px;
        background: rgba(118, 118, 128, 0.12);
        border-color: transparent;
        box-shadow: none;
    }
}

html.ae-yerel .ay-ara input {
    font-size: 16px;
    border-radius: 11px;
}

html.ae-yerel .ay-ara svg {
    stroke: var(--u-soluk);
}

html.ae-yerel .ay-menu {
    background: var(--u-kart);
    border: 0;
    box-shadow: none;
}

html.ae-yerel .ay-icerik {
    gap: 8px;
}

html.ae-yerel .ws .card.ay-bolum {
    overflow: visible;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

html.ae-yerel .ay-bolum-bas {
    gap: 12px;
    padding: 18px 4px 4px;
    border-bottom: 0;
}

html.ae-yerel .ws .ay-bolum-bas h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--u-yazi);
}

html.ae-yerel .ay-bolum-bas p {
    font-size: 13px;
    color: var(--u-soluk);
}

html.ae-yerel .ay-bolum-bas .ay-ikon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

html.ae-yerel .ay-bolum-bas .ay-ikon svg {
    width: 21px;
    height: 21px;
}

html.ae-yerel .ay-grup-baslik,
html.ae-yerel .card .ay-grup-baslik {
    padding: 22px 16px 7px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--u-soluk);
    background: transparent;
    border: 0;
}

html.ae-yerel .ay-grup-baslik span {
    color: var(--u-soluk);
}

html.ae-yerel .ay-grup {
    overflow: hidden;
    background: var(--u-kart);
    border-radius: 12px;
}

html.ae-yerel .ay-bolum-bas + .ay-grup,
html.ae-yerel .ay-bolum-bas + .ay-not + .ay-grup {
    margin-top: 14px;
}

html.ae-yerel .ay-grup + .ay-grup {
    margin-top: 16px;
    border-top: 0;
    box-shadow: none;
}

/* Ayırıcı: soldan girintili ince çizgi (ikonlu grupta ikondan sonra başlar) */
html.ae-yerel .ay-grup > * + * {
    position: relative;
    border-top: 0;
}

html.ae-yerel .ay-grup > * + *::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 16px;
    height: 1px;
    background: var(--u-ayirici);
    transform: scaleY(0.5);
    transform-origin: top;
    pointer-events: none;
}

html.ae-yerel .ay-grup:has(.ay-ikon) > * + *::before {
    left: 60px;
}

html.ae-yerel .ay-satir,
html.ae-yerel .ay-grup .ay-satir {
    gap: 8px 14px;
    min-height: 50px;
    padding: 8px 14px 8px 16px;
    color: var(--u-yazi);
}

html.ae-yerel .ay-satir:has(> .ay-metin > small) {
    min-height: 60px;
}

html.ae-yerel a.ay-satir:hover {
    background: transparent;
}

html.ae-yerel a.ay-satir:active {
    background: #e9e9ee;
}

html.ae-yerel .ay-metin strong {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--u-yazi);
}

html.ae-yerel .ay-metin small {
    font-size: 13px;
    line-height: 1.38;
    color: var(--u-soluk);
}

html.ae-yerel .ay-metin .ay-son {
    font-size: 12px;
    color: var(--u-gri);
}

html.ae-yerel .ay-deger {
    font-size: 17px;
    font-weight: 400;
    color: var(--u-soluk);
}

html.ae-yerel .ay-deger.ay-iyi,
html.ae-yerel .ay-deger.ay-uyari,
html.ae-yerel .ay-deger.ay-kotu {
    padding: 2px 7px 3px;
    font-size: 12px;
    border-radius: 8px;
}

html.ae-yerel .ay-deger.ay-iyi { color: var(--u-yesil-koyu) !important; background: rgba(52, 199, 89, 0.14); }
html.ae-yerel .ay-deger.ay-uyari { color: var(--u-turuncu-koyu) !important; background: rgba(255, 149, 0, 0.16); }
html.ae-yerel .ay-deger.ay-kotu { color: var(--u-kirmizi-koyu) !important; background: rgba(255, 59, 48, 0.12); }

html.ae-yerel .ay-ok {
    color: var(--u-ayirici);
}

html.ae-yerel .ay-ok svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.6;
}

html.ae-yerel a.ay-satir:hover .ay-ok {
    color: var(--u-ayirici);
}

/* Grup notu (grupNotu): grubun altında 13 soluk, zeminsiz */
html.ae-yerel .ay-not {
    padding: 7px 16px 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--u-soluk);
    background: transparent;
    border: 0;
}

html.ae-yerel .ay-grup > .ay-not {
    padding: 10px 16px 12px;
}

html.ae-yerel .ay-not a {
    color: var(--u-mavi);
}

/* İkon: renkli yuvarlak kare, beyaz simge (uygulamadaki Simge) */
html.ae-yerel .ay-ikon {
    color: #fff;
    background: var(--u-gri);
    border-radius: 7px;
    box-shadow: none;
}

html.ae-yerel .ay-ikon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

html.ae-yerel .ay-ikon-daire {
    border-radius: 50%;
}

html.ae-yerel .ay-r-mavi { color: #fff; background: var(--u-mavi); }
html.ae-yerel .ay-r-kirmizi { color: #fff; background: var(--u-kirmizi); }
html.ae-yerel .ay-r-yesil { color: #fff; background: var(--u-yesil); }
html.ae-yerel .ay-r-turuncu { color: #fff; background: var(--u-turuncu); }
html.ae-yerel .ay-r-mor { color: #fff; background: var(--u-mor); }
html.ae-yerel .ay-r-civit { color: #fff; background: var(--u-civit); }
html.ae-yerel .ay-r-turkuaz { color: #fff; background: var(--u-turkuaz); }
html.ae-yerel .ay-r-gri { color: #fff; background: var(--u-gri); }
html.ae-yerel .ay-r-koyugri { color: #fff; background: #636366; }

/* Seçili çipteki ikon: beyaz zemin üstünde soluk beyaz */
html.ae-yerel .ay-menu a[data-bolum] .ay-ikon {
    border-radius: 50%;
}

html.ae-yerel .ay-menu a[data-bolum][aria-current="true"] .ay-ikon {
    background: rgba(255, 255, 255, 0.24);
}

/* Anahtar: yalnız düğme (yazısı ekran okuyucuda kalır), uygulamadaki gibi yeşil */
html.ae-yerel .ay-sayfa .prf-switch {
    font-size: 13px;
    font-weight: 500;
}

html.ae-yerel .ay-sayfa .prf-switch[aria-checked="true"] {
    color: var(--u-yesil-koyu);
}

/* Seçim: segment (#E4E4E9) */
html.ae-yerel .ay-sayfa .ay-secim {
    gap: 0;
    padding: 2px;
    background: #e4e4e9;
    border: 0;
    border-radius: 10px;
}

html.ae-yerel .ay-sayfa .ayar-secim-btn {
    min-height: 32px;
    padding: 4px 10px 5px;
    font-size: 13.5px;
    font-weight: 600;
    color: #505055;
    background: transparent;
    border: 0;
    border-radius: 8px;
}

html.ae-yerel .ay-sayfa .ayar-secim-btn[aria-pressed="true"] {
    color: var(--u-yazi);
    background: var(--u-kart);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

html.ae-yerel .ay-sayfa .ayar-secim-btn:hover {
    color: #505055;
    border-color: transparent;
}

html.ae-yerel .ay-sayfa .ayar-secim-btn[aria-pressed="true"]:hover {
    color: var(--u-yazi);
}

html.ae-yerel .ay-satir.ay-dugmeler > .btn {
    height: 36px;
    border-radius: 10px;
}

html.ae-yerel .ay-satir > .btn,
html.ae-yerel .ay-satir > form .btn {
    height: 34px;
    padding: 0 14px;
    font-size: 15px;
    border-radius: 17px;
}

html.ae-yerel .ay-gunluk summary {
    color: var(--u-mavi);
}

html.ae-yerel .ay-bildiri .alert {
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

html.ae-yerel .ide-kart.is-kapali {
    background: var(--u-kart);
}

/* IDE Seçimi (/ayarlar/ide): kart içi bilgi kutusu ve hesaplar dolgulu, çerçevesiz (fIstatistik gibi) */
html.ae-yerel .ide-bilgi,
html.ae-yerel .ide-hesap {
    background: #f6f6f8;
    border: 0;
    border-radius: 12px;
}

html.ae-yerel .ide-bilgi-ad {
    color: var(--u-yazi);
}

html.ae-yerel .ide-kart-bas .ay-ikon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

/* Metin içi bağlantılar: uygulamadaki fBaglanti gibi mavi, alt çizgisiz */
html.ae-yerel .content p a:not([class]),
html.ae-yerel .content small a:not([class]),
html.ae-yerel .content dd a:not([class]),
html.ae-yerel .field-help a,
html.ae-yerel .gv-board-not a {
    color: var(--u-mavi);
    text-decoration: none;
}

/* IDE Merkezi (/gorev/ide): canlı iş, prompt formu beyaz kart; IDE'ler tek grup içinde satırlar */
html.ae-yerel .im-canli,
html.ae-yerel .im-prompt-form {
    padding: 16px;
    background: var(--u-kart);
    border-radius: 14px;
}

html.ae-yerel .im-arac-cubugu {
    padding: 0 0 12px;
}

html.ae-yerel .im-arac-cubugu label {
    font-size: 13px;
    font-weight: 500;
    color: var(--u-soluk);
}

html.ae-yerel .im-isler {
    padding: 0 0 12px;
}

html.ae-yerel .im-is {
    background: var(--u-kart);
    border: 0;
    border-radius: 12px;
}

html.ae-yerel .im-soru {
    background: rgba(0, 122, 255, 0.12);
    border: 0;
    border-radius: 12px;
}

html.ae-yerel .im-ide-izgara {
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: var(--u-kart);
    border-radius: 12px;
}

html.ae-yerel .im-ide {
    position: relative;
    gap: 14px;
    min-height: 60px;
    padding: 8px 14px 8px 16px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

html.ae-yerel .im-ide + .im-ide::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 60px;
    height: 1px;
    background: var(--u-ayirici);
    transform: scaleY(0.5);
    transform-origin: top;
}

html.ae-yerel .im-ide strong {
    font-size: 17px;
    font-weight: 400;
    color: var(--u-yazi);
}

html.ae-yerel .im-ide small {
    font-size: 13px;
    color: var(--u-soluk);
}

html.ae-yerel .im-ide.is-kapali {
    opacity: 1;
}

html.ae-yerel .im-ide.is-kapali strong {
    color: var(--u-soluk);
}

html.ae-yerel .im-ide.is-kapali .ay-ikon {
    filter: grayscale(1);
    opacity: 0.55;
}

html.ae-yerel .im-ide .btn {
    height: 32px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 16px;
}

/* Bekleyen görevler tablosu (kart düzeni): solda seçim kutusu, yanında görev; altında site · prompt · gün */
@media (max-width: 900px) {
    html.ae-yerel #ide-gorevler .ide-tablo .gv-row {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        grid-template-areas:
            "sec ad     ad"
            "sec site   prompt"
            "sec gun    gun";
        gap: 6px 10px;
    }

    html.ae-yerel #ide-gorevler .ide-tablo td:nth-child(1) { grid-area: sec; padding-top: 2px; }
    html.ae-yerel #ide-gorevler .ide-tablo td:nth-child(2) { grid-area: ad; min-width: 0; }
    html.ae-yerel #ide-gorevler .ide-tablo td:nth-child(3) { grid-area: site; min-width: 0; overflow-wrap: anywhere; }
    html.ae-yerel #ide-gorevler .ide-tablo td:nth-child(4) { grid-area: prompt; text-align: right; }
    html.ae-yerel #ide-gorevler .ide-tablo td:nth-child(5) { grid-area: gun; }
}

html.ae-yerel .ide-tablo td.ide-ad a {
    font-size: 17px;
    font-weight: 400;
    color: var(--u-yazi);
    text-decoration: none;
}

html.ae-yerel .ide-tablo td.ide-ad small {
    font-size: 13px;
}

html.ae-yerel .ide-kotu {
    color: var(--u-kirmizi-koyu);
}

/* ---------- Basma tepkisi: dokunma vurgusu yok ---------- */
html.ae-yerel a,
html.ae-yerel button {
    -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    html.ae-yerel .uyg-nav-baslik,
    html.ae-yerel .uyg-nav::after {
        transition: none;
    }
}

/* ---------- Uygulama içi: sayfaya özel kuralların bozduğu yerler (ekran denetimiyle bulundu) ---------- */
/* Özet kutucukları: rapor sayfalarının kendi düzeni (.rp .rp-kpi: simge solda, satır düzeni) simgeyi değerin üstüne
   bindiriyordu. Uygulamada her sayfada aynı kutucuk: simge + etiket üstte, büyük değer, açıklama. */
html.ae-yerel .kpi-grid .kpi,
html.ae-yerel .rp .rp-kpi .kpi,
html.ae-yerel .rp .kpi-grid .kpi {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 11px 12px 12px;
    text-align: left;
}

html.ae-yerel .kpi-grid .kpi-ikon,
html.ae-yerel .rp .rp-kpi .kpi-ikon,
html.ae-yerel .rp .kpi-grid .kpi-ikon {
    position: absolute;
    top: 11px;
    left: 12px;
    width: 24px;
    height: 24px;
    margin: 0;
}

html.ae-yerel .kpi-grid .kpi-ikon svg,
html.ae-yerel .rp .rp-kpi .kpi-ikon svg {
    width: 14px;
    height: 14px;
}

html.ae-yerel .kpi-grid .kpi-metin,
html.ae-yerel .rp .rp-kpi .kpi-metin {
    flex: 1 1 auto;
    align-items: stretch;
    min-width: 0;
}

html.ae-yerel .kpi-grid .kpi-etiket,
html.ae-yerel .rp .rp-kpi .kpi-etiket {
    display: -webkit-box;
    min-height: 24px;
    padding: 3px 0 0 32px;
    font-size: 12.5px;
    text-align: left;
    white-space: normal;
}

html.ae-yerel .kpi-grid .kpi-deger,
html.ae-yerel .rp .rp-kpi .kpi-deger {
    margin-top: 6px;
    font-size: 20px;
    line-height: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.ae-yerel .kpi-grid .kpi-alt,
html.ae-yerel .rp .rp-kpi .kpi-alt {
    display: block;
    font-size: 12px;
    white-space: normal;
}

/* Dar telefonda (360 altı) rapor kutucukları tek sütun olmasın: değer kısalır (…) */
@media (max-width: 359.98px) {
    html.ae-yerel .rp .kpi-grid.rp-kpi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html.ae-yerel .kpi-grid .kpi-deger,
    html.ae-yerel .rp .rp-kpi .kpi-deger {
        font-size: 17px;
    }
}

/* Üç kutucuk yan yana (kpi-dikey-3): simge akışta, etiket altında (yukarıdaki genel kuraldan sonra gelmeli) */
html.ae-yerel .kpi-grid.kpi-dikey-3 .kpi-ikon {
    position: static;
    display: inline-flex;
}

html.ae-yerel .kpi-grid.kpi-dikey-3 .kpi-etiket {
    display: block;
    min-height: 0;
    margin-top: 8px;
    padding: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

html.ae-yerel .kpi-grid.kpi-dikey-3 .kpi-deger {
    margin-top: 2px;
}

/* Tablolar: dar ekranda sütun başlıkları harf harf kırılmasın; tablo yana kaydırılır */
html.ae-yerel .table-wrap,
html.ae-yerel .card .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

html.ae-yerel .table th,
html.ae-yerel .rp table th {
    white-space: nowrap;
}

/* Kart / form içi düğme sıraları: dar ekranda sığmayan düğme alt satıra iner */
html.ae-yerel .gf-actions,
html.ae-yerel .form-actions,
html.ae-yerel .tm-kontrol {
    flex-wrap: wrap;
}

html.ae-yerel .gf-actions .btn,
html.ae-yerel .form-actions .btn,
html.ae-yerel .tm-kontrol .btn {
    white-space: nowrap;
}

/* Rapor ve sipariş sayfalarının iç kutuları (web: çerçeveli): uygulamada dolgulu, çerçevesiz */
html.ae-yerel .rp .stat,
html.ae-yerel .rp-mini,
html.ae-yerel .rp-ajanda-olay {
    border-color: transparent;
    box-shadow: none;
}

html.ae-yerel .rp-istatistik > div {
    background: #f6f6f8;
    border: 0;
    border-radius: 11px;
}

html.ae-yerel .rp-istatistik dt {
    font-size: 12px;
    font-weight: 400;
    color: var(--u-soluk);
}

html.ae-yerel .rp-istatistik dd {
    font-size: 16.5px;
    color: var(--u-koyu);
}

html.ae-yerel .rp-istatistik .is-kritik { background: rgba(255, 59, 48, 0.08); }
html.ae-yerel .rp-istatistik .is-uyari { background: rgba(255, 149, 0, 0.1); }

/* Öne çıkanlar / alarm listeleri: renkli şerit (fSerit gibi), çerçevesiz */
html.ae-yerel .rp-not-liste li,
html.ae-yerel .rp-alarm-moduller li {
    background: #f6f6f8;
    border-color: transparent;
    border-radius: 12px;
}

html.ae-yerel .rp-not-liste li.is-kritik { color: var(--u-kirmizi-koyu); background: rgba(255, 59, 48, 0.12); }
html.ae-yerel .rp-not-liste li.is-uyari { color: var(--u-turuncu-koyu); background: rgba(255, 149, 0, 0.16); }
html.ae-yerel .rp-alarm-moduller li.is-kritik { background: rgba(255, 59, 48, 0.1); border-top-color: var(--u-kirmizi); }
html.ae-yerel .rp-alarm-moduller li.is-uyari { background: rgba(255, 149, 0, 0.12); border-top-color: var(--u-turuncu); }

/* Hızlı dönem ve bölüm seçicileri: beyaz hap, seçili mavi (CipSirasi gibi), çerçevesiz */
html.ae-yerel .dt-hizli a,
html.ae-yerel .rp-bolumler a {
    color: var(--u-yazi);
    background: var(--u-kart);
    border-color: transparent;
    box-shadow: none;
}

html.ae-yerel .dt-hizli a[aria-current="true"],
html.ae-yerel .rp-bolumler a[aria-current="true"] {
    color: #fff;
    background: var(--u-mavi);
    border-color: transparent;
}

/* Boş grafik: gri simge + soluk metin (fBos), kesik çizgisiz */
html.ae-yerel .rg-bos {
    background: transparent;
    border: 0;
}

html.ae-yerel .rg-veri-kaydir {
    border-color: rgba(60, 60, 67, 0.12);
    border-radius: 10px;
}

/* Dar telefon kuralı (.kpi-grid:not(...) .kpi-ikon: 30px simge, 10px kenar) uygulamada da simgeyi metne
   yapıştırıyordu: aynı ölçüler daha güçlü seçiciyle */
html.ae-yerel .content .kpi-grid .kpi {
    padding: 11px 12px 12px;
}

html.ae-yerel .content .kpi-grid:not(.kpi-dikey-3) .kpi-ikon {
    position: absolute;
    top: 11px;
    left: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

html.ae-yerel .content .kpi-grid .kpi-ikon svg {
    width: 14px;
    height: 14px;
}

html.ae-yerel .content .kpi-grid:not(.kpi-dikey-3) .kpi-etiket {
    padding-left: 32px;
}

/* Liste başlığındaki "Dışarı Aktar" gibi küçük düğmeler: uygulamada yalnızca simge, yuvarlak (başlık kesilmez) */
html.ae-yerel .gv-board-head-satir > .btn.btn-sm:has(> .btn-icon) {
    flex: none;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 0;
    border-radius: 50%;
}

html.ae-yerel .gv-board-head-satir > .btn.btn-sm:has(> .btn-icon) .btn-icon {
    width: 18px;
    height: 18px;
}

/* Grup başlığı ile sayısı ayrılmasın ("GÜVENİLİR CİHAZLAR · 2" tek parça, gerekirse birlikte kırılır) */
html.ae-yerel .gv-board-head h2,
html.ae-yerel .ws .card.gv-board .gv-board-head h2 {
    display: block;
    min-width: 0;
}

html.ae-yerel .gv-board-head h2 .count {
    display: inline;
    white-space: nowrap;
}

html.ae-yerel .gv-board-head-satir {
    flex-wrap: nowrap;
    align-items: center;
}

html.ae-yerel .gv-board-head-satir > h2 {
    flex: 1 1 auto;
}

/* Bildirimler süzgeci (Tümü · Okunmamış · Hemen ilgilenin): tek satır, eşit parçalı segment */
html.ae-yerel .bld-segment {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    width: 100%;
}

html.ae-yerel .bld-segment a {
    justify-content: center;
    min-width: 0;
    height: 34px;
    padding: 0 6px;
    font-size: 13.5px;
    color: #505055;
    white-space: nowrap;
    border-radius: 8px;
}

html.ae-yerel .bld-segment a[aria-current="page"] {
    color: var(--u-yazi);
    background: var(--u-kart);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

html.ae-yerel .bld-segment-sayi {
    padding: 0 5px;
    background: rgba(0, 0, 0, 0.06);
}

/* Dosya seçme alanları: tarayıcının ham "Dosya Seç" düğmesi yerine uygulama düğmesi */
html.ae-yerel input[type="file"],
html.ae-yerel input[type="file"].form-control {
    height: auto;
    min-height: 46px;
    padding: 6px;
    font-size: 14px;
    color: var(--u-soluk);
    line-height: 34px;
}

html.ae-yerel input[type="file"]::file-selector-button {
    height: 34px;
    margin-right: 10px;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--u-mavi);
    background: var(--u-kart);
    border: 0;
    border-radius: 9px;
    box-shadow: 0 0 0 1px rgba(60, 60, 67, 0.12);
    cursor: pointer;
}

/* Bildirim süzgeci: parçalar yazısı kadar (eşit genişlikte "Okunmamış 5" ile "Hemen ilgilenin 1" birbirine taşıyordu);
   sığmazsa yana kaydırılır */
html.ae-yerel .bld-segment {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

html.ae-yerel .bld-segment::-webkit-scrollbar {
    display: none;
}

html.ae-yerel .bld-segment a {
    flex: 1 0 auto;
    gap: 4px;
    padding: 0 6px;
    font-size: 13px;
}

/* =============================================================================
   Agent Ekibi uygulaması 2.8.0+ (html.ae-ust, AEUYG=3): sayfanın üst çubuğu (‹ geri, logo, bildirimler, ayarlar,
   menü) ve alt menüsü uygulamanın kendisinde. Sayfadaki "‹ Kontrol Paneli / ‹ Geri" satırı çizilmez
   (app/views/page_header.php); sayfanın düğmeleri büyük başlığın sağında, uygulamanın kendi ekranlarıyla aynı.
   ============================================================================= */
html.ae-ust {
    --u-nav-h: 0px; /* Yapışkan öğeler (ör. Site Ayarları bölüm menüsü) artık ekranın en üstüne yapışır */
}

html.ae-ust .content,
html.ae-ust .content.ws {
    padding-top: 12px;
}

html.ae-ust .ph.ph-uyg.ph-ust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 4px 14px;
}

/* 2.8.2+: sayfa adı uygulamanın üst çubuğunun ortasında; sayfada tekrar yazılmaz. Başlığın yanındaki durum rozeti
   ("Bekliyor", "1 yeni") ve bilgi simgesi kalır; satırda alt başlık (solda) ve sayfanın düğmeleri (sağda) görünür. */
html.ae-baslik .ph-ust h1 .ph-baslik {
    display: none;
}

html.ae-baslik .content .ph-ust h1 {
    min-height: 0;
    margin-bottom: 4px;
}

html.ae-baslik .ph-ust h1:not(:has(.badge, .ph-title-ac)) {
    display: none;
}

html.ae-baslik .ph-ust .ph-sub {
    margin-top: 0;
}

/* Rozet, alt başlık ve düğme yoksa başlık bloğu tamamen kalkar (içerik üst çubuğun hemen altından başlar) */
html.ae-baslik .ph.ph-uyg.ph-ust:not(:has(.ph-sub, .uyg-nav-sag, h1 .badge, .ph-title-ac)) {
    display: none;
}

html.ae-ust .ph-ust .ph-title {
    flex: 1 1 auto;
    min-width: 0;
}

/* Başlığın sağındaki yuvarlak düğmeler (Ekle, Excel, PDF ...): başlığın ilk satırıyla ortalı */
html.ae-ust .ph-ust > .uyg-nav-sag {
    flex: none;
    margin-left: auto;
}

html.ae-ust .ph-ust > .uyg-nav-sag .btn.uyg-dugme:not(.btn-primary) {
    box-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.12);
}

/* Liste başlığındaki "Dışarı Aktar" (uygulama görünümü, dar ekran): 34 piksellik ikon kutusuna sıkışıp yazısı
   taşıyordu (gri daire + kesik "Dışarı Akt"). Uygulamada tam etiketli küçük hap olarak kalır. */
@media (max-width: 400px) {
    html.ae-yerel .gv-board-head-satir > .btn.btn-sm:has(> .btn-icon) {
        width: auto;
        padding: 0 12px;
        font-size: 14px;
    }
}

/* Güvenlik > Güvenilir / yasaklı telefonlar (kart düzeni): hücreler cihaz tablosunun alanlarına yerleşmiyordu
   ve sütunlar harf harf kırılıyordu. Telefon başlıkta, altında bilgiler, en altta işlemler. */
@media (max-width: 900px) {
    .gv-table-telefon .gv-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "cihaz   cihaz"
            "ip      sonkul"
            "eklenme eklenme"
            "aksiyon aksiyon";
    }

    .gv-table-yasak .gv-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "cihaz cihaz"
            "ip    eklenme"
            "aksiyon aksiyon";
    }

    .gv-table-telefon .gv-c-aksiyon,
    .gv-table-yasak .gv-c-aksiyon {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        width: auto;
        white-space: normal;
        text-align: left;
    }

    .gv-table-telefon .gv-c-aksiyon .inline-form,
    .gv-table-yasak .gv-c-aksiyon .inline-form {
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
}
/* ---------- Görev listesi: "▶ Başlat" (Yönetici; promptların yanında, app/views/gorev_pano_tablo.php) ----------
   Görev Mac'teki IDE ile sıraya girer. Küçük mavi hap; satıra tıklamak yine detayı açar (form tıklaması hariç). */
.gv-c-ilerleme .gv-baslat-form {
    display: inline-flex;
    margin: 0 0 0 10px;
    vertical-align: middle;
}
.gv-baslat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    margin: 0;
    padding: 0 12px 0 10px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
    background: var(--brand);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.1s;
}
.gv-baslat svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linejoin: round;
}
.gv-baslat:hover {
    background: color-mix(in srgb, var(--brand) 86%, #000);
}
.gv-baslat:active {
    transform: scale(0.96);
}
.gv-baslat:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

/* Ayarlar > formlu bölümler (Yapay Zeka Asistanı, Proje Standartları): satır listesi yerine iç boşluklu form */
.ay-grup.ay-form {
    padding: 16px 18px 18px;
}
.ay-grup.ay-form .form-group:last-of-type {
    margin-bottom: 16px;
}
.ay-grup.ay-form .ay-onay {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}
.ay-grup.ay-form .ay-onay input {
    width: 18px;
    height: 18px;
    flex: none;
}
.ay-grup.ay-form small.muted {
    display: block;
    margin-top: 6px;
    line-height: 1.45;
}
.ay-standart textarea {
    min-height: 320px;
    line-height: 1.5;
    font-size: 13px;
    resize: vertical;
}
.ay-form .ay-dugmeler {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
@media (max-width: 640px) {
    .ay-grup.ay-form { padding: 14px; }
    .ay-form .ay-dugmeler > .btn { flex: 1 1 auto; }
    .ay-standart textarea { min-height: 260px; }
}
