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

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1d2327;
    background: #f0f0f1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #2271b1;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #c3c4c7;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.125rem;
    color: #1d2327;
    text-decoration: none;
    min-width: 0;
    line-height: 1;
}

.brand:hover {
    color: #145c42;
    text-decoration: none;
}

.brand-text {
    white-space: nowrap;
}


.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Üst menü linkleri tüm sayfalarda aynı: siyah, hover'da mavi */
.nav a:not(.btn),
.site-nav a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #1d2327;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav a:not(.btn):hover,
.nav a:not(.btn):focus-visible,
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn):focus-visible {
    color: #135e96;
    text-decoration: none;
}

.nav-user {
    color: #50575e;
    font-size: 0.9rem;
}

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

.site-main {
    flex: 1;
    padding: 32px 0 48px;
}

.site-footer {
    background: #fff;
    border-top: 1px solid #c3c4c7;
    padding: 20px 0;
    color: #50575e;
    font-size: 0.875rem;
}

.site-footer p {
    margin: 0;
}

.site-logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: 280px;
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

/* Logo wordmark içeriyor — metni tekrarlama (erişilebilirlik için sr-only) */
.brand--logo .brand-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    .site-logo {
        height: 44px;
        max-height: 44px;
        max-width: 220px;
    }
}

.site-nav {
    flex-wrap: wrap;
    gap: 4px 12px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.footer-nav a {
    color: #135e96;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 0.875rem;
}

.footer-nav a:hover {
    text-decoration: underline;
    color: #0c4a6e;
}

.footer-custom {
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.footer-android {
    margin: 0 0 14px;
}

.footer-android-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #dde3df;
    border-radius: 8px;
    background: #f4faf7;
    color: #145c42;
    text-decoration: none;
    max-width: 100%;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.footer-android-link:hover,
.footer-android-link:focus-visible {
    background: #e8f5ef;
    border-color: #1a805b;
    color: #0f4834;
    text-decoration: none;
}

.footer-android-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: block;
}

.footer-android-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
    min-width: 0;
}

.footer-android-text strong {
    font-size: 0.875rem;
    font-weight: 600;
}

.footer-android-meta {
    color: #64748b;
    font-size: 0.75rem;
}

.footer-copy {
    color: #646970;
}

.cms-page h1 {
    margin: 0 0 20px;
}

.cms-content {
    line-height: 1.6;
}

.cms-page-full {
    margin: 0;
}

.cms-page-full .cms-content {
    padding: 0;
}

.contact-form-wrap {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #c3c4c7;
    max-width: 520px;
}

.contact-form-wrap h2 {
    margin: 0 0 16px;
    font-size: 1.125rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    background: transparent;
    color: #2271b1;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.btn-primary:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: #2271b1;
    border-color: #2271b1;
}

.btn-outline:hover {
    background: #f6f7f7;
    color: #135e96;
}

.btn-ghost {
    color: #50575e;
    border-color: #c3c4c7;
}

.btn-ghost:hover {
    background: #f6f7f7;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9375rem;
    /* Tanı çıktısı gibi çok satırlı mesajlar satır satır okunabilsin */
    white-space: pre-line;
}

.alert-error {
    background: #fcf0f1;
    border: 1px solid #d63638;
    color: #8a2424;
}

.alert-success {
    background: #edfaef;
    border: 1px solid #00a32a;
    color: #1e4620;
}

.alert-info {
    background: #f0f6fc;
    border: 1px solid #2271b1;
    color: #1d4f7c;
}

.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid #c3c4c7;
}

.admin-tab {
    padding: 10px 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #50575e;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.admin-tab:hover {
    color: #2271b1;
    text-decoration: none;
}

.admin-tab.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

.hero {
    text-align: center;
    padding: 48px 0 32px;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
}

.lead {
    max-width: 640px;
    margin: 0 auto 28px;
    color: #50575e;
    font-size: 1.125rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.features {
    padding: 16px 0 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 24px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.0625rem;
}

.feature-card p {
    margin: 0;
    color: #50575e;
    font-size: 0.9375rem;
}

.auth-box {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 32px;
}

.auth-box h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.muted {
    color: #50575e;
    margin: 0 0 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
}

.form-group input {
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: 2px solid #2271b1;
    outline-offset: 0;
    border-color: #2271b1;
}

.hint {
    color: #646970;
    font-size: 0.8125rem;
}

.auth-footer {
    margin: 20px 0 0;
    text-align: center;
    font-size: 0.9375rem;
    color: #50575e;
}

.auth-legal-checks {
    gap: 12px;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #3c434a;
}

.auth-check input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.auth-check a {
    color: #2271b1;
    text-decoration: underline;
}

.auth-check em {
    color: #646970;
    font-style: normal;
}

.panel-header {
    margin-bottom: 24px;
}

.panel-header h1 {
    margin: 0 0 4px;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.panel-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 24px;
}

.panel-card h3 {
    margin: 0 0 16px;
}

.panel-card-muted {
    background: #f6f7f7;
}

.panel-logo-upload {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.panel-logo-preview {
    width: 120px;
    height: 60px;
    object-fit: contain;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 8px;
}

.panel-logo-preview--empty {
    display: none;
}

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

.marketplace-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.marketplace-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.marketplace-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.marketplace-card-head h3,
.marketplace-card-head h2 {
    margin: 0;
}

.marketplace-card-subtitle {
    margin: 4px 0 0;
    color: #646970;
    font-size: 0.875rem;
}

.marketplace-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.marketplace-stat {
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 12px 14px;
    background: #f9fafb;
}

.marketplace-stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #646970;
    margin-bottom: 6px;
}

.marketplace-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d2327;
}

.marketplace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.marketplace-kv {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    margin: 0;
}

.marketplace-kv dt {
    color: #646970;
    font-weight: 600;
}

.marketplace-kv dd {
    margin: 0;
}

.marketplace-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.marketplace-section-head h2,
.marketplace-section-head h3 {
    margin: 0;
}

.marketplace-section-head .muted {
    margin: 4px 0 0;
}

.marketplace-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.marketplace-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid #dcdcde;
    background: #fff;
    color: #1d2327;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
}

.marketplace-tab:hover {
    background: #f6f7f7;
    text-decoration: none;
}

.marketplace-tab.is-active,
#mp-tab-genel:checked ~ .marketplace-tabs label[for="mp-tab-genel"],
#mp-tab-woo:checked ~ .marketplace-tabs label[for="mp-tab-woo"],
#mp-tab-opencart:checked ~ .marketplace-tabs label[for="mp-tab-opencart"],
#mp-tab-prestashop:checked ~ .marketplace-tabs label[for="mp-tab-prestashop"],
#mp-tab-takiborsasi:checked ~ .marketplace-tabs label[for="mp-tab-takiborsasi"],
#mp-tab-trendyol:checked ~ .marketplace-tabs label[for="mp-tab-trendyol"] {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.marketplace-settings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mp-tab-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.marketplace-settings .marketplace-panels {
    display: block;
}

.marketplace-settings .marketplace-panel {
    display: none !important;
}

.marketplace-settings .marketplace-panel[hidden] {
    display: none !important;
}

.marketplace-settings .marketplace-panel.is-active {
    display: block !important;
}

#mp-tab-genel:checked ~ .marketplace-panels #genel,
#mp-tab-woo:checked ~ .marketplace-panels #woo,
#mp-tab-opencart:checked ~ .marketplace-panels #opencart,
#mp-tab-prestashop:checked ~ .marketplace-panels #prestashop,
#mp-tab-takiborsasi:checked ~ .marketplace-panels #takiborsasi,
#mp-tab-trendyol:checked ~ .marketplace-panels #trendyol {
    display: block !important;
}

.marketplace-settings .marketplace-panel .auth-form {
    max-width: none;
}

.erp-body .auth-form .form-group input,
.erp-body .auth-form .form-group select,
.erp-body .auth-form .form-group textarea {
    max-width: 100%;
}

.marketplace-settings .marketplace-card {
    width: 100%;
}

.marketplace-panels {
    display: block;
}

.marketplace-panel {
    margin-bottom: 16px;
}

.marketplace-list {
    margin: 0;
    padding-left: 18px;
    color: #50575e;
}

.marketplace-panel-note {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f6f7f7;
    border: 1px solid #e5e7eb;
    color: #50575e;
}

.marketplace-channel-menu {
    margin-top: 8px;
}

.badge-danger {
    background: #fcf0f1;
    color: #8a2424;
}

.badge-woo {
    background: #f3e8ff;
    color: #6b21a8;
}

.badge-oc {
    background: #e0f2fe;
    color: #075985;
}

.badge-ps {
    background: #fef3c7;
    color: #92400e;
}

.badge-ty {
    background: #ffedd5;
    color: #c2410c;
}

.badge-hb {
    background: #ffedd5;
    color: #9a3412;
}

.badge-n11 {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-pazarama {
    background: #ecfdf5;
    color: #047857;
}

.badge-ciceksepeti {
    background: #fce7f3;
    color: #9d174d;
}

.badge-amazon {
    background: #fff7ed;
    color: #c2410c;
}

.badge-pttavm {
    background: #fef9c3;
    color: #854d0e;
}

.badge-tb {
    background: #ede9fe;
    color: #5b21b6;
}

.info-list {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
}

.info-list dt {
    font-weight: 600;
    color: #50575e;
}

.info-list dd {
    margin: 0;
}

.check-list {
    margin: 12px 0 0;
    padding-left: 20px;
    color: #50575e;
}

.error-box {
    text-align: center;
    padding: 64px 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
}

.error-box h1 {
    margin: 0 0 8px;
    font-size: 3rem;
    color: #2271b1;
}

.error-box p {
    margin: 0 0 24px;
    color: #50575e;
}

.wizard {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    overflow: hidden;
}

.wizard-header {
    background: #2271b1;
    color: #fff;
    padding: 20px 24px;
}

.wizard-header h1 {
    margin: 0 0 4px;
    font-size: 1.25rem;
}

.wizard-header .muted {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.wizard-body {
    padding: 24px;
}

.wizard-body h2 {
    margin: 0 0 8px;
    font-size: 1.125rem;
}

.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.radio-card {
    display: flex;
    gap: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
}

.radio-card:has(input:checked) {
    border-color: #2271b1;
    background: #f0f6fc;
}

.radio-card input {
    margin-top: 4px;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-desc {
    font-size: 0.875rem;
    color: #50575e;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.wizard-nav {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.wizard-nav .btn-primary {
    flex: 1;
}

.wizard-hint {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #50575e;
    line-height: 1.5;
}

.wizard-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #787c82;
}

.wizard-modul-row {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    align-items: flex-start;
}

.wizard-modul-row:has(input:checked) {
    border-color: #2271b1;
    background: #f0f6fc;
}

.wizard-modul-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wizard-modul-desc {
    font-size: 0.8125rem;
    color: #50575e;
    line-height: 1.4;
}

@keyframes wizard-btn-pulse-keyframes {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 113, 177, 0.55);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 113, 177, 0);
        transform: scale(1.02);
    }
}

.wizard-btn-pulse,
.wizard-btn-pulse-once.wizard-btn-pulse {
    animation: wizard-btn-pulse-keyframes 1.2s ease-in-out infinite;
}

.panel-dashboard {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.panel-card-wide {
    grid-column: 1 / -1;
}

.panel-card-sub {
    margin: -4px 0 12px;
    font-size: 0.875rem;
}

.panel-card-foot {
    margin: 12px 0 0;
    font-size: 0.875rem;
}

.panel-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-height: 160px;
    padding: 8px 0;
}

.panel-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.panel-chart-bar-wrap {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.panel-chart-bar {
    width: 72%;
    max-width: 48px;
    min-height: 4px;
    background: linear-gradient(180deg, #2271b1 0%, #135e96 100%);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.panel-chart-val {
    font-size: 0.65rem;
    color: #50575e;
    text-align: center;
    word-break: break-word;
}

.panel-chart-lbl {
    font-size: 0.75rem;
    color: #787c82;
}

.panel-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    margin: 0;
}

.panel-stat-grid dt {
    font-size: 0.75rem;
    color: #787c82;
    margin: 0;
}

.panel-stat-grid dd {
    margin: 4px 0 0;
    font-weight: 600;
}

.panel-stat-lg {
    font-size: 1.25rem;
}

.panel-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.erp-bildirim {
    position: relative;
    flex-shrink: 0;
}
.erp-bildirim-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.erp-bildirim-btn:hover { background: rgba(255, 255, 255, 0.2); }
.erp-bildirim-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.erp-bildirim-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(360px, 92vw);
    background: #fff;
    color: #0f172a;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
    z-index: 400;
    overflow: hidden;
}
.erp-bildirim-panel[hidden] { display: none; }
.erp-bildirim-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
}
.erp-bildirim-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow: auto;
}
.erp-bildirim-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
}
.erp-bildirim-list li.is-unread { background: #f8fafc; }
.erp-bildirim-item {
    flex: 1;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: inherit;
}
.erp-bildirim-item span {
    font-size: 0.85rem;
    color: #64748b;
}
.erp-bildirim-empty {
    padding: 16px 12px;
    color: #64748b;
    font-size: 0.9rem;
}
.erp-bildirim-footer {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 0.875rem;
    border-top: 1px solid #e2e8f0;
}
.bildirim-page-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bildirim-page-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}
.bildirim-page-list li.is-unread { background: #f8fafc; padding-left: 8px; padding-right: 8px; border-radius: 6px; }

.erp-egitim-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.erp-egitim-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.erp-egitim {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 92vw);
    z-index: 500;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.erp-egitim[hidden] {
    display: none;
}

.erp-egitim-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
}

.erp-egitim-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.erp-egitim-head h2 {
    margin: 0;
    font-size: 1rem;
}

.erp-egitim-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #50575e;
}

.erp-egitim-slides {
    flex: 1;
    overflow: auto;
}

.erp-egitim-slide {
    display: none;
}

.erp-egitim-slide.is-active {
    display: block;
}

.erp-egitim-slide h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.erp-egitim-slide p {
    margin: 0;
    color: #50575e;
    line-height: 1.55;
    font-size: 0.9rem;
}

.erp-egitim-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.erp-egitim-counter {
    font-size: 0.8rem;
    color: #787c82;
}

.erp-egitim-dismiss {
    margin-top: 8px;
    width: 100%;
    text-align: center;
}

.wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.wizard-step-pill {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0f0f1;
    color: #50575e;
}

.wizard-step-pill.is-active {
    background: #2271b1;
    color: #fff;
}

.wizard-step-pill.is-done {
    background: #d5e8d4;
    color: #1e4620;
}

.wizard-list {
    margin: 0 0 16px;
    padding-left: 20px;
}

.wizard-ozet {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin-bottom: 16px;
}

.wizard-ozet dt {
    font-weight: 600;
}

.wizard-ozet dd {
    margin: 0;
}

.simple-list {
    margin: 0;
    padding-left: 20px;
}

.page-nav {
    margin-top: 20px;
    color: #50575e;
}

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

.data-table th,
.data-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    font-weight: 600;
    color: #50575e;
}

.kasa-bar {
    margin-bottom: 20px;
    padding: 16px 20px;
}

.kasa-select-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.kasa-select-form label {
    font-weight: 600;
    font-size: 0.875rem;
}

.kasa-select-form select {
    min-width: 220px;
    padding: 8px 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

.form-group select {
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
}

.ozet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.ozet-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 14px 16px;
}

.ozet-label {
    display: block;
    font-size: 0.8125rem;
    color: #50575e;
    margin-bottom: 4px;
}

.ozet-value {
    font-size: 1.125rem;
    color: #1d2327;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-ok {
    background: #edfaef;
    color: #1e4620;
}

.badge-warn {
    background: #fcf0f1;
    color: #8a2424;
}

.badge-zone-green {
    background: #28a745;
    color: #fff;
}

.badge-zone-orange {
    background: #fd7e14;
    color: #fff;
}

.badge-zone-red {
    background: #dc3545;
    color: #fff;
}

.kayit-ozet {
    margin: 12px 0;
    padding: 12px;
    background: #f6f7f7;
    border-radius: 6px;
    border: 1px solid #dcdcde;
}

.kayit-ozet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    align-items: end;
}

.kayit-ozet-grid strong {
    display: block;
    font-size: 1rem;
}

.kayit-zone-hint {
    margin: 10px 0 0;
    font-size: 0.85rem;
}

.kayit-ust-alan {
    margin-bottom: 20px;
}

.kayit-ust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
    align-items: stretch;
}

.kayit-donem-kutu {
    grid-column: 1 / -1;
    min-width: 0;
}

.kayit-hedef-kutu h3 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.kayit-hedef-donem {
    margin: 0 0 12px;
    font-size: 0.8125rem;
}

.kayit-hedef-tahsilat {
    border-color: #a3cfbb;
    background: linear-gradient(180deg, #f4fbf5 0%, #fff 48px);
}

.kayit-hedef-puan {
    border-color: #90caf9;
    background: linear-gradient(180deg, #e3f2fd 0%, #fff 48px);
}

.kayit-challenge-kutu {
    border-color: #ffcc80;
    background: linear-gradient(180deg, #fff8e7 0%, #fff 48px);
}

.kayit-challenge-item + .kayit-challenge-item {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

.kayit-challenge-baslik {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.kayit-challenge-item.is-done .kayit-hedef-progress-fill {
    background: #2e7d32;
}

.challenge-kasa-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px 12px;
    max-height: 220px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.challenge-alan {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.kayit-hedef-progress {
    height: 8px;
    border-radius: 4px;
    background: #e8e8e8;
    overflow: hidden;
    margin-bottom: 6px;
}

.kayit-hedef-progress-fill {
    height: 100%;
    background: #00a32a;
    border-radius: 4px;
    transition: width 0.2s ease;
}

.kayit-hedef-progress-puan .kayit-hedef-progress-fill {
    background: #2271b1;
}

.kayit-hedef-oran {
    margin: 0 0 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #50575e;
}

.kayit-hedef-list {
    margin: 0;
}

.kayit-hedef-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.875rem;
}

.kayit-hedef-row:last-child {
    border-bottom: 0;
}

.kayit-hedef-row dt {
    margin: 0;
    color: #646970;
}

.kayit-hedef-row dd {
    margin: 0;
    font-weight: 600;
}

.kayit-hedef-ok {
    color: #00a32a;
}

.kayit-hedef-puan-val {
    color: #2271b1;
}

.kayit-hedef-kalan {
    color: #d63638;
}

.kayit-hedef-kutu > .muted:last-child {
    display: block;
    margin-top: 10px;
    font-size: 0.75rem;
}

.kayit-donem-kutu h3 {
    margin-bottom: 14px;
    line-height: 1.35;
}

.kayit-donem-kutu h3 .muted {
    display: inline;
    font-weight: normal;
    white-space: normal;
    word-break: break-word;
}

.kayit-donem-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.kayit-donem-ust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: 12px;
    align-items: stretch;
    min-width: 0;
}

.kayit-donem-ust .kalite-skoru {
    margin-bottom: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kayit-donem-ust .kayit-stat-grid {
    min-width: 0;
}

.kayit-donem-zone {
    min-width: 0;
    padding-top: 4px;
    border-top: 1px solid #e8e8e8;
}

.kayit-donem-zone h4 {
    margin: 0 0 10px;
    font-size: 0.9375rem;
}

.kayit-layout {
    display: grid;
    grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.kayit-layout-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.kayit-layout-tahsilat {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.kayit-layout-tahsilat > .panel-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kayit-layout-tahsilat .tahsilat-list {
    flex: 1;
    overflow-y: auto;
    max-height: min(70vh, 720px);
}

.kayit-rapor h4 {
    margin: 16px 0 10px;
    font-size: 0.9375rem;
}

.kayit-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 12px;
    min-width: 0;
}

.kayit-stat {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 12px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.kayit-stat .muted {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.kayit-stat strong {
    font-size: 1.05rem;
}

.kayit-stat-oran {
    font-size: 0.85rem;
    color: #2271b1;
    margin-top: 4px;
}

.kalite-skoru {
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #dcdcde;
}

.kalite-skoru strong {
    display: block;
    font-size: 1.75rem;
    line-height: 1.2;
}

.kalite-skoru.skor-yuksek {
    background: #edfaef;
    color: #1e4620;
}

.kalite-skoru.skor-orta {
    background: #fff8e5;
    color: #856404;
}

.kalite-skoru.skor-dusuk {
    background: #fcf0f1;
    color: #8a2424;
}

.zone-rapor-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.zone-rapor-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 12px;
    font-size: 0.9rem;
}

.zone-bar-track {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: #e0e0e0;
}

.zone-bar-seg {
    min-width: 0;
    transition: width 0.2s ease;
}

.zone-bar-seg.green {
    background: #28a745;
}

.zone-bar-seg.orange {
    background: #fd7e14;
}

.zone-bar-seg.red {
    background: #dc3545;
}

.zone-bar-track-lg {
    height: 14px;
    margin-bottom: 12px;
}

.zone-rapor-ozet {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
}

@media (max-width: 720px) {
    .zone-rapor-ozet {
        grid-template-columns: 1fr;
    }
}

.zone-perf-table .zone-cell-green,
.zone-perf-table .zone-cell-orange,
.zone-perf-table .zone-cell-red {
    white-space: nowrap;
}

.zone-perf-table .zone-cell-green small,
.zone-perf-table .zone-cell-orange small,
.zone-perf-table .zone-cell-red small {
    display: block;
    margin-top: 4px;
    font-weight: 600;
}

.zone-perf-table .zone-cell-green small {
    color: #1b7f3a;
}

.zone-perf-table .zone-cell-orange small {
    color: #c65a00;
}

.zone-perf-table .zone-cell-red small {
    color: #c62828;
}

.zone-bar-cell {
    min-width: 120px;
}

.zone-skor-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.zone-skor-badge.skor-yuksek {
    background: #e8f5e9;
    color: #1b7f3a;
}

.zone-skor-badge.skor-orta {
    background: #fff3e0;
    color: #c65a00;
}

.zone-skor-badge.skor-dusuk {
    background: #ffebee;
    color: #c62828;
}

.kayit-layout-tahsilat .tahsilat-row {
    flex-wrap: nowrap;
}

.kayit-layout-tahsilat .tahsilat-form {
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.kayit-layout-tahsilat .tahsilat-form .input-sm,
.kayit-layout-tahsilat .tahsilat-form select.input-sm {
    flex: 1 1 110px;
    width: auto;
    max-width: 160px;
}

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

    .kayit-layout-tahsilat .tahsilat-list {
        max-height: none;
    }

    .kayit-layout-tahsilat .tahsilat-row {
        flex-wrap: wrap;
    }
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.data-table .num {
    text-align: right;
    white-space: nowrap;
}

.tahsilat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tahsilat-row {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.tahsilat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}

.tahsilat-info small {
    color: #50575e;
}

.tahsilat-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.input-sm {
    padding: 6px 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 0.875rem;
    width: 100px;
}

.rapor-filtre {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.rapor-filtre-row {
    margin-bottom: 12px;
}

.rapor-filtre-row:last-child {
    margin-bottom: 0;
}

.rapor-filtre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    align-items: end;
}

.rapor-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rapor-filtre-action .btn {
    width: 100%;
}

.rapor-sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.rapor-sub-tab {
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #50575e;
    text-decoration: none;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.rapor-sub-tab:hover {
    color: #2271b1;
    border-color: #2271b1;
    text-decoration: none;
}

.rapor-sub-tab.active {
    color: #fff;
    background: #2271b1;
    border-color: #2271b1;
}

.puantaj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.puantaj-gun label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #50575e;
    margin-bottom: 2px;
}

.puantaj-gun select {
    width: 100%;
    font-size: 0.75rem;
    padding: 4px;
}

.puantaj-gun-weekend label {
    color: #a7aaad;
}

.puantaj-gun-weekend select {
    background: #f6f7f7;
}

.puantaj-saat-input {
    width: 100%;
    font-size: 0.7rem;
    padding: 2px 4px;
    margin-top: 2px;
}

.puantaj-grid-saat .puantaj-gun {
    min-width: 56px;
}

.puantaj-kayit-durum {
    font-size: 0.85rem;
}

.puantaj-kayit-hata {
    color: var(--danger, #c0392b);
}

.puantaj-mesai-ozet {
    padding: 12px 14px;
    background: var(--surface-muted, #f6f7f9);
    border-radius: 8px;
    font-size: 0.9rem;
}

.puantaj-mesai-list {
    margin: 8px 0 0;
    padding-left: 1.2rem;
}

.puantaj-mesai-toplam strong {
    color: var(--text, inherit);
}

.puantaj-saat-wrap {
    display: block;
    margin-top: 2px;
}

.panel-details summary {
    cursor: pointer;
    list-style: none;
}

.panel-details summary::-webkit-details-marker {
    display: none;
}

/* —— ERP panel kabuğu —— */
.erp-body {
    background: #e8eaed;
}

.erp-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.erp-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    overflow: visible;
}

.erp-panel-duyuru {
    background: linear-gradient(90deg, #0f766e 0%, #115e59 100%);
    color: #ecfdf5;
    font-size: 0.875rem;
    line-height: 1.45;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 38px;
    max-height: 38px;
    overflow: hidden;
}

.erp-panel-duyuru-ticker {
    height: 38px;
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.erp-panel-duyuru-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    /* Animasyon JS (panel-duyuru.js) ile yapılır — CSS keyframe güvenilir değil */
    animation: none !important;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.erp-panel-duyuru-track-group {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding-right: 48px;
}

.erp-panel-duyuru-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.erp-panel-duyuru-ayrac {
    opacity: 0.45;
    font-size: 0.55rem;
    margin: 0 8px;
}

.erp-panel-duyuru-baslik {
    color: #fff;
}

.erp-panel-duyuru-link {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.erp-panel-duyuru-link:hover {
    color: #ccfbf1;
}

/* Duyuru içeriği kayan yazı olduğu için prefers-reduced-motion'da bile
   yatay kaydırma sürer; hover/focus ile panel-duyuru.js duraklatır. */

.erp-topnav {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
}

.erp-topnav-brand {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    min-height: 48px;
    color: #fff;
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1;
}

.erp-topnav-logo {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    vertical-align: middle;
}

.erp-topnav-brand-text {
    display: block;
    line-height: 1;
    padding-top: 1px;
}

.erp-topnav-brand:hover {
    color: #a7f3d0;
    text-decoration: none;
}

.erp-topnav-scroll {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.erp-topnav-inner {
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-height: 46px;
    width: max-content;
    min-width: 100%;
}

.erp-topnav-link {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    min-height: 46px;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    box-sizing: border-box;
}

.erp-topnav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}

.erp-topnav-link.active {
    background: #2271b1;
    color: #fff;
}

.erp-topnav-drop {
    position: relative;
    display: block;
    flex-shrink: 0;
}

.erp-topnav-drop-toggle {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
}

.erp-topnav-drop-toggle::-webkit-details-marker {
    display: none;
}

.erp-topnav-drop-toggle::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    margin-top: -2px;
    flex-shrink: 0;
}

.erp-topnav-drop[open] .erp-topnav-drop-toggle::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.erp-topnav-drop-menu {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 200px;
    background: #334155;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    z-index: 500;
    padding: 8px 0;
    margin: 0;
}

.erp-topnav-drop-menu--mega {
    display: grid;
    gap: 0;
    padding: 10px 0 8px;
    min-width: 320px;
    max-width: min(920px, calc(100vw - 16px));
}

.erp-topnav-drop-menu--cols-2 {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.erp-topnav-drop-menu--cols-3 {
    grid-template-columns: repeat(3, minmax(168px, 1fr));
}

.erp-topnav-drop-menu--cols-4 {
    grid-template-columns: repeat(4, minmax(152px, 1fr));
}

.erp-topnav-mega-col {
    min-width: 0;
    padding: 0 4px 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.erp-topnav-mega-col:last-child {
    border-right: none;
}

.erp-topnav-mega-col .erp-topnav-drop-label {
    padding: 6px 14px 4px;
}

.erp-topnav-mega-col .erp-topnav-sublink {
    font-size: 0.8125rem;
    min-height: 36px;
    padding: 0 14px;
}

.erp-topnav-nest {
    margin: 0;
}

.erp-topnav-nest > summary {
    list-style: none;
    cursor: pointer;
}

.erp-topnav-nest > summary::-webkit-details-marker {
    display: none;
}

.erp-topnav-nest-toggle::after {
    content: '';
    width: 0.4em;
    height: 0.4em;
    margin-left: auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.65;
    flex-shrink: 0;
}

.erp-topnav-nest[open] > .erp-topnav-nest-toggle::after {
    transform: rotate(-135deg);
    margin-top: 0.2em;
}

.erp-topnav-nest-menu {
    padding: 2px 0 6px 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 0 4px 14px;
}

.erp-topnav-nest-menu .erp-topnav-sublink {
    min-height: 32px;
    font-size: 0.78rem;
    padding-left: 10px;
}

@media (max-width: 1280px) {
    .erp-topnav-drop-menu--cols-4 {
        grid-template-columns: repeat(2, minmax(168px, 1fr));
    }
}

@media (max-width: 900px) {
    .erp-topnav-drop-menu--cols-4,
    .erp-topnav-drop-menu--cols-3,
    .erp-topnav-drop-menu--cols-2 {
        grid-template-columns: 1fr;
        min-width: 240px;
    }

    .erp-topnav-mega-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .erp-topnav-mega-col:last-child {
        border-bottom: none;
    }
}

.erp-topnav-drop:not([open]) .erp-topnav-drop-menu {
    display: none;
}

.erp-topnav-drop-label {
    display: block;
    padding: 8px 16px 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    pointer-events: none;
}

.erp-topnav-sublink {
    display: flex;
    width: 100%;
    min-height: 40px;
    padding: 0 16px;
    box-sizing: border-box;
}

.scope-info-box {
    margin: 0 0 20px;
    padding: 14px 18px;
    background: #f0f6fc;
    border: 1px solid #c3d9ed;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.scope-info-box strong {
    display: block;
    margin-bottom: 8px;
    color: #1d2327;
}

.scope-info-list {
    margin: 0;
    padding-left: 1.25rem;
}

.scope-info-list li {
    margin-bottom: 4px;
}

.scope-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.8125rem;
}

.scope-info-table th,
.scope-info-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #c3d9ed;
    vertical-align: top;
}

.scope-info-table th {
    font-weight: 600;
    color: #1d2327;
    background: rgba(255, 255, 255, 0.5);
}

.erp-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #1e293b;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.2s ease;
}

.erp-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff;
    color: #1d2327;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.erp-sidebar-toggle:hover {
    background: #f0f0f1;
}

.erp-app.sidebar-collapsed .erp-sidebar {
    width: 56px;
}

.erp-app.sidebar-collapsed .erp-sidebar-brand {
    padding: 18px 10px;
    text-align: center;
}

.erp-app.sidebar-collapsed .erp-sidebar-brand a {
    font-size: 0;
}

.erp-app.sidebar-collapsed .erp-sidebar-brand a::before {
    content: 'K';
    font-size: 1.125rem;
}

.erp-app.sidebar-collapsed .erp-nav-label,
.erp-app.sidebar-collapsed .erp-nav-text {
    display: none;
}

.erp-app.sidebar-collapsed .erp-nav {
    padding: 12px 6px 24px;
}

.erp-app.sidebar-collapsed .erp-nav-item {
    padding: 9px 6px;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-nav-icon {
    display: none;
}

.erp-app.sidebar-collapsed .erp-nav-icon {
    display: inline;
    font-weight: 700;
}

.erp-app.sidebar-collapsed .erp-nav-text {
    display: none;
}

.erp-sidebar-brand {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.erp-sidebar-brand a {
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
}

.erp-sidebar-brand a:hover {
    color: #93c5fd;
    text-decoration: none;
}

.erp-nav {
    padding: 12px 10px 24px;
    flex: 1;
}

.erp-nav-group {
    margin-bottom: 16px;
}

.erp-nav-label {
    display: block;
    padding: 8px 12px 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.erp-nav-item {
    display: block;
    padding: 9px 12px;
    margin: 2px 0;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.erp-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}

.erp-nav-item.active {
    background: #2271b1;
    color: #fff;
}

.erp-nav-branch {
    margin: 2px 0;
}

.erp-nav-branch-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.erp-nav-branch-summary::-webkit-details-marker {
    display: none;
}

.erp-nav-chevron {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.erp-nav-branch[open] .erp-nav-chevron {
    transform: rotate(45deg);
}

.erp-nav-children {
    margin: 4px 0 6px 18px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.erp-nav-sub {
    font-size: 0.875rem;
    padding: 7px 12px;
}

.erp-nav-sub .erp-nav-icon {
    font-size: 0.75rem;
    opacity: 0.85;
}

.erp-nav-branch--nested {
    margin: 2px 0 4px;
}

.erp-nav-branch--nested .erp-nav-children {
    margin-left: 8px;
}

.erp-nav-sub--deep {
    font-size: 0.8125rem;
    padding: 6px 10px;
}

.erp-app.sidebar-collapsed .erp-nav-branch .erp-nav-children,
.erp-app.sidebar-collapsed .erp-nav-chevron {
    display: none;
}

.erp-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.erp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 24px;
    background: #fff;
    border-bottom: 1px solid #c3c4c7;
    flex-wrap: wrap;
}

.erp-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.erp-page-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.3;
}

.erp-firma-badge {
    font-size: 0.8125rem;
    color: #50575e;
    background: #f0f0f1;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.erp-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.erp-kasa-select select {
    min-width: 180px;
    max-width: 260px;
    padding: 7px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #fff;
}

.erp-user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.erp-user-name {
    font-size: 0.875rem;
    color: #50575e;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-content {
    flex: 1;
    width: 100%;
    max-width: min(1680px, 100%);
    margin: 0 auto;
    padding: 20px clamp(16px, 2.5vw, 32px);
    box-sizing: border-box;
}

.erp-body .panel-card {
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.erp-body .ozet-card {
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.erp-content .panel-header {
    margin-bottom: 20px;
}

.erp-content .panel-header h1 {
    display: none;
}

.erp-content .panel-header .muted {
    margin: 0;
    font-size: 0.9375rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px 12px;
    margin-top: 8px;
}

.table-actions {
    white-space: nowrap;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-danger-text {
    color: #b32d2e;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.form-hint {
    font-size: 0.8125rem;
    margin: 0 0 8px;
}

.panel-header-split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.panel-header-split > .operasyon-filtre-bar {
    flex: 1 1 320px;
    max-width: 100%;
}

.operasyon-filtre-bar {
    margin: 0;
}

.operasyon-filtre {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.operasyon-filtre-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.operasyon-filtre-ozel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.operasyon-filtre-ozel input[type="date"] {
    max-width: 150px;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.kayit-pager-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 12px 0 4px;
}

.kayit-pager-bar .pager {
    margin-top: 0;
    margin-left: auto;
}

.kayit-pager-per {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.kayit-pager-per-select {
    min-width: 4.5rem;
}

.hedef-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hedef-donem-sec label {
    display: block;
    font-size: 0.8125rem;
    margin-bottom: 4px;
    color: #646970;
}

.hedef-donem-sec-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hedef-donem-sec-inner input[type="number"] {
    width: 90px;
}

.hedef-atama-table .hedef-input {
    width: 110px;
    max-width: 100%;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.num,
.ozet-value,
.cari-detay-bakiye strong {
    font-variant-numeric: tabular-nums;
}

.cari-pozitif {
    color: #00a32a;
}

.cari-negatif {
    color: #d63638;
}

.cari-detay-bakiye {
    text-align: right;
    padding: 12px 16px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #f6f7f7;
    min-width: 180px;
}

.cari-detay-bakiye strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.2;
}

.cari-detay-bakiye small {
    display: block;
    margin-top: 4px;
}

.cari-sirket-ozet tfoot th {
    background: #e3f2fd;
}

.cari-hareket-table td {
    vertical-align: top;
}

.cari-donem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.cari-donem-kutu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
}

.cari-donem-kutu:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.cari-donem-kutu.is-active {
    border-color: #2271b1;
    background: #e3f2fd;
    box-shadow: inset 0 0 0 1px #2271b1;
}

.cari-donem-kutu.is-geciken:not(.is-active) {
    border-color: #d63638;
}

.cari-donem-sayi {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.cari-donem-label {
    font-size: 0.78rem;
    margin-top: 4px;
    text-align: center;
}

.cari-plan-satir {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background: #fafafa;
}

.cari-plan-satir.is-geciken {
    border-color: #f0b8b8;
    background: #fff5f5;
}

.data-table tr.row-geciken td {
    background: #fff8f8;
}

.cari-tarih-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #dcdcde;
}

.cari-tarih-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
}

.cari-plan-tur-ipucu {
    display: block;
    margin-top: 6px;
    line-height: 1.45;
}

.cari-donem-tutar {
    display: block;
    font-size: 0.72rem;
    color: #50575e;
    margin-top: 4px;
}

.kayit-taksit-kutular {
    margin-bottom: 0;
}

.kayit-yasal-ozet {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 12px 0 16px;
    padding: 12px 16px;
    background: #fff5f5;
    border: 1px solid #f0b8b8;
    border-radius: 8px;
}

.kayit-yasal-ozet strong {
    display: block;
    font-size: 1.25rem;
}

.kayit-yasal-panel {
    margin-top: 20px;
    border-color: #ecc9e1;
}

.kayit-yasal-btn {
    border-color: #d63638;
    color: #d63638;
}

.kayit-yasal-cikar-btn {
    white-space: nowrap;
}

.tahsilat-row-wrap {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background: #fafafa;
}

.kayit-yasal-aciklama-form,
.kayit-yasal-cikar-form {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #dcdcde;
}

.kayit-yasal-aciklama-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.kayit-yasal-aciklama-label span {
    display: block;
    margin-bottom: 4px;
    color: #50575e;
}

.kayit-yasal-aciklama-label em {
    font-style: normal;
    color: #d63638;
    font-size: 0.75rem;
}

.kayit-yasal-aciklama-label textarea {
    width: 100%;
    min-width: 200px;
    max-width: 100%;
    padding: 8px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 0.85rem;
    resize: vertical;
}

.kayit-yasal-aciklama-cell {
    max-width: 220px;
    font-size: 0.85rem;
    white-space: normal;
}

.kayit-layout-single {
    grid-template-columns: 1fr;
    max-width: none;
}

.panel-header-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.kayit-borc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.kayit-borc-tab {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #dcdcde;
    background: #fff;
    color: #1d2327;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.kayit-borc-tab.is-active {
    border-color: #1a805b;
    background: #e8f5ef;
    color: #145c42;
}

.kayit-borc-liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kayit-borc-item {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fafafa;
    overflow: hidden;
}

.kayit-borc-ozet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.kayit-borc-ozet::-webkit-details-marker {
    display: none;
}

.kayit-borc-ozet-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.kayit-borc-ozet-meta {
    font-size: 0.8125rem;
}

.kayit-yasal-ac-btn-inline {
    margin-left: 4px;
}

.badge-muted {
    background: #f0f0f1;
    color: #50575e;
}

.kayit-yasal-sirket-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.kayit-yasal-sirket-form select {
    min-width: 180px;
}

.kayit-borc-detay {
    padding: 0 14px 14px;
    border-top: 1px solid #e8e8e8;
}

.kayit-borc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    margin-top: 14px;
}

.kayit-borc-bolum h4 {
    margin: 0 0 8px;
    font-size: 0.9375rem;
}

.kayit-borc-notlar {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #dcdcde;
}

.kayit-not-listesi {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.kayit-not-listesi li {
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.kayit-not-metin {
    margin-bottom: 4px;
    font-size: 0.875rem;
    line-height: 1.45;
}

.kayit-not-form {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .kayit-borc-grid {
        grid-template-columns: 1fr;
    }
}

.tahsilat-form .kayit-yasal-btn {
    flex-shrink: 0;
}

.erp-collapse {
    border: 1px solid #dcdcde;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
}

.erp-collapse.panel-card {
    padding: 0;
    overflow: hidden;
}

.erp-collapse.panel-card summary h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.erp-collapse.panel-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.erp-collapse-body {
    padding: 14px 16px 16px;
}

.erp-collapse-inner-card {
    border: 1px solid #e8e8e8;
    box-shadow: none;
    margin-bottom: 12px;
}

.erp-collapse-inner-card:last-child {
    margin-bottom: 0;
}

.erp-collapse-nested {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-top: 12px;
    background: #f9fafb;
}

.erp-collapse-nested summary {
    padding: 10px 14px;
    font-size: 0.9375rem;
}

.erp-collapse summary {
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 600;
    list-style: none;
}

.erp-collapse summary::-webkit-details-marker {
    display: none;
}

.erp-collapse[open] summary {
    border-bottom: 1px solid #e8e8e8;
}

.erp-collapse > .data-table,
.erp-collapse > table {
    margin: 0;
}

.data-table-compact th,
.data-table-compact td {
    padding: 6px 10px;
    font-size: 0.875rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.erp-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.erp-subnav .admin-tab,
.erp-subnav .rapor-sub-tab {
    margin-bottom: 0;
}

body.erp-menu-open {
    overflow: hidden;
}

.alert-warn {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #664d03;
}

.fatura-uyari-band {
    margin-bottom: 16px;
}

.fatura-uyari-gecikti {
    color: #d63638;
    font-weight: 600;
}

.fatura-uyari-bekleyen {
    color: #e65100;
}

.fatura-durum-hucre {
    font-size: 0.8125rem;
    line-height: 1.4;
}

.fatura-durum-ok {
    color: #2e7d32;
    font-weight: 600;
}

.fatura-durum-gecikti {
    color: #d63638;
    font-weight: 600;
}

.fatura-durum-bekliyor {
    color: #e65100;
    font-weight: 600;
}

.kasa-islem-aksiyon,
.kayit-islem-aksiyon {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

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

.btn-danger-text {
    color: #d63638;
}

.erp-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.erp-modal[hidden] {
    display: none !important;
}

.erp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.erp-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.erp-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}

@media (max-width: 600px) {
    .nav {
        gap: 10px;
        font-size: 0.9rem;
    }

    .nav-user {
        display: none;
    }

    .auth-box {
        padding: 24px 20px;
    }

    .erp-user-name {
        display: none;
    }
}

.pnl-gelir {
    color: #1b7f3a;
}

.pnl-gider {
    color: #c62828;
}

.pnl-bolge-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.pnl-bolge-card {
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 10px;
    background: #f8fafc;
}

.pnl-bolge-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    font-size: 1.02rem;
}

.pnl-bolge-summary::-webkit-details-marker {
    display: none;
}

.pnl-bolge-body {
    padding: 0 18px 18px;
    border-top: 1px solid var(--border, #e2e8f0);
    background: #fff;
    border-radius: 0 0 10px 10px;
}

.pnl-bolge-kat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.pnl-bolge-row td:first-child {
    background: #f8fafc;
}

.pnl-sube-secili td {
    background: #eef6ff;
}

.pnl-sube-detay-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border, #e2e8f0);
}

.pnl-sube-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.pnl-sube-detay-panel {
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.pnl-sube-detay-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.pnl-sube-detay-panel .pnl-sube-body {
    padding: 16px 18px;
}

.pnl-sube-body-genis {
    padding: 20px 18px !important;
}

.pnl-sube-ozet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .pnl-sube-ozet-grid {
        grid-template-columns: 1fr;
    }
}

.pnl-ozet-kart {
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border, #e2e8f0);
    background: #fff;
}

.pnl-ozet-kart .pnl-ozet-label {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 6px;
}

.pnl-ozet-kart .pnl-ozet-tutar {
    display: block;
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 6px;
}

.pnl-ozet-kart small {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

.pnl-ozet-gelir {
    border-color: #b7dfc3;
    background: #f3fbf5;
}

.pnl-ozet-gelir .pnl-ozet-tutar {
    color: #1b7f3a;
}

.pnl-ozet-gider {
    border-color: #f5c2c7;
    background: #fff8f8;
}

.pnl-ozet-gider .pnl-ozet-tutar {
    color: #c62828;
}

.pnl-ozet-pozitif {
    border-color: #93c5fd;
    background: #eff6ff;
}

.pnl-ozet-pozitif .pnl-ozet-tutar {
    color: #1d4ed8;
}

.pnl-ozet-negatif {
    border-color: #fca5a5;
    background: #fef2f2;
}

.pnl-ozet-negatif .pnl-ozet-tutar {
    color: #b91c1c;
}

.pnl-sube-kat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .pnl-sube-kat-grid {
        grid-template-columns: 1fr;
    }
}

.pnl-kat-blok h5 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.pnl-sube-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.pnl-sube-card {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    background: #fff;
}

.pnl-sube-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.pnl-sube-summary::-webkit-details-marker {
    display: none;
}

.pnl-sube-ozet {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.92rem;
}

.pnl-sube-body {
    padding: 0 16px 16px;
    border-top: 1px solid var(--border, #e2e8f0);
}

.pnl-sube-body h5 {
    margin: 16px 0 8px;
    font-size: 0.95rem;
}

.data-table-compact th,
.data-table-compact td {
    padding: 8px 10px;
}

.erp-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.erp-menu-btn:hover {
    background: #f0f0f1;
}

.erp-abonelik-strip {
    padding: 6px 20px;
    font-size: 0.8125rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.erp-abonelik-strip-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.erp-abonelik-strip-link:hover {
    text-decoration: underline;
}

.erp-abonelik-strip--ok {
    background: #ecfdf5;
    color: #065f46;
}

.erp-abonelik-strip--warn {
    background: #fffbeb;
    color: #b45309;
}

.erp-abonelik-strip--danger {
    background: #fef2f2;
    color: #b91c1c;
}

.erp-destek-fab {
    position: fixed;
    right: 20px;
    bottom: 88px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1a805b, #145c42);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(20, 92, 66, 0.35);
    cursor: pointer;
}

.erp-destek-fab:hover {
    transform: translateY(-1px);
}

.erp-destek-erisim-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: #7c2d12;
    color: #fff7ed;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.erp-destek-erisim-banner .btn {
    background: #fff;
    color: #7c2d12;
    border-color: #fff;
}

.erp-destek-erisim-banner-text em {
    font-style: normal;
    font-weight: 700;
}

.servis-toggle-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.servis-toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.erp-destek-widget {
    position: fixed;
    right: 20px;
    bottom: 150px;
    z-index: 1201;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100vh - 180px);
    overflow: auto;
    background: #fff;
    border: 1px solid #dbe3df;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    padding: 16px;
}

.erp-destek-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.erp-destek-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.erp-destek-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

body.erp-destek-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .erp-destek-fab-text {
        display: none;
    }

    .erp-destek-fab {
        right: 14px;
        bottom: 78px;
        padding: 12px 14px;
    }

    .erp-destek-widget {
        right: 14px;
        bottom: 130px;
    }
}

/* Stok ürün listesi — tam genişlik */
body.stok-wide .erp-content {
    max-width: none;
}

.stok-liste-card {
    width: 100%;
}

.stok-liste-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.stok-liste-table {
    width: 100%;
    min-width: 960px;
}

.stok-thumb-cell {
    width: 52px;
    padding: 6px 8px !important;
}

.stok-thumb {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dcdcde;
    background: #f0f0f1;
}

.stok-thumb-empty {
    box-sizing: border-box;
}

/* Stok çalışma alanı (eski 2 kolon — kullanılmıyor) */
.stok-workspace {
    display: grid;
    grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.stok-workspace-left,
.stok-workspace-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.stok-hareket-scroll {
    max-height: 420px;
    overflow: auto;
}

.stok-filtre-form,
.stok-kat-ekle,
.stok-kat-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 16px;
}

.stok-filtre-form .form-group select {
    min-width: 140px;
}

.stok-vitrin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
    white-space: nowrap;
    font-size: .85rem;
}

.stok-vitrin-label {
    color: #a8a29e;
    font-weight: 600;
}

.stok-vitrin-label.is-on {
    color: #15803d;
}

.stok-kat-inline {
    margin-bottom: 0;
    align-items: center;
}

.stok-kat-inline input[type="text"] {
    min-width: 120px;
    flex: 1;
}

.stok-kat-panel { max-width: 960px; }

.stok-kat-table .stok-kat-inline select {
    min-width: 140px;
    max-width: 180px;
}

.stok-kat-row.stok-kat-alt td:first-child,
.stok-kat-row.stok-kat-seviye-1 td:first-child {
    padding-left: 1.5rem;
}

.stok-kat-row.stok-kat-seviye-2 td:first-child {
    padding-left: 2.75rem;
}

.stok-kat-tree {
    color: var(--muted, #78716c);
    margin-right: 4px;
    user-select: none;
}

.stok-magaza-kat-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px 12px;
    max-height: 220px;
    overflow: auto;
    padding: 10px 12px;
    border: 1px solid var(--border, #e7e5e4);
    border-radius: 8px;
    background: var(--surface-2, #fafaf9);
}

.stok-magaza-kat-item {
    font-size: .92rem;
    margin: 0;
}

.stok-py-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.stok-py-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.stok-py-badges .badge {
    font-size: 0.72rem;
    white-space: nowrap;
}

.stok-inline-input,
.stok-inline-py {
    width: 88px;
    max-width: 100%;
    padding: 4px 6px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 0.8125rem;
    text-align: right;
    background: #fff;
}

.stok-fiyat-wrap {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.stok-fiyat-suffix {
    color: #646970;
    font-size: 0.75rem;
    font-weight: 600;
}

.stok-inline-kdv {
    width: 56px;
}

.stok-inline-py {
    width: 76px;
    font-size: 0.75rem;
}

.stok-inline-input.is-saving,
.stok-inline-py.is-saving {
    opacity: 0.6;
}

.stok-inline-input.is-saved,
.stok-inline-py.is-saved {
    border-color: #00a32a;
    background: #edfaef;
}

.stok-hizli-hint {
    color: #646970;
}

.stok-hizli-durum {
    margin-left: 8px;
    font-weight: 600;
}

.stok-hizli-durum.is-ok {
    color: #00a32a;
}

.stok-hizli-durum.is-err {
    color: #d63638;
}

.stok-py-fiyat-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}

.stok-py-fiyat-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.75rem;
    color: #646970;
}

.stok-py-fiyat-label input {
    width: 100px;
    padding: 4px 8px;
}

.stok-toplu-bar {
    position: sticky;
    top: 0;
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin: 0 0 14px;
    padding: 12px 14px;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
}

.stok-toplu-count {
    align-self: center;
    margin-right: 4px;
}

.stok-toplu-params {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}

.stok-toplu-params[hidden] {
    display: none !important;
}

.stok-toplu-bar .btn-danger {
    background: #b42318;
    border-color: #b42318;
    color: #fff;
}

.stok-toplu-bar .btn-danger:hover,
.stok-toplu-bar .btn-danger:focus-visible {
    background: #912018;
    border-color: #912018;
    color: #fff;
}

.stok-py-table {
    width: 100%;
    margin: 0 0 12px;
}

.stok-py-table th,
.stok-py-table td {
    vertical-align: middle;
}

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

    .stok-workspace-left {
        order: 2;
    }

    .stok-workspace-right {
        order: 1;
    }
}

.hesap-mobil-kisayol-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hesap-mobil-kisayol-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.hesap-mobil-kisayol-item:has(input:checked) {
    border-color: #2271b1;
    background: #eff6ff;
}

.hesap-mobil-kisayol-item input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
}

.hesap-mobil-kisayol-item input:disabled {
    cursor: not-allowed;
}

.hesap-mobil-kisayol-item:has(input:disabled) {
    opacity: 0.55;
    cursor: not-allowed;
}

.hesap-mobil-kisayol-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #e8f1fb;
    color: #2271b1;
    font-size: 1rem;
    font-weight: 700;
}

.hesap-mobil-kisayol-item strong,
.hesap-mobil-kisayol-item small {
    display: block;
}

.hesap-mobil-kisayol-item small {
    margin-top: 2px;
    color: #64748b;
    font-size: 0.75rem;
}

@media (max-width: 600px) {
    .hesap-mobil-kisayol-grid {
        grid-template-columns: 1fr;
    }
}
