/* =====================================================================
   Ceyda Tekstil — tema
   Bootstrap 5.3 üzerine kurulur; renkler --ct-* değişkenlerindedir ve
   Bootstrap bileşenleri bu değişkenlerle ezilir. Yeni sayfalar/modüller
   yalnızca bu dosyadaki bileşenleri kullanır (bkz. CLAUDE.md "Tasarım kuralları").
   ===================================================================== */

:root {
    --ct-red: #C8102E;
    --ct-red-hover: #A80D26;
    --ct-red-tint: #FBE7EA;
    --ct-black: #161616;
    --ct-ink: #1B1F24;
    --ct-muted: #5A606B;
    --ct-bg: #F4F4F2;
    --ct-surface: #FFFFFF;
    --ct-border: #E3DFD6;
    --ct-divider: #EEEBE4;
    --ct-input-border: #CFCAC0;
    --ct-success: #1C6B43;
    --ct-success-bg: #E3F2EA;
    --ct-danger: #8C1D16;
    --ct-danger-bg: #FBE9E7;
    --ct-danger-border: #F2C9C3;
    --ct-neutral-chip: #EDEAE3;
    --ct-neutral-text: #3A3F48;
    --ct-info-bg: #F1EFE9;
    --ct-side-text: #EDEDED;
    --ct-side-muted: #B5B5B5;
    --ct-side-active: rgba(255, 255, 255, .12);
    --ct-avatar: #3D3D3D;
    --ct-focus: 0 0 0 3px rgba(200, 16, 46, .25);
    --ct-radius: 10px;
    --ct-radius-card: 14px;
    --ct-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ct-font-head: "Space Grotesk", "Inter", system-ui, sans-serif;

    /* Bootstrap ezmeleri */
    --bs-body-font-family: var(--ct-font);
    --bs-body-font-size: 16px;
    --bs-body-color: var(--ct-ink);
    --bs-body-bg: var(--ct-bg);
    --bs-secondary-color: var(--ct-muted);
    --bs-emphasis-color: var(--ct-ink);
    --bs-border-color: var(--ct-border);
    --bs-border-radius: var(--ct-radius);
    --bs-link-color: var(--ct-red);
    --bs-link-color-rgb: 200, 16, 46;
    --bs-link-hover-color: var(--ct-black);
    --bs-link-hover-color-rgb: 22, 22, 22;
    --bs-primary: var(--ct-red);
    --bs-primary-rgb: 200, 16, 46;
    --bs-danger: var(--ct-danger);
    --bs-danger-rgb: 140, 29, 22;
    --bs-success: var(--ct-success);
    --bs-success-rgb: 28, 107, 67;
    --bs-focus-ring-color: rgba(200, 16, 46, .25);
}

html { font-size: 16px; }
body {
    background: var(--ct-bg);
    color: var(--ct-ink);
    font-family: var(--ct-font);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .ct-head { font-family: var(--ct-font-head); color: var(--ct-ink); }
a { color: var(--ct-red); text-underline-offset: 2px; }
a:hover { color: var(--ct-black); }
.text-muted, .ct-muted { color: var(--ct-muted) !important; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.num { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.ct-icon { flex-shrink: 0; vertical-align: -0.2em; }

:focus-visible { outline: 3px solid rgba(200, 16, 46, .25); outline-offset: 1px; }

/* ---------- Kabuk: yan menü + içerik ---------- */
.ct-shell { display: flex; min-height: 100vh; }
.ct-sidebar {
    width: 248px; flex: 0 0 248px;
    background: var(--ct-black); color: var(--ct-side-text);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    padding: 20px 14px 14px;
}
.ct-main { flex: 1 1 auto; min-width: 0; padding: 40px 48px; }
.ct-main-narrow { width: 100%; }

.ct-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; text-decoration: none; }
.ct-brand:hover { color: #fff; }
.ct-logo {
    width: 36px; height: 36px; border-radius: 9px; background: var(--ct-red); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--ct-font-head); font-weight: 700; font-size: 15px; letter-spacing: .02em; flex-shrink: 0;
}
.ct-brand-name { font-family: var(--ct-font-head); font-weight: 600; font-size: 15px; line-height: 1.15; }
.ct-brand-sub { font-size: 12px; color: var(--ct-side-muted); }

.ct-nav { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; }
.ct-nav-group {
    font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ct-side-muted); padding: 18px 10px 6px;
}
.ct-nav a {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
    color: var(--ct-side-text); text-decoration: none; font-size: 15px; font-weight: 500;
}
.ct-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.ct-nav a.active { background: var(--ct-side-active); color: #fff; font-weight: 700; }

.ct-userbox { border-top: 1px solid #2E2E2E; margin-top: 14px; padding: 14px 6px 2px; display: flex; align-items: center; gap: 10px; }
.ct-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--ct-avatar); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.ct-userbox .ct-user-name { color: #fff; font-weight: 600; font-size: 13.5px; line-height: 1.2; text-decoration: none; display: block; }
.ct-userbox .ct-user-name:hover { text-decoration: underline; color: #fff; }
.ct-userbox .ct-user-role { color: var(--ct-side-muted); font-size: 13px; }
.ct-icon-btn {
    margin-left: auto; background: transparent; border: 1px solid #3A3A3A; color: var(--ct-side-text);
    height: 36px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 14px; font-weight: 600;
}
.ct-icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* Mobil: menü üste gelir, sticky değildir */
@media (max-width: 991.98px) {
    .ct-shell { flex-wrap: wrap; }
    .ct-sidebar { width: 100%; flex: 1 1 100%; position: static; height: auto; padding: 14px 12px; }
    .ct-nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
    .ct-nav li { flex: 0 0 auto; }
    .ct-nav-group { width: 100%; padding: 10px 10px 2px; }
    .ct-brand { padding-bottom: 8px; }
    .ct-main { padding: 24px 16px; }
}

/* ---------- Sayfa başlığı ---------- */
.ct-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ct-eyebrow { font-size: 14px; color: var(--ct-muted); margin-bottom: 4px; }
.ct-eyebrow a { color: var(--ct-muted); text-decoration: none; }
.ct-eyebrow a:hover { color: var(--ct-black); text-decoration: underline; }
.ct-eyebrow .sep { margin: 0 6px; opacity: .6; }
.ct-page-head h1 { font-family: var(--ct-font-head); font-size: 34px; font-weight: 600; margin: 0; line-height: 1.15; letter-spacing: -.01em; }
.ct-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 575.98px) { .ct-page-head h1 { font-size: 27px; } }

/* ---------- Kart ---------- */
.card, .ct-card {
    --bs-card-border-color: var(--ct-border);
    --bs-card-border-radius: var(--ct-radius-card);
    --bs-card-inner-border-radius: calc(var(--ct-radius-card) - 1px);
    --bs-card-bg: var(--ct-surface);
    --bs-card-spacer-x: 22px;
    --bs-card-spacer-y: 20px;
    --bs-card-cap-bg: var(--ct-surface);
    background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: var(--ct-radius-card);
    box-shadow: none;
}
.ct-card { padding: 20px 22px; }
.ct-card-title { font-family: var(--ct-font); font-size: 16.5px; font-weight: 600; margin: 0; color: var(--ct-ink); }
.ct-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ct-card-note { font-size: 14px; color: var(--ct-muted); }
.ct-card-flush { padding: 0; overflow: hidden; }
.ct-card-flush > .ct-card-head { padding: 18px 22px 0; }
.ct-card-dashed { background: transparent; border: 1.5px dashed var(--ct-input-border); }
.ct-card-muted { background: var(--ct-info-bg); }
.ct-card-dark { background: var(--ct-black); border-color: var(--ct-black); color: #fff; }
.ct-card-dark .ct-muted, .ct-card-dark .ct-stat-label { color: var(--ct-side-muted) !important; }

/* ---------- Butonlar ---------- */
.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: var(--ct-radius);
    --bs-btn-padding-x: 18px;
    --bs-btn-padding-y: 10px;
    --bs-btn-font-size: 14.5px;
    --bs-btn-focus-box-shadow: var(--ct-focus);
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-sm { --bs-btn-padding-x: 12px; --bs-btn-padding-y: 6px; --bs-btn-font-size: 14px; min-height: 38px; border-radius: 8px; }
.btn-primary {
    --bs-btn-bg: var(--ct-red); --bs-btn-border-color: var(--ct-red); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--ct-red-hover); --bs-btn-hover-border-color: var(--ct-red-hover); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--ct-red-hover); --bs-btn-active-border-color: var(--ct-red-hover);
    --bs-btn-disabled-bg: var(--ct-red); --bs-btn-disabled-border-color: var(--ct-red);
}
.btn-secondary, .btn-outline-secondary, .btn-light {
    --bs-btn-bg: var(--ct-surface); --bs-btn-border-color: var(--ct-input-border); --bs-btn-color: var(--ct-ink);
    --bs-btn-hover-bg: #F7F6F2; --bs-btn-hover-border-color: #B9B3A7; --bs-btn-hover-color: var(--ct-black);
    --bs-btn-active-bg: #EFEDE7; --bs-btn-active-border-color: #B9B3A7; --bs-btn-active-color: var(--ct-black);
}
.btn-dark {
    --bs-btn-bg: var(--ct-ink); --bs-btn-border-color: var(--ct-ink); --bs-btn-color: #fff;
    --bs-btn-hover-bg: #000; --bs-btn-hover-border-color: #000; --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #000; --bs-btn-active-border-color: #000;
}
.btn-danger-soft {
    --bs-btn-bg: var(--ct-surface); --bs-btn-border-color: var(--ct-danger-border); --bs-btn-color: var(--ct-danger);
    --bs-btn-hover-bg: var(--ct-danger-bg); --bs-btn-hover-border-color: var(--ct-danger-border); --bs-btn-hover-color: var(--ct-danger);
    --bs-btn-active-bg: var(--ct-danger-bg); --bs-btn-active-color: var(--ct-danger);
}
.btn-link { --bs-btn-color: var(--ct-red); --bs-btn-hover-color: var(--ct-black); min-height: auto; padding: 0; font-weight: 600; }

/* ---------- Form ---------- */
.form-label { font-size: 14px; font-weight: 600; color: var(--ct-ink); margin-bottom: 6px; }
.form-control, .form-select {
    min-height: 44px; border-radius: var(--ct-radius); border: 1px solid var(--ct-input-border);
    font-size: 14.5px; color: var(--ct-ink); background-color: var(--ct-surface);
}
textarea.form-control { min-height: 88px; }
.form-control-sm, .form-select-sm { min-height: 36px; border-radius: 8px; font-size: 13.5px; }
.form-control:focus, .form-select:focus { border-color: var(--ct-red); box-shadow: var(--ct-focus); }
.form-control[readonly] { background: #FAF9F6; }
.form-check-input { border-color: var(--ct-input-border); width: 1.15em; height: 1.15em; }
.form-check-input:checked { background-color: var(--ct-red); border-color: var(--ct-red); }
.form-check-input:focus { border-color: var(--ct-red); box-shadow: var(--ct-focus); }
.form-check-label { font-size: 14px; }
.form-text { color: var(--ct-muted); font-size: 14px; }
.ct-search { position: relative; }
.ct-search .ct-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ct-muted); pointer-events: none; }
.ct-search .form-control { padding-left: 40px; }
.field-validation-error { color: var(--ct-danger); font-size: 14.5px; font-weight: 600; display: block; margin-top: 4px; }
.input-validation-error { border-color: var(--ct-danger) !important; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }

/* ---------- Rozet (pill) ---------- */
.pill {
    display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; line-height: 1.35;
    padding: 3px 10px; border-radius: 999px; background: var(--ct-neutral-chip); color: var(--ct-neutral-text); white-space: nowrap;
}
.pill-red { background: var(--ct-red-tint); color: var(--ct-red); }
.pill-red-solid { background: var(--ct-red); color: #fff; }
.pill-success { background: var(--ct-success-bg); color: var(--ct-success); }
.pill-danger { background: var(--ct-danger-bg); color: var(--ct-danger); }
.pill-dark { background: var(--ct-ink); color: #fff; }
.pill-outline { background: transparent; border: 1px solid var(--ct-input-border); color: var(--ct-muted); }
.pill-lg { font-size: 14.5px; padding: 6px 14px; }

/* ---------- Tablo ---------- */
.ct-table-wrap { overflow-x: auto; position: relative; }
.table {
    --bs-table-bg: transparent; --bs-table-color: var(--ct-ink);
    --bs-table-border-color: var(--ct-divider); --bs-table-hover-bg: #FAF9F6;
    margin: 0; font-size: 15.5px;
}
.table > :not(caption) > * > * { padding: 13px 16px; border-bottom-color: var(--ct-divider); }
.table thead th {
    font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ct-muted);
    background: transparent; border-bottom: 1px solid var(--ct-border); white-space: nowrap;
}
.table tbody tr:last-child > * { border-bottom: 0; }
.table td { vertical-align: middle; font-variant-numeric: tabular-nums; }
.table .ct-name { font-weight: 600; color: var(--ct-ink); text-decoration: none; }
.table .ct-name:hover { color: var(--ct-red); text-decoration: underline; }
.table .ct-sub { color: var(--ct-muted); font-size: 14px; }
.table tfoot td, .table tfoot th { border-top: 1px solid var(--ct-border); font-weight: 600; }
.table-sm > :not(caption) > * > * { padding: 9px 14px; }
tr.is-muted td { color: var(--ct-muted); }
.ct-table-foot { padding: 12px 16px; color: var(--ct-muted); font-size: 14.5px; border-top: 1px solid var(--ct-divider); }

/* ---------- Bilgi / uyarı kutuları ---------- */
.ct-info { display: flex; gap: 10px; align-items: flex-start; background: var(--ct-info-bg); border-radius: var(--ct-radius); padding: 12px 16px; font-size: 15px; color: var(--ct-ink); }
.ct-info .ct-icon { color: var(--ct-muted); margin-top: 1px; }
.ct-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--ct-radius); padding: 12px 16px; font-size: 14px; margin-bottom: 18px; border: 1px solid transparent; }
.ct-alert-success { background: var(--ct-success-bg); color: var(--ct-success); border-color: #C3E2D0; }
.ct-alert-danger { background: var(--ct-danger-bg); color: var(--ct-danger); border-color: var(--ct-danger-border); }
.ct-alert .btn-close { margin-left: auto; width: .7em; height: .7em; }
.ct-alert:empty, .ct-alert.validation-summary-valid { display: none; }

/* ---------- İstatistik ---------- */
.ct-stat-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ct-muted); }
.ct-stat-value { font-family: var(--ct-font-head); font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 6px; }
.ct-stat-sub { font-size: 14px; color: var(--ct-muted); margin-top: 4px; }
.ct-pos { color: var(--ct-success) !important; }
.ct-neg { color: var(--ct-danger) !important; }
.ct-stats-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1199.98px) { .ct-stats-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ct-stats-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Portal ---------- */
.ct-module-icon {
    width: 44px; height: 44px; border-radius: 11px; background: var(--ct-red-tint); color: var(--ct-red);
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ct-card-dashed .ct-module-icon { background: var(--ct-neutral-chip); color: #7A7F88; }
.ct-module-card { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
a.ct-module-card:hover { border-color: #CFC8BA; color: inherit; }
.ct-module-stats { display: flex; gap: 28px; border-top: 1px solid var(--ct-divider); margin-top: auto; padding-top: 14px; }
.ct-module-stats .ct-stat-value { font-size: 26px; margin-top: 0; }
.ct-list { list-style: none; margin: 0; padding: 0; }
.ct-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ct-divider); }
.ct-list li:last-child { border-bottom: 0; }
.ct-list .ct-list-main { min-width: 0; flex: 1 1 auto; }
.ct-list .ct-list-title { font-weight: 600; color: var(--ct-ink); text-decoration: none; }
.ct-list a.ct-list-title:hover { color: var(--ct-red); text-decoration: underline; }
.ct-list .ct-list-sub { font-size: 14px; color: var(--ct-muted); }
.ct-list .ct-list-side { font-size: 14.5px; color: var(--ct-muted); white-space: nowrap; text-align: right; }
.ct-empty { color: var(--ct-muted); font-size: 13.5px; padding: 8px 0; }

/* ---------- Çalışan detayı ---------- */
.ct-person-avatar {
    width: 64px; height: 64px; border-radius: 50%; background: var(--ct-red-tint); color: var(--ct-red);
    display: inline-flex; align-items: center; justify-content: center; font-family: var(--ct-font-head); font-weight: 700; font-size: 22px; flex-shrink: 0;
}
.ct-kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--ct-divider); font-size: 14px; }
.ct-kv:last-child { border-bottom: 0; }
.ct-kv dt { font-weight: 400; color: var(--ct-muted); }
.ct-kv dd { margin: 0; text-align: right; font-weight: 500; }

/* ---------- İzin ekle ---------- */
.ct-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 991.98px) { .ct-split { grid-template-columns: minmax(0, 1fr); } }
fieldset > legend.form-label { float: none; width: auto; font-size: 14px; padding: 0; }
.ct-chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip {
    border: 1px solid var(--ct-input-border); background: var(--ct-surface); color: var(--ct-ink);
    border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; min-height: 36px; cursor: pointer;
}
.ct-chip:hover { border-color: #B9B3A7; }
.ct-chip[aria-pressed="true"] { background: var(--ct-red); border-color: var(--ct-red); color: #fff; }
.ct-chip:focus-visible { box-shadow: var(--ct-focus); outline: none; }
.ct-balance-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #2C2C2C; font-size: 14px; }
.ct-balance-row:last-child { border-bottom: 0; }
.ct-balance-after { font-family: var(--ct-font-head); font-size: 30px; font-weight: 700; color: #FF6B6B; font-variant-numeric: tabular-nums; }
.ct-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; padding: 5px 0; }
.ct-check .ct-icon { color: var(--ct-success); margin-top: 1px; }
.ct-check.is-bad .ct-icon { color: var(--ct-danger); }
.ct-check.is-wait .ct-icon { color: var(--ct-muted); }

/* ---------- Giriş ---------- */
.ct-auth { display: flex; min-height: 100vh; flex-wrap: wrap; }
.ct-auth-hero {
    flex: 1 1 50%; min-width: 300px; background-color: var(--ct-black); color: #fff; padding: 48px 56px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px);
}
.ct-auth-hero h1 { color: #fff; font-family: var(--ct-font-head); font-size: 44px; font-weight: 600; line-height: 1.1; max-width: 520px; margin: 0 0 16px; letter-spacing: -.015em; }
.ct-auth-hero p { color: #C9C9C9; font-size: 16px; max-width: 480px; margin: 0; }
.ct-auth-hero .pill-outline { border-color: #4A4A4A; color: var(--ct-side-muted); }
.ct-auth-form { flex: 1 1 50%; min-width: 300px; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--ct-bg); }
.ct-auth-card { width: 100%; max-width: 400px; }
@media (max-width: 767.98px) {
    .ct-auth-hero { padding: 28px 20px; gap: 24px; }
    .ct-auth-hero h1 { font-size: 30px; }
}

/* ---------- Çeşitli ---------- */
.ct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ct-red); display: inline-block; }
.ct-divider { border-top: 1px solid var(--ct-divider); margin: 16px 0; }
.alert { border-radius: var(--ct-radius); }
.dropdown-menu { border-color: var(--ct-border); border-radius: var(--ct-radius); }

/* ---------- Yazarak arama kutusu (combobox) ---------- */
.ct-combo { position: relative; }
.ct-combo-list {
    position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
    list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow-y: auto;
    background: var(--ct-surface); border: 1px solid var(--ct-input-border); border-radius: var(--ct-radius);
    box-shadow: 0 8px 24px rgba(22, 22, 22, .12);
}
.ct-combo-option { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.ct-combo-option[aria-selected="true"], .ct-combo-option:hover { background: var(--ct-red-tint); }
.ct-combo-name { font-weight: 600; font-size: 15.5px; color: var(--ct-ink); }
.ct-combo-sub { font-size: 13px; color: var(--ct-muted); }
.ct-combo-empty { padding: 12px; color: var(--ct-muted); font-size: 14.5px; }

/* ---------- Büyük boy (ana sayfa ve İzin Yaz) ---------- */
.ct-lg .form-control, .ct-lg .form-select { min-height: 52px; font-size: 16.5px; }
.ct-lg .form-label { font-size: 15.5px; }
.ct-lg .form-check-label { font-size: 15.5px; }
.ct-lg .form-check-input { width: 1.35em; height: 1.35em; margin-top: .15em; }
.ct-lg .ct-chip { min-height: 46px; padding: 10px 20px; font-size: 15.5px; }
.ct-lg .btn { min-height: 52px; font-size: 16px; --bs-btn-padding-x: 24px; }
.btn-xl { min-height: 64px !important; font-size: 18px !important; --bs-btn-padding-x: 28px; border-radius: 12px; }
.ct-search-lg .form-control { min-height: 64px; font-size: 17px; padding-left: 50px; border-radius: 12px; }
.ct-search-lg > .ct-icon { left: 18px; }
.ct-big-list li { padding: 14px 0; }
.ct-big-list .ct-list-title { font-size: 16.5px; }
.ct-big-list .ct-list-sub { font-size: 14px; }
.ct-big-list .ct-list-side { font-size: 14.5px; color: var(--ct-ink); }

/* İzin Yaz: özet cümlesi */
.ct-summary { border-radius: 12px; padding: 16px 18px; font-size: 16.5px; line-height: 1.55; background: var(--ct-info-bg); color: var(--ct-ink); }
.ct-summary strong { font-weight: 700; }
.ct-summary-note { font-size: 13.5px; color: var(--ct-muted); margin-top: 4px; }
.ct-form-narrow { max-width: 760px; }

/* Kayıt sonrası onay */
.ct-done-icon {
    width: 64px; height: 64px; border-radius: 50%; background: var(--ct-success-bg); color: var(--ct-success);
    display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Yazdırılabilir form (A4) ---------- */
.ct-print-toolbar { display: flex; gap: 10px; justify-content: center; padding: 20px 16px; flex-wrap: wrap; }
.ct-sheet {
    background: #fff; color: #000; width: 210mm; max-width: 100%; min-height: 297mm; margin: 0 auto 40px;
    padding: 16mm 16mm 14mm; border: 1px solid var(--ct-border); font-size: 12.5pt; font-family: var(--ct-font);
}
.ct-sheet h1 { font-family: var(--ct-font-head); font-size: 20pt; margin: 0; color: #000; letter-spacing: .02em; }
.ct-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 18px; }
.ct-sheet-head .ct-logo { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.ct-sheet-meta { text-align: right; font-size: 10.5pt; line-height: 1.5; }
.ct-sheet h2 { font-family: var(--ct-font); font-size: 11pt; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 18px 0 6px; color: #000; }
.ct-sheet table { width: 100%; border-collapse: collapse; }
.ct-sheet th, .ct-sheet td { border: 1px solid #999; padding: 7px 10px; text-align: left; vertical-align: top; font-size: 11.5pt; }
.ct-sheet th { width: 34%; font-weight: 600; background: #F4F4F2; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.ct-sheet-statement { margin: 20px 0 8px; font-size: 12pt; }
.ct-signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.ct-sign { border: 1px solid #999; padding: 10px 12px 12px; min-height: 46mm; display: flex; flex-direction: column; font-size: 10.5pt; }
.ct-sign-title { font-weight: 700; font-size: 11pt; margin-bottom: 10px; }
.ct-sign-line { border-bottom: 1px dotted #666; padding-top: 18px; margin-bottom: 4px; }
.ct-sheet-foot { margin-top: 18px; font-size: 9pt; color: #555; border-top: 1px solid #ccc; padding-top: 6px; }

@media print {
    @page { size: A4; margin: 0; }
    body { background: #fff !important; }
    .no-print, .ct-sidebar, .ct-alert { display: none !important; }
    .ct-sheet { border: 0; margin: 0; width: auto; min-height: auto; padding: 12mm 14mm 10mm; }
    /* Form tek A4 sayfaya sığsın */
    .ct-sheet h2 { margin: 12px 0 5px; }
    .ct-sheet th, .ct-sheet td { padding: 5px 9px; }
    .ct-sheet-statement { margin: 14px 0 6px; }
    .ct-signs { margin-top: 14px; }
    .ct-sign { min-height: 38mm; }
    .ct-sheet, .ct-signs { break-inside: avoid; }
}

/* ---------- Aç/kapa bölüm (details) ---------- */
.ct-disclosure > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 16px; color: var(--ct-ink); padding: 4px 0; min-height: 44px;
}
.ct-disclosure > summary::-webkit-details-marker { display: none; }
.ct-disclosure > summary::before {
    content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(-45deg); transition: transform .15s; margin: 0 4px 0 2px; flex-shrink: 0;
}
.ct-disclosure[open] > summary::before { transform: rotate(45deg); }
.ct-disclosure > summary:hover { color: var(--ct-red); }
.ct-disclosure > summary:focus-visible { outline: 3px solid rgba(200, 16, 46, .25); border-radius: 6px; }
.ct-disclosure .ct-disclosure-hint { font-weight: 400; color: var(--ct-muted); font-size: 14px; }

/* Büyük bakiye kartı (çalışan sayfası) */
.ct-balance-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ct-balance-hero .ct-balance-label { font-size: 17px; color: var(--ct-side-muted); }
.ct-balance-hero .ct-balance-value { font-family: var(--ct-font-head); font-size: 48px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ct-balance-hero .ct-balance-next { font-size: 15.5px; color: #E6E6E6; }

/* Dönem seçici (İzinler) */
a.ct-chip { text-decoration: none; display: inline-flex; align-items: center; }
a.ct-chip[aria-current="true"] { background: var(--ct-red); border-color: var(--ct-red); color: #fff; }

/* Kullanıcı kutusu: Çıkış butonu ayrı satırda, ad kesilmesin */
.ct-userbox { flex-wrap: wrap; }
.ct-userbox > form { width: 100%; margin: 10px 0 0 !important; }
.ct-userbox .ct-icon-btn { width: 100%; margin-left: 0; }

/* Büyük form: onay/radyo kutusu ile yazı arası */
.ct-lg .form-check { padding-left: 2.1em; }
.ct-lg .form-check .form-check-input { margin-left: -2.1em; }

/* Takvim (flatpickr) — tema renkleri */
.flatpickr-calendar { font-family: inherit; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.selected:focus,
.flatpickr-day.startRange, .flatpickr-day.endRange { background: var(--ct-red); border-color: var(--ct-red); color: #fff; }
.flatpickr-day.today { border-color: var(--ct-red); }
.flatpickr-day:hover, .flatpickr-day:focus { background: var(--ct-red-tint); border-color: var(--ct-red-tint); }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months { color: var(--ct-ink); }
input.flatpickr-input[readonly] { background-color: var(--ct-surface); }
