/**
 * POSIX — merkezi UI katmanı
 * Tema renkleri index.php içindeki body.theme-* :root değişkenlerinden gelir.
 * Bu dosya; ortak bileşen, tablo aksiyonları ve tekrar eden layout yardımcılarını toplar.
 */

/* -------------------------------------------------------------------------- */
/* Tablo satırı aksiyonları — evrenselTabloIslemleri()                         */
/* -------------------------------------------------------------------------- */
.serica-action-btns {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.serica-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
    font-size: 13px;
    border: 1px solid transparent;
    line-height: 1.2;
    box-sizing: border-box;
}

.serica-btn:focus-visible {
    outline: 2px solid var(--primary-color, #2563eb);
    outline-offset: 2px;
}

.serica-btn:active {
    transform: translateY(1px);
}

/* Durum (Aktif / Pasif pill) */
.serica-btn--status {
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.serica-btn--status[data-status="1"] {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.serica-btn--status[data-status="0"] {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

/* Sıra */
.serica-btn--order {
    width: 32px;
    height: 32px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

/* Düzenle (link) */
a.serica-btn--edit {
    text-decoration: none;
}

.serica-btn--edit {
    width: 32px;
    height: 32px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

/* Sil */
.serica-btn--delete {
    width: 32px;
    height: 32px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #ef4444;
}

/* Yetkisiz kilit rozeti */
.serica-action-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

/* -------------------------------------------------------------------------- */
/* Genel yardımcılar (sayfalar yavaş yavaş buraya taşınabilir)                 */
/* -------------------------------------------------------------------------- */
.serica-module-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    box-shadow: var(--shadow-sm, 0 4px 20px rgba(0, 0, 0, 0.03));
}

.serica-module-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark, #0f172a);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding-bottom: 15px;
}

/* -------------------------------------------------------------------------- */
/* Ortak formlar — .form-group, .form-control (input / select / textarea)      */
/* Tek kaynak: modül CSS’lerinde aynı tanım tekrarlanmasın; farklı ihtiyaç    */
/* için modülde yalnızca gerekli özellikleri override edin.                    */
/* -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 15px;
    text-align: left;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.form-control,
input.form-control:not([type="checkbox"]):not([type="radio"]),
select.form-control,
textarea.form-control {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.45;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    min-height: 42px;
    cursor: pointer;
}

input.form-control:not([type="file"]):not([type="checkbox"]):not([type="radio"]) {
    min-height: 42px;
}

input[type="file"].form-control {
    padding: 10px 12px;
    min-height: 44px;
    font-size: 13px;
    line-height: 1.4;
}

input[type="datetime-local"].form-control,
input[type="date"].form-control,
input[type="time"].form-control {
    min-height: 42px;
}

.form-control:focus {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #2563eb) 18%, transparent);
}

/* .form-control sınıfı olmayan kontroller (legacy şablonlar) */
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not(.form-control),
.form-group select:not(.form-control),
.form-group textarea:not(.form-control) {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.45;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea:not(.form-control) {
    min-height: 120px;
    resize: vertical;
}

.form-group select:not(.form-control),
.form-group input:not([type="file"]):not([type="color"]):not(.form-control) {
    min-height: 42px;
}

.form-group input[type="color"]:not(.form-control) {
    min-height: 44px;
    padding: 6px;
}

.form-group input:not(.form-control):focus,
.form-group select:not(.form-control):focus,
.form-group textarea:not(.form-control):focus {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #2563eb) 18%, transparent);
}

/* .fg hücresi — entegratör/banka ayar formları (çoğunlukla .form-control yok). Fatura filtre
   barındaki .fg + .form-control alanlarına dokunmamak için :not(.form-control) şart. */
.fg input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not(.form-control),
.fg select:not(.form-control),
.fg textarea:not(.form-control) {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.45;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fg textarea:not(.form-control) {
    min-height: 96px;
    resize: vertical;
    height: auto;
}

.fg select:not(.form-control),
.fg input:not([type="file"]):not([type="color"]):not(.form-control) {
    min-height: 42px;
}

.fg input:not(.form-control):focus,
.fg select:not(.form-control):focus,
.fg textarea:not(.form-control):focus {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #2563eb) 18%, transparent);
}

.serica-btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color, #2563eb);
    color: var(--primary-color, #2563eb);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.serica-btn-outline:hover {
    background: var(--primary-color, #2563eb);
    color: #fff;
}

.serica-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 25px;
    overflow-x: auto;
    white-space: nowrap;
}

.serica-tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.serica-tab-btn:hover {
    color: var(--primary-color, #2563eb);
    background: rgba(0, 158, 247, 0.05);
    border-radius: 8px 8px 0 0;
}

.serica-tab-btn.active {
    border-bottom-color: var(--primary-color, #2563eb);
    color: var(--text-dark, #0f172a);
    background: rgba(0, 158, 247, 0.07);
    border-radius: 8px 8px 0 0;
}

/* -------------------------------------------------------------------------- */
/* HR SaaS ortak UX katmani                                                   */
/* -------------------------------------------------------------------------- */
.hrx-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.hrx-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-dark, #0f172a);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.hrx-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.hrx-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    margin-bottom: 7px;
}

.hrx-input,
.hrx-select,
.hrx-textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #cbd5e1);
    background: color-mix(in srgb, var(--bg-body, #f8fafc) 78%, #fff);
    color: var(--text-dark, #0f172a);
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hrx-textarea { min-height: 92px; resize: vertical; }

.hrx-input:focus,
.hrx-select:focus,
.hrx-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color, #2563eb) 18%, transparent);
    background: #fff;
}

.hrx-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted, #64748b);
}

.hrx-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
}

.hrx-chip--ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.hrx-chip--warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.hrx-action-bar {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #dbe3ef;
    background: color-mix(in srgb, var(--card-bg, #fff) 92%, #ffffff);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.hrx-btn-primary {
    border: none;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color, #2563eb), color-mix(in srgb, var(--primary-color, #2563eb) 72%, #111827));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary-color, #2563eb) 28%, transparent);
}

.hrx-btn-primary:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.hrx-btn-ghost {
    border: 1px solid #cbd5e1;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* Global form error summary (tek merkez)                                     */
/* -------------------------------------------------------------------------- */
.serica-form-error-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
}

.serica-form-error-summary[hidden] {
    display: none !important;
}

.serica-form-error-summary i {
    color: #ef4444;
}

/* -------------------------------------------------------------------------- */
/* Para liste hücresi — paraListeCssYazdir() (erp_Function.php)                 */
/* -------------------------------------------------------------------------- */
.para-main { display: block; font-weight: 700; }
.para-sub { display: block; margin-top: 2px; font-size: 11px; color: #64748b; font-weight: 700; }
.para-anim { animation: paraGlow 1.8s ease-in-out infinite; }
@keyframes paraGlow {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: .68; transform: translateY(-1px); }
}

/* -------------------------------------------------------------------------- */
/* Kabuk / tema / layout — index.php (taşındı)                               */
/* -------------------------------------------------------------------------- */
/* ==================== CİDDİ, KURUMSAL VE ERP ODAKLI TEMA KÜTÜPHANESİ ==================== */
:root, body.theme-classic-light { --bg-body: #f3f4f6; --sidebar-bg: #1e293b; --sidebar-text: #94a3b8; --sidebar-hover: #334155; --sidebar-active: #ffffff; --header-bg: #ffffff; --card-bg: #ffffff; --text-dark: #0f172a; --text-muted: #64748b; --border-color: #e2e8f0; --primary-color: #2563eb; --danger-color: #e11d48; --shadow-sm: 0px 4px 20px rgba(0, 0, 0, 0.03); }
body.theme-classic-dark { --bg-body: #0f172a; --sidebar-bg: #020617; --sidebar-text: #64748b; --sidebar-hover: #1e293b; --sidebar-active: #38bdf8; --header-bg: #1e293b; --card-bg: #1e293b; --text-dark: #f8fafc; --text-muted: #94a3b8; --border-color: #334155; --primary-color: #3b82f6; --danger-color: #ef4444; }

body.theme-sapphire-light { --bg-body: #f8fafc; --sidebar-bg: #0f172a; --sidebar-text: #94a3b8; --sidebar-hover: #1e293b; --sidebar-active: #ffffff; --header-bg: #ffffff; --card-bg: #ffffff; --text-dark: #020617; --text-muted: #64748b; --border-color: #e2e8f0; --primary-color: #0284c7; --danger-color: #dc2626; }
body.theme-sapphire-dark { --bg-body: #075985; --sidebar-bg: #082f49; --sidebar-text: #7dd3fc; --sidebar-hover: #0369a1; --sidebar-active: #ffffff; --header-bg: #0c4a6e; --card-bg: #0c4a6e; --text-dark: #f0f9ff; --text-muted: #bae6fd; --border-color: #0369a1; --primary-color: #38bdf8; --danger-color: #ef4444;}

body.theme-emerald-light { --bg-body: #f0fdf4; --sidebar-bg: #064e3b; --sidebar-text: #a7f3d0; --sidebar-hover: #047857; --sidebar-active: #ffffff; --header-bg: #ffffff; --card-bg: #ffffff; --text-dark: #022c22; --text-muted: #059669; --border-color: #d1fae5; --primary-color: #10b981; --danger-color: #ef4444;}
body.theme-emerald-dark { --bg-body: #022c22; --sidebar-bg: #064e3b; --sidebar-text: #6ee7b7; --sidebar-hover: #047857; --sidebar-active: #34d399; --header-bg: #064e3b; --card-bg: #064e3b; --text-dark: #ecfdf5; --text-muted: #a7f3d0; --border-color: #047857; --primary-color: #10b981; --danger-color: #f87171;}

body.theme-carbon-light { --bg-body: #f4f4f5; --sidebar-bg: #27272a; --sidebar-text: #a1a1aa; --sidebar-hover: #3f3f46; --sidebar-active: #ffffff; --header-bg: #ffffff; --card-bg: #ffffff; --text-dark: #18181b; --text-muted: #71717a; --border-color: #e4e4e7; --primary-color: #52525b; --danger-color: #e11d48;}
body.theme-carbon-dark { --bg-body: #18181b; --sidebar-bg: #09090b; --sidebar-text: #71717a; --sidebar-hover: #27272a; --sidebar-active: #e4e4e7; --header-bg: #27272a; --card-bg: #27272a; --text-dark: #fafafa; --text-muted: #a1a1aa; --border-color: #3f3f46; --primary-color: #a1a1aa; --danger-color: #f87171;}

body.theme-amethyst-light { --bg-body: #f5f3ff; --sidebar-bg: #2e1065; --sidebar-text: #c4b5fd; --sidebar-hover: #4c1d95; --sidebar-active: #ffffff; --header-bg: #ffffff; --card-bg: #ffffff; --text-dark: #1e1b4b; --text-muted: #6d28d9; --border-color: #ede9fe; --primary-color: #7c3aed; --danger-color: #e11d48; }
body.theme-amethyst-dark { --bg-body: #1e1b4b; --sidebar-bg: #0f0728; --sidebar-text: #a78bfa; --sidebar-hover: #4c1d95; --sidebar-active: #ede9fe; --header-bg: #312e81; --card-bg: #312e81; --text-dark: #f5f3ff; --text-muted: #c4b5fd; --border-color: #4c1d95; --primary-color: #a78bfa; --danger-color: #f87171; }
body.theme-latte-light { --bg-body: #faf5f0; --sidebar-bg: #432c1a; --sidebar-text: #d6c0b0; --sidebar-hover: #5c3d26; --sidebar-active: #fffbeb; --header-bg: #ffffff; --card-bg: #ffffff; --text-dark: #291c14; --text-muted: #78716c; --border-color: #f5ece5; --primary-color: #b45309; --danger-color: #b91c1c; }
body.theme-latte-dark { --bg-body: #1c1410; --sidebar-bg: #2d1f14; --sidebar-text: #a8a29e; --sidebar-hover: #422a1a; --sidebar-active: #fef3c7; --header-bg: #292524; --card-bg: #292524; --text-dark: #faf5f0; --text-muted: #d6d0ca; --border-color: #44403c; --primary-color: #f59e0b; --danger-color: #f87171; }
body.theme-mint-light { --bg-body: #f0fdfa; --sidebar-bg: #115e59; --sidebar-text: #99f6e4; --sidebar-hover: #0f766e; --sidebar-active: #ffffff; --header-bg: #ffffff; --card-bg: #ffffff; --text-dark: #042f2e; --text-muted: #0d9488; --border-color: #ccfbf1; --primary-color: #0d9488; --danger-color: #dc2626; }
body.theme-mint-dark { --bg-body: #042f2e; --sidebar-bg: #0a2f2c; --sidebar-text: #5eead4; --sidebar-hover: #115e59; --sidebar-active: #ccfbf1; --header-bg: #134e4a; --card-bg: #134e4a; --text-dark: #f0fdfa; --text-muted: #99f6e4; --border-color: #0f766e; --primary-color: #2dd4bf; --danger-color: #f87171; }
body.theme-sunset-light { --bg-body: #fff7ed; --sidebar-bg: #7c2d12; --sidebar-text: #fdba74; --sidebar-hover: #9a3412; --sidebar-active: #ffffff; --header-bg: #ffffff; --card-bg: #ffffff; --text-dark: #431407; --text-muted: #c2410c; --border-color: #ffedd5; --primary-color: #ea580c; --danger-color: #dc2626; }
body.theme-sunset-dark { --bg-body: #431407; --sidebar-bg: #3f0f08; --sidebar-text: #fb923c; --sidebar-hover: #7c2d12; --sidebar-active: #ffedd5; --header-bg: #582c18; --card-bg: #582c18; --text-dark: #fff7ed; --text-muted: #fdba74; --border-color: #9a3412; --primary-color: #fb923c; --danger-color: #f87171; }
body.theme-ocean-light { --bg-body: #ecfeff; --sidebar-bg: #164e63; --sidebar-text: #a5f3fc; --sidebar-hover: #155e75; --sidebar-active: #ffffff; --header-bg: #ffffff; --card-bg: #ffffff; --text-dark: #164e63; --text-muted: #0891b2; --border-color: #cffafe; --primary-color: #0891b2; --danger-color: #e11d48; }
body.theme-ocean-dark { --bg-body: #164e63; --sidebar-bg: #0c2d38; --sidebar-text: #67e8f9; --sidebar-hover: #155e75; --sidebar-active: #ecfeff; --header-bg: #155e75; --card-bg: #155e75; --text-dark: #ecfeff; --text-muted: #a5f3fc; --border-color: #0e7490; --primary-color: #22d3ee; --danger-color: #f87171; }
body.theme-rose-light { --bg-body: #fff1f2; --sidebar-bg: #881337; --sidebar-text: #fda4af; --sidebar-hover: #9f1239; --sidebar-active: #ffffff; --header-bg: #ffffff; --card-bg: #ffffff; --text-dark: #4c0519; --text-muted: #e11d48; --border-color: #ffe4e6; --primary-color: #e11d48; --danger-color: #b45309; }
body.theme-rose-dark { --bg-body: #4c0519; --sidebar-bg: #2f0612; --sidebar-text: #fb7185; --sidebar-hover: #881337; --sidebar-active: #ffe4e6; --header-bg: #6b1a2d; --card-bg: #6b1a2d; --text-dark: #fff1f2; --text-muted: #fda4af; --border-color: #9f1239; --primary-color: #fb7185; --danger-color: #fbbf24; }

/* --- GENEL SİSTEM CSS --- */
* { box-sizing: border-box; font-family: 'Inter', sans-serif; margin: 0; padding: 0; }
/* Eski modül aliasları (--text-main, --brand-primary, …) tema değişkenlerine bağlı */
body {
    display: flex;
    height: 100vh;
    background-color: var(--bg-body);
    color: var(--text-dark);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow: hidden;
    --text-main: var(--text-dark);
    --text-soft: var(--text-muted);
    --brand-primary: var(--primary-color);
    --brand-primary-light: color-mix(in srgb, var(--primary-color) 18%, transparent);
}
a { text-decoration: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

.sidebar { width: 280px; background-color: var(--sidebar-bg); display: flex; flex-direction: column; transition: all 0.4s ease; z-index: 20; border-right: 1px solid var(--border-color); border-left: none; overflow: hidden; }
body.layout-sidebar-right { flex-direction: row-reverse; }
body.layout-sidebar-right .sidebar { border-right: none; border-left: 1px solid var(--border-color); }

body.ui-radius-sharp .sidebar-menu li a,
body.ui-radius-sharp .toggle-btn,
body.ui-radius-sharp .widget-item,
body.ui-radius-sharp .global-search,
body.ui-radius-sharp .module-container,
body.ui-radius-sharp .theme-card,
body.ui-radius-sharp .modal-content { border-radius: 6px !important; }
body.ui-radius-soft .sidebar-menu li a,
body.ui-radius-soft .toggle-btn,
body.ui-radius-soft .widget-item { border-radius: 14px; }
body.ui-radius-soft .module-container,
body.ui-radius-soft .modal-content,
body.ui-radius-soft .global-search { border-radius: 18px; }
body.ui-radius-soft .user-avatar { border-radius: 12px; }
.sidebar.collapsed { width: 80px; } 
.sidebar.collapsed .menu-text, .sidebar.collapsed .menu-header, .sidebar.collapsed .sidebar-footer, .sidebar.collapsed .sidebar-search, .sidebar.collapsed .menu-arrow { display: none; }
.sidebar.collapsed .sidebar-brand { justify-content: center; padding: 25px 0; }

.sidebar-brand { padding: 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: center; align-items: center; height: 80px; }
.brand-logo { max-width: 100%; height: auto; max-height: 115px; transition: all 0.3s ease; cursor: pointer; }
.sidebar.collapsed .brand-logo { max-height: 75px; }

.sidebar-search { padding: 20px 25px 10px; }
.sidebar-search .search-box { background: rgba(0,0,0,0.2); border-radius: 6px; display: flex; align-items: center; padding: 0 15px; border: 1px solid rgba(255,255,255,0.05); }
.sidebar-search input { width: 100%; padding: 12px 10px; border: none; background: transparent; color: var(--sidebar-active); font-size: 13px; outline: none; }

.sidebar-menu { list-style: none; padding: 10px 15px; margin: 0; overflow-y: auto; flex: 1; }
.sidebar-menu li a { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; color: var(--sidebar-text); text-decoration: none; transition: 0.2s ease; border-radius: 6px; font-weight: 500; font-size: 14px; margin-bottom: 4px; cursor: pointer;}
.sidebar-menu li a:hover, .sidebar-menu li a.active { background-color: var(--sidebar-hover); color: var(--sidebar-active); }
.sidebar-menu li a i.menu-icon { font-size: 16px; width: 25px; text-align: center; color: var(--sidebar-text); transition: 0.2s; }
.sidebar-menu li a:hover i.menu-icon, .sidebar-menu li a.active i.menu-icon { color: var(--primary-color); }

/* Alt Menü (Gruplama) MODERN ÇİZGİ CSS */
.has-submenu > a .menu-arrow { font-size: 10px; transition: transform 0.3s; }
.has-submenu.open > a .menu-arrow { transform: rotate(180deg); }
.submenu { list-style: none; padding-left: 0; display: none; margin-bottom: 5px;}

.submenu li a { padding: 10px 15px 10px 45px; font-size: 13px; font-weight: 400; opacity: 0.7; position: relative; transition: all 0.3s ease; }
.submenu li a:hover, .submenu li a.active { background-color: transparent; color: var(--sidebar-active); opacity: 1; transform: translateX(3px); }
.submenu li a::before { content: ''; position: absolute; left: 26px; top: 50%; transform: translateY(-50%); width: 6px; height: 2px; background-color: var(--sidebar-text); opacity: 0.3; border-radius: 2px; transition: all 0.3s ease; }
.submenu li a:hover::before, .submenu li a.active::before { width: 10px; background-color: var(--primary-color); opacity: 1; }

/* Alt menü: satır başı ikon (getHarita alt_menuler.icon) */
.submenu li a.menu-subitem--has-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px 10px 40px;
  justify-content: flex-start;
}
.submenu li a.menu-subitem--has-icon::before { display: none; }
.submenu li a.menu-subitem--has-icon .submenu-icon {
  width: 18px;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.92em;
  opacity: 0.78;
}
.submenu li a.menu-subitem--has-icon:hover .submenu-icon,
.submenu li a.menu-subitem--has-icon.active .submenu-icon {
  opacity: 1;
  color: var(--primary-color);
}
.submenu li a.menu-subitem--has-icon .menu-subitem-text {
  flex: 1;
  min-width: 0;
}

.sidebar-menu li.menu-header { padding: 20px 15px 10px; font-size: 11px; text-transform: uppercase; color: var(--sidebar-text); opacity: 0.6; font-weight: 600; letter-spacing: 1px;}
.sidebar-footer { padding: 20px; font-size: 12px; text-align: center; color: var(--sidebar-text); border-top: 1px solid rgba(255,255,255,0.05); }

.main-wrapper { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.top-header { background-color: var(--header-bg); padding: 0 30px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; height: 80px; box-shadow: var(--shadow-sm); z-index: 10; transition: background-color 0.4s ease; }
.header-left { display: flex; align-items: center; gap: 20px; flex: 1; }
.toggle-btn { background: var(--bg-body); border: 1px solid var(--border-color); color: var(--text-muted); cursor: pointer; width: 40px; height: 40px; border-radius: 8px; font-size: 18px; transition: 0.3s; display: flex; align-items:center; justify-content:center;}
.toggle-btn:hover { color: var(--primary-color); border-color: var(--primary-color); }

.global-search { display: flex; align-items: center; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px; padding: 0 15px; width: 350px; height: 40px; transition: 0.3s;}
.global-search:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.global-search input { border: none; background: transparent; width: 100%; outline: none; padding: 0 10px; color: var(--text-dark); font-size: 13px; }
.global-search i { color: var(--text-muted); }

.header-widgets { display: flex; align-items: center; gap: 15px; }
.widget-item, .widget-text-item, .currency-widget { display: flex; align-items: center; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-muted); font-size: 13px; font-weight: 500; transition: 0.3s; }

.currency-widget { gap: 15px; padding: 0 20px; height: 40px; }
.currency-widget span b { color: var(--text-dark); margin-left: 3px; font-weight: 700; font-family: monospace; font-size: 14px; }

.widget-item { justify-content: center; width: 40px; height: 40px; cursor: pointer; position: relative; font-size: 16px; }
.widget-item:hover { color: var(--primary-color); border-color: var(--primary-color); }
.network-status-widget.network-status-online { color: #10b981; border-color: #86efac; background: #f0fdf4; }
.network-status-widget.network-status-offline { color: #ef4444; border-color: #fecaca; background: #fef2f2; }
.widget-text-item { gap: 8px; height: 40px; padding: 0 15px; font-weight: 600; }

.user-profile { display: flex; align-items: center; gap: 15px; margin-left: 10px; padding-left: 25px; border-left: 1px solid var(--border-color); cursor: pointer; }
.user-avatar { width: 40px; height: 40px; border-radius: 8px; background: var(--primary-color); color: #fff; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 16px; overflow: hidden; transition: 0.3s; border: 2px solid transparent;}
.user-profile:hover .user-avatar { border-color: var(--primary-color); transform: scale(1.05); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-info { display: flex; flex-direction: column; text-align: right; }
.user-info .name { font-weight: 600; font-size: 13px; color: var(--text-dark); }
.user-info .role { font-size: 11px; color: var(--text-muted); text-transform: capitalize;}

.logout-btn { background: #fee2e2; border: 1px solid #fecaca; color: #ef4444; width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; text-decoration: none; transition: 0.3s; margin-left: 5px; }
.logout-btn:hover { background: #ef4444; color: #fff; border-color: #ef4444; transform: scale(1.05); }

.content-area { padding: 30px; overflow-y: auto; flex: 1; }
.page-title h1 { color: var(--text-dark); margin: 0 0 5px 0; font-size: 22px; }
.page-title .breadcrumb { color: var(--text-muted); font-size: 13px; margin-bottom: 25px;}
.module-container { background: var(--card-bg); padding: 35px; border-radius: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); min-height: 500px; transition: background-color 0.4s ease, border-color 0.4s ease; }

/* MODAL GENEL TASARIM */
.modal { display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-content { background-color: var(--card-bg); padding: 35px; border-radius: 12px; width: 450px; border: 1px solid var(--border-color); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: 0.3s; }
.close-modal { position: absolute; top: 20px; right: 25px; font-size: 22px; cursor: pointer; color: var(--text-muted); transition: 0.2s; z-index: 999999;} 
.close-modal:hover { color: var(--danger-color); transform: rotate(90deg); }
.modal-title { margin-top: 0; margin-bottom: 25px; font-size: 18px; font-weight: 600; color: var(--text-dark); text-align: center;}

/* Tema Kartları */
.theme-modal-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
.theme-tab-btn { flex: 1; padding: 12px 10px; border: 1px solid var(--border-color); background: var(--bg-body); color: var(--text-muted); border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; transition: 0.2s; }
.theme-tab-btn:hover { color: var(--primary-color); border-color: var(--primary-color); }
.theme-tab-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.theme-tab-panel { display: none; text-align: left; }
.theme-tab-panel.active { display: block; }
.theme-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin: 18px 0 10px; font-weight: 700; }
.theme-section-title:first-child { margin-top: 0; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; max-height: 340px; overflow-y: auto; padding-right: 6px; }
.theme-card { border: 2px solid var(--border-color); border-radius: 12px; padding: 12px; cursor: pointer; text-align: center; transition: all 0.3s ease; }
.theme-card.active { border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(37,99,235,0.2); }
.theme-card:hover { border-color: var(--primary-color); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.theme-preview { height: 40px; border-radius: 6px; margin-bottom: 10px; display:flex; padding:4px; gap:4px; }
.theme-name { font-size: 12px; font-weight: 600; }

.switch-container { display: flex; align-items: center; justify-content: space-between; background: var(--bg-body); padding: 15px 20px; border-radius: 8px; border: 1px solid var(--border-color); margin-bottom: 15px;}
.switch-label strong { font-size: 14px; color: var(--text-dark); display:block; }
.switch-label small { font-size: 12px; color: var(--text-muted); }
.toggle-switch { position: relative; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #10b981; }
input:checked + .slider:before { transform: translateX(20px); }

.btn-primary { background: var(--primary-color); color: #fff; border: none; padding: 12px 15px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; width: 100%;}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* BİLDİRİM AÇILIR MENÜ */
.notify-wrapper { position: relative; display: inline-block; }
.notify-bell { background: transparent; border: none; color: var(--text-dark); font-size: 20px; cursor: pointer; padding: 10px; position: relative; transition: 0.3s; }
.notify-bell:hover { color: var(--primary-color); }
.notify-badge { position: absolute; top: 0px; right: 0px; background: #ef4444; color: #fff; font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 10px; border: 2px solid #fff; display: none; }
.notify-dropdown { position: absolute; top: 50px; right: 0; width: 350px; background: var(--card-bg); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid var(--border-color); display: none; z-index: 1000; overflow: hidden; }
.notify-header { background: var(--bg-body); padding: 15px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.notify-header h4 { margin: 0; font-size: 14px; color: var(--text-dark); }
.notify-clear-btn { background: transparent; border: none; color: var(--primary-color); font-size: 12px; font-weight: bold; cursor: pointer; }
.notify-body { max-height: 380px; overflow-y: auto; }
.notify-group-title { padding: 10px 14px 6px; font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; background: var(--bg-body); border-bottom: 1px solid var(--border-color); }
.notify-item { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border-bottom: 1px solid var(--border-color); text-decoration: none; transition: 0.3s; cursor: pointer; }
.notify-item:hover { background: var(--bg-body); }
.notify-icon { width: 35px; height: 35px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.notify-text { flex: 1; }
.notify-title { font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 3px; line-height: 1.3;}
.notify-desc { font-size: 12px; color: var(--text-muted); margin: 0 0 6px; line-height: 1.4; word-break: break-word; }
.notify-type { font-size: 10px; font-weight: 700; text-transform: uppercase; margin-bottom: 3px; letter-spacing: 0.5px;}
.notify-time { font-size: 11px; color: var(--text-muted); }
.notify-empty { padding: 40px 15px; text-align: center; color: var(--text-muted); font-size: 13px; }

@keyframes ringBell { 0% { transform: rotate(0); } 10% { transform: rotate(25deg); } 20% { transform: rotate(-20deg); } 30% { transform: rotate(15deg); } 40% { transform: rotate(-15deg); } 50% { transform: rotate(10deg); } 60% { transform: rotate(-10deg); } 70% { transform: rotate(5deg); } 80% { transform: rotate(-5deg); } 90% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
.ringing { animation: ringBell 1.2s ease-in-out; transform-origin: top center; display: inline-block; color: var(--danger-color) !important; }

/* YENİ PROFİL MODAL TASARIMI (CSS KAYMASI SIFIRLANDI) */
.profile-header-bg { background: linear-gradient(135deg, var(--primary-color), #0ea5e9); padding: 40px 20px 20px; text-align: center; color: #fff; position: relative; }
.profile-avatar-wrapper { position: relative; width: 100px; height: 100px; margin: 0 auto 15px; }
.profile-avatar-wrapper img, .profile-avatar-wrapper .avatar-placeholder { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: var(--bg-body); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 40px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.edit-avatar-btn { position: absolute; bottom: 0; right: 0; background: var(--text-dark); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid #fff; transition: 0.2s; font-size: 12px; }
.edit-avatar-btn:hover { background: var(--primary-color); transform: scale(1.1); }

.profile-tabs { display: flex; background: var(--bg-body); border-bottom: 1px solid var(--border-color); }
.ptab-btn { flex: 1; padding: 15px; border: none; background: transparent; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: 0.3s; border-bottom: 2px solid transparent; font-size: 13px; }
.ptab-btn.active { color: var(--primary-color); border-bottom-color: var(--primary-color); background: var(--card-bg); }
.ptab-content { display: none; animation: fadeIn 0.3s; text-align: left; }
.ptab-content.active { display: block; }
.ptab-content .form-control { background: var(--bg-body); width: 100%; box-sizing: border-box; }
/* Profil modalı — daha ferah genişlik, tüm ekranlarda uyum */
#profileModal .modal-content.profile-modal-shell {
    width: min(760px, calc(100vw - 32px));
    max-width: 100%;
    max-height: min(92vh, 920px);
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
    text-align: left;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}
#profileModal .profile-modal-body {
    padding: clamp(18px, 3.2vw, 30px) clamp(18px, 4vw, 40px) clamp(22px, 3.5vw, 36px);
}
#profileModal .profile-tabs {
    flex-wrap: wrap;
    row-gap: 0;
}
#profileModal .ptab-btn {
    flex: 1 1 auto;
    min-width: min(140px, 33%);
    box-sizing: border-box;
}
@media (max-width: 480px) {
    #profileModal .modal-content.profile-modal-shell {
        width: calc(100vw - 20px);
        max-height: 94vh;
    }
    #profileModal .ptab-btn {
        min-width: 100%;
        font-size: 11px;
        padding: 12px 8px;
    }
}

/* 🛡️ PROFİL MODALI İNPUT ZIRHI (HİÇBİR ŞEY EZEMEZ) */
#profileModal .form-group { margin-bottom: 20px !important; }

#profileModal .form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

#profileModal .form-control {
    display: block !important;
    width: 100% !important;
    height: 45px !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-dark) !important;
    background-color: var(--bg-body) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important;
}

#profileModal .form-control:focus {
    border-color: var(--primary-color) !important;
    background-color: transparent !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}        


/* ajaxIslemi merkezi bekleme overlay — Swal altında, sayfa üstünde */
.serica-ajax-busy {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99990;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    pointer-events: all;
}
.serica-ajax-busy.is-active {
    display: flex;
}
.serica-ajax-busy__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 36px;
    border-radius: 16px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    max-width: min(90vw, 360px);
    text-align: center;
}
.serica-ajax-busy__icon {
    font-size: 32px;
    color: var(--primary-color, #2563eb);
}
.serica-ajax-busy__text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark, #0f172a);
    line-height: 1.45;
}
@media (prefers-reduced-motion: reduce) {
    .serica-ajax-busy__icon {
        animation: none;
    }
}

.swal2-container { z-index: 999999 !important; }

/* -------------------------------------------------------------------------- */
/* Gece modu — nukleerGeceModu (index.php taşındı)                            */
/* -------------------------------------------------------------------------- */
body[class*="-dark"] .content-area { background-color: transparent !important; }
body[class*="-dark"] .module-card, body[class*="-dark"] .module-container { background-color: var(--card-bg) !important; border-color: var(--border-color) !important; box-shadow: none !important; }
body[class*="-dark"] input, body[class*="-dark"] select, body[class*="-dark"] textarea, body[class*="-dark"] .form-control, body[class*="-dark"] .swal2-input, body[class*="-dark"] .swal2-select { background-color: var(--sidebar-bg) !important; color: #ffffff !important; border: 1px solid var(--border-color) !important; }
body[class*="-dark"] table, body[class*="-dark"] th, body[class*="-dark"] td, body[class*="-dark"] tr, body[class*="-dark"] .form-group, body[class*="-dark"] .header-flex { background-color: transparent !important; border-color: var(--border-color) !important; color: var(--text-dark) !important; }
body[class*="-dark"] .swal2-popup { background-color: var(--card-bg) !important; border: 1px solid var(--border-color) !important; }
body[class*="-dark"] h1, body[class*="-dark"] h2, body[class*="-dark"] h3, body[class*="-dark"] h4, body[class*="-dark"] h5, body[class*="-dark"] p, body[class*="-dark"] span:not([class*="badge"]), body[class*="-dark"] b, body[class*="-dark"] strong, body[class*="-dark"] label, body[class*="-dark"] .swal2-title, body[class*="-dark"] .swal2-html-container { color: var(--text-dark) !important; }

/* Renkli butonları ve etiketleri koruma kalkanı */
body[class*="-dark"] .btn-primary, body[class*="-dark"] .btn-primary *, body[class*="-dark"] .btn-secondary, body[class*="-dark"] .btn-secondary *, body[class*="-dark"] .btn-action, body[class*="-dark"] .btn-action *, body[class*="-dark"] [class*="badge"], body[class*="-dark"] [class*="badge"] *, body[class*="-dark"] [style*="color:#10b981"], body[class*="-dark"] [style*="color:#ef4444"], body[class*="-dark"] [style*="color:#3b82f6"], body[class*="-dark"] [style*="color:#f59e0b"] { color: inherit !important; background-color: inherit !important; }

/* ============================================================
   EVRENSEL SAYFALAMA (sayfaListele_Navigasyon çıktısı)
   Tüm modüllerde .serica-pagination-* sınıfları kullanılır.
   ============================================================ */
.serica-pagination-wrap {
    margin-top: 20px;
    padding: 16px 12px 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.serica-pagination-meta {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #64748b;
    text-align: center;
    line-height: 1.45;
}
.serica-pagination {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 4px 14px rgba(15,23,42,0.06);
    -webkit-font-smoothing: antialiased;
}
.serica-page-btn,
.serica-page-nav {
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: none;
    background: transparent;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #334155;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.serica-page-nav--prev,
.serica-page-nav--next {
    min-width: 48px;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    color: #475569;
}
.serica-page-btn:hover:not(.is-active),
.serica-page-nav:hover:not(:disabled) {
    background: rgba(255,255,255,0.75);
    box-shadow: 0 1px 3px rgba(15,23,42,0.08);
}
.serica-page-btn:active:not(.is-active),
.serica-page-nav:active:not(:disabled) {
    transform: scale(0.97);
}
.serica-page-btn.is-active {
    background: #fff;
    color: var(--primary-color, #3b82f6);
    box-shadow: 0 2px 8px rgba(15,23,42,0.1), 0 0 0 1px rgba(59,130,246,0.12);
    cursor: default;
    font-weight: 700;
}
.serica-page-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.serica-page-ellipsis {
    min-width: 28px;
    padding: 0 2px;
    font-weight: 700;
    font-size: 14px;
    color: #cbd5e1;
    -webkit-user-select: none;
    user-select: none;
    align-self: center;
}

/* Teknik destek erişim onayı modalı — index.php global include */
.serica-td-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 9999;
}
.serica-td-dialog {
    width: min(560px, 96vw);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.serica-td-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.serica-td-head strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.serica-td-head button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}
.serica-td-head button:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.serica-td-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
}
.serica-td-body p {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}
.serica-td-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
    line-height: 1.45;
}
.serica-td-code-row {
    display: flex;
    gap: 10px;
}
.serica-td-code-row input {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
    outline: 0;
}
.serica-td-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}
.serica-td-actions button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.serica-td-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
}
.serica-td-actions button:active {
    transform: translateY(1px);
}
.serica-td-actions .serica-td-btn--primary {
    background: #2563eb;
}
.serica-td-actions .serica-td-btn--primary:hover {
    background: #1d4ed8;
}
.serica-td-actions .serica-td-btn--success {
    background: #059669;
}
.serica-td-actions .serica-td-btn--success:hover {
    background: #047857;
}
.serica-td-actions .serica-td-btn--danger {
    background: #dc2626;
}
.serica-td-actions .serica-td-btn--danger:hover {
    background: #b91c1c;
}

/* Teknik destek aktif bağlantı bandı — index.php global yüzeyi */
.serica-td-user-band {
    width: 100%;
    min-height: 56px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 24px;
    box-sizing: border-box;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25);
    position: relative;
    z-index: 12;
}
.serica-td-user-band__info {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.serica-td-user-band__info > i {
    flex: 0 0 auto;
    font-size: 20px;
}
.serica-td-user-band__title {
    display: inline-block;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}
#sericaTeknikDestekUserBandText {
    display: inline-block;
    max-width: min(760px, 62vw);
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.serica-td-user-band__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 14px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
    transition: background 0.2s ease, transform 0.12s ease;
}
.serica-td-user-band__btn:hover {
    background: #fffbeb;
}
.serica-td-user-band__btn:active {
    transform: translateY(1px);
}

@media (max-width: 767px) {
    .serica-td-user-band {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 16px;
    }
    #sericaTeknikDestekUserBandText {
        max-width: 100%;
        white-space: normal;
    }
    .serica-td-user-band__btn {
        width: 100%;
    }
    .serica-td-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .serica-td-actions button {
        width: 100%;
    }
}
/* Sayfa başına kayıt input (tüm modüllerde #liste_limit) */
.serica-limit-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.serica-limit-wrap label {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.serica-limit-wrap input[type="number"] {
    width: 72px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    height: 38px;
    box-sizing: border-box;
    text-align: center;
}
/* Dark mode uyumu */
body[class*="-dark"] .serica-pagination {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(71, 85, 105, 0.4);
}
body[class*="-dark"] .serica-page-btn,
body[class*="-dark"] .serica-page-nav {
    color: #cbd5e1;
}
body[class*="-dark"] .serica-page-btn.is-active {
    background: #1e293b;
    color: var(--primary-color, #3b82f6);
}
body[class*="-dark"] .serica-pagination-meta {
    color: #94a3b8;
}
