/* Faturana — sayfa-ötesi ortak custom stiller. Inline <style>/style= blokları buraya taşınır. */

/* Şablondan fatura oluştur — seçim modalı listesi */
.tpl-pick-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tpl-pick-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e6ebf1;
    border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
}

.tpl-pick-row:hover {
    border-color: #bcd4ec;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
}

.tpl-pick-info {
    display: flex;
    align-items: center;
    min-width: 0;
}

.tpl-pick-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f2033;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tpl-pick-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

/* Şablon önizleme modalı */
.tpl-prev-section {
    margin-bottom: 18px;
}

.tpl-prev-section h6 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #8a97a8;
    margin-bottom: 8px;
}

.tpl-prev-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px solid #eef2f6;
    font-size: 13px;
}

.tpl-prev-row:last-child {
    border-bottom: none;
}

.tpl-prev-row span {
    color: #6c8199;
}

.tpl-prev-row strong {
    color: #0f2033;
    font-weight: 600;
    text-align: right;
}

.tpl-prev-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tpl-prev-table th {
    font-size: 11px;
    text-transform: uppercase;
    color: #8a97a8;
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #e6ebf1;
}

.tpl-prev-table td {
    padding: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.tpl-prev-empty {
    color: #8a97a8;
    font-style: italic;
}

@media (max-width: 991.98px) {
    #kt_app_header_top {
        flex-wrap: wrap;
    }
    #kt_app_header_top .header-company-switch {
        order: 5;
        width: 100%;
        margin-top: 0.5rem;
    }
    #kt_app_header_top .header-company-switch > .btn {
        width: 100% !important;
    }

    .app-header-mobile-drawer.drawer {
        z-index: 2200;
        padding-top: 0;
        flex-direction: column;
        align-items: stretch;
    }

    body[data-kt-drawer-app-header-menu="on"] > .drawer-overlay {
        z-index: 2199 !important;
    }

    .app-header-drawer-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 76px;
        padding: 16px 18px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
        background: #f3f9f7;
    }

    .app-header-drawer-brand__logo {
        display: inline-flex;
        min-width: 0;
    }

    .app-header-drawer-brand__logo img {
        display: block;
        width: 165px;
        max-width: 100%;
        height: auto;
    }

    .app-header-drawer-brand__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 36px;
        height: 36px;
        margin-left: 10px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #fff;
        color: #475569;
        box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    }

    .app-header-drawer-brand__close:hover {
        background: #e8f3ef;
        color: #0f766e;
    }
}

#txnActionModalBody{padding-top:0px;}
#txnActionModal .txn-modal-close {
    width: 34px; height: 34px; border-radius: 9px; border: none;
    background: #f1f3f7; color: #5a6b7d; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .15s, color .15s; flex: 0 0 auto;
}
#txnActionModal .txn-modal-close:hover { background: #e6394614; color: #e63946; }

.txn-quickfilter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; }
.txn-quickfilter-group { display: flex; flex-direction: column; gap: 6px; }
.txn-status-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.txn-status-toggle { border: 1.5px solid #e2e8f0; background: #fff; color: #475569; font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 20px; cursor: pointer; transition: all .15s; }
.txn-status-toggle:hover { border-color: #cbd5e1; }
.txn-status-toggle.active { background: #1b6ec2; border-color: #1b6ec2; color: #fff; }
#txnArchivedToggle.active { background: #b45309; border-color: #b45309; }

.txn-status-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.txn-status-badge--open { background: #eaf3fb; color: #1b6ec2; }
.txn-status-badge--partial { background: #fff3e0; color: #c77700; }
.txn-status-badge--completed { background: #eafaf0; color: #0a8f5b; }
.txn-status-badge--archived { background: #ede9fe; color: #6d28d9; }

.bank-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bank-account-card { display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 12px 14px; border: 1.5px solid #e6ebf1; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; }
.bank-account-card__logo { flex: 0 0 auto; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; padding: 5px; background: #fff; border: 1px solid #e6ebf1; border-radius: 11px; }
.bank-account-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.bank-account-card__bankname { font-size: 0.9rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .3px; }
.bank-account-card:hover { transform: translateY(-2px); border-color: #cbd5e1; box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.bank-account-card.active { border-color: #1b6ec2; box-shadow: 0 0 0 2px rgba(27, 110, 194, .18); }
.bank-account-card__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bank-account-card__title { width: 100%; border: 1px solid transparent; background: transparent; padding: 3px 7px; margin: -3px -7px; font-size: 0.95rem; font-weight: 700; color: #0f172a; border-radius: 7px; outline: none; transition: background .15s, border-color .15s; }
.bank-account-card__title::placeholder { color: #c3ccd6; font-weight: 600; font-style: italic; }
.bank-account-card__title:hover { background: #f1f5f9; }
.bank-account-card__title:focus { background: #fff; border-color: #1b6ec2; box-shadow: 0 0 0 2px rgba(27, 110, 194, .18); }
.bank-account-card__sub { display: flex; flex-direction: column; gap: 3px; }
.bank-account-card__meta-line { display: flex; align-items: center; gap: 6px; font-size: 1.0rem; color: #64748b; min-width: 0; }
.bank-account-card__meta-line svg { width: 14px; height: 14px; flex: 0 0 auto; color: #94a3b8; }
.bank-account-card__iban-text { font-weight: 600; color: #475569; word-break: break-all; }
.bank-account-card__amount { margin-left: auto; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.bank-account-card__balance { font-size: 1.5rem; font-weight: 800; color: #007f62; white-space: nowrap; }
.bank-account-card__currency { font-size: 1rem; color: #94a3b8; font-weight: 600; }
.bank-account-card__sync { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 4px; padding: 0; border: none; background: transparent; color: #1b6ec2; border-radius: 6px; cursor: pointer; transition: background .15s, color .15s; }
.bank-account-card__sync:hover { background: #e8f1fb; }
.bank-account-card__sync svg { width: 14px; height: 14px; }
.bank-account-card__sync:disabled { opacity: .6; cursor: default; }
.bank-account-card__sync.is-spinning svg { animation: bankSyncSpin 0.8s linear infinite; }
@keyframes bankSyncSpin { to { transform: rotate(360deg); } }
@media (max-width: 767.98px) { .bank-account-grid { grid-template-columns: 1fr; } }

.customer-select { position: relative; }
.customer-select__suggestions { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 2px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 23, 42, .12); max-height: 220px; overflow-y: auto; display: none; }
.customer-select__suggestions.show { display: block; }
.customer-select__option { display: flex; flex-direction: column; gap: 1px; padding: 7px 12px; cursor: pointer; }
.customer-select__option:hover { background: #f1f5f9; }
.customer-select__option-vkn { font-weight: 700; font-size: .82rem; color: #0f172a; }
.customer-select__option-name { font-size: .72rem; color: #64748b; }
.customer-select__empty { padding: 8px 12px; font-size: .75rem; color: #94a3b8; }

.txn-vkn-view { display: flex; align-items: center; gap: 8px; }
.txn-vkn-edit { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: none; background: transparent; color: #1b6ec2; border-radius: 6px; cursor: pointer; transition: background .15s; }
.txn-vkn-edit:hover { background: #e8f1fb; }
.txn-vkn-edit svg { width: 14px; height: 14px; }
.txn-vkn-editbox { margin-top: 4px; }
