/* Mükellef dönemleri — form paneli */
html body .emm-shell .kmt-mukellef-donem-page {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-panel {
    width: 100%;
    max-width: min(36rem, 100%);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 !important;
    overflow: hidden;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-panel-header {
    margin: 0;
    padding: 0.9rem 1.15rem;
    background: linear-gradient(135deg, var(--emm-brand-primary, #003b95) 0%, #002a6b 100%);
    border-bottom: none;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-panel-body {
    padding: 1rem 1.15rem 1.1rem;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.95rem;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-label {
    color: #475569;
    margin-bottom: 0.35rem;
}

/* Toplu işlem switch — yatay kart */
html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #dbe3f0;
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-weight: 600;
    font-size: 0.875rem;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-switch-label i {
    color: var(--emm-brand-primary, #003b95);
    font-size: 0.9rem;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-switch-control {
    padding-left: 0;
    min-height: auto;
    flex-shrink: 0;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-switch-input {
    width: 2.85rem;
    height: 1.45rem;
    margin: 0;
    cursor: pointer;
    background-color: #cbd5e1;
    border: 1px solid #94a3b8;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-switch-input:focus {
    border-color: rgba(var(--emm-brand-primary-rgb, 0, 59, 149), 0.55);
    box-shadow: 0 0 0 0.2rem rgba(var(--emm-brand-primary-rgb, 0, 59, 149), 0.2);
    outline: 0;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-switch-input:checked {
    background-color: var(--emm-brand-primary, #003b95);
    border-color: var(--emm-brand-primary, #003b95);
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-switch-input:checked:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--emm-brand-primary-rgb, 0, 59, 149), 0.28);
}

/* Form alanları */
html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-select,
html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-period-input {
    min-height: 2.35rem;
    border: 1px solid #dbe3f0;
    border-radius: 8px;
    background-color: #fff;
    color: #1e293b;
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-select {
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23003b95' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 14px 10px;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-select:focus,
html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-period-input:focus {
    border-color: rgba(var(--emm-brand-primary-rgb, 0, 59, 149), 0.55);
    box-shadow: 0 0 0 3px rgba(var(--emm-brand-primary-rgb, 0, 59, 149), 0.12);
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-combobox.e-input-group,
html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-combobox.e-control-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 2.35rem;
    border-radius: 8px !important;
    border: 1px solid #dbe3f0 !important;
    background-color: #fff !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-combobox.e-input-focus.e-control-wrapper,
html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-combobox.e-input-group.e-input-focus {
    border-color: rgba(var(--emm-brand-primary-rgb, 0, 59, 149), 0.55) !important;
    box-shadow: 0 0 0 3px rgba(var(--emm-brand-primary-rgb, 0, 59, 149), 0.12) !important;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-combobox .e-input {
    font-size: 0.875rem !important;
    color: #1e293b !important;
    min-height: 2.15rem;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-combobox .e-input-group-icon,
html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-combobox .e-ddl-icon {
    color: var(--emm-brand-primary, #003b95) !important;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-period-input {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    letter-spacing: 0.02em;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eef2f7;
}

html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-actions .emm-btn {
    min-width: min(12rem, 100%);
}

html body .emm-shell .donem-olustur-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: all;
}

html body .emm-shell .donem-olustur-panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    max-width: min(28rem, 100%);
    width: 100%;
    padding: 1.75rem 1.5rem 1.25rem;
    text-align: center;
    border: 1px solid #dee2e6;
    box-sizing: border-box;
}

html body .emm-shell .donem-olustur-spinner {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

html body .emm-shell .donem-olustur-phase {
    color: #212529;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

html body .emm-shell .donem-olustur-counter {
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
    html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-panel {
        max-width: 100%;
    }

    html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-row [class*="col-md-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-actions {
        justify-content: stretch;
    }

    html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-actions .emm-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    html body .emm-shell .kmt-mukellef-donem-page .card-body {
        padding: 0.65rem !important;
    }

    html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-panel-header {
        padding: 0.75rem 0.85rem;
    }

    html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-panel-body {
        padding: 0.85rem;
    }

    html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-title {
        font-size: 0.95rem;
    }

    html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-switch {
        flex-wrap: wrap;
    }

    html body .emm-shell .kmt-mukellef-donem-page .kmt-mukellef-donem-switch-input {
        width: 2.65rem;
        height: 1.35rem;
    }
}
