html,
body {
    background: #dfe4eb;
    color: #1b2635;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.design-records-page {
    outline: none;
}

.design-name-field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.design-name-field > :first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.design-view-picker {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.design-view-chips {
    align-items: center;
    background: #f7f9fb;
    border: 1px solid #c9d4df;
    border-radius: 3px;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 32px;
    min-width: 0;
    padding: 3px 5px;
}

.design-view-chip {
    align-items: center;
    background: #e8f1fb;
    border: 1px solid #b5cde6;
    border-radius: 3px;
    color: #214e7a;
    display: inline-flex;
    font-size: 12px;
    gap: 5px;
    line-height: 1.25;
    max-width: 100%;
    padding: 3px 5px 3px 7px;
}

.design-view-chip > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.design-view-chip button {
    background: transparent;
    border: 0;
    color: #5d7288;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 0 2px;
}

.design-view-chip button:hover {
    color: #b42318;
}

.design-view-empty {
    color: #738398;
    font-size: 12px;
    padding: 3px 2px;
}

.design-check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    min-height: 32px;
}

.design-records-grid .grid-row-actions {
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    .design-name-field {
        align-items: stretch;
        flex-direction: column;
    }

    .design-check-list {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .design-view-picker {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Kasa kartlari compact and responsive form/grid surface. */
.kasa-kartlari-grid {
    min-height: 320px;
}

.kasa-karti-popup .popup-form-content {
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    padding-right: .25rem;
}

@media (max-width: 760px) {
    .kasa-kartlari-filters .erp-form .dxbl-fl-item,
    .kasa-karti-popup .erp-form .dxbl-fl-item {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }

    .kasa-kartlari-grid {
        min-height: 260px;
    }
}

.cek-hierarchy-root {
    background: #f5f8fb;
    border: 1px solid #cbd8e5;
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: .75rem;
    padding: .75rem;
}

.cek-hierarchy-root div {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.cek-hierarchy-root span {
    color: #64748b;
    font-size: .72rem;
}

.cek-hierarchy-root strong {
    color: #163b5c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cek-hierarchy-toolbar {
    align-items: center;
    border-bottom: 1px solid #d8e0e8;
    display: flex;
    justify-content: space-between;
    margin-bottom: .65rem;
    padding-bottom: .55rem;
}

.cek-hierarchy-grid-wrap {
    max-height: min(52vh, 34rem);
    overflow: auto;
}

.cek-hierarchy-grid {
    min-width: 70rem;
}

@media (max-width: 720px) {
    .cek-hierarchy-root {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cek-hierarchy-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: .5rem;
    }
}

a,
.btn-link {
    color: #1d4ed8;
}

.content {
    padding-top: 0;
}

.login-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 10rem);
    padding: 1.5rem;
}

.login-panel {
    background: #fff;
    border: 1px solid #c6d0dc;
    border-top: 3px solid #1f5f9f;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    max-width: 460px;
    padding: 1.25rem;
    width: 100%;
}

.login-brand {
    color: #1f5f9f;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: .65rem;
}

.login-logo {
    display: block;
    height: auto;
    margin: 0 auto .9rem;
    max-height: 5.6rem;
    max-width: 100%;
    object-fit: contain;
    width: min(100%, 28rem);
}

.login-panel h1 {
    margin-bottom: .25rem;
}

.login-subtitle,
.login-hint {
    color: #64748b;
    font-size: .82rem;
}

.login-form {
    padding: .25rem 0;
}

.login-submit {
    width: 100%;
}

.login-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    padding: .55rem .7rem;
}

.login-hint {
    border-top: 1px solid #e2e8f0;
    margin-top: .75rem;
    padding-top: .65rem;
}

.login-actions {
    justify-content: stretch;
}

.login-actions > * {
    flex: 1 1 0;
}

/* Login surface: branded, calm, and usable on small screens. */
.auth-layout {
    align-items: center;
    background: #e8edf2;
    display: flex;
    font-family: "Aptos", "Segoe UI", Arial, sans-serif;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.auth-layout .login-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: auto;
    padding: 0;
    width: 100%;
}

.login-card {
    background: #fff;
    border: 1px solid #c8d2dc;
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(18, 42, 63, .14);
    display: grid;
    grid-template-columns: minmax(250px, .82fr) minmax(360px, 1.18fr);
    max-width: 900px;
    min-height: 520px;
    overflow: hidden;
    width: 100%;
}

.login-aside {
    background: #17344d;
    color: #eef5f8;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2.25rem 2rem 1.5rem;
    position: relative;
}

.login-aside::before {
    background: #bc1e2d;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.login-aside-brand {
    background: #f7fafc;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 5px;
    padding: .65rem .7rem;
}

.login-aside-logo {
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    width: min(100%, 16rem);
}

.login-aside-copy {
    margin-top: auto;
    padding: 2.5rem 0 2rem;
}

.login-eyebrow {
    color: #8eaabd;
    display: block;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.3;
}

.login-aside-copy h2 {
    color: #fff;
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    margin: .7rem 0 .8rem;
}

.login-aside-copy p {
    color: #bdd0dc;
    font-size: .84rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    max-width: 17rem;
}

.login-slogans {
    border-left: 2px solid #bc1e2d;
    color: #d7e4ea;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.5;
    margin-top: 1.25rem;
    min-height: 2.2rem;
    padding-left: .7rem;
    position: relative;
}

.login-slogans span {
    animation: loginSloganFade 12s ease-in-out infinite;
    display: block;
    inset: 0 auto auto 0;
    opacity: 0;
    position: absolute;
}

.login-slogans span:first-child {
    animation-delay: -1.5s;
}

.login-slogans span:nth-child(2) {
    animation-delay: -5.5s;
}

.login-slogans span:nth-child(3) {
    animation-delay: -9.5s;
}

@keyframes loginSloganFade {
    0%, 6% { opacity: 0; transform: translateY(.25rem); }
    10%, 34% { opacity: 1; transform: translateY(0); }
    42%, 100% { opacity: 0; transform: translateY(-.25rem); }
}

.login-aside-footer {
    align-items: center;
    border-top: 1px solid rgba(226, 238, 245, .18);
    color: #bdd0dc;
    display: flex;
    font-size: .72rem;
    font-weight: 600;
    gap: .45rem;
    padding-top: 1rem;
}

.login-status-dot {
    background: #55bd86;
    border-radius: 50%;
    display: inline-block;
    height: .5rem;
    width: .5rem;
}

.login-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    padding: 3rem clamp(2rem, 5vw, 4rem);
}

.login-panel-head {
    margin-bottom: 1.25rem;
}

.login-flow {
    align-items: center;
    display: flex;
    margin-bottom: 1.5rem;
    max-width: 15rem;
}

.login-flow-step {
    align-items: center;
    color: #9aabb8;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .65rem;
    font-weight: 700;
    gap: .35rem;
}

.login-flow-step span {
    align-items: center;
    background: #edf2f5;
    border: 1px solid #d4dee5;
    border-radius: 50%;
    display: inline-flex;
    font-size: .64rem;
    height: 1.45rem;
    justify-content: center;
    width: 1.45rem;
}

.login-flow-step.is-active,
.login-flow-step.is-complete {
    color: #a41e2a;
}

.login-flow-step.is-active span {
    background: #a41e2a;
    border-color: #a41e2a;
    color: #fff;
}

.login-flow-step.is-complete span {
    background: #e8f4ee;
    border-color: #83bda1;
    color: #237a5a;
}

.login-flow-line {
    background: #d8e1e7;
    flex: 1 1 auto;
    height: 1px;
    margin: 0 .5rem;
}

.login-panel-head .login-eyebrow {
    color: #a41e2a;
}

.login-panel h1 {
    color: #17344d;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0;
    margin: .45rem 0 .35rem;
    outline: none;
}

.login-subtitle {
    color: #647887;
    font-size: .82rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0;
}

.login-form {
    padding: 0;
}

.login-form .dxbl-fl-item {
    margin-bottom: .2rem;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap .form-control {
    font-family: inherit;
    font-size: .82rem;
    min-height: 2.65rem;
    padding-left: 2.35rem;
}

.login-input-wrap .form-control::placeholder {
    color: #8796a1;
    font-size: .78rem;
}

.login-input-icon {
    color: #758b9c;
    left: .75rem;
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.login-input-wrap:focus-within .login-input-icon {
    color: #a41e2a;
}

.login-submit {
    min-height: 2.75rem;
}

.login-panel .dxbl-btn-primary {
    background: #a41e2a;
    border-color: #a41e2a;
}

.login-panel .dxbl-btn-primary:hover,
.login-panel .dxbl-btn-primary:focus-visible {
    background: #861824;
    border-color: #861824;
}

.login-panel .form-control,
.login-panel .dxbl-btn {
    border-radius: 4px;
}

.login-error {
    align-items: flex-start;
    display: flex;
    gap: .45rem;
    line-height: 1.4;
}

.login-error-icon,
.login-hint-icon {
    flex: 0 0 auto;
    margin-top: .1rem;
}

.login-hint {
    align-items: flex-start;
    display: flex;
    gap: .45rem;
    font-size: .72rem;
    line-height: 1.45;
}

.login-portal-link {
    margin-top: .8rem;
    text-align: center;
}

.login-portal-link a {
    color: #9c5266;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.login-portal-link a:hover {
    text-decoration: underline;
}

.login-company-summary {
    align-items: center;
    background: #f2f6f9;
    border: 1px solid #d5e0e8;
    border-left: 3px solid #a41e2a;
    display: flex;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: .75rem .85rem;
}

.login-summary-icon {
    color: #a41e2a;
    font-size: 1.25rem;
}

.login-company-summary div {
    display: flex;
    flex-direction: column;
    gap: .18rem;
    min-width: 0;
}

.login-summary-label {
    color: #71879a;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.login-company-summary strong {
    color: #17344d;
    font-size: .85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-panel-footer {
    align-items: center;
    border-top: 1px solid #e1e8ed;
    color: #8495a1;
    display: flex;
    font-size: .65rem;
    font-weight: 400;
    gap: .4rem;
    line-height: 1.4;
    margin-top: 1.2rem;
    padding-top: .8rem;
}

.login-panel-footer .dx-icon-lock {
    color: #6a8191;
    flex: 0 0 auto;
}

@media (max-width: 700px) {
    .auth-layout {
        padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    }

    .login-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-aside {
        padding: 1.4rem 1.35rem 1.1rem;
    }

    .login-aside-brand {
        padding: .55rem .6rem;
    }

    .login-aside-logo {
        width: 13rem;
    }

    .login-aside-copy {
        padding: 1.25rem 0 1.1rem;
    }

    .login-aside-copy h2 {
        font-size: 1.3rem;
        margin: .45rem 0 .35rem;
    }

    .login-aside-copy p {
        font-size: .76rem;
        max-width: none;
    }

    .login-slogans {
        margin-top: .9rem;
    }

    .login-panel {
        padding: 1.6rem 1.35rem 1.8rem;
    }

    /* iOS zooms focused controls below 16px; keep login fields at the native threshold. */
    .login-form input,
    .login-form .dxbl-text-edit-input,
    .login-input-wrap .form-control {
        font-size: 16px;
    }

    .login-flow {
        margin-bottom: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-slogans span {
        animation: none;
        opacity: 0;
    }

    .login-slogans span:first-child {
        opacity: 1;
    }
}

.session-exit {
    background: transparent;
    border: 0;
    color: #1f5f9f;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 700;
    padding: .2rem .4rem;
}

.operation-toast {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #c7d5df;
    border-left: 3px solid #2c8a68;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(15, 35, 52, .16);
    display: flex;
    gap: .6rem;
    max-width: min(300px, calc(100vw - 2rem));
    padding: .65rem .75rem;
    pointer-events: none;
    position: fixed;
    right: 1rem;
    top: 3.65rem;
    width: 300px;
    z-index: 2000;
}

.operation-toast-icon {
    align-items: center;
    background: #e5f4ed;
    border-radius: 50%;
    color: #237a5a;
    display: inline-flex;
    flex: 0 0 auto;
    height: 1.4rem;
    justify-content: center;
    margin-top: .05rem;
    width: 1.4rem;
}

.operation-toast-icon span {
    font-size: .75rem;
}

.operation-toast-body {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    min-width: 0;
}

.operation-toast-body strong {
    color: #17344d;
    font-size: .74rem;
}

.operation-toast-body span {
    color: #3c5366;
    font-size: .7rem;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.operation-toast-body small {
    color: #7b8d9b;
    font-size: .62rem;
}

.backup-auto-toast {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #c7d5df;
    border-left: 3px solid #e87516;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(15, 35, 52, .16);
    display: flex;
    gap: .6rem;
    max-width: min(380px, calc(100vw - 2rem));
    padding: .7rem .75rem;
    position: fixed;
    right: 1rem;
    top: 8.2rem;
    width: 380px;
    z-index: 2002;
}

.backup-auto-toast-icon {
    align-items: center;
    background: #fff0e2;
    border-radius: 50%;
    color: #c85f0b;
    display: inline-flex;
    flex: 0 0 auto;
    height: 1.45rem;
    justify-content: center;
    margin-top: .05rem;
    width: 1.45rem;
}

.backup-auto-toast-icon span {
    font-size: .75rem;
}

.backup-auto-toast-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .18rem;
    min-width: 0;
}

.backup-auto-toast-body strong {
    color: #17344d;
    font-size: .76rem;
}

.backup-auto-toast-body span {
    color: #3c5366;
    font-size: .7rem;
    line-height: 1.35;
}

.backup-auto-toast > button {
    background: transparent;
    border: 0;
    color: #6d7f8d;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0 .1rem;
}

.support-notification-toast {
    background: #fff;
    border: 1px solid #c7d5df;
    border-left: 3px solid #d87928;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(15, 35, 52, .16);
    display: flex;
    flex-direction: column;
    gap: .28rem;
    max-width: min(340px, calc(100vw - 2rem));
    padding: .7rem .8rem;
    position: fixed;
    right: 1rem;
    top: 4.1rem;
    width: 340px;
    z-index: 2001;
}

.support-notification-toast-header {
    align-items: center;
    color: #17344d;
    display: flex;
    font-size: .76rem;
    justify-content: space-between;
    gap: .5rem;
}

.support-notification-toast-header span {
    color: #a45b20;
    font-size: .66rem;
    white-space: nowrap;
}

.support-notification-toast-body {
    display: flex;
    flex-direction: column;
    gap: .14rem;
    min-width: 0;
}

.support-notification-toast-body strong {
    color: #3c5366;
    font-size: .7rem;
}

.support-notification-toast-body span {
    color: #617586;
    font-size: .68rem;
    line-height: 1.35;
    max-height: 2.7em;
    overflow: hidden;
}

.support-notification-toast-action,
.admin-support-notification-action {
    align-self: flex-start;
    background: transparent;
    border: 0;
    color: #1f5f9f;
    cursor: pointer;
    font-size: .68rem;
    font-weight: 700;
    padding: .18rem 0 0;
}

.system-error-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: min(420px, calc(100vw - 2rem));
    z-index: 1200;
    border: 1px solid #d9534f;
    border-left: 5px solid #b42318;
    background: #fff8f7;
    box-shadow: 0 8px 24px rgba(52, 16, 12, 0.2);
    color: #5f1914;
}

.system-error-toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .85rem;
    border-bottom: 1px solid #f1c4c1;
}

.system-error-toast-header button {
    border: 0;
    background: transparent;
    color: #7f1d1d;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.system-error-toast-body {
    display: grid;
    gap: .35rem;
    padding: .75rem .85rem .85rem;
    font-size: .86rem;
}

.system-error-toast-body span {
    line-height: 1.4;
}

.system-error-toast-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: 0 .85rem .85rem;
}

.system-error-toast-actions button {
    border: 1px solid #b42318;
    border-radius: 3px;
    cursor: pointer;
    font-size: .74rem;
    font-weight: 700;
    padding: .38rem .6rem;
}

.system-error-toast-support {
    background: #b42318;
    color: #fff;
}

.system-error-toast-home {
    background: #fff;
    color: #7f1d1d;
}

.global-error-fallback {
    display: grid;
    gap: .55rem;
    margin: 1rem;
    padding: 1rem;
    border: 1px solid #d9534f;
    background: #fff8f7;
    color: #7f1d1d;
}

.global-error-home {
    justify-self: start;
    border: 1px solid #b42318;
    border-radius: 3px;
    background: #b42318;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    padding: .4rem .65rem;
    text-decoration: none;
}

@media (max-width: 640px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden !important;
        width: 100%;
    }

    body:has(dxbl-modal-root) {
        padding-right: 0 !important;
    }

    .operation-toast {
        right: .75rem;
        top: .75rem;
        width: min(300px, calc(100vw - 1.5rem));
    }
}

.efatura-aktarildi-row > td {
    background: #ecfdf3 !important;
    color: #14532d;
}

.efatura-import-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.4rem;
}

.efatura-import-popup .efatura-import-popup-body,
.efatura-import-popup-body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.efatura-import-popup-body > .efatura-import-content {
    height: 100%;
    min-height: 0;
}

.efatura-import-popup-footer {
    flex: 0 0 auto;
}

.efatura-import-summary,
.efatura-import-cari-grid,
.efatura-import-required-grid,
.efatura-inline-create {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.efatura-import-summary > div {
    background: #f4f7fb;
    border: 1px solid #d9e2ef;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.65rem;
}

.efatura-import-summary span,
.efatura-import-section-header span,
.efatura-import-line-source span {
    color: #64748b;
    font-size: 0.76rem;
}

.efatura-import-summary strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.efatura-import-section {
    border: 1px solid #d9e2ef;
    border-radius: 6px;
    padding: 0.8rem;
}

.efatura-import-section-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.efatura-import-section-header h3 {
    font-size: 1rem;
    margin: 0 0 0.2rem;
}

.efatura-import-section-header > div > span {
    display: block;
}

.efatura-import-cari-grid {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
}

.efatura-import-required-grid {
    align-items: end;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.efatura-import-cari-grid label,
.efatura-inline-create label,
.efatura-import-line-target label {
    color: #334155;
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
    gap: 0.25rem;
}

.efatura-inline-create {
    align-items: end;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
    margin-top: 0.75rem;
}

.efatura-inline-create .efatura-inline-field-wide {
    grid-column: 1 / -1;
}

.efatura-import-ok,
.efatura-import-match {
    color: #166534 !important;
    font-weight: 600;
}

.efatura-import-warning {
    color: #b45309 !important;
    font-weight: 600;
}

.efatura-import-lines {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.efatura-import-line {
    align-items: end;
    border: 1px solid #d9e2ef;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    padding: 0.65rem;
}

.efatura-import-line-matched {
    border-left-color: #16a34a;
    background: #f0fdf4;
}

.efatura-import-line-source {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.efatura-import-line-source strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.efatura-import-line-target {
    align-items: end;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

@media (max-width: 720px) {
    .efatura-import-summary,
    .efatura-import-cari-grid,
    .efatura-import-required-grid,
    .efatura-inline-create,
    .efatura-import-line {
        grid-template-columns: 1fr;
    }

    .efatura-import-line-target {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.tab-workspace {
    padding-top: 0.45rem;
}

.open-tabs {
    background: #dfe4eb;
    border-bottom: 0;
    padding: 0;
    position: static;
}

.open-tabs-row {
    box-shadow: 0 2px 7px rgb(27 50 72 / 12%);
}

.open-tabs-row {
    align-items: stretch;
    display: flex;
    gap: .35rem;
}

.erp-open-tabs {
    --dxbl-tabs-tab-border-radius: 3px 3px 0 0;
    flex: 1 1 auto;
    min-width: 0;
}

.erp-open-tabs .dxbl-tabs-item {
    flex: 0 1 170px;
    max-width: 190px;
    min-width: 128px;
    min-height: 2.75rem;
    width: 170px;
}

.erp-open-tabs .dxbl-tabs-text-container,
.erp-open-tabs .dxbl-tabs-text-container > .dxbl-text {
    min-width: 0;
    max-width: 100%;
}

.erp-open-tabs .dxbl-tabs-text-overflow {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    font-size: .72rem;
    line-height: 1.08;
    max-height: 2.16em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal !important;
}

.open-tabs-launcher {
    align-items: center;
    background: #f7f9fb;
    border-left: 1px solid #c6ced9;
    display: flex;
    flex: 0 0 auto;
    padding: 0 .35rem;
}

.open-tabs-popup-trigger {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #465668;
    cursor: pointer;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 600;
    gap: .35rem;
    min-height: 2.4rem;
    padding: .25rem .55rem;
    white-space: nowrap;
}

.open-tabs-popup-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    text-align: left;
}

.open-tabs-popup-text strong {
    font-size: .78rem;
}

.open-tabs-popup-text small {
    color: #7a8795;
    font-size: .62rem;
    font-weight: 400;
    margin-top: .16rem;
}

.open-tabs-popup-trigger:hover,
.open-tabs-popup-trigger:focus-visible {
    background: #eaf1f9;
    border-bottom-color: #2f6fbd;
    color: #1d4f86;
    outline: none;
}

.open-tabs-popup-trigger .dx-icon-tabs {
    color: #2f6fbd;
}

.open-tabs-popup-trigger .open-tabs-count {
    background: #dce9f7;
    border-radius: 999px;
    color: #245888;
    font-size: .68rem;
    line-height: 1;
    min-width: 1.25rem;
    padding: .22rem .3rem;
}

.open-tabs-count {
    color: #5e6b7a;
    font-size: .75rem;
    min-width: 1rem;
    text-align: center;
}

.open-tab-card-grid {
    display: grid;
    gap: .7rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-height: min(62vh, 560px);
    overflow-y: auto;
    padding: .2rem;
}

.open-tabs-popup {
    max-width: 94vw !important;
}

.open-tab-card {
    align-items: stretch;
    background: #fff;
    border: 1px solid #d6dee8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(29 47 68 / 8%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-height: 0;
    padding: .55rem;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.open-tab-card:hover,
.open-tab-card:focus-visible {
    border-color: #4b78b4;
    box-shadow: 0 4px 12px rgb(29 47 68 / 15%);
    outline: none;
}

.open-tab-card-active {
    background: #eef5ff;
    border-color: #2f6fbd;
}

.open-tab-card-preview {
    aspect-ratio: 16 / 9;
    background: #edf2f7;
    border: 1px solid #d7e0ea;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.open-tab-card-preview::after {
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 5px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.open-tab-preview-clone {
    background: #f7f9fb;
    display: block !important;
    height: 500%;
    min-height: 500%;
    overflow: hidden;
    pointer-events: none;
    transform: scale(.2);
    transform-origin: top left;
    width: 500%;
}

.open-tab-preview-clone .cached-tab-page-hidden,
.open-tab-preview-clone .dxbl-popup,
.open-tab-preview-clone .dxbs-popup,
.open-tab-preview-clone .open-tabs {
    display: none !important;
}

.open-tab-card-footer {
    align-items: center;
    display: flex;
    gap: .45rem;
    min-width: 0;
}

.open-tab-card-actions {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: .25rem;
}

.open-tab-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.open-tab-card-content strong,
.open-tab-card-content small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.open-tab-card-content strong {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #1d334d;
    display: -webkit-box;
    font-size: .9rem;
    line-height: 1.12;
    max-height: 2.24em;
    white-space: normal;
}

.open-tab-card-content small {
    color: #6a7888;
    font-size: .73rem;
    margin-top: .18rem;
}

.open-tab-card-state {
    background: #d8f1e3;
    border-radius: 999px;
    color: #17653a;
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .42rem;
    white-space: nowrap;
}

.open-tab-card-close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #6a7888;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 1.8rem;
    height: 1.8rem;
    justify-content: center;
    padding: 0;
}

.open-tab-card-close-glyph {
    display: block;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
}

.open-tab-card-close:hover,
.open-tab-card-close:focus-visible {
    background: #fbe4e4;
    color: #b32828;
    outline: none;
}

@media (max-width: 640px) {
    .open-tabs-popup {
        max-height: calc(100vh - 1rem) !important;
        max-width: calc(100vw - 1rem) !important;
    }
}

.tab-page-content {
    background: #f7f9fb;
    border: 1px solid #b8c2cf;
    border-radius: 0 4px 4px 4px;
    border-top: 0;
    min-height: calc(100vh - 7.5rem);
    padding: 0.75rem;
}

.module-search {
    max-width: 360px;
    min-width: 260px;
    width: 36vw;
}

.module-search-combo {
    width: 100%;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    font-size: 1.35rem;
    font-weight: 700;
}

h2 {
    font-size: 0.98rem;
    font-weight: 700;
}

.page-header {
    align-items: center;
    background: #ffffff;
    border: 1px solid #c6d0dc;
    border-left: 3px solid #1f5f9f;
    border-radius: 3px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.8rem;
}

.page-header p {
    color: #64748b;
    font-size: 0.88rem;
    margin-bottom: 0;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 600;
    min-height: 2.1rem;
    padding: 0.35rem 0.75rem;
}

.btn-primary {
    background: #1f5f9f;
    border-color: #1f5f9f;
    color: #fff;
}

.btn-primary:hover {
    background: #174b80;
    border-color: #174b80;
}

.metric-grid,
.module-grid,
.workflow-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.invoice-read-only-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 9px 12px;
    border: 1px solid #e7c66a;
    border-left: 3px solid #c48a00;
    background: #fff8df;
    color: #654b00;
    font-size: 0.85rem;
}

.invoice-read-only-banner span {
    color: #725f2c;
}

.invoice-read-only-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.invoice-read-only-fieldset:disabled {
    opacity: 0.92;
}

.bulk-invoice-criteria {
    margin-bottom: .75rem;
}

.bulk-invoice-form {
    padding: .75rem;
}

.bulk-invoice-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: .25rem;
}

@media (max-width: 900px) {
    .bulk-invoice-filter-actions {
        justify-content: stretch;
    }

    .bulk-invoice-filter-actions .erp-button {
        flex: 1 1 0;
    }
}

.invoice-module-menu {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .75rem;
    border-bottom: 1px solid #cbd5e1;
    background: #f8fafc;
}

.invoice-section-title {
    margin-top: .75rem;
    padding: .55rem .75rem;
    border: 1px solid #cbd5e1;
    border-bottom: 2px solid #1f5f9f;
    background: #edf2f7;
    color: #334155;
    font-size: .82rem;
    font-weight: 700;
}

.invoice-single-page {
    border: 1px solid #cbd5e1;
    background: #fff;
}

.invoice-form-section {
    min-width: 0;
}

.invoice-form-section + .invoice-form-section {
    border-top: 1px solid #94a3b8;
}

.invoice-prerequisite-warning {
    display: grid;
    gap: .25rem;
    margin-top: .75rem;
    padding: .75rem;
    border: 1px solid #f1c27d;
    background: #fff7ed;
    color: #9a3412;
}

.invoice-form-tabs {
    border: 1px solid #cbd5e1;
    background: #fff;
}

.invoice-upper-layout {
    display: grid;
    gap: 0;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.8fr);
    background: #f8fafc;
}

.invoice-fixed-fields,
.invoice-cari-fields {
    min-width: 0;
    border-right: 1px solid #cbd5e1;
}

.invoice-cari-fields {
    border-right: 0;
}

.invoice-subtitle {
    border-bottom: 1px solid #cbd5e1;
    background: #edf2f7;
    color: #334155;
    font-size: .82rem;
    font-weight: 700;
    padding: .55rem .75rem;
}

.invoice-description-fields {
    border-top: 1px solid #cbd5e1;
    background: #fff;
}

.invoice-description-header {
    align-items: center;
    display: flex;
    gap: .5rem;
    justify-content: space-between;
}

.invoice-description-header .invoice-subtitle {
    flex: 1;
}

.invoice-description-header .dxbl-btn {
    margin-right: .75rem;
}

.invoice-description-grid {
    display: grid;
    gap: .15rem .55rem;
    grid-template-columns: 1fr;
    box-sizing: border-box;
    min-width: 0;
    overflow-x: hidden;
    padding: .3rem .55rem .5rem;
    width: 100%;
}

.invoice-description-grid .dxbl-fl-item {
    align-items: center;
    display: flex;
    font-size: .76rem;
    gap: .45rem;
    min-width: 0;
    max-width: 100%;
}

.invoice-description-grid .dxbl-fl-item > label,
.invoice-description-grid .dxbl-fl-item .dxbl-fl-ctrl-label {
    flex: 0 0 5.8rem;
    margin: 0;
    max-width: 5.8rem;
}

.invoice-description-grid .dxbl-fl-item > div:last-child,
.invoice-description-grid .dxbl-fl-item .dxbl-fl-ctrl {
    flex: 1 1 auto;
    min-width: 0;
}

.invoice-description-grid .dxbl-text-edit,
.invoice-description-grid .dxbl-textbox,
.invoice-description-grid input {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.invoice-description-grid .dxbl-text-edit {
    min-height: 1.8rem;
}

.invoice-lines-grid {
    min-height: 360px;
}

.invoice-line-entry,
.invoice-line-summary {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    min-width: 0;
    overflow-x: hidden;
}

.invoice-line-entry .erp-form,
.invoice-line-summary .erp-form {
    min-width: 0;
    width: 100%;
}

.invoice-line-entry .dxbl-fl-item,
.invoice-line-summary .dxbl-fl-item {
    max-width: 100%;
    min-width: 0;
}

.invoice-line-entry .dxbl-fl-item,
.invoice-line-summary .dxbl-fl-item {
    display: block;
}

.invoice-line-entry .dxbl-fl-item > label,
.invoice-line-entry .dxbl-fl-item .dxbl-fl-ctrl-label,
.invoice-line-summary .dxbl-fl-item > label,
.invoice-line-summary .dxbl-fl-item .dxbl-fl-ctrl-label {
    display: block;
    max-width: 100%;
    width: 100%;
}

.invoice-line-entry .dxbl-text-edit,
.invoice-line-entry .dxbl-spin-edit,
.invoice-line-entry input,
.invoice-line-summary .dxbl-text-edit,
.invoice-line-summary .dxbl-spin-edit,
.invoice-line-summary input {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.invoice-line-entry .invoice-discount-field .dxbl-spin-edit,
.invoice-line-entry .invoice-discount-field input {
    max-width: 4.5rem;
}

.invoice-other-tax-list {
    background: #f8fafc;
    border: 1px solid #d7dde6;
    display: grid;
    gap: .35rem;
    padding: .5rem;
}

.invoice-other-tax-row {
    align-items: center;
    display: grid;
    gap: .45rem;
    grid-template-columns: minmax(170px, 1.4fr) minmax(80px, .55fr) minmax(70px, .55fr) minmax(150px, 1.5fr) minmax(90px, .7fr);
    min-width: 0;
}

.invoice-other-tax-row > * {
    min-width: 0;
}

.invoice-other-tax-name,
.invoice-other-tax-code,
.invoice-other-tax-description,
.invoice-other-tax-amount {
    color: #334155;
    font-size: .76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-other-tax-amount {
    font-weight: 700;
    text-align: right;
}

@media (max-width: 900px) {
    .invoice-other-tax-row {
        grid-template-columns: minmax(140px, 1fr) minmax(75px, .55fr) minmax(60px, .5fr) minmax(110px, 1fr) minmax(80px, .7fr);
    }
}

.permission-denied-panel {
    align-items: center;
    background: #fff8ed;
    border: 1px solid #f2c48b;
    border-left: 4px solid #e87516;
    color: #5d3b1a;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    margin: 24px auto;
    max-width: 620px;
    min-height: 220px;
    padding: 32px;
    text-align: center;
}

.permission-denied-panel .dx-icon-lock {
    color: #e87516;
    font-size: 28px;
}

.permission-denied-panel h2,
.permission-denied-panel p {
    margin: 0;
}

.stock-excel-upload-body {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
}

.stock-excel-upload-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stock-excel-upload-hint,
.stock-excel-file-name,
.stock-excel-system-column small {
    color: #66788a;
    font-size: 12px;
}

.stock-excel-file-name {
    background: #fff4e9;
    border: 1px solid #f1c499;
    border-radius: 4px;
    color: #8a4b14;
    max-width: 360px;
    overflow: hidden;
    padding: 6px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-excel-mapping-grid {
    display: grid;
    gap: 8px 18px;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    padding: 14px 16px;
}

.stock-excel-mapping-row {
    align-items: center;
    border-bottom: 1px solid #edf0f3;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(170px, 1fr) minmax(180px, 1fr);
    min-height: 42px;
}

.stock-excel-system-column {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    min-width: 0;
}

.stock-excel-system-column strong {
    color: #26394d;
    font-size: 13px;
    font-weight: 600;
}

.stock-excel-system-column small {
    flex-basis: 100%;
    margin-top: 2px;
}

.stock-excel-mapping-value {
    align-items: center;
    display: flex;
    gap: 6px;
    min-width: 0;
}

.stock-excel-mapping-value > :first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.required-mark {
    color: #c7472c;
    font-weight: 700;
}

.stock-excel-preview-summary {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: flex-end;
}

.stock-excel-preview-filters {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #d9e2eb;
    border-top: 1px solid #d9e2eb;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px 12px;
}

.stock-excel-preview-filter-title,
.stock-excel-filter-count {
    color: #526477;
    font-size: .86rem;
    font-weight: 600;
}

.stock-excel-preview-filter-option {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stock-excel-preview-filter-option small {
    color: #66788a;
    font-size: .76rem;
    line-height: 1.35;
    max-width: 380px;
}

.stock-excel-filter-count {
    font-weight: 500;
    margin-left: auto;
}

.stock-excel-new-count {
    color: #16734b;
}

.stock-excel-update-count {
    color: #9b6500;
}

.stock-excel-error-count {
    color: #bd3c2f;
}

.stock-excel-preview-grid {
    overflow-x: auto;
}

.stock-excel-grid-editor {
    min-width: 110px;
    width: 100%;
}

.stock-excel-error-text {
    color: #b42318;
    font-weight: 700;
}

.stock-excel-confirmation p {
    color: #35485b;
    line-height: 1.5;
    margin: 0 0 12px;
}

.stock-excel-confirmation-summary {
    background: #f6f8fa;
    border: 1px solid #e1e7ed;
    display: flex;
    gap: 24px;
    padding: 12px;
}

.stock-excel-confirmation-note {
    color: #66788a !important;
    font-size: 12px;
    margin-top: 14px !important;
}

@media (max-width: 900px) {
    .stock-excel-mapping-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .stock-excel-mapping-row {
        align-items: stretch;
        grid-template-columns: 1fr;
        padding: 8px 0;
    }

    .stock-excel-mapping-value {
        width: 100%;
    }

    .stock-excel-preview-summary {
        justify-content: flex-start;
    }

    .stock-excel-preview-filters {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .stock-excel-preview-filter-option {
        width: 100%;
    }

    .stock-excel-filter-count {
        margin-left: 0;
    }
}

.invoice-line-description {
    align-items: center;
    display: grid;
    gap: .5rem;
    grid-template-columns: 7rem minmax(0, 1fr);
    padding: .45rem .75rem;
}

.invoice-line-description > * {
    min-width: 0;
    width: 100%;
}

.invoice-line-description .dxbl-text-edit {
    min-height: 1.8rem;
}

.invoice-line-descriptions {
    border-top: 1px solid #d7dde6;
    padding: .45rem .75rem .65rem;
}

.invoice-line-description-row {
    align-items: center;
    display: grid;
    gap: .5rem;
    grid-template-columns: 7rem minmax(0, 1fr);
    margin-top: .35rem;
}

.invoice-description-control,
.invoice-grid-description-row {
    align-items: center;
    display: flex;
    gap: .35rem;
    min-width: 0;
}

.invoice-description-control .dxbl-text-edit,
.invoice-grid-description-row .dxbl-text-edit {
    flex: 1 1 auto;
    min-width: 0;
}

.invoice-description-control .dxbl-btn,
.invoice-grid-description-row .dxbl-btn {
    flex: 0 0 auto;
}

.invoice-grid-description-row.irsaliye-line-locked {
    opacity: .72;
    pointer-events: none;
}

.invoice-remove-button {
    color: #b42318;
    font-size: .95rem;
    line-height: 1;
    min-width: 2rem;
    padding-inline: .35rem;
}

.invoice-line-description-row label {
    color: #475569;
    font-size: .78rem;
}

.invoice-line-description-row .dxbl-text-edit {
    min-width: 0;
    width: 100%;
}

.invoice-grid-descriptions {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 12rem;
}

.invoice-grid-descriptions .dxbl-text-edit {
    min-width: 0;
    width: 100%;
}

.invoice-grid-descriptions .dxbl-btn {
    align-self: flex-start;
}

.invoice-line-summary {
    border-top: 0;
}

.invoice-total-layout {
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    padding: .75rem;
}

.invoice-total-box {
    min-width: 0;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 4px;
    overflow: hidden;
}

.invoice-total-box-header {
    align-items: center;
    background: #edf2f7;
    border-bottom: 1px solid #cbd5e1;
    display: flex;
    justify-content: space-between;
    min-height: 3.2rem;
    padding: .55rem .75rem;
}

.invoice-total-box-header .invoice-subtitle {
    color: #1e3a5f;
    margin: 0;
}

.invoice-total-box-header small {
    color: #64748b;
    display: block;
    font-size: .72rem;
    margin-top: .15rem;
}

.invoice-total-box > .erp-form {
    padding: .65rem .75rem .75rem;
}

.invoice-dual-total {
    align-items: center;
    display: flex;
    gap: .5rem;
    min-width: 0;
}

.invoice-dual-total > .dxbl-spin-edit {
    flex: 1 1 auto;
    min-width: 0;
}

.invoice-discount-pair {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    min-width: 0;
}

.invoice-discount-input {
    display: grid;
    flex: 1 1 140px;
    gap: .15rem;
    min-width: 120px;
}

.invoice-discount-input > span {
    color: #52657a;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.1;
}

.invoice-discount-input .dxbl-spin-edit,
.invoice-discount-input input {
    min-width: 0;
    width: 100%;
}

.invoice-currency-total {
    flex: 0 1 220px;
    min-width: 170px;
}

.invoice-currency-total-label {
    color: #52657a;
    display: block;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: .15rem;
}

.invoice-currency-total .dxbl-text-edit {
    width: 100%;
}

.invoice-grand-total-item {
    background: #eaf7ef;
    border: 1px solid #86c99b;
    border-radius: 4px;
    font-weight: 700;
    margin-top: .2rem;
    padding: .15rem .25rem;
}

.invoice-grand-total-item .dxbl-form-layout-item-label {
    color: #166534;
    font-weight: 700;
}

.invoice-settlement-row {
    border-top: 1px solid #cbd5e1;
    background: #fff;
}

.invoice-settlement-row .erp-form {
    padding-bottom: .25rem;
}

.invoice-line-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.invoice-line-actions .dxbl-btn {
    min-width: 5.5rem;
}

.invoice-excel-upload {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    color: #1e293b;
    cursor: pointer;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 600;
    gap: .35rem;
    min-height: 2rem;
    padding: .35rem .65rem;
    white-space: nowrap;
}

.invoice-excel-upload:hover {
    background: #e2e8f0;
}

.invoice-excel-upload input {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-metrics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.split-layout {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

/* ERP kayit ekranlarinda form ustte, mevcut kayitlar altta akar. */
.split-layout > article:nth-child(2) {
    order: -1;
}

.cari-layout > article:first-child {
    order: 0;
}

.cari-layout > article:nth-child(2) {
    order: 1;
}

.stok-layout > article:first-child {
    order: 0;
}

.stok-layout > article:nth-child(2) {
    order: 1;
}

.stok-layout > article {
    min-width: 0;
    width: 100%;
}

.stok-list-only > article:nth-child(2) {
    min-height: calc(100vh - 12rem);
}

.stok-form-open > article:nth-child(2) {
    min-height: calc(100vh - 12rem);
}

.stok-list-grid {
    width: 100%;
}

.doviz-layout > article {
    min-width: 0;
    width: 100%;
}

.doviz-layout > article:first-child {
    order: 0;
}

.doviz-layout > article:nth-child(2) {
    order: 1;
}

.doviz-list-only > article:first-child {
    order: 1;
}

.doviz-list-only > article:nth-child(2) {
    min-height: calc(100vh - 12rem);
}

.doviz-form-open > article:nth-child(2) {
    min-height: calc(100vh - 12rem);
}

.doviz-list-grid {
    width: 100%;
    min-height: calc(100vh - 17rem);
}

.stok-form-open .stok-list-grid,
.stok-list-only .stok-list-grid {
    min-height: calc(100vh - 17rem);
}

.metric-card,
.module-card,
.panel {
    background: #fff;
    border: 1px solid #c6d0dc;
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

.module-card-button {
    appearance: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    width: 100%;
}

.user-module-tabs {
    padding: 0.5rem;
}

.user-module-tabs .dxbl-tabs-tab-list {
    display: flex;
}

/* Yetki akisi: rol -> yetki matrisi -> kullanici tanimi. */
.user-module-tabs .dxbl-tabs-tab-list > .dxbl-tabs-item:nth-child(1) {
    order: 3;
}

.user-module-tabs .dxbl-tabs-tab-list > .dxbl-tabs-item:nth-child(2) {
    order: 1;
}

.user-module-tabs .dxbl-tabs-tab-list > .dxbl-tabs-item:nth-child(3) {
    order: 2;
}

.inner-tab-content {
    margin-top: 0.75rem;
}

.metric-card,
.module-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem;
    text-decoration: none;
}

.metric-card span,
.module-card span,
.panel-header span {
    color: #64748b;
    font-size: 0.78rem;
}

.metric-card strong {
    color: #0f172a;
    font-size: 1.08rem;
}

.metric-card small {
    color: #64748b;
    font-size: 0.76rem;
}

.module-card strong {
    color: #0f172a;
    font-size: 0.98rem;
}

.module-card-icon {
    align-items: center;
    background: #e8f0f8;
    border: 1px solid #b9cce0;
    border-radius: 3px;
    color: #1f5f9f;
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    line-height: 1;
    margin-bottom: 0.25rem;
    width: 2rem;
}

.module-card small {
    color: #64748b;
}

.module-card:hover {
    border-color: #1f5f9f;
    box-shadow: inset 0 0 0 1px rgba(31, 95, 159, 0.2);
}

.dashboard-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) 320px;
}

.dashboard-status-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-grid-erp {
    gap: 0;
    margin-bottom: 0;
    padding: 0.75rem;
}

.module-card-erp {
    border-radius: 0;
    box-shadow: none;
    min-height: 92px;
}

.module-card-erp:nth-child(3n + 1),
.module-card-erp:nth-child(3n + 2) {
    border-right: 0;
}

.module-card-erp:nth-child(n + 4) {
    border-top: 0;
}

.panel {
    padding: 0;
}

.dx-panel-body {
    padding: 0.75rem;
}

.panel-header {
    align-items: center;
    background: #edf2f7;
    border-bottom: 1px solid #cbd5e1;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 0.5rem 0.75rem;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.55rem 0.65rem;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.data-table tbody tr:hover {
    background: #f8fbff;
}

.data-table td small {
    color: #64748b;
    display: block;
}

.money {
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.positive {
    color: #047857;
}

.negative {
    color: #b91c1c;
}

.status {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    color: #075985;
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.18rem 0.45rem;
}

.status.riskli {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.status.pasif {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.form-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.9rem;
}

.form-grid label {
    color: #334155;
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    font-weight: 650;
    gap: 0.35rem;
}

.form-control {
    border: 1px solid #b8c2cf;
    border-radius: 3px;
    font-size: 0.88rem;
    min-height: 2.15rem;
}

.span-2 {
    grid-column: span 2;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.company-logo-editor {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    min-height: 74px;
    padding: 10px 12px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
}

.company-logo-empty {
    color: #64748b;
    font-size: 12px;
}

.company-logo-preview {
    display: block;
    width: 120px;
    height: 58px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 5px;
}

.company-logo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.erp-form {
    padding: 0.85rem;
}

.banka-hesap-form-body {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.75rem;
}

.banka-hesap-form-section {
    background: #fff;
    border: 1px solid #cbd5e1;
    min-width: 0;
}

.banka-hesap-form-section h3 {
    background: #edf2f7;
    border-bottom: 1px solid #cbd5e1;
    color: #1e3a5f;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    padding: 0.55rem 0.75rem;
}

.banka-hesap-special-fields {
    background: #f8fafc;
    border-top: 1px dashed #b8c2cf;
    margin: 0 0.85rem 0.85rem;
    padding: 0.65rem;
}

.banka-hesap-special-fields > strong {
    color: #245a9b;
    display: block;
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

@media (max-width: 720px) {
    .banka-hesap-form-body {
        padding: 0.45rem;
    }

    .banka-hesap-special-fields {
        margin: 0 0.5rem 0.5rem;
        padding: 0.45rem;
    }
}

.production-form {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    min-width: 0;
    padding: 0.75rem;
}

.recipe-form-heading {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #cbd5e1;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
}

.recipe-form-heading h3,
.recipe-form-section-header h4 {
    color: #1e3a5f;
    margin: 0;
}

.recipe-form-heading h3 {
    font-size: 1rem;
}

.recipe-form-heading p,
.recipe-form-section-header span {
    color: #64748b;
    font-size: 0.76rem;
    margin: 0.25rem 0 0;
}

.recipe-form-mode {
    color: #2563a6;
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.recipe-form-count,
.recipe-edit-badge {
    background: #e8f0f8;
    border: 1px solid #bfd0e0;
    color: #245a9b;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.55rem;
    white-space: nowrap;
}

.recipe-form-section {
    background: #fff;
    border: 1px solid #cbd5e1;
    margin-top: 0.75rem;
    min-width: 0;
}

.recipe-form-section-header {
    align-items: center;
    background: #edf2f7;
    border-bottom: 1px solid #cbd5e1;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    min-width: 0;
    padding: 0.55rem 0.75rem;
}

.recipe-form-section-header h4 {
    font-size: 0.84rem;
}

.recipe-form-section-header small {
    color: #64748b;
    font-size: 0.72rem;
    white-space: nowrap;
}

.recipe-form-section .erp-form {
    padding: 0.7rem;
}

.recipe-line-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.recipe-form-footer {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    bottom: 0;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding: 0.7rem 0.75rem;
    position: sticky;
    z-index: 4;
}

.recipe-form-footer-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.4rem;
}

/* Reçete formu dar ekranlarda taşmadan kullanılabilsin. */
.recipe-form,
.recipe-form-section,
.recipe-form .erp-form,
.recipe-form .recipe-detail-panel,
.recipe-form .recipe-lines-section {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.recipe-form .dxbl-fl-item,
.recipe-form .dxbl-fl-ctrl,
.recipe-form .dxbl-fl-ctrl > *,
.recipe-form .field-with-guide {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.recipe-form .dxbl-fl-ctrl,
.recipe-form .dxbl-fl-ctrl > *,
.recipe-form .field-with-guide {
    width: 100%;
}

.recipe-form .field-with-guide {
    display: flex;
}

.recipe-form .field-with-guide > :first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.recipe-form .field-with-guide > .dxbl-btn {
    flex: 0 0 auto;
    width: auto;
}

.recipe-form .recipe-detail-panel,
.recipe-form .recipe-lines-section {
    overflow: hidden;
}

.recipe-form .production-line-grid {
    max-width: 100%;
    overflow-x: auto;
}

.erp-grid {
    min-height: 240px;
}

.stok-seri-hareket-grid .dxbl-grid-table th,
.stok-seri-hareket-grid .dxbl-grid-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
}

.grid-header-tools {
    align-items: center;
    display: flex;
    gap: 0.65rem;
}

.grid-header-tools .dxbl-btn {
    font-size: 1.2rem;
    line-height: 1;
    min-width: 2rem;
    padding: 0.2rem 0.45rem;
}

.grid-footer-total {
    color: #334155;
    font-weight: 700;
    white-space: nowrap;
}

.special-fields-layout {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.special-fields-group {
    border: 1px solid #d6dee8;
    min-width: 0;
}

.special-fields-group h3 {
    background: #edf2f7;
    border-bottom: 1px solid #d6dee8;
    color: #334155;
    font-size: 0.82rem;
    margin: 0;
    padding: 0.55rem 0.75rem;
}

.stock-other-sales-taxes {
    padding: 0.75rem;
}

.stock-other-sales-taxes .code-definition-header {
    align-items: flex-start;
    margin-bottom: 0.65rem;
}

.stock-other-sales-taxes .code-definition-header > div {
    display: grid;
    gap: 0.2rem;
}

.other-sales-tax-list {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.other-sales-tax-row {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: minmax(190px, 1.4fr) minmax(90px, 0.55fr) minmax(105px, 0.8fr) minmax(110px, 1fr);
    min-width: 0;
    padding: 0.4rem;
}

.other-sales-tax-name {
    align-items: center;
    display: flex;
    gap: 0.35rem;
    min-width: 0;
}

.other-sales-tax-name span,
.other-sales-tax-code-placeholder {
    color: #334155;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.other-sales-tax-code-placeholder {
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 900px) {
    .other-sales-tax-list {
        grid-template-columns: 1fr;
    }

    .other-sales-tax-row {
        grid-template-columns: minmax(150px, 1fr) minmax(80px, 0.5fr) minmax(100px, 0.8fr) minmax(100px, 1fr);
    }
}

.unit-groups {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.75rem;
}

.stock-image-editor {
    display: grid;
    gap: .35rem;
    max-width: 100%;
}

.stock-image-editor small {
    color: #64748b;
}

.stock-image-preview-wrap {
    display: grid;
    flex: 0 0 220px;
    gap: .5rem;
    width: 220px;
    padding: .65rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

.stock-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .25rem;
}

.stock-image-preview {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: contain;
    background: #fff;
}

.stock-image-meta {
    display: grid;
    gap: .4rem;
    overflow-wrap: anywhere;
    font-size: .8rem;
    color: #475569;
}

.tracking-tab {
    padding: .75rem;
}

.code-definition-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    padding: .65rem .75rem;
    margin-bottom: .5rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    font-size: .85rem;
}

.field-with-guide {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.field-with-guide > :first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.cari-selection-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.cari-selection-row .field-with-guide {
    flex: 0 1 43%;
    min-width: 190px;
}

.selected-cari-name {
    min-width: 0;
    overflow: hidden;
    color: var(--text, #1d2733);
    font-size: .84rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-line-entry .field-with-guide {
    min-width: 0;
    width: 100%;
}

.check-cari-name-field .dxbl-text-edit {
    background: var(--surface-subtle, #f5f7fa);
}

.check-cari-name-field .dxbl-text-edit-input {
    font-weight: 600;
}

.cari-selection-row {
    display: block;
}

.cari-selection-row .field-with-guide {
    width: 100%;
    min-width: 0;
}

.cari-selection-row > .selected-cari-name {
    display: none;
}

.invoice-line-entry .field-with-guide > .dxbl-btn {
    flex: 0 0 1.8rem;
    min-width: 1.8rem;
    padding-left: .25rem;
    padding-right: .25rem;
    width: 1.8rem;
}

/* DevExpress evaluation temasinda arama ikonu yuklenmezse rehber butonu yine gorunsun. */
.dx-icon-search {
    display: inline-block;
    position: relative;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
}

.dx-icon-search::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 2px;
    right: -5px;
    bottom: -2px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
}

.definition-section-title {
    margin: 1rem 0 .35rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid #cbd5e1;
    font-size: .9rem;
    color: #334155;
}

.tracking-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
    padding: .65rem .8rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

.tracking-summary span,
.tracking-note {
    color: #64748b;
}

.tracking-note {
    margin: .75rem 0;
    font-size: .85rem;
}

@media (max-width: 760px) {
    .special-fields-layout,
    .unit-groups,
    .invoice-upper-layout,
    .invoice-description-grid,
    .invoice-total-layout {
        grid-template-columns: 1fr;
    }

    .invoice-fixed-fields,
    .invoice-cari-fields {
        border-bottom: 1px solid #cbd5e1;
        border-right: 0;
    }

    .invoice-cari-fields {
        border-bottom: 0;
    }

    .stock-image-preview-wrap {
        flex-basis: min(220px, 100%);
        width: min(220px, 100%);
    }
}

/* DxGrid secili satiri, ERP listelerinde net bir aktif kayit gostergesi olarak kullanilir. */
.erp-grid .dxbl-grid-table tr[aria-selected="true"] td,
.erp-grid .dxbl-grid-table tr.dxbl-grid-selected-row td,
.erp-grid .dxbl-grid-table tr.dxbl-grid-focused-row td {
    background: #e8f1fb;
    font-weight: 400;
}

.erp-grid [role="row"][aria-selected="true"] > [role="gridcell"],
.erp-grid tr[aria-selected="true"] > td {
    background-color: #b9d8ef !important;
    font-weight: 400;
}

.erp-grid .erp-editing-row > td,
.erp-grid .erp-editing-row > [role="gridcell"] {
    background-color: #b9d8ef !important;
    font-weight: 700 !important;
}

/* Tum ERP gridlerinde fare uzerindeki satiri belirginlestirir. */
.erp-grid .dxbl-grid-table tbody tr:hover td {
    background: #f1f6fc;
}

.erp-grid .dxbl-grid-table tbody tr[aria-selected="true"]:hover td,
.erp-grid .dxbl-grid-table tbody tr.dxbl-grid-selected-row:hover td,
.erp-grid .dxbl-grid-table tbody tr.dxbl-grid-focused-row:hover td {
    background: #dceafa;
    font-weight: 400;
}

.erp-grid [role="row"][aria-selected="true"]:hover > [role="gridcell"],
.erp-grid tr[aria-selected="true"]:hover > td {
    background-color: #a6cbe8 !important;
}

.erp-grid .erp-editing-row:hover > td,
.erp-grid .erp-editing-row:hover > [role="gridcell"] {
    background-color: #a6cbe8 !important;
    font-weight: 700 !important;
}

.permission-grid {
    min-height: 320px;
}

.permission-role-selector {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.permission-role-selector > span {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.permission-role-selector .dxbl-combobox {
    min-width: 180px;
}

.grid-actions {
    display: flex;
    gap: 0.35rem;
}

.grid-row-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.field-hint {
    color: #64748b;
    display: block;
    font-size: 0.72rem;
    margin-top: 0.25rem;
}

/* Fatura formundaki uzun aciklamalar yer kaplamasin; bilgi simgesine gelince acilsin. */
.invoice-workspace .field-hint:not(.field-hint-persistent) {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #94a3b8;
    border-radius: 50%;
    color: transparent;
    cursor: help;
    display: inline-flex;
    font-size: 0;
    height: 1.15rem;
    justify-content: center;
    line-height: 1;
    margin: 0.2rem 0 0 0.25rem;
    max-width: 1.15rem;
    min-width: 1.15rem;
    overflow: hidden;
    padding: 0;
    position: relative;
    vertical-align: middle;
    width: 1.15rem;
    z-index: 3;
}

.invoice-workspace .field-hint:not(.field-hint-persistent)::before {
    color: #475569;
    content: "i";
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
}

.invoice-workspace .field-hint:not(.field-hint-persistent):hover {
    background: #ffffff;
    border-color: #64748b;
    border-radius: 4px;
    color: #334155;
    font-size: 0.72rem;
    height: auto;
    justify-content: flex-start;
    line-height: 1.35;
    max-width: min(360px, calc(100vw - 2rem));
    min-height: 1.15rem;
    min-width: 180px;
    overflow: visible;
    padding: 0.4rem 0.55rem;
    white-space: normal;
    width: min(360px, calc(100vw - 2rem));
}

.invoice-workspace .field-hint:not(.field-hint-persistent):hover::before {
    display: none;
}

.invoice-edocument-field {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    width: 100%;
}

.invoice-type-fields-heading {
    border-bottom: 1px solid #cbd5e1;
    background: #f5f7fa;
    color: #334155;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .35rem .5rem;
}

.invoice-edocument-toggle {
    align-items: center;
    display: flex;
    min-height: 1.75rem;
}

.invoice-edocument-hint {
    flex: 1 1 100%;
    line-height: 1.25;
    margin-top: 0.15rem;
}

.invoice-edocument-series {
    align-items: center;
    display: flex;
    flex: 1 1 100%;
    gap: 0.4rem;
    margin-top: 0.15rem;
    min-width: 0;
}

.invoice-edocument-series-select {
    flex: 1 1 auto;
    min-width: 0;
}

.invoice-edocument-series > :first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.invoice-edocument-series > :last-child {
    flex: 0 0 auto;
}

.delete-confirmation {
    color: #334155;
    padding: 0.4rem 0.2rem;
}

.delete-confirmation strong {
    color: #b42318;
    display: block;
    margin-bottom: 0.35rem;
}

.delete-confirmation p {
    margin-bottom: 0;
}

.workflow-list,
.feature-list {
    margin-bottom: 0;
    padding: 0.9rem 0.9rem 0.9rem 1.8rem;
}

.panel > h2 {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
    padding: 0.7rem 0.9rem;
}

.workflow-list {
    padding-left: 1.2rem;
}

.workflow-list li,
.feature-list li {
    margin-bottom: 0.65rem;
}

.workflow-list strong,
.workflow-list span {
    display: block;
}

.workflow-list span {
    color: #64748b;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.9rem;
}

.tag-list span {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    color: #1e40af;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.28rem 0.5rem;
}

.validation-message {
    color: #b42318;
}

.quick-actions {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem;
}

.quick-actions a {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    color: #1e40af;
    display: flex;
    font-weight: 650;
    min-height: 2.25rem;
    padding: 0.45rem 0.6rem;
    text-decoration: none;
}

.quick-actions a:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.alert-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0.9rem;
}

.alert-list li {
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.55rem 0;
}

.alert-list li:last-child {
    border-bottom: 0;
}

.alert-list strong {
    color: #b45309;
    display: inline-block;
    min-width: 1.2rem;
}

/* Ortak responsive ERP yerlesimi. */
.tab-page-content,
.panel,
.dx-panel-body,
.cari-alt-kartlar {
    min-width: 0;
}

.dxbl-tabs-tab-list {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    white-space: nowrap;
}

.dxbl-tabs-item {
    flex: 0 0 auto;
}

.erp-grid {
    max-width: 100%;
    overflow-x: auto;
}

/* Uzun kod, unvan ve aciklamalar grid hucrelerinde kesilmeden gorunsun. */
.erp-grid .dxbl-grid-table th,
.erp-grid .dxbl-grid-table td {
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
    vertical-align: middle;
}

.design-records-grid .dxbl-grid-table th,
.design-records-grid .dxbl-grid-table td,
.design-records-guide-grid .dxbl-grid-table th,
.design-records-guide-grid .dxbl-grid-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    word-break: normal;
    overflow-wrap: normal;
}

.design-records-grid .dxbl-grid-table td > *,
.design-records-guide-grid .dxbl-grid-table td > * {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
}

.erp-grid .dxbl-grid-table th {
    line-height: 1.2;
}

.erp-grid .dxbl-grid-table td {
    line-height: 1.3;
}

.mail-queue-grid .mail-queue-error-cell {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
}

.audit-log-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
}

.audit-log-filters .dxbl-combobox {
    min-width: 12rem;
}

.audit-log-grid {
    min-height: 360px;
}

.audit-detail-summary {
    background: #f8fafc;
    border: 1px solid #d6dee8;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0.75rem;
}

.audit-detail-summary div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.audit-detail-summary span,
.audit-detail-summary strong {
    overflow-wrap: anywhere;
}

.audit-detail-summary span {
    color: #64748b;
    font-size: 0.72rem;
}

.audit-detail-summary strong {
    color: #0f172a;
    font-size: 0.82rem;
}

.audit-detail-description {
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    margin: 0;
    padding: 0.75rem 0;
}

.audit-change-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.75rem;
}

.audit-change-grid section,
.audit-json-section {
    min-width: 0;
}

.audit-change-grid h3,
.audit-json-section h3 {
    color: #1e3a5f;
    font-size: 0.85rem;
    margin: 0 0 0.35rem;
}

.audit-json {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 3px;
    color: #dbeafe;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.74rem;
    line-height: 1.45;
    margin: 0;
    max-height: 320px;
    min-height: 5rem;
    overflow: auto;
    padding: 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.audit-json-section {
    margin-top: 0.85rem;
}

.cari-list-grid {
    overflow-x: hidden;
    width: 100%;
}

.cari-list-grid .dxbl-grid-table {
    min-width: 0 !important;
    table-layout: fixed;
    width: 100% !important;
}

.cari-list-grid .dxbl-grid-table th,
.cari-list-grid .dxbl-grid-table td {
    overflow-wrap: anywhere;
    white-space: normal;
}

@media (max-width: 980px) {
    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-status-layout {
        grid-template-columns: 1fr;
    }

    .module-grid-erp {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audit-log-filters .dxbl-combobox {
        flex: 1 1 11rem;
        min-width: 0;
    }

    .audit-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audit-change-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .invoice-description-grid {
        grid-template-columns: 1fr;
    }

    .invoice-line-entry .dxbl-fl-item,
    .invoice-line-summary .dxbl-fl-item {
        flex-basis: 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 640px) {
    html,
    body {
        font-size: 13px;
    }

    .tab-workspace {
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
    }

    .tab-page-content {
        border-radius: 0;
        padding: 0.45rem;
    }

    .open-tabs-row {
        gap: .2rem;
    }

    .open-tabs-launcher {
        padding: 0 .1rem;
    }

    .open-tabs-popup-trigger {
        font-size: .7rem;
        gap: .2rem;
        min-height: 2.2rem;
        padding-left: .3rem;
        padding-right: .3rem;
    }

    .open-tabs-popup-text small {
        display: none;
    }

    .open-tab-card-grid {
        gap: .5rem;
        grid-template-columns: 1fr;
        max-height: calc(100vh - 10rem);
    }

    .open-tab-card {
        min-height: 3.85rem;
        padding: .55rem;
    }

    .module-search {
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .dashboard-metrics,
    .module-grid-erp,
    .invoice-description-grid {
        grid-template-columns: 1fr;
    }

    .module-card-erp,
    .module-card-erp:nth-child(n) {
        border: 1px solid #d7dde6;
    }

    .invoice-line-entry .dxbl-fl-item,
    .invoice-line-summary .dxbl-fl-item {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }

    .invoice-line-description {
        grid-template-columns: 1fr;
    }

    .invoice-line-description-row {
        grid-template-columns: 1fr;
    }

    .panel-header {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .panel-header > * {
        max-width: 100%;
    }

    .permission-role-selector {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .permission-role-selector .dxbl-combobox {
        min-width: 0;
        width: 100%;
    }

    .form-actions,
    .header-actions,
    .grid-actions {
        flex-wrap: wrap;
    }

    .form-actions {
        justify-content: stretch;
    }

    .form-actions > * {
        flex: 1 1 8rem;
    }

    .erp-form {
        padding: 0.5rem;
    }

    .cari-alt-kartlar .panel-header .dxbl-combobox {
        min-width: 0;
        width: 100%;
    }
}

/* Ana sayfa ERP calisma alani */
.erp-home-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .85rem;
    min-height: calc(100vh - 10rem);
}

.erp-home-sidebar {
    background: #102a43;
    border: 1px solid #163b5c;
    color: #dbe8f2;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}

.erp-sidebar-brand {
    align-items: center;
    background: #0b2239;
    border-bottom: 1px solid #244d6c;
    display: flex;
    gap: .65rem;
    padding: .8rem .75rem;
}

.erp-sidebar-brand strong,
.erp-sidebar-brand span {
    display: block;
}

.erp-sidebar-brand strong {
    color: #fff;
    font-size: .88rem;
}

.erp-sidebar-brand span {
    color: #9eb5c9;
    font-size: .68rem;
    margin-top: .15rem;
}

.erp-sidebar-mark,
.erp-menu-title-mark {
    align-items: center;
    background: #f0a53a;
    color: #102a43;
    display: inline-flex;
    font-size: .74rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.erp-menu-title-logo {
    display: block;
    flex: 0 0 auto;
    height: 2.15rem;
    object-fit: contain;
    width: 2.85rem;
}

.erp-sidebar-heading {
    align-items: center;
    color: #8fa9bd;
    display: flex;
    font-size: .66rem;
    font-weight: 700;
    justify-content: space-between;
    letter-spacing: .06em;
    padding: .8rem .75rem .35rem;
}

.erp-sidebar-count {
    background: #1c4868;
    color: #d9e8f2;
    font-size: .64rem;
    padding: .14rem .38rem;
}

.erp-home-tree {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0 .35rem .55rem;
}

.erp-home-tree .dxbl-treeview-filter-panel {
    background: #163b5c;
    border: 1px solid #2b5a78;
    margin: .35rem .25rem .55rem;
}

.erp-home-tree .dxbl-treeview-filter-panel input {
    background: transparent;
    color: #f2f7fa;
}

.erp-home-tree .dxbl-treeview-filter-panel input::placeholder {
    color: #a9bdcd;
}

.erp-home-tree .dxbl-treeview-item {
    color: #d7e6ef;
    min-height: 2rem;
}

.erp-home-tree .dxbl-treeview-item:hover,
.erp-home-tree .dxbl-treeview-item.dxbl-treeview-item-selected {
    background: #1c4868;
    color: #fff;
}

.erp-home-tree .dxbl-treeview-item-content {
    font-size: .75rem;
}

.erp-sidebar-footer {
    align-items: center;
    background: #0b2239;
    border-top: 1px solid #244d6c;
    color: #9eb5c9;
    display: flex;
    font-size: .68rem;
    gap: .45rem;
    padding: .65rem .75rem;
}

.erp-status-dot {
    background: #43b581;
    border-radius: 50%;
    height: .45rem;
    width: .45rem;
}

.erp-home-content {
    min-width: 0;
}

.erp-dashboard-menu {
    background: #fff;
    border: 1px solid #d8e1e8;
    margin-bottom: .55rem;
}

.erp-top-menu {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 2.7rem;
    min-width: 0;
}

.erp-menu-title {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    gap: .45rem;
    min-width: 11rem;
    padding: .25rem .45rem;
}

.erp-menu-title > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.erp-menu-title strong {
    color: #17324d;
    font-size: .78rem;
}

.erp-menu-title small {
    color: #72879a;
    font-size: .62rem;
    margin-top: .2rem;
}

.erp-menu-title-context {
    color: #326b83 !important;
    font-size: .58rem !important;
    font-weight: 700;
    margin-top: .16rem !important;
}

.erp-menu-status {
    align-items: center;
    color: #526b80;
    display: inline-flex;
    font-size: 1rem;
    position: relative;
}

.erp-menu-badge {
    align-items: center;
    background: #d76b4d;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: .57rem;
    height: 1rem;
    justify-content: center;
    position: absolute;
    right: -.55rem;
    top: -.5rem;
    width: 1rem;
}

.erp-menu-user {
    align-items: center;
    display: inline-flex;
    gap: .35rem;
    white-space: nowrap;
}

.erp-user-avatar {
    align-items: center;
    background: #dcecf1;
    color: #1a5869;
    display: inline-flex;
    font-size: .62rem;
    font-weight: 700;
    height: 1.55rem;
    justify-content: center;
    width: 1.55rem;
}

.erp-dashboard-contextbar {
    align-items: center;
    background: #f7f9fb;
    border: 1px solid #d8e1e8;
    display: flex;
    justify-content: space-between;
    margin-bottom: .7rem;
    min-height: 2.45rem;
    padding: .25rem .55rem;
}

.erp-breadcrumb {
    align-items: center;
    color: #647c90;
    display: flex;
    font-size: .72rem;
    gap: .4rem;
}

.erp-breadcrumb strong {
    color: #b6c3cc;
    font-weight: 400;
}

.erp-context-actions {
    display: flex;
    gap: .4rem;
}

.dashboard-analytics-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    margin-top: .75rem;
}

.dashboard-chart-panel {
    min-width: 0;
}

.dashboard-chart-wrap {
    min-width: 0;
    padding: .3rem .55rem .45rem;
}

.dashboard-pie-wrap {
    padding-left: .25rem;
}

.dashboard-income-panel {
    overflow: hidden;
}

.dashboard-income-grid {
    min-width: 0;
}

.dashboard-income-totals {
    border-top: 1px solid #e2e8f0;
    display: grid;
    gap: .6rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: .7rem .8rem;
}

.dashboard-income-totals > div {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    display: grid;
    gap: .2rem;
    padding: .55rem .65rem;
}

.dashboard-income-totals span {
    color: #718096;
    font-size: .68rem;
}

.dashboard-income-totals strong {
    color: #18324b;
    font-size: .82rem;
}

.dashboard-income-totals .income-positive {
    color: #28734f;
}

.dashboard-income-totals .income-negative {
    color: #b3453f;
}

.dashboard-due-panel {
    overflow: hidden;
}

.dashboard-due-grid {
    min-width: 0;
}

.dashboard-due-empty {
    align-items: center;
    color: #718096;
    display: flex;
    gap: .5rem;
    padding: 1rem;
}

.dashboard-log-panel {
    overflow: hidden;
}

.dashboard-log-list {
    display: grid;
}

.dashboard-log-row {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: grid;
    gap: .75rem;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    padding: .7rem .8rem;
}

.dashboard-log-row:last-child {
    border-bottom: 0;
}

.dashboard-log-icon {
    align-items: center;
    background: #edf3f7;
    border: 1px solid #d2dee8;
    color: #315b78;
    display: inline-flex;
    font-size: .62rem;
    font-weight: 800;
    height: 1.75rem;
    justify-content: center;
    width: 1.75rem;
}

.dashboard-log-main {
    display: grid;
    gap: .2rem;
    min-width: 0;
}

.dashboard-log-main strong {
    color: #18324b;
    font-size: .78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-log-main span,
.dashboard-log-meta {
    color: #718096;
    font-size: .7rem;
}

.dashboard-log-meta {
    display: grid;
    gap: .15rem;
    justify-items: end;
    text-align: right;
}

.dashboard-log-meta time {
    color: #8a99a6;
    font-size: .66rem;
}

.dashboard-log-empty {
    align-items: center;
    color: #718096;
    display: flex;
    gap: .5rem;
    padding: 1rem;
}

@media (max-width: 640px) {
    .dashboard-income-totals {
        grid-template-columns: 1fr;
    }

    .dashboard-log-row {
        align-items: start;
        grid-template-columns: 2rem minmax(0, 1fr);
    }

    .dashboard-log-meta {
        grid-column: 2;
        justify-items: start;
        text-align: left;
    }
}

.dashboard-modules-heading {
    margin-top: .95rem;
}

.notification-list {
    list-style: none;
    margin: 0;
    padding: .25rem .7rem .45rem;
}

.notification-list li {
    align-items: center;
    border-bottom: 1px solid #e4ebf0;
    display: grid;
    gap: .45rem;
    grid-template-columns: 1.6rem minmax(0, 1fr) auto;
    padding: .55rem 0;
}

.notification-list li:last-child {
    border-bottom: 0;
}

.notification-list strong,
.notification-list small {
    display: block;
}

.notification-list strong {
    color: #24445e;
    font-size: .72rem;
}

.notification-list small,
.notification-list time {
    color: #8193a1;
    font-size: .63rem;
}

.notification-list time {
    align-self: start;
    padding-top: .15rem;
}

.notification-icon {
    align-items: center;
    display: inline-flex;
    font-size: .8rem;
    height: 1.55rem;
    justify-content: center;
    width: 1.55rem;
}

.notification-icon-blue { background: #e2eef8; color: #3e78a8; }
.notification-icon-green { background: #e4f2e9; color: #3b8b5c; }
.notification-icon-amber { background: #fff0d8; color: #a66f18; }
.notification-icon-slate { background: #e8edf1; color: #5a7184; }

.erp-ai-assistant {
    overflow: hidden;
}

.ai-approval-badge {
    background: #e8f1f5;
    color: #2d7184;
    font-size: .62rem;
    font-weight: 700;
    padding: .25rem .4rem;
}

.erp-ai-chat-body {
    min-height: 5.7rem;
    padding: .55rem .7rem .25rem;
}

.erp-ai-message {
    align-items: flex-start;
    display: flex;
    gap: .45rem;
}

.ai-message-avatar {
    align-items: center;
    background: #173d5c;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .6rem;
    font-weight: 700;
    height: 1.55rem;
    justify-content: center;
    width: 1.55rem;
}

.erp-ai-message p {
    color: #526b80;
    font-size: .7rem;
    line-height: 1.35;
    margin: .05rem 0 0;
}

.erp-ai-approval-card {
    background: #fff8e9;
    border: 1px solid #e7c77e;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin-top: .55rem;
    padding: .5rem;
}

.erp-ai-approval-card strong { color: #7e5b19; font-size: .7rem; }
.erp-ai-approval-card > span { color: #856f43; font-size: .66rem; }
.erp-ai-approval-actions { display: flex; gap: .35rem; margin-top: .2rem; }

.erp-ai-response {
    align-items: center;
    color: #3f7180;
    display: flex;
    font-size: .67rem;
    gap: .35rem;
    margin-top: .5rem;
}

.erp-ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .15rem .7rem .5rem;
}

.erp-ai-input {
    align-items: center;
    border-top: 1px solid #e2e9ee;
    display: grid;
    gap: .35rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .55rem .7rem .4rem;
}

.erp-ai-disclaimer {
    color: #8797a3;
    display: block;
    font-size: .6rem;
    padding: 0 .7rem .65rem;
}

@media (max-width: 1180px) {
    .erp-home-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .erp-menu-title {
        min-width: 9rem;
    }
}

@media (max-width: 880px) {
    .erp-home-shell {
        grid-template-columns: 1fr;
    }

    .erp-home-sidebar {
        min-height: auto;
    }

    .erp-home-tree {
        max-height: 15rem;
    }

    .erp-dashboard-contextbar {
        align-items: flex-start;
        flex-direction: column;
        gap: .45rem;
    }
}

@media (max-width: 640px) {
    .dashboard-analytics-grid {
        grid-template-columns: 1fr;
    }

    .erp-ai-input {
        grid-template-columns: 1fr;
    }

    .erp-context-actions {
        width: 100%;
    }

    .erp-context-actions .dxbl-btn {
        flex: 1;
    }
}

.cached-tab-host,
.cached-tab-page {
    min-height: 0;
}

.cached-tab-page-hidden {
    display: none;
}

.cached-tab-page-active {
    display: block;
}

/* DevExpress ReportViewer yuzde yuz yukseklik bekler; kapsayici olcusu
   belirtilmezse rapor yuklenirken tarayici olcumu kararsiz kalabilir. */
.report-viewer-panel {
    min-height: 0;
}

.report-viewer-host {
    height: calc(100vh - 230px);
    min-height: 520px;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.report-viewer-host > * {
    height: 100%;
    min-height: 0;
    width: 100%;
}

.stock-movement-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #d7dde6;
    background: #f7f9fb;
}

.movement-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #d7dde6;
    background: #fff;
}

.movement-summary-item span {
    color: #526071;
    font-size: 12px;
}

.movement-summary-item strong {
    color: #1f2937;
    font-size: 14px;
}

.movement-in strong {
    color: #19734a;
}

.movement-out strong {
    color: #b33a3a;
}

.movement-balance strong {
    color: #245a9b;
}

.movement-badge {
    display: inline-block;
    min-width: 48px;
    padding: 2px 6px;
    border-radius: 3px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
}

.movement-badge-in {
    color: #176b45;
    background: #e6f4ed;
}

.movement-badge-out {
    color: #a52d2d;
    background: #fde9e9;
}

.production-voucher-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.production-voucher-editor {
    order: -1;
}

.production-voucher-recipe-field {
    width: 100%;
}

.production-voucher-recipe-field > :first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.production-voucher-recipe-field > .dxbl-btn {
    flex: 0 0 2.1rem;
    min-width: 2.1rem;
}

.production-output-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 2.1rem;
    padding: 7px 10px;
    border: 1px solid #d8e2ec;
    border-left: 3px solid #2f8f9d;
    border-radius: 4px;
    background: #f7fafc;
    line-height: 1.25;
}

.production-output-summary strong {
    color: #17212b;
    font-size: 13px;
}

.production-output-variant,
.production-output-depot {
    color: #667085;
    font-size: 11px;
}

.production-output-variant {
    color: #2f6f78;
    font-weight: 600;
}

.production-voucher-toolbar {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    margin: 14px 0 12px;
}

.production-cost-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    gap: 10px;
    margin-left: auto;
}

.production-cost-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 170px;
    padding: 10px 14px;
    border: 1px solid #d8e2ec;
    border-top: 3px solid #2f8f9d;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(36, 54, 70, 0.08);
}

.production-cost-card-unit {
    border-top-color: #b66a3c;
}

.production-cost-label {
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.production-cost-card strong {
    color: #17212b;
    font-size: 19px;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .production-voucher-page {
        gap: 8px;
    }

    .production-voucher-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .production-cost-summary {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .production-cost-summary {
        grid-template-columns: 1fr;
    }
}

.movement-source-lock {
    color: #667085;
    font-size: 11px;
    white-space: nowrap;
}

.stock-movement-entry {
    border-bottom: 1px solid #d7dde6;
    background: #f7f9fb;
    min-width: 0;
    overflow: hidden;
}

.stock-movement-entry .invoice-section-title {
    margin: 0;
}

.stock-movement-entry .erp-form {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

.stock-movement-entry .dxbl-fl-item,
.stock-movement-entry .dxbl-fl-ctrl,
.stock-movement-entry .dxbl-fl-ctrl > *,
.stock-movement-entry .field-with-guide {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.stock-movement-entry .dxbl-fl-ctrl,
.stock-movement-entry .dxbl-fl-ctrl > *,
.stock-movement-entry .field-with-guide {
    width: 100%;
}

.stock-movement-entry .field-with-guide {
    display: flex;
}

.stock-movement-entry .field-with-guide > :first-child {
    min-width: 0;
}

.stock-movement-entry .erp-form-actions {
    box-sizing: border-box;
    padding: 0.65rem 0.85rem 0.85rem;
}

.stock-movement-filter {
    display: flex;
    align-items: end;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #d7dde6;
    background: #fff;
}

.stock-movement-filter-field {
    width: 260px;
}

.stock-movement-filter-name {
    flex: 1;
    min-width: 180px;
}

.stock-movement-filter-actions {
    flex: 0 0 auto;
}

.stock-serial-filter {
    flex-wrap: wrap;
}

.stock-serial-filter .stock-movement-filter-field,
.stock-serial-filter .stock-movement-filter-name {
    flex: 1 1 190px;
    min-width: 170px;
    width: auto;
}

.stock-serial-filter .stock-serial-date-filter {
    flex: 0 1 165px;
    min-width: 150px;
}

.stock-serial-filter .stock-movement-filter-actions {
    margin-left: auto;
}

.stock-movement-filter-option {
    display: flex;
    align-items: center;
    min-height: 32px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.currency-breakdown-toggle {
    gap: 6px;
}

.currency-breakdown-toggle-label {
    color: #26384d;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.currency-breakdown-summary {
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 5px;
    padding: 5px 8px;
}

.currency-summary-card {
    display: block;
    padding: 0;
    overflow: hidden;
    border-top: 2px solid #5279a8;
}

.currency-summary-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 8px;
    background: #eef4fb;
    border-bottom: 1px solid #d7dde6;
}

.currency-summary-card-header strong {
    color: #1f4f82;
    font-size: 13px;
    letter-spacing: 0;
}

.currency-summary-card-header span {
    color: #526071;
    font-size: 10px;
}

.currency-summary-lines {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.currency-summary-secondary-title {
    padding: 4px 8px 0;
    border-top: 1px solid #d7dde6;
    color: #526071;
    font-size: 10px;
    font-weight: 700;
}

.currency-summary-foreign-lines {
    background: #fbfcfe;
}

.currency-summary-line {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    padding: 5px 7px;
    border-right: 1px solid #e3e8ef;
}

.currency-summary-line:last-child {
    border-right: 0;
}

.currency-summary-line span {
    color: #687589;
    font-size: 10px;
}

.currency-summary-line strong {
    overflow: hidden;
    color: #1f2937;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.currency-summary-in {
    color: #19734a !important;
}

.currency-summary-out {
    color: #b33a3a !important;
}

.currency-summary-positive {
    color: #245a9b !important;
}

.currency-summary-negative {
    color: #a13737 !important;
}

.cari-hareket-grid .cari-running-balance {
    display: inline-block;
    font-weight: 700;
    white-space: nowrap;
}

.cari-hareket-grid .cari-balance-debit {
    color: #b42318;
}

.cari-hareket-grid .cari-balance-credit {
    color: #18794e;
}

.cari-hareket-grid .cari-balance-zero {
    color: #526071;
}

/* Cari hareketlerinde kolon basliklari ve degerler tek satirda kalsin. */
.cari-hareket-grid {
    overflow-x: auto;
    font-size: 12px;
}

.cari-hareket-grid .dxbl-grid-table {
    min-width: max-content;
}

.cari-hareket-grid .dxbl-grid-table th,
.cari-hareket-grid .dxbl-grid-table td {
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: normal;
}

.stock-movement-filter label {
    display: block;
    margin-bottom: 4px;
    color: #526071;
    font-size: 12px;
}

.invoice-draft-notice {
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.65rem;
    border: 1px solid #f0c36d;
    background: #fff8e6;
    color: #7a4b00;
    font-size: 0.85rem;
}

/* Coklu kalem penceresi viewport icinde kalir; satir ve kolon tasmasi popup icinde kayar. */
.multi-line-entry-dialog {
    box-sizing: border-box;
    height: calc(100vh - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 24px) !important;
    min-width: 0 !important;
    width: calc(100vw - 24px) !important;
}

.multi-line-entry-dialog-body {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0;
    overflow: hidden !important;
}

.multi-line-entry-dialog-footer {
    flex: 0 0 auto;
}

.multi-line-entry-popup,
.multi-line-entry-grid {
    max-width: 100%;
    min-width: 0;
}

.multi-line-entry-popup {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.multi-line-entry-popup .invoice-draft-notice {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
}

.multi-line-entry-popup .invoice-draft-notice span {
    min-width: 0;
}

.multi-line-entry-grid {
    flex: 1 1 auto;
    height: 100%;
    max-height: none;
    overflow: auto;
}

.multi-line-entry-grid .dxbl-grid-table {
    table-layout: fixed;
    min-width: 0 !important;
    width: 100% !important;
}

.multi-line-entry-grid-control,
.multi-line-entry-grid-control .dxbl-grid-content,
.multi-line-entry-grid-control .dxbl-grid-table {
    box-sizing: border-box;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
}

.multi-line-entry-grid-control .dxbl-grid-content {
    height: 100% !important;
    max-height: none !important;
    overflow: auto !important;
}

.multi-line-entry-grid .dxbl-grid-table th,
.multi-line-entry-grid .dxbl-grid-table td {
    min-width: 0 !important;
    overflow-wrap: anywhere;
    white-space: normal;
}

.multi-line-entry-grid .dxbl-spin-edit {
    min-width: 0;
    width: 100%;
}

@media (max-width: 760px) {
    .multi-line-entry-dialog {
        height: calc(100vh - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100vh - 16px) !important;
        width: calc(100vw - 16px) !important;
    }

    .multi-line-entry-popup .invoice-draft-notice {
        font-size: 0.78rem;
    }

    .multi-line-entry-grid {
        font-size: 0.76rem;
    }

    .multi-line-entry-grid .dxbl-grid-table th,
    .multi-line-entry-grid .dxbl-grid-table td {
        padding-left: .2rem !important;
        padding-right: .2rem !important;
    }

    .multi-line-entry-grid .dxbl-spin-edit {
        font-size: .7rem;
    }
}

@media (max-width: 520px) {
    .multi-line-entry-popup .invoice-draft-notice {
        font-size: .7rem;
        padding: .45rem .5rem;
    }

    .multi-line-entry-grid {
        font-size: .68rem;
    }

    .multi-line-entry-grid .dxbl-grid-table th,
    .multi-line-entry-grid .dxbl-grid-table td {
        line-height: 1.15;
        padding-bottom: .15rem !important;
        padding-top: .15rem !important;
    }
}

.required-field-empty {
    border: 1px solid #d9534f;
    background: #fff7f7;
}

.invoice-line-status {
    max-width: 34rem;
    color: #526071;
    font-size: 0.8rem;
    line-height: 1.25;
}

.variant-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.variant-group-card {
    min-width: 0;
}

.variant-value-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.4rem;
}

.variant-value-label {
    align-items: baseline;
    display: flex;
    gap: 0.45rem;
    min-width: 0;
}

.variant-value-label strong {
    color: #1e3a5f;
    white-space: nowrap;
}

.variant-value-label span {
    color: #526071;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.variant-matrix-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1rem 0 0.5rem;
}

.variant-matrix-header small {
    display: block;
    margin-top: 0.2rem;
    color: #687587;
}

.variant-definition-list {
    display: grid;
    gap: 0.75rem;
    padding: 0.8rem;
}

.variant-definition-card {
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 0.75rem;
}

.variant-definition-heading,
.variant-definition-values-header,
.panel-actions,
.form-footer {
    align-items: center;
    display: flex;
    gap: 0.6rem;
}

.variant-definition-heading {
    border-bottom: 1px solid #e2e8f0;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    padding-bottom: 0.55rem;
}

.variant-definition-heading > div {
    display: grid;
    gap: 0.15rem;
}

.variant-definition-heading small,
.muted-text {
    color: #687587;
    font-size: 0.75rem;
}

.variant-definition-values {
    border-top: 1px solid #e2e8f0;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}

.variant-definition-values-header {
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.variant-definition-value-row {
    align-items: center;
    display: grid;
    gap: 0.4rem;
    grid-template-columns: 5rem minmax(0, 0.7fr) minmax(0, 1.3fr) auto auto;
    margin-bottom: 0.4rem;
}

.variant-order-input {
    min-width: 0;
}

.form-footer {
    border-top: 1px solid #cbd5e1;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding: 0.75rem 0.8rem;
}

.form-status {
    color: #526071;
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .variant-editor-grid {
        grid-template-columns: 1fr;
    }

    .variant-matrix-header {
        align-items: stretch;
        flex-direction: column;
    }

    .variant-definition-heading,
    .form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .variant-definition-value-row {
        grid-template-columns: 1fr;
    }

    .stock-movement-summary {
        grid-template-columns: 1fr;
    }

    .stock-movement-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .stock-movement-filter-field,
    .stock-movement-filter-name,
    .stock-movement-filter-option,
    .stock-movement-filter-actions {
        width: 100%;
    }

    .stock-serial-filter .stock-serial-date-filter,
    .stock-serial-filter .stock-movement-filter-actions {
        width: 100%;
    }

    .currency-breakdown-summary {
        grid-template-columns: 1fr;
    }

    .currency-summary-lines {
        grid-template-columns: 1fr;
    }

    .currency-summary-line,
    .currency-summary-line:last-child {
        border-right: 0;
        border-bottom: 1px solid #e3e8ef;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .currency-summary-line:last-child {
        border-bottom: 0;
    }

    .stock-movement-entry .erp-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .stock-movement-entry .erp-form-actions > * {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (min-width: 641px) and (max-width: 980px) {
    .stock-movement-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 641px) and (max-width: 980px) {
    .stock-movement-entry .dxbl-fl-item {
        flex-basis: 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 640px) {
    .stock-movement-entry .dxbl-fl-item {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 980px) {
    .metric-grid,
    .module-grid,
    .workflow-grid,
    .split-layout,
    .dashboard-layout,
    .dashboard-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .header-actions {
        flex-direction: column;
    }

    .module-card-erp {
        border: 1px solid #d7dde6 !important;
    }
}
.definition-link {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-align: left;
}

.definition-link:hover,
.definition-link:focus-visible {
    text-decoration: underline;
}

.definition-link:focus-visible {
    outline: 1px dotted currentColor;
    outline-offset: 2px;
}

/* Ana sayfa: ERP calisma merkezi */
.dashboard-hero {
    align-items: stretch;
    background: #102a43;
    border: 1px solid #163b5c;
    border-left: 4px solid #3ca6a6;
    color: #fff;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .9fr) auto;
    margin-bottom: 1.1rem;
    padding: 1.15rem 1.25rem;
}

.dashboard-hero-copy {
    align-self: center;
}

.dashboard-eyebrow,
.dashboard-section-kicker,
.dashboard-panel-kicker {
    color: #78d1cb;
    display: block;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: .35rem;
}

.dashboard-hero h1 {
    color: #fff;
    font-size: 1.65rem;
    margin-bottom: .3rem;
}

.dashboard-hero p {
    color: #c3d4e2;
    font-size: .88rem;
    margin-bottom: 0;
}

.dashboard-hero-context {
    align-items: stretch;
    display: flex;
    gap: .6rem;
}

.dashboard-hero-context > div {
    background: #163b5c;
    border: 1px solid #285475;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: .65rem .75rem;
}

.dashboard-hero-context span,
.dashboard-hero-context small {
    color: #a9c1d2;
    font-size: .72rem;
}

.dashboard-hero-context strong {
    color: #fff;
    font-size: .84rem;
    margin: .18rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-hero-actions {
    align-items: center;
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
}

.dashboard-hero-actions .dxbl-btn {
    min-width: 8.2rem;
}

.dashboard-section-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin: 0 0 .55rem;
}

.dashboard-section-heading h2 {
    color: #18324b;
    font-size: 1.05rem;
    margin: 0;
}

.dashboard-section-note {
    color: #718096;
    font-size: .76rem;
}

.dashboard-section-actions {
    align-items: center;
    display: flex;
    gap: .6rem;
}

.dashboard-module-heading {
    margin-top: 1.15rem;
}

.dashboard-metrics {
    gap: .65rem;
    margin-bottom: 0;
}

.dashboard-metrics .metric-card {
    border-top: 3px solid #7c93a8;
    min-height: 112px;
    padding: .75rem .8rem;
}

.dashboard-metrics .metric-card-receivable { border-top-color: #2f8f9d; }
.dashboard-metrics .metric-card-payable { border-top-color: #b66a3c; }
.dashboard-metrics .metric-card-cash { border-top-color: #3f8c68; }
.dashboard-metrics .metric-card-bank { border-top-color: #5578a6; }
.dashboard-metrics .metric-card-stock { border-top-color: #8b6bb1; }
.dashboard-metrics .metric-card-due { border-top-color: #bd8b33; }

.metric-card-top {
    align-items: center;
    display: flex;
    gap: .45rem;
}

.metric-card-symbol,
.module-card-symbol {
    align-items: center;
    background: #edf3f7;
    border: 1px solid #d2dee8;
    color: #315b78;
    display: inline-flex;
    font-size: .66rem;
    font-weight: 800;
    height: 1.65rem;
    justify-content: center;
    letter-spacing: .02em;
    width: 1.85rem;
}

.metric-card-top > span:last-child {
    color: #536b7e;
    font-size: .75rem;
    font-weight: 700;
}

.dashboard-module-panel {
    min-width: 0;
    overflow: hidden;
}

.module-grid-erp {
    background: #eef3f7;
    gap: .5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: .65rem;
}

.module-card-erp,
.module-card-erp:nth-child(3n + 1),
.module-card-erp:nth-child(3n + 2),
.module-card-erp:nth-child(n + 4) {
    border: 1px solid #d1dce6;
    min-height: 112px;
}

.module-card-erp {
    background: #fff;
    gap: .32rem;
    padding: .7rem .75rem;
    position: relative;
}

.module-card-top {
    align-items: center;
    display: flex;
    gap: .45rem;
    min-width: 0;
}

.module-card-group {
    color: #72879a;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.module-card-erp strong {
    color: #17324b;
    font-size: .9rem;
    padding-right: 1.2rem;
}

.module-card-erp small {
    color: #65798a;
    font-size: .73rem;
    line-height: 1.35;
}

.module-card-open {
    bottom: .65rem;
    color: #6e879b;
    font-size: 1rem;
    font-weight: 700;
    position: absolute;
    right: .75rem;
}

.module-group-operations .module-card-symbol { color: #236d79; background: #e6f4f3; border-color: #b9ddda; }
.module-group-finance .module-card-symbol { color: #8a5d1c; background: #fff4df; border-color: #ead3a3; }
.module-group-management .module-card-symbol { color: #5d5a93; background: #efedfb; border-color: #d2cff0; }

.module-group-operations:hover { border-color: #51a6ab; }
.module-group-finance:hover { border-color: #c28c3a; }
.module-group-management:hover { border-color: #7f78b6; }

.dashboard-panel-kicker {
    color: #718096;
    letter-spacing: .08em;
    margin-bottom: .1rem;
}

.panel-header h2 {
    margin-bottom: 0;
}

.panel-header-status {
    background: #e6f4f3;
    color: #236d79;
    font-size: .68rem;
    font-weight: 800;
    padding: .25rem .4rem;
}

.panel-header-status-warning {
    background: #fff4df;
    color: #8a5d1c;
}

.quick-actions {
    gap: .35rem;
    padding: .65rem;
}

.quick-action-button {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
}

.quick-action-button .dxbl-btn-text {
    font-weight: 600;
}

.alert-list {
    padding: .35rem .7rem;
}

.alert-list li {
    align-items: center;
    display: flex;
    gap: .55rem;
    font-size: .78rem;
    min-height: 2.35rem;
    padding: .4rem 0;
}

.alert-list li strong {
    align-items: center;
    background: #f3f6f8;
    border: 1px solid #dce5eb;
    display: inline-flex;
    height: 1.5rem;
    justify-content: center;
    min-width: 1.5rem;
}

.alert-item-warning strong { color: #a66f18; }
.alert-item-info strong { color: #3e6e9a; }
.alert-item-danger strong { color: #ae4d42; }

.erp-ai-launcher {
    align-items: center;
    background: #fff7ed !important;
    border: 1px solid #f0b36c !important;
    border-radius: 50%;
    bottom: 1.25rem;
    box-shadow: 0 10px 26px rgba(27, 61, 79, .24);
    color: #b45309 !important;
    display: inline-flex;
    height: 3.5rem;
    justify-content: center;
    min-height: 3.5rem;
    min-width: 3.5rem;
    padding: 0;
    position: fixed;
    right: 1.25rem;
    width: 3.5rem;
    z-index: 1200;
}

.erp-ai-launcher:hover,
.erp-ai-launcher:focus-visible {
    background: #ffedd5 !important;
    border-color: #e89a3c !important;
}

.erp-ai-launcher .dxbl-btn-icon {
    background: url('/ai-assistant-logo.png') center / contain no-repeat;
    display: block;
    font-size: 0;
    height: 2.1rem;
    margin: 0;
    width: 2.1rem;
}

.erp-ai-launcher .dxbl-btn-icon::before {
    content: none;
}

.erp-ai-popup .dxbl-popup-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    padding: 0;
}

.erp-ai-popup .dxbl-modal-content,
.erp-ai-popup .dxbl-modal-body {
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.erp-ai-popup .dxbl-modal-content {
    height: 100%;
}

.erp-ai-popup .dxbl-modal-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: auto;
}

.erp-ai-popup-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
}

.erp-ai-popup-chat-host {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.erp-ai-popup-chat {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    width: 100%;
}

.erp-ai-popup-chat,
.erp-ai-popup-chat > *,
.erp-ai-popup-chat .dxbl-loading-panel,
.erp-ai-popup-chat .dxbl-loading-panel-target-content,
.erp-ai-popup-chat .dxbl-chatui,
.erp-ai-popup-chat [class*="message-area"],
.erp-ai-popup-chat [class*="message-list"] {
    flex: 1 1 auto;
    min-height: 0;
}

.erp-ai-popup-chat .dxbl-loading-panel,
.erp-ai-popup-chat .dxbl-loading-panel-target-content,
.erp-ai-popup-chat .dxbl-chatui {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.erp-ai-popup-chat .dxbl-chatui-scrollviewer {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.erp-ai-popup-chat .dxbl-scroll-viewer-content {
    min-height: 0;
    overflow-y: auto;
}

.erp-ai-popup-chat .dxbl-chatui-messages {
    min-height: 100%;
}

.erp-ai-popup-chat .dxbl-chatui-submitarea,
.erp-ai-popup-chat .dxbl-chatui-submitarea-container {
    flex: 0 0 auto;
}

.erp-ai-popup-chat [class*="message-area"],
.erp-ai-popup-chat [class*="message-list"] {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.erp-ai-popup-approval {
    background: #fff8e8;
    border-top: 1px solid #efd9a6;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .7rem .8rem;
}

.erp-ai-popup-approval span {
    color: #586b78;
    font-size: .78rem;
}

.erp-ai-popup-response {
    border-top: 1px solid #dfe7ec;
    margin: 0;
}

/* Kasa modulu: yogun finans ekranini dar goruntulerde de taranabilir tutar. */
.cash-panel {
    min-width: 0;
}

.cash-panel .panel-header > div:first-child {
    min-width: 0;
}

.panel-context {
    color: #64748b;
    font-size: .74rem;
}

.cash-filter-bar {
    align-items: end;
    background: #f8fafc;
    border-bottom: 1px solid #d8e0e8;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding: .65rem .75rem;
}

.cash-filter-field {
    flex: 1 1 10rem;
    min-width: 9rem;
}

.cash-filter-field.cash-filter-wide {
    flex-basis: 13rem;
}

.cash-filter-field label {
    color: #475569;
    display: block;
    font-size: .73rem;
    font-weight: 700;
    margin-bottom: .2rem;
}

.cash-filter-field .dxbl-combobox,
.cash-filter-field .dxbl-date-edit,
.cash-filter-field .dxbl-btn {
    max-width: 100%;
    width: 100%;
}

.cash-summary-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: .75rem;
}

.cash-summary-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-top: 3px solid #64748b;
    min-width: 0;
    padding: .7rem .8rem;
}

.cash-summary-card span,
.cash-summary-card small {
    color: #64748b;
    display: block;
    font-size: .74rem;
}

.cash-summary-card strong {
    color: #10243e;
    display: block;
    font-size: 1.15rem;
    margin: .22rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cash-summary-in { border-top-color: #238b6b; }
.cash-summary-out { border-top-color: #bd5b4d; }
.cash-summary-balance { border-top-color: #3b6fa8; }

.giden-ebelge-filter-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e1e7ec;
    padding-bottom: 1rem;
}

.giden-ebelge-filter-group {
    display: grid;
    gap: .4rem;
}

.giden-ebelge-filter-group > span {
    color: #687785;
    font-size: .76rem;
    font-weight: 700;
}

.giden-ebelge-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.giden-ebelge-filter-pill {
    min-height: 2rem;
    border: 1px solid #d4dde5;
    border-radius: 999px;
    padding: .35rem .72rem;
    color: #52606d;
    background: #ffffff;
    font: inherit;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
}

.giden-ebelge-filter-pill:hover {
    border-color: #c64a3b;
    color: #c64a3b;
}

.giden-ebelge-filter-pill.active {
    border-color: #c64a3b;
    color: #ffffff;
    background: #c64a3b;
}

.giden-ebelge-search-bar {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(12rem, .4fr) auto;
    align-items: end;
    gap: .75rem;
    margin-bottom: 1rem;
}

.giden-ebelge-search-field,
.giden-ebelge-sort-field {
    min-width: 0;
}

.giden-ebelge-sort-field label span {
    color: #c64a3b;
    font-size: 1rem;
    line-height: 0;
}

.giden-ebelge-summary {
    display: grid;
    gap: .65rem;
    margin-top: 1rem;
    border-top: 1px solid #dbe2e8;
    padding-top: .9rem;
}

.giden-ebelge-summary-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.giden-ebelge-summary-heading strong {
    color: #243b4a;
    font-size: .9rem;
}

.giden-ebelge-summary-heading span {
    color: #74808c;
    font-size: .75rem;
}

.giden-ebelge-summary-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
}

.giden-ebelge-summary-values > div {
    display: grid;
    gap: .22rem;
    border: 1px solid #dbe2e8;
    border-top: 3px solid #238b6b;
    border-radius: 6px;
    padding: .65rem .8rem;
    background: #ffffff;
}

.giden-ebelge-summary-values > div:nth-child(2) {
    border-top-color: #3b6fa8;
}

.giden-ebelge-summary-values .giden-ebelge-summary-total {
    border-top-color: #c64a3b;
}

.giden-ebelge-summary-values span {
    color: #74808c;
    font-size: .72rem;
}

.giden-ebelge-summary-values strong {
    color: #26734d;
    font-size: 1rem;
}

.giden-ebelge-summary-values .giden-ebelge-summary-total strong {
    color: #c64a3b;
}

.cash-currency-summary {
    background: #f8fafc;
    border-bottom: 1px solid #d8e0e8;
    padding: 0 .75rem .75rem;
}

.cash-currency-summary-header {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding: 0 0 .45rem;
}

.cash-currency-summary-header strong {
    color: #10243e;
    font-size: .82rem;
}

.cash-currency-summary-header span {
    color: #64748b;
    font-size: .73rem;
}

.cash-currency-summary-list {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.cash-currency-total {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    min-width: 0;
    padding: .55rem .7rem;
}

.cash-currency-total > strong {
    color: #163b5c;
    margin-right: auto;
}

.cash-currency-total span {
    color: #64748b;
    font-size: .72rem;
    white-space: nowrap;
}

.cash-currency-total b {
    color: #10243e;
    font-weight: 700;
}

.cash-entry-note {
    align-items: baseline;
    background: #eef6fb;
    border: 1px solid #c8dce9;
    color: #38536b;
    display: flex;
    gap: .7rem;
    margin-bottom: .65rem;
    padding: .55rem .7rem;
}

.cash-entry-note strong {
    color: #163b5c;
    flex: 0 0 auto;
}

.cash-entry-note span {
    font-size: .78rem;
}

.cash-entry-form {
    min-width: 0;
}

.cash-movement-panel {
    min-width: 0;
}

.cash-movement-panel .cash-entry-form {
    background: #f7f9fb;
    border-bottom: 1px solid #d7dde6;
    overflow: hidden;
}

.cash-movement-panel .cash-entry-form .erp-form,
.cash-movement-panel .cash-entry-form .dxbl-fl-item,
.cash-movement-panel .cash-entry-form .dxbl-fl-ctrl,
.cash-movement-panel .cash-entry-form .dxbl-fl-ctrl > *,
.cash-movement-panel .cash-entry-form .field-with-guide {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.cash-movement-panel .cash-entry-form .erp-form {
    width: 100%;
}

.cash-movement-panel .cash-entry-form .dxbl-fl-ctrl,
.cash-movement-panel .cash-entry-form .dxbl-fl-ctrl > *,
.cash-movement-panel .cash-entry-form .field-with-guide {
    width: 100%;
}

.cash-movement-panel .cash-entry-form .field-with-guide {
    display: flex;
}

.cash-movement-panel .cash-entry-form .field-with-guide > :first-child {
    min-width: 0;
}

.cash-movement-panel .cash-entry-form .erp-form-actions {
    box-sizing: border-box;
    padding: .65rem .85rem .85rem;
}

.cash-movement-filter {
    flex-wrap: wrap;
}

.cash-movement-filter .stock-movement-filter-field {
    flex: 1 1 12rem;
    min-width: 10rem;
    width: auto;
}

.financial-impact-summary {
    align-items: center;
    background: #eef6fb;
    border-top: 1px solid #c8dce9;
    color: #38536b;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: .55rem .85rem;
}

.financial-impact-summary strong {
    color: #163b5c;
}

.form-status-banner {
    border: 1px solid #cbd5e1;
    margin: 0 0 .65rem;
    padding: .55rem .75rem;
}

.form-status-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #166534;
}

.form-status-error {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

@media (max-width: 640px) {
    .cash-movement-panel .cash-entry-form .erp-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cash-movement-panel .cash-entry-form .erp-form-actions > * {
        width: 100%;
    }

    .financial-impact-summary {
        align-items: stretch;
        flex-direction: column;
        gap: .35rem;
    }
}

.cash-form-status {
    border: 1px solid #cbd5e1;
    font-size: .8rem;
    margin-top: .7rem;
    padding: .45rem .65rem;
}

.cash-status-ok {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #166534;
}

.cash-status-error {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.efatura-document-toolbar {
    align-items: center;
    border: 1px solid #dbe4ec;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1rem;
    padding: .7rem .8rem;
}

.dxbl-popup:has(.efatura-document-popup-content) .dxbl-popup-body,
.dxbl-popup:has(.efatura-document-popup-content) .dxbl-popup-body-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.efatura-document-popup-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    min-width: 0;
}

.efatura-selection-toolbar {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe4ec;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .65rem;
    padding: .55rem .7rem;
}

.efatura-selection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.efatura-inbox-grid .efatura-selected-row > td {
    background: #dbeafe !important;
    color: #123b72;
}

.efatura-inbox-grid .efatura-selected-row:hover > td {
    background: #bfdbfe !important;
}

.efatura-inbox-grid .efatura-reply-red-row > td {
    background: #fee2e2 !important;
    color: #991b1b;
}

.efatura-inbox-grid .efatura-reply-pending-row > td {
    background: #fef3c7 !important;
    color: #854d0e;
}

.efatura-document-toolbar > div:first-child {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.efatura-document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.efatura-document-frame {
    background: #fff;
    border: 1px solid #cbd5e1;
    display: block;
    flex: 1 1 auto;
    height: auto;
    margin-top: .75rem;
    min-height: 0;
    width: 100%;
}

.efatura-xml-content {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: .25rem;
    box-sizing: border-box;
    color: #dbeafe;
    flex: 1 1 0;
    font-family: Consolas, "Cascadia Code", monospace;
    font-size: .78rem;
    height: 0;
    line-height: 1.45;
    margin: .75rem 0 0;
    min-height: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow: auto;
    overflow-y: auto;
    padding: 1rem;
    width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
}

.efatura-reply-panel {
    background: #fffdf5;
    border: 1px solid #f2cc67;
    border-radius: .25rem;
    display: grid;
    gap: .6rem;
    margin-top: .75rem;
    padding: .75rem;
}

.efatura-reply-panel > div:first-child {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.efatura-reply-note {
    min-height: 4.25rem;
    resize: vertical;
}

.efatura-reply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: flex-end;
}

.efatura-reply-existing {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #166534;
    padding: .55rem .7rem;
}

@media (max-width: 640px) {
    .efatura-selection-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .efatura-selection-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .efatura-document-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .efatura-document-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .efatura-document-actions > * {
        min-width: 0;
    }

    .efatura-document-frame {
        min-height: 0;
    }
}

.bank-summary-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: .75rem;
}

.bank-summary-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-top: 3px solid #64748b;
    min-width: 0;
    padding: .7rem .8rem;
}

.bank-summary-card span,
.bank-summary-card small {
    color: #64748b;
    display: block;
    font-size: .74rem;
}

.bank-summary-card strong {
    color: #10243e;
    display: block;
    font-size: 1.08rem;
    margin: .2rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bank-summary-main { border-top-color: #2d668f; }
.bank-summary-in { border-top-color: #238b6b; }
.bank-summary-out { border-top-color: #bd5b4d; }

.bank-workspace {
    min-width: 0;
}

.bank-dashboard-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: minmax(18rem, .8fr) minmax(0, 1.4fr);
    padding: .8rem;
}

.bank-dashboard-note,
.bank-dashboard-chart {
    background: #f8fafc;
    border: 1px solid #d7e0e8;
    min-width: 0;
    padding: .85rem;
}

.bank-dashboard-note h3,
.bank-dashboard-chart h3 {
    color: #173b5d;
    font-size: 1rem;
    margin: .15rem 0 .35rem;
}

.bank-dashboard-note p {
    color: #526477;
    font-size: .8rem;
    line-height: 1.5;
    margin: 0;
}

.bank-eyebrow {
    color: #2d668f;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.bank-alert-list {
    border-top: 1px solid #d7e0e8;
    display: grid;
    gap: .45rem;
    margin-top: .8rem;
    padding-top: .65rem;
}

.bank-alert-list div {
    align-items: center;
    display: flex;
    gap: .5rem;
}

.bank-alert-list strong {
    color: #bd5b4d;
    min-width: 1.5rem;
}

.bank-alert-list span,
.bank-section-heading span,
.bank-definition-toolbar span {
    color: #64748b;
    font-size: .75rem;
}

.bank-section-heading,
.bank-definition-toolbar {
    align-items: center;
    display: flex;
    gap: .65rem;
    justify-content: space-between;
    min-width: 0;
}

.bank-section-heading h3 {
    margin: 0;
}

.bank-currency-bars {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.bank-currency-row {
    align-items: center;
    display: grid;
    gap: .55rem;
    grid-template-columns: 3rem minmax(0, 1fr) 8rem;
}

.bank-currency-row > span {
    color: #173b5d;
    font-size: .78rem;
    font-weight: 800;
}

.bank-currency-row > div {
    background: #e2e8f0;
    height: .55rem;
    overflow: hidden;
}

.bank-currency-row i {
    background: #2d668f;
    display: block;
    height: 100%;
}

.bank-currency-row strong {
    color: #173b5d;
    font-size: .78rem;
    text-align: right;
}

.bank-grid-block {
    border-top: 1px solid #d7e0e8;
}

.bank-grid-block .bank-section-heading,
.bank-definition-toolbar {
    padding: .7rem .8rem;
}

.bank-definition-toolbar {
    justify-content: flex-start;
}

.bank-definition-toolbar span {
    margin-left: auto;
}

.bank-filter-bar {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    padding: .75rem .8rem;
}

.bank-filter-bar > div {
    flex: 1 1 12rem;
    min-width: 10rem;
}

.bank-filter-bar label {
    color: #475569;
    display: block;
    font-size: .73rem;
    font-weight: 700;
    margin-bottom: .2rem;
}

.bank-filter-bar .dxbl-combobox,
.bank-filter-bar .dxbl-date-edit {
    width: 100%;
}

.bank-grid {
    min-width: 62rem;
}

@media (max-width: 1180px) {
    .bank-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .bank-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .bank-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .bank-summary-grid {
        grid-template-columns: 1fr;
    }

    .bank-currency-row {
        grid-template-columns: 3rem minmax(0, 1fr) 6.5rem;
    }

    .bank-filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .bank-filter-bar > div,
    .bank-filter-bar > button {
        width: 100%;
    }
}

.cash-card-layout {
    display: grid;
    gap: .8rem;
    grid-template-columns: minmax(18rem, .75fr) minmax(0, 1.6fr);
    min-width: 0;
}

.cash-card-form,
.cash-card-list {
    min-width: 0;
}

.cash-card-list {
    border-left: 1px solid #d8e0e8;
    padding-left: .8rem;
}

.kasa-virman-form {
    min-width: 0;
    overflow: hidden;
    padding: .85rem;
}

.kasa-virman-input-form,
.kasa-virman-input-form .dxbl-fl-item,
.kasa-virman-input-form .dxbl-fl-ctrl,
.kasa-virman-input-form .dxbl-fl-ctrl > *,
.kasa-virman-input-form .field-with-guide {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.kasa-virman-input-form {
    width: 100%;
}

.kasa-virman-input-form .dxbl-fl-item {
    overflow: hidden;
}

.kasa-virman-input-form .dxbl-fl-ctrl,
.kasa-virman-input-form .dxbl-fl-ctrl > *,
.kasa-virman-input-form .dxbl-text-edit,
.kasa-virman-input-form .dxbl-spin-edit,
.kasa-virman-input-form .dxbl-combobox,
.kasa-virman-input-form .dxbl-date-edit,
.kasa-virman-input-form .dxbl-memo {
    width: 100%;
}

.kasa-virman-input-form .dxbl-fl-item > label,
.kasa-virman-input-form .dxbl-fl-item .dxbl-fl-ctrl-label {
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.kasa-virman-input-form .field-with-guide {
    display: flex;
}

.kasa-virman-input-form .field-with-guide > :first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.kasa-virman-input-form .field-with-guide > :last-child {
    flex: 0 0 2.25rem;
    min-width: 2.25rem;
}

.kasa-virman-currency-note {
    align-items: baseline;
    background: #eef6fb;
    border: 1px solid #c8dce9;
    color: #38536b;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .7rem;
    margin: 0 .85rem .8rem;
    padding: .55rem .7rem;
}

.kasa-virman-currency-note strong {
    color: #163b5c;
    flex: 0 0 auto;
}

.kasa-virman-currency-note span {
    font-size: .78rem;
    overflow-wrap: anywhere;
}

.kasa-virman-route {
    align-items: center;
    display: grid;
    gap: .7rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    margin: .2rem 0 .8rem;
}

.kasa-virman-route-item {
    background: #f7fafc;
    border: 1px solid #d7e1eb;
    border-left: 4px solid #2563a6;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
    padding: .55rem .75rem;
}

.kasa-virman-route-item span {
    color: #65758a;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.kasa-virman-route-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kasa-virman-route-target {
    border-left-color: #17805c;
}

.kasa-virman-route-arrow {
    color: #2563a6;
    font-size: 1.35rem;
    font-weight: 700;
}

.kasa-virman-grid {
    min-width: 64rem;
}

@media (max-width: 720px) {
    .kasa-virman-input-form .dxbl-fl-item {
        flex-basis: 50% !important;
        max-width: 50% !important;
    }

    .kasa-virman-route {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .kasa-virman-route-arrow {
        text-align: center;
        transform: rotate(90deg);
    }
}

@media (max-width: 520px) {
    .kasa-virman-input-form .dxbl-fl-item {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }

    .kasa-virman-form {
        padding: .55rem;
    }

    .kasa-virman-currency-note {
        margin-left: .55rem;
        margin-right: .55rem;
    }
}

.cash-grid {
    min-width: 62rem;
}

@media (max-width: 900px) {
    .cash-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cash-card-layout {
        grid-template-columns: 1fr;
    }

    .cash-card-list {
        border-left: 0;
        border-top: 1px solid #d8e0e8;
        padding-left: 0;
        padding-top: .8rem;
    }
}

@media (max-width: 560px) {
    .cash-summary-grid {
        grid-template-columns: 1fr;
    }

    .cash-filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .cash-filter-field,
    .cash-filter-field.cash-filter-wide {
        flex-basis: auto;
        width: 100%;
    }

    .cash-entry-note {
        align-items: flex-start;
        flex-direction: column;
        gap: .2rem;
    }
}

@media (max-width: 1180px) {
    .dashboard-hero {
        grid-template-columns: minmax(0, 1fr) minmax(240px, .9fr);
    }

    .dashboard-hero-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 980px) {
    .module-grid-erp {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recipe-form-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .recipe-form-heading .recipe-form-count {
        align-self: flex-start;
    }

    .recipe-form-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .recipe-form-section-header small,
    .recipe-edit-badge {
        white-space: normal;
    }

    .recipe-form .dxbl-fl-item {
        flex-basis: 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 640px) {
    .erp-ai-launcher {
        bottom: .8rem;
        right: .8rem;
    }

    .dashboard-hero {
        grid-template-columns: 1fr;
        padding: .9rem;
    }

    .dashboard-hero-context {
        flex-direction: column;
    }

    .dashboard-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-hero-actions .dxbl-btn {
        min-width: 0;
        width: 100%;
    }

    .dashboard-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .2rem;
    }

    .dashboard-metrics,
    .module-grid-erp {
        grid-template-columns: 1fr;
    }

    .recipe-form {
        padding: .45rem;
    }

    .recipe-form-heading,
    .recipe-form-section .erp-form {
        padding: .55rem;
    }

    .recipe-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .recipe-form-footer-actions {
        width: 100%;
    }

    .recipe-form-footer-actions > * {
        flex: 1 1 0;
    }

    .recipe-line-actions {
        flex-direction: column;
    }

    .recipe-line-actions > * {
        width: 100%;
    }

    .recipe-form .dxbl-fl-item {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }

    .recipe-form .recipe-form-section,
    .recipe-form .recipe-detail-panel,
    .recipe-form .recipe-lines-section {
        margin-top: .5rem;
    }
}

/* Mobilde grid satirlari kart gibi okunur; genis kolonlar yatay kaydirma ile korunur. */
@media (max-width: 640px) {
    .erp-grid {
        background: #eef3f7;
        border: 1px solid #d7e0e8;
        border-radius: 8px;
        padding: .25rem;
    }

    .erp-grid .dxbl-grid-table {
        border-collapse: separate !important;
        border-spacing: 0 .42rem !important;
        min-width: max-content;
    }

    .erp-grid .dxbl-grid-table tbody td {
        background: #fff;
        border-bottom: 1px solid #dbe4ec;
        border-top: 1px solid #dbe4ec;
        padding: .5rem .45rem !important;
        vertical-align: top;
    }

    .erp-grid .dxbl-grid-table tbody tr td:first-child {
        border-left: 1px solid #dbe4ec;
        border-radius: 8px 0 0 8px;
    }

    .erp-grid .dxbl-grid-table tbody tr td:last-child {
        border-right: 1px solid #dbe4ec;
        border-radius: 0 8px 8px 0;
    }

    .erp-grid .dxbl-grid-table tbody tr:hover td,
    .erp-grid .dxbl-grid-table tbody tr[aria-selected="true"] td,
    .erp-grid .dxbl-grid-table tbody tr.dxbl-grid-selected-row td,
    .erp-grid .dxbl-grid-table tbody tr.dxbl-grid-focused-row td {
        background: #f3f8fd;
    }

    .erp-grid .dxbl-grid-table tbody tr[aria-selected="true"] td,
    .erp-grid .dxbl-grid-table tbody tr.dxbl-grid-selected-row td,
    .erp-grid .dxbl-grid-table tbody tr.dxbl-grid-focused-row td {
        border-color: #9fc2df;
    }

    /* Rehber ve uyari pencereleri telefonda ekran icinde kart olarak acilir. */
    .dxbl-popup:not(.multi-line-entry-dialog):not(.erp-ai-popup) {
        border: 1px solid #c9d5e0 !important;
        border-radius: 10px !important;
        box-shadow: 0 14px 34px rgba(31, 56, 76, .24) !important;
        max-width: calc(100vw - 1rem) !important;
        width: calc(100vw - 1rem) !important;
    }

    .dxbl-popup:not(.multi-line-entry-dialog):not(.erp-ai-popup) .dxbl-popup-header {
        border-bottom: 1px solid #d7e0e8;
        font-size: .88rem;
        min-height: 2.45rem;
        padding: .62rem .75rem !important;
    }

    .dxbl-popup:not(.multi-line-entry-dialog):not(.erp-ai-popup) .dxbl-popup-body {
        max-height: calc(100vh - 10rem);
        overflow: auto !important;
        padding: .55rem !important;
    }

    .dxbl-popup:not(.multi-line-entry-dialog):not(.erp-ai-popup) .dxbl-popup-footer {
        border-top: 1px solid #d7e0e8;
        display: flex;
        flex-wrap: wrap;
        gap: .4rem;
        padding: .55rem .65rem !important;
    }

    .dxbl-popup:not(.multi-line-entry-dialog):not(.erp-ai-popup) .dxbl-popup-footer > * {
        flex: 1 1 7rem;
        min-width: 0;
    }

    .dxbl-popup:not(.multi-line-entry-dialog):not(.erp-ai-popup) .erp-grid {
        border: 0;
        border-radius: 7px;
        padding: .15rem;
    }
}

/* Tum DevExpress gridleri mobilde alan baslikli kart listesine donusur. */
@media (max-width: 640px) {
    /* Mobil popup'lar ekranı doldurur; içerik sadece dikey kayar. */
    dxbl-modal-root {
        height: 100dvh !important;
        inset: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        overflow: hidden !important;
        position: fixed !important;
        width: 100vw !important;
    }

    dxbl-modal-root .dxbl-popup {
        bottom: 0 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
        height: 100dvh !important;
        inset: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        max-height: 100dvh !important;
        max-width: 100vw !important;
        min-height: 0 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        transform: none !important;
        width: 100vw !important;
    }

    dxbl-modal-root .dxbl-modal-dialog,
    dxbl-modal-root .dxbl-popup-fixed-width {
        box-sizing: border-box !important;
        margin: 0 !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        width: 100vw !important;
    }

    dxbl-modal-root .dxbl-modal-content {
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        min-height: 0 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    dxbl-modal-root .dxbl-modal-header {
        flex: 0 0 auto !important;
        min-width: 0 !important;
    }

    dxbl-modal-root .dxbl-modal-body {
        box-sizing: border-box !important;
        flex: 1 1 auto !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        width: 100% !important;
    }

    dxbl-modal-root .dxbl-modal-body > * {
        box-sizing: border-box;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .dxbl-popup,
    .dxbl-popup-content,
    .dxbl-popup-body,
    .dxbl-popup-body-content {
        box-sizing: border-box !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .dxbl-popup {
        font-size: .72rem;
        height: calc(100dvh - .5rem) !important;
        max-height: calc(100dvh - .5rem) !important;
        width: 100% !important;
    }

    .dxbl-popup .dxbl-popup-header {
        font-size: .78rem !important;
        line-height: 1.15;
        min-height: 2.15rem;
        padding: .45rem .6rem !important;
    }

    .dxbl-popup .dxbl-popup-body {
        font-size: .68rem;
        max-height: calc(100dvh - 6.2rem) !important;
        overflow-y: auto !important;
        padding: .4rem !important;
    }

    .dxbl-popup .dxbl-popup-footer {
        font-size: .68rem;
        gap: .3rem;
        padding: .4rem !important;
    }

    .dxbl-popup .dxbl-popup-body label,
    .dxbl-popup .dxbl-popup-body .dxbl-fl-ctrl-label,
    .dxbl-popup .dxbl-popup-body .dxbl-fl-item,
    .dxbl-popup .dxbl-popup-body th,
    .dxbl-popup .dxbl-popup-body td,
    .dxbl-popup .dxbl-popup-body input,
    .dxbl-popup .dxbl-popup-body textarea,
    .dxbl-popup .dxbl-popup-body select,
    .dxbl-popup .dxbl-popup-body button,
    .dxbl-popup .dxbl-popup-footer button {
        font-size: .66rem !important;
        line-height: 1.2;
    }

    .dxbl-popup .dxbl-popup-body .dxbl-grid,
    .dxbl-popup .dxbl-popup-body .dxbl-grid-content,
    .dxbl-popup .dxbl-popup-body .dxbl-grid-table,
    .dxbl-popup .dxbl-popup-body .erp-grid {
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .dxbl-popup .dxbl-popup-body .dxbl-grid-table th,
    .dxbl-popup .dxbl-popup-body .dxbl-grid-table td {
        overflow-wrap: anywhere;
        padding: .28rem .32rem !important;
        white-space: normal !important;
    }

    .dxbl-popup .dxbl-popup-body .dxbl-btn,
    .dxbl-popup .dxbl-popup-footer .dxbl-btn {
        min-height: 1.8rem;
        min-width: 0;
        padding: .22rem .4rem !important;
    }

    .multi-line-entry-dialog {
        height: 100dvh !important;
        max-height: 100dvh !important;
        max-width: 100vw !important;
        width: 100vw !important;
    }

    .multi-line-entry-dialog .multi-line-entry-grid,
    .multi-line-entry-dialog .multi-line-entry-grid-control,
    .multi-line-entry-dialog .multi-line-entry-grid-control .dxbl-grid-content {
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .erp-grid,
    .dxbl-grid,
    .dxbl-grid-content {
        max-width: 100%;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .mobile-card-grid .dxbl-grid-table,
    .mobile-card-grid .dxbl-grid-table > tbody {
        display: block;
        min-width: 0 !important;
        width: 100% !important;
    }

    .mobile-card-grid .dxbl-grid-table {
        border-spacing: 0 !important;
        table-layout: fixed;
    }

    .mobile-card-grid .dxbl-grid-table thead {
        display: none !important;
    }

    .mobile-card-grid .dxbl-grid-table tbody {
        display: grid;
        gap: .55rem;
    }

    .mobile-card-grid .dxbl-grid-table tbody tr {
        background: #fff;
        border: 1px solid #cbd8e3;
        border-radius: 9px;
        box-shadow: 0 2px 8px rgba(31, 56, 76, .08);
        display: grid;
        gap: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: hidden;
    }

    .mobile-card-grid .dxbl-grid-table tbody td {
        align-items: stretch;
        background: #fff;
        border: 0 !important;
        border-bottom: 1px solid #e4ebf1 !important;
        display: flex;
        flex-direction: column;
        gap: .14rem;
        grid-column: 1 / -1;
        min-width: 0;
        padding: .38rem .48rem !important;
        width: 100% !important;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-numeric-field {
        grid-column: span 1;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-wide-field {
        grid-column: 1 / -1;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-compact-field {
        grid-column: span 1;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-wide-field,
    .mobile-card-grid .dxbl-grid-table tbody td.mobile-compact-field {
        min-height: 2.65rem;
    }

    .mobile-card-grid .dxbl-grid-table tbody td:last-child {
        border-bottom: 0 !important;
    }

    .mobile-card-grid .dxbl-grid-table tbody td::before {
        color: #5b6f7f;
        content: attr(data-mobile-label);
        font-size: .62rem;
        font-weight: 700;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .mobile-card-grid .dxbl-grid-table tbody td:not([data-mobile-label]) {
        display: flex;
        justify-content: flex-end;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-numeric-field::before {
        color: #42647d;
        font-size: .58rem;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-numeric-field {
        background: #fbfdff;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-numeric-field > *,
    .mobile-card-grid .dxbl-grid-table tbody td.mobile-numeric-field input,
    .mobile-card-grid .dxbl-grid-table tbody td.mobile-numeric-field select {
        text-align: right;
    }

    .mobile-card-grid .dxbl-grid-table tbody td > *,
    .mobile-card-grid .dxbl-grid-table tbody td input,
    .mobile-card-grid .dxbl-grid-table tbody td textarea,
    .mobile-card-grid .dxbl-grid-table tbody td select {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
        width: 100%;
    }

    .mobile-card-grid .dxbl-grid-table tbody td > *,
    .mobile-card-grid .dxbl-grid-table tbody td input,
    .mobile-card-grid .dxbl-grid-table tbody td textarea,
    .mobile-card-grid .dxbl-grid-table tbody td select {
        font-size: .68rem;
        line-height: 1.2;
    }

    .mobile-card-grid .dxbl-grid-table tbody td .grid-row-actions,
    .mobile-card-grid .dxbl-grid-table tbody td .dxbl-btn {
        width: auto;
    }

    .mobile-card-grid .dxbl-grid-table tbody td:has(.grid-row-actions) {
        align-items: flex-start;
        grid-column: 1 / -1;
    }

    .mobile-card-grid .dxbl-grid-table tbody td .grid-row-actions {
        display: flex;
        flex-wrap: wrap;
        gap: .3rem;
        width: 100%;
    }

    .mobile-card-grid .dxbl-grid-table tbody td .grid-row-actions .dxbl-btn {
        font-size: .64rem;
        min-height: 1.8rem;
        padding: .2rem .42rem;
    }

    .mobile-card-grid .dxbl-grid-table tbody td .dxbl-btn {
        max-width: 100%;
    }

    .mobile-card-grid .dxbl-grid-table tbody td .dxbl-grid-checkbox {
        width: auto;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-compact-field > *,
    .mobile-card-grid .dxbl-grid-table tbody td.mobile-compact-field input,
    .mobile-card-grid .dxbl-grid-table tbody td.mobile-compact-field select {
        white-space: nowrap;
    }

    .mobile-card-grid .dxbl-grid-table tbody tr:hover td,
    .mobile-card-grid .dxbl-grid-table tbody tr[aria-selected="true"] td,
    .mobile-card-grid .dxbl-grid-table tbody tr.dxbl-grid-selected-row td,
    .mobile-card-grid .dxbl-grid-table tbody tr.dxbl-grid-focused-row td {
        background: #f3f8fd;
    }

    .dxbl-popup:not(.multi-line-entry-dialog):not(.erp-ai-popup) .mobile-card-grid {
        border: 0;
        padding: 0;
    }
}

/* Kapanmayan Menu sekmesinin mobil uygulama gorunumu. */
.erp-module-launcher {
    display: grid;
    gap: .9rem;
    margin: 0 auto;
    max-width: 1400px;
    min-width: 0;
}

.module-launcher-header {
    align-items: center;
    background: linear-gradient(135deg, #173a57, #245d77);
    border: 1px solid #1c4d6d;
    border-radius: 10px;
    color: #fff;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-width: 0;
    padding: 1rem 1.15rem;
}

.module-launcher-header h1 {
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    margin: .12rem 0 .25rem;
}

.module-launcher-header p {
    color: #d7e8f1;
    font-size: .82rem;
    margin: 0;
}

.module-launcher-header .dashboard-section-kicker {
    color: #a9d5df;
}

.module-launcher-context {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 7px;
    color: #f0f8fb;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .78rem;
    font-weight: 700;
    gap: .45rem;
    padding: .55rem .7rem;
}

.module-launcher-search {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd9e2;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(23, 58, 87, .05);
    display: flex;
    gap: .45rem;
    min-width: 0;
    padding: .15rem .55rem;
}

.module-launcher-search:focus-within {
    border-color: #4a9ab0;
    box-shadow: 0 0 0 3px rgba(74, 154, 176, .12);
}

.module-launcher-search-icon {
    color: #6f8797;
    flex: 0 0 auto;
    font-size: 1.15rem;
    line-height: 1;
}

.module-launcher-search input {
    background: transparent;
    border: 0;
    color: #17324d;
    flex: 1 1 auto;
    font-size: .82rem;
    min-width: 0;
    outline: 0;
    padding: .6rem .1rem;
}

.module-launcher-search input::placeholder {
    color: #8296a5;
}

.module-launcher-search-clear {
    align-items: center;
    background: #edf3f7;
    border: 1px solid #d5e1e8;
    border-radius: 50%;
    color: #4f6878;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .9rem;
    height: 1.5rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 1.5rem;
}

.module-launcher-search-clear:hover,
.module-launcher-search-clear:focus-visible {
    background: #dfeaf0;
    outline: 0;
}

.module-launcher-section {
    background: #f1f5f8;
    border: 1px solid #cfdce5;
    border-radius: 10px;
    min-width: 0;
    overflow: hidden;
}

.module-launcher-section-heading {
    align-items: center;
    background: #173a57;
    border-bottom: 1px solid #25516d;
    color: #fff;
    display: flex;
    gap: .7rem;
    min-width: 0;
    padding: .75rem .85rem;
}

.module-launcher-section-icon {
    align-items: center;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.05rem;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.module-launcher-section-heading > div {
    min-width: 0;
}

.module-launcher-section-heading h2 {
    color: #fff;
    font-size: 1rem;
    margin: 0;
}

.module-launcher-section-heading small {
    color: #cfe2ed;
    display: block;
    font-size: .72rem;
    margin-top: .12rem;
    overflow-wrap: anywhere;
}

.module-launcher-section-count {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    margin-left: auto;
    min-width: 1.8rem;
    padding: .22rem .4rem;
    text-align: center;
}

.module-launcher-subgroups {
    display: grid;
    gap: .65rem;
    min-width: 0;
    padding: .65rem;
}

.module-launcher-group {
    background: #f4f7fa;
    border: 1px solid #d8e1e8;
    border-radius: 9px;
    min-width: 0;
    overflow: hidden;
}

.module-launcher-group-heading {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #d8e1e8;
    display: flex;
    gap: .65rem;
    min-width: 0;
    padding: .7rem .8rem;
}

.module-launcher-group-icon,
.module-launcher-card-icon {
    align-items: center;
    background: #e5f1f3;
    border: 1px solid #b9dadd;
    border-radius: 8px;
    color: #236d79;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.module-launcher-group-icon {
    font-size: 1.05rem;
    height: 2.15rem;
    width: 2.15rem;
}

.module-launcher-group-heading > div {
    min-width: 0;
}

.module-launcher-group-heading h2 {
    color: #17324d;
    font-size: .96rem;
    margin: 0;
}

.module-launcher-group-heading h3 {
    color: #17324d;
    font-size: .9rem;
    margin: 0;
}

.module-launcher-group-heading small {
    color: #6d8191;
    display: block;
    font-size: .72rem;
    margin-top: .12rem;
    overflow-wrap: anywhere;
}

.module-launcher-group-count {
    background: #edf3f7;
    border: 1px solid #d7e2ea;
    border-radius: 999px;
    color: #567083;
    font-size: .7rem;
    font-weight: 800;
    margin-left: auto;
    min-width: 1.7rem;
    padding: .22rem .4rem;
    text-align: center;
}

.module-launcher-grid {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: .65rem;
}

.module-launcher-card {
    align-items: center;
    background: #fff;
    border: 1px solid #d4e0e8;
    border-radius: 8px;
    color: inherit;
    display: flex;
    gap: .6rem;
    min-height: 4.9rem;
    min-width: 0;
    padding: .65rem;
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.module-launcher-card:hover,
.module-launcher-card:focus-visible {
    border-color: #4a9ab0;
    box-shadow: 0 5px 14px rgba(35, 109, 121, .12);
    color: inherit;
    outline: none;
    transform: translateY(-1px);
}

.module-launcher-card-disabled,
.module-launcher-card-disabled:hover,
.module-launcher-card-disabled:focus-visible {
    background: #f3f5f7;
    border-color: #d8dee3;
    box-shadow: none;
    color: #87939c;
    cursor: not-allowed;
    opacity: .68;
    outline: none;
    pointer-events: none;
    transform: none;
}

.module-launcher-card-disabled .module-launcher-card-icon,
.module-launcher-card-disabled .module-launcher-card-body strong,
.module-launcher-card-disabled .module-launcher-card-body small,
.module-launcher-card-disabled .module-launcher-card-arrow {
    color: #87939c;
}

.module-launcher-card-icon {
    font-size: 1.05rem;
    height: 2.15rem;
    width: 2.15rem;
}

.module-launcher-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .16rem;
    min-width: 0;
}

.module-launcher-card-body strong {
    color: #17324d;
    font-size: .8rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.module-launcher-card-body small {
    color: #708394;
    font-size: .68rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.module-launcher-card-arrow {
    color: #8ba0af;
    flex: 0 0 auto;
    font-size: .78rem;
}

.module-launcher-group-finance .module-launcher-group-icon,
.module-launcher-group-finance .module-launcher-card-icon {
    background: #fff4df;
    border-color: #ead3a3;
    color: #8a5d1c;
}

.module-launcher-group-documents .module-launcher-group-icon,
.module-launcher-group-documents .module-launcher-card-icon {
    background: #eaf1fb;
    border-color: #c4d6ed;
    color: #2d6295;
}

.module-launcher-group-production .module-launcher-group-icon,
.module-launcher-group-production .module-launcher-card-icon {
    background: #efedfb;
    border-color: #d2cff0;
    color: #5d5a93;
}

.module-launcher-group-management .module-launcher-group-icon,
.module-launcher-group-management .module-launcher-card-icon {
    background: #f8edf0;
    border-color: #ead1d8;
    color: #955467;
}

.erp-nav-item-disabled {
    color: #87939c !important;
    cursor: not-allowed;
    opacity: .62;
}

.erp-menu-item-disabled {
    color: #87939c !important;
    cursor: not-allowed !important;
    opacity: .62;
}

.erp-menu-item-disabled * {
    color: inherit !important;
}

@media (max-width: 1080px) {
    .module-launcher-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .module-launcher-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .module-launcher {
        gap: .6rem;
    }

    .module-launcher-header h1 {
        font-size: 1.12rem;
    }

    .module-launcher-header p {
        font-size: .72rem;
    }

    .module-launcher-header {
        align-items: flex-start;
        border-radius: 8px;
        flex-direction: column;
        padding: .8rem;
    }

    .module-launcher-search input {
        font-size: 16px !important;
    }

    .module-launcher-section-heading {
        padding: .6rem;
    }

    .module-launcher-section-heading h2 {
        font-size: .88rem;
    }

    .module-launcher-section-heading small {
        font-size: .62rem;
    }

    .module-launcher-section-icon {
        font-size: .9rem;
        height: 2rem;
        width: 2rem;
    }

    .module-launcher-subgroups {
        gap: .45rem;
        padding: .45rem;
    }

    .module-launcher-context {
        align-self: stretch;
        justify-content: center;
    }

    .module-launcher-group-heading {
        padding: .6rem;
    }

    .module-launcher-group-heading h2 {
        font-size: .84rem;
    }

    .module-launcher-group-heading h3 {
        font-size: .78rem;
    }

    .module-launcher-group-heading small {
        font-size: .64rem;
    }

    .module-launcher-grid {
        gap: .45rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: .45rem;
    }

    .module-launcher-card {
        align-items: center;
        aspect-ratio: 1;
        flex-direction: column;
        gap: .38rem;
        justify-content: center;
        min-height: 0;
        padding: .45rem .25rem;
    }

    .module-launcher-card-icon {
        border-radius: 10px;
        font-size: .95rem;
        height: 2.1rem;
        width: 2.1rem;
    }

    .module-launcher-card-body {
        align-items: center;
        display: flex;
        text-align: center;
    }

    .module-launcher-card-body strong {
        display: -webkit-box;
        font-size: .61rem;
        line-height: 1.18;
        max-width: 100%;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .module-launcher-card-body small,
    .module-launcher-card-arrow {
        display: none;
    }
}

/* Mobil kartlar: kritik bilgiler ustte, diger alanlar daha kompakt ve iki sutunlu. */
@media (max-width: 640px) {
    /* iOS, 16px altindaki form metinlerinde otomatik zoom yapar. */
    input,
    select,
    textarea,
    .dxbl-text-edit-input,
    .dxbl-combobox-input,
    .dxbl-spin-edit-input,
    [contenteditable="true"] {
        font-size: 16px !important;
    }

    html,
    body {
        font-size: 12px;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .cached-tab-page-active {
        font-size: .72rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .cached-tab-page-active .page-header {
        margin-bottom: .4rem;
        padding: .48rem .55rem;
    }

    .cached-tab-page-active .page-header h1,
    .cached-tab-page-active .page-header h2,
    .cached-tab-page-active .panel-header h2 {
        font-size: .86rem;
        line-height: 1.15;
    }

    .cached-tab-page-active .page-header p,
    .cached-tab-page-active .page-header small,
    .cached-tab-page-active .panel-header small,
    .cached-tab-page-active .panel-header span {
        font-size: .62rem;
        line-height: 1.2;
    }

    .cached-tab-page-active label,
    .cached-tab-page-active .dxbl-fl-item-caption {
        font-size: .62rem;
    }

    .cached-tab-page-active .dxbl-text-edit-input,
    .cached-tab-page-active .dxbl-combobox-input,
    .cached-tab-page-active input,
    .cached-tab-page-active select,
    .cached-tab-page-active textarea,
    .cached-tab-page-active button {
        font-size: .68rem !important;
        line-height: 1.15;
    }

    .mobile-card-grid .dxbl-grid-table tbody {
        gap: .38rem;
    }

    .mobile-card-grid .dxbl-grid-table tbody tr {
        border-radius: 7px;
    }

    .mobile-card-grid .dxbl-grid-table tbody td {
        gap: .08rem;
        min-height: 0 !important;
        padding: .27rem .34rem !important;
        flex-direction: row;
        align-items: baseline;
    }

    .mobile-card-grid .dxbl-grid-table tbody td::before {
        color: #5b6f7f !important;
        content: attr(data-mobile-label) " :" !important;
        display: inline-flex !important;
        flex: 0 0 auto;
        font-size: .52rem !important;
        font-weight: 700;
        line-height: 1.1;
        margin-right: .22rem;
        max-width: 48%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: auto !important;
    }

    .mobile-card-grid .dxbl-grid-table tbody td > .mobile-card-line {
        align-items: baseline;
        display: flex;
        gap: .22rem;
        min-width: 0;
        width: 100%;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-primary-field {
        background: #fff !important;
        order: 0;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-primary-field::before {
        color: #355b76 !important;
        font-size: .55rem !important;
    }

    /* Sayisal alanlar kart icinde iki esit kolona dagilir. */
    .mobile-card-grid .dxbl-grid-table tbody td.mobile-numeric-field {
        grid-column: span 1 / span 1;
        min-width: 0;
        overflow: hidden;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-numeric-field > *:not(.mobile-card-label) {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-primary-field.mobile-wide-field {
        grid-column: 1 / -1;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-secondary-field {
        background: #fbfcfd;
        order: 2;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-secondary-field::before {
        color: #778b99 !important;
        font-size: .49rem !important;
        font-weight: 600;
    }

    .mobile-card-grid .dxbl-grid-table tbody td[data-mobile-priority="normal"] {
        order: 1;
    }

    .mobile-card-grid .dxbl-grid-table tbody td::before {
        content: attr(data-mobile-label) " :" !important;
        display: inline-flex !important;
    }

    .mobile-card-grid .dxbl-grid-table tbody td > .mobile-card-label {
        color: #5b6f7f;
        display: inline-flex;
        flex: 0 0 auto;
        font-size: .52rem;
        font-weight: 700;
        line-height: 1.1;
        margin-right: .22rem;
        max-width: 48%;
        overflow-wrap: normal;
        white-space: nowrap;
        width: auto !important;
    }

    .mobile-card-grid .dxbl-grid-table tbody td > .mobile-card-value {
        display: inline-block;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        width: auto !important;
    }

    .mobile-card-grid .dxbl-grid-table tbody td > .mobile-card-line > .mobile-card-value > * {
        max-width: 100%;
        min-width: 0;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-primary-field > .mobile-card-label {
        color: #355b76;
        font-size: .55rem;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-secondary-field > .mobile-card-label {
        color: #778b99;
        font-size: .49rem;
        font-weight: 600;
    }

    .mobile-card-grid .dxbl-grid-table tbody td > *,
    .mobile-card-grid .dxbl-grid-table tbody td input,
    .mobile-card-grid .dxbl-grid-table tbody td textarea,
    .mobile-card-grid .dxbl-grid-table tbody td select {
        flex: 1 1 auto;
        font-size: .62rem !important;
        line-height: 1.1;
        min-width: 0;
    }

    .mobile-card-grid .dxbl-grid-table tbody td > .mobile-card-line > .mobile-card-value > *,
    .mobile-card-grid .dxbl-grid-table tbody td > .mobile-card-line > .mobile-card-value input,
    .mobile-card-grid .dxbl-grid-table tbody td > .mobile-card-line > .mobile-card-value select,
    .mobile-card-grid .dxbl-grid-table tbody td > .mobile-card-line > .mobile-card-value textarea {
        width: 100%;
    }

    .mobile-card-grid .dxbl-grid-table tbody td > .mobile-card-label {
        flex: 0 0 auto;
    }

    .mobile-card-grid .dxbl-grid-table tbody td:has(.grid-row-actions) {
        align-items: center;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-primary-field > * {
        font-weight: 600;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-secondary-field > * {
        color: #536b7a;
        font-weight: 400;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-numeric-field > * {
        font-variant-numeric: tabular-nums;
    }

    .mobile-card-grid .dxbl-grid-table tbody td.mobile-compact-field > *,
    .mobile-card-grid .dxbl-grid-table tbody td.mobile-compact-field input,
    .mobile-card-grid .dxbl-grid-table tbody td.mobile-compact-field select {
        white-space: nowrap;
    }

    /* Mobil kart etiketleri: degerden ayrilmis, gorunur ve bos etiketlerde colon yok. */
    .mobile-card-grid .dxbl-grid-table tbody td[data-mobile-label]::before {
        color: #46677c !important;
        content: attr(data-mobile-label) " :" !important;
        display: inline-flex !important;
        flex: 0 0 auto !important;
        font-size: .52rem !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        margin-right: .22rem !important;
        max-width: 48% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        visibility: visible !important;
        white-space: nowrap !important;
        width: auto !important;
    }

    .mobile-card-grid .dxbl-grid-table tbody td:not([data-mobile-label])::before {
        content: none !important;
        display: none !important;
    }
}

/* Rehber popup'lari iOS listesindeki kart duzenine donusturulur. */
@media (max-width: 640px) {
    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) {
        background: #f7f9fc !important;
        border: 0 !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        width: 100vw !important;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-popup-header {
        align-items: center;
        background: #fff;
        border-bottom: 1px solid #e1e6ec;
        color: #101820;
        display: flex;
        flex: 0 0 auto;
        font-size: 1.02rem !important;
        font-weight: 800;
        min-height: 3.8rem;
        padding: .72rem 1rem !important;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-popup-body,
    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-modal-body {
        background: #f7f9fc;
        flex: 1 1 auto;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: .7rem .7rem 1rem !important;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-popup-footer {
        align-items: stretch;
        background: #fff;
        border-top: 1px solid #e1e6ec;
        flex: 0 0 auto;
        gap: .45rem;
        padding: .65rem .7rem calc(.65rem + env(safe-area-inset-bottom)) !important;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-popup-footer > * {
        flex: 1 1 0;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .erp-grid,
    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid,
    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-content {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        min-width: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        width: 100% !important;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table {
        display: block !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table thead {
        display: none !important;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody {
        display: grid !important;
        gap: .62rem;
        grid-template-columns: minmax(0, 1fr);
        width: 100% !important;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody tr {
        align-items: stretch;
        background: #fff;
        border: 1px solid #e4e9ef;
        border-radius: 14px;
        box-shadow: 0 3px 12px rgba(26, 52, 72, .08);
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: hidden;
        width: 100% !important;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody td {
        align-items: center;
        border: 0 !important;
        border-bottom: 1px solid #eef1f4 !important;
        display: flex !important;
        flex-direction: column;
        gap: .12rem;
        grid-column: span 1;
        justify-content: center;
        min-height: 3.25rem;
        min-width: 0;
        padding: .52rem .62rem !important;
        text-align: left;
        white-space: normal !important;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody td:nth-child(1),
    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody td:nth-child(2) {
        grid-column: span 1;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody td:nth-child(1),
    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody td:nth-child(2) {
        background: #fbfdff;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody td:nth-child(1) {
        border-right: 1px solid #eef1f4 !important;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody td:last-child {
        border-bottom: 0 !important;
        grid-column: 1 / -1;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody td::before {
        color: #647786 !important;
        content: attr(data-mobile-label) !important;
        display: block !important;
        font-size: .58rem !important;
        font-weight: 700;
        line-height: 1.1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody td[data-mobile-label=""]::before,
    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody td:not([data-mobile-label])::before {
        content: none !important;
        display: none !important;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody td > * {
        color: #17212b;
        font-size: .77rem !important;
        line-height: 1.2;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody td:first-child > * {
        color: #103d9c;
        font-size: .85rem !important;
        font-weight: 800;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody td:has(.grid-row-actions) {
        align-items: flex-end;
        background: #fff;
        flex-direction: row;
        justify-content: flex-end;
        min-height: 2.55rem;
        padding: .38rem .55rem !important;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody td .grid-row-actions {
        display: flex;
        gap: .35rem;
        justify-content: flex-end;
        width: 100%;
    }

    dxbl-modal-root .dxbl-popup:has(.mobile-card-grid) .dxbl-grid-table tbody td .grid-row-actions .dxbl-btn {
        min-height: 1.9rem;
        width: auto;
    }
}

/* iOS odak zoom korumasi: popup ve kart icindeki kurallar dahil en son uygulanir. */
@media (max-width: 640px) {
    input,
    select,
    textarea,
    .dxbl-text-edit-input,
    .dxbl-combobox-input,
    .dxbl-spin-edit-input,
    [contenteditable="true"] {
        font-size: 16px !important;
    }
}

/* iOS Safari form odaginda zoom yapmasin. Bu blok, sayfa icindeki daha ozel
   .cached-tab-page-active kurallarindan sonra geldigi icin tum modullerde gecerlidir. */
@media (max-width: 640px) {
    .cached-tab-page-active input,
    .cached-tab-page-active select,
    .cached-tab-page-active textarea,
    .cached-tab-page-active .dxbl-text-edit-input,
    .cached-tab-page-active .dxbl-combobox-input,
    .cached-tab-page-active .dxbl-spin-edit-input,
    dxbl-modal-root input,
    dxbl-modal-root select,
    dxbl-modal-root textarea,
    dxbl-modal-root .dxbl-text-edit-input,
    dxbl-modal-root .dxbl-combobox-input,
    dxbl-modal-root .dxbl-spin-edit-input,
    .dxbl-popup input,
    .dxbl-popup select,
    .dxbl-popup textarea,
    .dxbl-popup .dxbl-text-edit-input,
    .dxbl-popup .dxbl-combobox-input,
    .dxbl-popup .dxbl-spin-edit-input {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}
/* Cek giris bordrosu */
.ciro-portfolio-grid .ciro-selected-row > td,
.ciro-portfolio-grid .ciro-selected-row > [role="gridcell"] {
    background-color: #dcefdc !important;
    color: #174b2a;
    font-weight: 600;
}

.ciro-portfolio-grid .ciro-selected-row:hover > td,
.ciro-portfolio-grid .ciro-selected-row:hover > [role="gridcell"] {
    background-color: #c8e7cc !important;
}

.check-bordro-header .eyebrow {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--accent, #0b63ce);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.check-bordro-form,
.check-line-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}

.check-field {
    min-width: 0;
}

.check-field-wide {
    grid-column: span 2;
}

.check-field-full {
    grid-column: 1 / -1;
}

.check-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted, #627083);
    font-size: 0.76rem;
    font-weight: 700;
}

.required-mark {
    color: #c3272b;
}

.check-field small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted, #627083);
    font-size: 0.72rem;
}

.check-readonly-value {
    min-height: 34px;
    padding: 8px 10px;
    border: 1px solid var(--border, #d8e0ea);
    border-radius: 4px;
    background: var(--surface-subtle, #f5f7fa);
    color: var(--text, #1d2733);
    font-size: 0.84rem;
}

.check-bordro-panel + .check-bordro-panel {
    margin-top: 18px;
}

/* Bordro ust bilgilerini tek bakista okunacak kadar sik tut. */
.check-bordro-top-panel .check-bordro-form {
    gap: 4px 6px;
    padding: 8px 10px;
}

.check-bordro-top-panel .check-field label {
    margin-bottom: 2px;
}

.check-bordro-top-panel .check-field small {
    margin-top: 2px;
}

.check-lines-stack {
    display: grid;
    gap: 16px;
    padding: 16px;
}

.check-line-card {
    overflow: hidden;
    border: 1px solid var(--border, #d8e0ea);
    border-radius: 6px;
    background: var(--surface, #fff);
}

.check-line-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border, #d8e0ea);
    background: var(--surface-subtle, #f5f7fa);
}

.check-line-card-header > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.line-number {
    color: var(--text-muted, #627083);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.check-image-field {
    min-height: 120px;
}

.check-image-preview {
    display: block;
    width: 100%;
    max-width: 220px;
    height: 100px;
    margin-top: 8px;
    border: 1px solid var(--border, #d8e0ea);
    border-radius: 4px;
    object-fit: contain;
    background: #f7f9fb;
}

.check-bordro-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 16px;
}

.check-bordro-summary > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid var(--border, #d8e0ea);
    border-radius: 5px;
    background: var(--surface-subtle, #f5f7fa);
}

.check-bordro-summary span {
    color: var(--text-muted, #627083);
    font-size: 0.72rem;
}

.check-bordro-summary strong {
    color: var(--text, #1d2733);
    font-size: 0.92rem;
}

.check-bordro-actions {
    justify-content: flex-end;
    padding: 0 16px 16px;
}

@media (max-width: 900px) {
    .check-bordro-form,
    .check-line-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .check-bordro-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cari-selection-row {
        align-items: stretch;
        flex-wrap: wrap;
        gap: .25rem;
    }

    .cari-selection-row .field-with-guide {
        flex: 1 1 100%;
        min-width: 0;
    }

    .selected-cari-name {
        flex: 1 1 100%;
        padding-left: .25rem;
        font-size: .78rem;
    }

    .check-bordro-form,
    .check-line-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .check-bordro-top-panel .check-bordro-form {
        gap: 6px;
        padding: 8px;
    }

    .check-field-wide,
    .check-field-full {
        grid-column: auto;
    }

    .check-bordro-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 12px 12px;
    }

    .check-line-card-header {
        align-items: flex-start;
    }

    .check-line-card-header > div {
        flex-direction: column;
        gap: 2px;
    }

    .check-bordro-actions {
        padding: 0 12px 12px;
    }
}

/* Desktop layout: keep the bordro information dense and scan-friendly. */
@media (min-width: 1181px) {
    .check-bordro-panel {
        overflow: hidden;
    }

    .check-bordro-panel .panel-header {
        align-items: center;
        padding: 12px 16px;
    }

    .check-bordro-form,
    .check-line-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 8px 10px;
        padding: 10px 12px;
    }

    .check-bordro-top-panel .check-bordro-form {
        gap: 3px 5px;
        padding: 6px 8px 8px;
    }

    .check-field label {
        font-size: .74rem;
        margin-bottom: 3px;
    }

    .check-field small {
        font-size: .7rem;
        line-height: 1.25;
    }

    .check-line-card-header {
        padding: 9px 12px;
    }

    .check-line-card-header strong {
        font-size: .84rem;
    }

    .check-line-grid {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .check-line-grid .check-field {
        min-width: 0;
    }

    .check-line-grid .check-field label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .check-line-grid .check-image-field {
        grid-column: span 2;
        min-height: 0;
    }

    .check-line-grid .check-image-preview {
        height: 64px;
        margin-top: 4px;
        max-width: 150px;
    }

    .check-bordro-summary {
        gap: 8px;
        padding: 0 16px 12px;
    }

    .check-bordro-summary > div {
        padding: 9px 11px;
    }

    .check-bordro-actions {
        padding: 0 16px 14px;
    }
}

/* Compact entry surface and result grid for check bordros. */
.check-entry-grid-wrap {
    margin: 0 16px 12px;
    border: 1px solid var(--border, #d8e0ea);
    background: var(--surface-subtle, #f7f9fb);
}

.check-entry-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border, #d8e0ea);
}

.check-entry-title strong {
    color: var(--text, #1d2733);
    font-size: .82rem;
}

.check-entry-title span {
    color: var(--text-muted, #627083);
    font-size: .72rem;
}

.check-entry-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 7px 9px;
    padding: 10px;
}

.check-entry-field-wide {
    grid-column: span 2;
}

.check-entry-grid .check-field label {
    margin-bottom: 2px;
    font-size: .7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.check-entry-grid .check-image-field {
    min-height: 0;
}

.check-entry-grid .check-image-preview {
    height: 52px;
    margin-top: 3px;
    max-width: 120px;
}

.check-entry-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    padding: 0 10px 10px;
}

.check-lines-grid-wrap {
    margin: 0 16px 12px;
    overflow-x: auto;
    border: 1px solid var(--border, #d8e0ea);
}

.check-lines-grid {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: var(--surface, #fff);
    font-size: .75rem;
}

.check-lines-grid th,
.check-lines-grid td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    text-align: left;
    vertical-align: middle;
}

.check-lines-grid th {
    background: var(--surface-subtle, #f5f7fa);
    color: var(--text-muted, #627083);
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}

.check-lines-grid td strong,
.check-lines-grid td small {
    display: block;
}

.check-lines-grid td small {
    color: var(--text-muted, #627083);
    font-size: .66rem;
    margin-top: 2px;
}

.check-lines-grid tbody tr {
    cursor: pointer;
}

.check-lines-grid tbody tr:hover {
    background: #f0f6ff;
}

.check-grid-actions {
    white-space: nowrap;
}

.check-grid-actions .dxbl-btn {
    margin-right: 3px;
}

.payment-grid-actions {
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.3rem;
    justify-content: flex-end;
    min-width: 7rem;
}

.payment-grid-actions .payment-action-button {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    min-width: 2rem;
    padding: 0.2rem;
    width: 2rem;
}

.payment-grid-actions .payment-action-button .dxbl-btn-text {
    display: none;
}

.payment-grid-actions .payment-action-delete {
    color: #a31d2d;
}

.check-status-badge {
    display: inline-block;
    padding: 3px 6px;
    border: 1px solid #b9ddc8;
    border-radius: 999px;
    background: #edf8f1;
    color: #28764a;
    font-size: .65rem;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .check-entry-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .check-entry-grid-wrap,
    .check-lines-grid-wrap {
        margin-left: 12px;
        margin-right: 12px;
    }

    .check-entry-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .check-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 9px;
    }

    .check-entry-field-wide {
        grid-column: span 2;
    }

    .check-entry-actions {
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .check-entry-actions > * {
        flex: 1 1 100%;
    }
}
/* Virman fis formu: alanlari islevsel gruplara ayir ve rehberli alanlari daraltma. */
.virman-document-form,
.virman-entry-form {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

.virman-entry-box {
    background: #f8fafc;
    border: 1px solid #d6e0ea;
    margin-top: .85rem;
    min-width: 0;
}

.virman-entry-box > .compact-panel-header {
    margin: 0;
}

.virman-entry-form {
    border-top: 1px solid #e1e8f0;
    padding: .65rem .8rem .75rem;
}

.virman-entry-form + .virman-entry-form {
    padding-top: .35rem;
}

.virman-entry-form .dxbl-fl-item,
.virman-entry-form .dxbl-fl-ctrl,
.virman-entry-form .dxbl-fl-ctrl > *,
.virman-entry-form .form-select,
.virman-entry-form .field-with-guide {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.virman-entry-form .dxbl-fl-ctrl,
.virman-entry-form .dxbl-fl-ctrl > *,
.virman-entry-form .form-select {
    width: 100%;
}

.virman-entry-form .form-select,
.virman-entry-form .dxbl-text-edit,
.virman-entry-form .dxbl-btn {
    min-height: 1.85rem;
}

.virman-entry-form .form-select,
.virman-entry-form .dxbl-text-edit {
    height: 1.85rem;
}

.virman-entry-form .virman-compact-select {
    font-size: .78rem;
    line-height: 1.1;
    padding: .15rem 1.65rem .15rem .45rem;
}

.virman-entry-form .dxbl-text-edit,
.virman-entry-form .dxbl-spin-edit {
    width: 100%;
}

.virman-entry-form .dxbl-spin-edit {
    height: 1.85rem;
    min-height: 1.85rem;
}

.virman-entry-form .dxbl-spin-edit-input {
    box-sizing: border-box;
    height: 1.85rem;
    min-height: 1.85rem;
}

.virman-entry-form .field-with-guide {
    align-items: center;
    display: flex;
    gap: .35rem;
    width: 100%;
}

.virman-entry-form .field-with-guide > :first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.virman-entry-form .field-with-guide > .dxbl-btn {
    flex: 0 0 2.1rem;
    min-width: 2.1rem;
    height: 1.85rem;
    min-height: 1.85rem;
    padding-left: .2rem;
    padding-right: .2rem;
}

.virman-entry-form .dxbl-fl-item > label,
.virman-entry-form .dxbl-fl-item .dxbl-fl-ctrl-label {
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.virman-meta-form .form-status {
    background: #f1f5f9;
    border: 1px solid #d7e1eb;
    display: block;
    min-height: 2.15rem;
    padding: .48rem .65rem;
}

.virman-meta-form .dxbl-fl-item:last-child .dxbl-btn {
    min-height: 1.85rem;
    width: 100%;
}

@media (max-width: 820px) {
    .virman-entry-form .dxbl-fl-item {
        flex-basis: 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 560px) {
    .virman-document-form .dxbl-fl-item,
    .virman-entry-form .dxbl-fl-item {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }

    .virman-entry-form {
        padding-left: .55rem;
        padding-right: .55rem;
    }
}
/* Virman toplamlarini cari hareket ozet kartlariyla ayni yuzeyde goster. */
.virman-totals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.virman-totals .movement-summary-item {
    min-height: 4rem;
    padding: .7rem .8rem;
}

.virman-totals .movement-summary-item span {
    font-weight: 600;
}

.virman-totals .movement-summary-item strong {
    font-size: 1.1rem;
    margin-left: auto;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .virman-totals {
        grid-template-columns: 1fr;
    }
}

/* AI grid raporlarinda planin ve rapor sonucunun taranabilir yuzeyleri. */
.ai-grid-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: flex-end;
}

.ai-grid-toolbar .panel-header-status {
    margin-left: .15rem;
}

.ai-report-plan-grid,
.ai-grid-summary-grid {
    display: grid;
    gap: .7rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ai-report-plan-card,
.ai-grid-summary-card {
    background: #f8fafc;
    border: 1px solid #d8e1ea;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
    padding: .75rem .85rem;
}

.ai-report-plan-card h3 {
    color: #183b56;
    font-size: .82rem;
    margin: 0;
}

.ai-report-filters-card {
    grid-column: 1 / -1;
}

.ai-report-master-detail-card {
    border-left: 3px solid #c51f2d;
    grid-column: 1 / -1;
}

.ai-report-detail-link-editor {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    margin-top: 14px;
}

.ai-report-detail-summary {
    color: #59636e;
    display: flex;
    flex-wrap: wrap;
    font-size: .88rem;
    gap: 8px 20px;
    margin-top: 12px;
}

.ai-report-filter-card-header {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.ai-report-filter-card-header > div {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.ai-report-filter-editor {
    display: grid;
    gap: .55rem;
    margin-top: .45rem;
}

.ai-report-filter-row {
    align-items: end;
    display: grid;
    gap: .5rem;
    grid-template-columns: minmax(150px, 1.2fr) minmax(130px, .9fr) minmax(110px, .75fr) minmax(170px, 1.3fr) auto;
}

.ai-report-filter-row .cash-filter-field {
    min-width: 0;
}

.ai-report-filter-row > .dxbl-btn {
    margin-bottom: .05rem;
}

.ai-report-plan-card span,
.ai-grid-summary-card span,
.ai-grid-summary-card small {
    color: #637386;
    font-size: .76rem;
}

@media (max-width: 900px) {
    .ai-report-detail-link-editor {
        grid-template-columns: 1fr;
    }

    .ai-report-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-report-filter-row > .dxbl-btn {
        justify-self: start;
    }
}

.ai-report-approval-note,
.ai-grid-report-note {
    background: #fff8e8;
    border: 1px solid #f0d596;
    border-radius: 6px;
    color: #6a5018;
    font-size: .82rem;
    margin-top: .8rem;
    padding: .7rem .85rem;
}

.ai-report-version-panel {
    background: #f8fafc;
    border: 1px solid #d8e1ea;
    border-left: 3px solid #c51f2d;
    border-radius: 6px;
    margin: .75rem 0;
    padding: .75rem .85rem;
}

.ai-report-version-header,
.ai-report-version-row {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.ai-report-version-header > div,
.ai-report-version-row > div:first-child {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .8rem;
    min-width: 0;
}

.ai-report-version-header .panel-context {
    margin-left: .25rem;
}

.ai-report-version-list {
    display: grid;
    gap: .35rem;
    margin-top: .65rem;
}

.ai-report-version-row {
    background: #fff;
    border: 1px solid #e1e7ee;
    border-radius: 5px;
    padding: .45rem .55rem;
}

.ai-report-version-row > div:first-child span {
    color: #637386;
    font-size: .78rem;
}

@media (max-width: 700px) {
    .ai-report-version-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.ai-grid-filter-bar {
    align-items: end;
    background: #f5f8fb;
    border-bottom: 1px solid #d8e1ea;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    padding: .75rem .85rem;
}

.ai-grid-active-filter {
    background: #fff8e8;
    border-top: 1px solid #f0d596;
    color: #6a5018;
    font-size: .78rem;
    line-height: 1.45;
    padding: .55rem .85rem;
}

.ai-grid-filter-input-group {
    display: flex;
    align-items: stretch;
    gap: .25rem;
}

.ai-grid-filter-input-group .form-control {
    min-width: 0;
}

.ai-grid-guide-toolbar {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-bottom: .75rem;
}

.ai-grid-guide-toolbar .dxbl-text-edit {
    flex: 1 1 auto;
}

.ai-report-guides-card {
    grid-column: 1 / -1;
}

.ai-report-guide-editor {
    display: grid;
    gap: .65rem;
}

.ai-report-guide-row {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(180px, 1.3fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) auto auto;
    gap: .55rem;
    align-items: end;
    border-top: 1px solid #e6ebf0;
    padding-top: .65rem;
}

.ai-report-guide-multiple {
    white-space: nowrap;
    padding-bottom: .45rem;
}

@media (max-width: 1200px) {
    .ai-report-guide-row {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 720px) {
    .ai-report-guide-row {
        grid-template-columns: 1fr;
    }
}

.ai-grid-filter-heading {
    align-self: center;
    color: #183b56;
    font-size: .82rem;
    font-weight: 700;
    margin-right: .15rem;
}

.ai-grid-filter-field {
    display: flex;
    flex: 1 1 180px;
    flex-direction: column;
    gap: .25rem;
    max-width: 280px;
}

.ai-grid-filter-field span {
    color: #637386;
    font-size: .72rem;
    font-weight: 600;
}

.ai-grid-filter-field .form-control {
    min-height: 2rem;
    padding: .32rem .55rem;
}

.ai-grid-clear-filter {
    min-height: 2rem;
}

.ai-grid-summary-grid {
    border-bottom: 1px solid #d8e1ea;
    padding: .75rem .85rem;
}

.ai-grid-summary-card strong {
    color: #153b58;
    font-size: 1.08rem;
}

.ai-grid-summary-card small {
    font-size: .68rem;
}

.ai-grid-summary-empty {
    color: #637386;
    font-size: .8rem;
    padding: .55rem .1rem;
}

.ai-grid-cell {
    border-radius: 3px;
    display: block;
    min-height: 1.45rem;
    padding: .18rem .28rem;
    white-space: nowrap;
}

.ai-grid-link {
    color: #a71929;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.ai-grid-link:hover {
    color: #70101c;
}

.ai-grid-no-link {
    color: #637386;
    font-size: .78rem;
}

.ai-grid-detail-panel {
    background: #f7fafc;
    border-left: 3px solid #c51f2d;
    margin: .35rem .75rem .65rem 2.5rem;
    padding: .7rem;
}

.ai-grid-detail-header {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin-bottom: .55rem;
}

.ai-grid-detail-header > div {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.ai-grid-detail-header span,
.ai-grid-detail-empty {
    color: #637386;
    font-size: .78rem;
}

.ai-grid-detail-empty {
    padding: .65rem .25rem;
}

.ai-grid-detail-grid .dxbl-grid-content {
    overflow-x: auto;
}

.ai-grid-detail-grid .dxbl-grid-table {
    min-width: max-content;
}

.ai-grid-detail-grid .dxbl-grid-table th,
.ai-grid-detail-grid .dxbl-grid-table td {
    white-space: nowrap;
}

/* AI rapor kolonlari bagimsiz genisleyebilsin; genis raporlarda yatay kaydirma kullanilir. */
.ai-result-grid .dxbl-grid-content {
    overflow-x: auto;
}

.ai-result-grid .dxbl-grid-table {
    min-width: max-content;
}

.ai-result-grid .dxbl-grid-table th,
.ai-result-grid .dxbl-grid-table td {
    white-space: nowrap;
}

.ai-grid-group-summary-list {
    border-top: 1px solid #d8e1ea;
    margin-top: .75rem;
}

.ai-grid-group-summary-heading,
.ai-grid-group-summary {
    align-items: center;
    display: flex;
    gap: .8rem;
    justify-content: space-between;
    padding: .62rem .85rem;
}

.ai-grid-group-summary-heading {
    background: #eef4f8;
    color: #183b56;
    font-size: .8rem;
}

.ai-grid-group-summary-heading span {
    color: #637386;
    font-size: .72rem;
}

.ai-grid-group-summary {
    border-bottom: 1px solid #e1e8ef;
    font-size: .78rem;
}

.ai-grid-group-label {
    color: #294b63;
    font-weight: 600;
    min-width: 220px;
}

.ai-grid-group-values {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    justify-content: flex-end;
}

.ai-grid-group-values span {
    color: #536779;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .ai-grid-group-summary,
    .ai-grid-group-summary-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ai-grid-group-label {
        min-width: 0;
    }

    .ai-grid-group-values {
        justify-content: flex-start;
    }
}
/* Ozel form tasarim ve calistirma yuzeyi */
.ozel-form-designer-layout {
    display: grid;
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.ozel-form-settings-panel, .ozel-form-canvas-panel, .ozel-form-ai-panel, .ozel-form-list-panel, .ozel-form-runtime-panel { min-width: 0; }
.form-stack { display: grid; gap: 7px; padding: 14px; }
.form-stack label, .property-editor-grid label, .ozel-form-runtime-field > label { font-size: .78rem; font-weight: 600; color: #425466; }
.form-control { width: 100%; min-height: 34px; border: 1px solid #cbd5df; border-radius: 4px; padding: 6px 9px; background: #fff; color: #1f2933; }
textarea.form-control { resize: vertical; }
.ozel-form-subheader { margin-top: 4px; }
.ozel-form-palette { display: grid; gap: 6px; padding: 12px; }
.ozel-form-palette-item { display: flex; align-items: center; gap: 9px; border: 1px solid #d7e0e8; background: #fff; border-radius: 5px; padding: 8px; text-align: left; cursor: grab; }
.ozel-form-palette-item:hover { border-color: #e8751a; background: #fff8f0; }
.ozel-form-palette-icon { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; background: #fff0df; color: #b95000; font-weight: 700; }
.ozel-form-palette-item strong, .ozel-form-palette-item small { display: block; }
.ozel-form-palette-item strong { font-size: .8rem; }
.ozel-form-palette-item small { color: #687783; font-size: .7rem; margin-top: 2px; }
.ozel-form-canvas { min-height: 360px; padding: 14px; background: #f7f9fb; }
.ozel-form-drop-empty { border: 1px dashed #e8751a; border-radius: 6px; min-height: 180px; display: grid; place-items: center; color: #687783; background: #fffaf4; }
.ozel-form-section { margin-bottom: 13px; border: 1px solid #d4dee7; border-radius: 5px; background: #fff; overflow: hidden; }
.ozel-form-section-selected { border-color: #e8751a; box-shadow: 0 0 0 2px rgba(232,117,26,.12); }
.ozel-form-section-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: #edf3f7; border-bottom: 1px solid #d4dee7; }
.ozel-form-section-title { border: 0; background: transparent; font-weight: 700; color: #243b53; min-width: 0; width: 100%; }
.ozel-form-inline-actions { display: flex; gap: 5px; align-items: center; }
.icon-button { border: 1px solid #ccd6df; border-radius: 4px; background: #fff; min-width: 25px; height: 25px; cursor: pointer; }
.icon-button.danger { color: #b42318; }
.ozel-form-fields-grid, .ozel-form-runtime-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.ozel-form-field-card { min-height: 72px; border: 1px solid #cbd8e2; border-radius: 5px; background: #fbfdff; padding: 9px; text-align: left; cursor: pointer; }
.ozel-form-field-card:hover, .ozel-form-field-selected { border-color: #e8751a; background: #fff7ee; }
.ozel-form-field-card strong, .ozel-form-field-card small, .ozel-form-field-card em { display: block; }
.ozel-form-field-card strong { font-size: .82rem; color: #1f2933; }
.ozel-form-field-card small { color: #687783; font-size: .7rem; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ozel-form-field-card em { color: #b95000; font-size: .68rem; margin-top: 4px; font-style: normal; }
.ozel-form-field-type { display: inline-block; color: #b95000; font-size: .64rem; text-transform: uppercase; margin-bottom: 4px; }
.ozel-form-section-drop { padding: 7px 10px; color: #8896a3; border-top: 1px dashed #d9e2ea; font-size: .72rem; text-align: center; }
.ozel-form-property-editor { border-top: 1px solid #d4dee7; padding: 13px 14px; background: #fffaf4; }
.property-editor-title { display: flex; justify-content: space-between; margin-bottom: 9px; color: #243b53; }
.property-editor-title span { color: #b95000; font-size: .75rem; }
.property-editor-grid { display: grid; grid-template-columns: 2fr 2fr 1fr auto; gap: 9px; align-items: end; margin-bottom: 10px; }
.property-editor-grid > div { display: grid; gap: 5px; }
.property-editor-wide { grid-column: 1 / -1; }
.property-checkbox { display: flex; gap: 6px; align-items: center; white-space: nowrap; padding-bottom: 8px; }
.ozel-form-ai-panel { margin-top: 16px; }
.ozel-form-ai-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px; align-items: end; }
.ozel-form-table-wrap { overflow-x: auto; padding: 0 14px 14px; }
.erp-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.erp-table th, .erp-table td { border-bottom: 1px solid #e1e7ec; padding: 9px 8px; text-align: left; white-space: nowrap; }
.erp-table th { background: #f1f5f8; color: #425466; font-weight: 700; }
.erp-table td small { display: block; color: #8896a3; margin-top: 3px; font-size: .7rem; }
.ozel-form-actions-cell { text-align: right !important; }
.ozel-form-actions-cell .btn { margin-left: 4px; }
.ozel-form-runtime-section { padding: 14px; border-bottom: 1px solid #e1e7ec; }
.ozel-form-runtime-section h3 { margin: 0 0 10px; font-size: 1rem; color: #243b53; }
.ozel-form-runtime-field { min-width: 0; display: grid; gap: 5px; }
.ozel-form-runtime-field small { color: #788896; font-size: .7rem; }
.required-star { color: #b42318; }
.runtime-checkbox { display: flex; align-items: center; gap: 7px; min-height: 34px; }
.runtime-grid-placeholder { min-height: 90px; border: 1px dashed #cbd5df; border-radius: 4px; padding: 10px; color: #425466; background: #f8fafb; }
.runtime-grid-placeholder small { color: #788896; }
.ozel-form-records { padding: 14px; background: #f7f9fb; border-top: 1px solid #d4dee7; }
.ozel-form-records-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ozel-form-records-header h3 { margin: 0; font-size: .95rem; color: #243b53; }
.ozel-form-record-table { background: #fff; }
.ozel-form-record-table tr.selected-row td { background: #fff4e8; }
.empty-state.compact { min-height: 70px; padding: 18px; }
@media (max-width: 960px) {
    .ozel-form-designer-layout { grid-template-columns: 1fr; }
    .property-editor-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .ozel-form-fields-grid, .ozel-form-runtime-grid { grid-template-columns: 1fr; }
    .ozel-form-field-card { grid-column: span 1 !important; }
    .ozel-form-ai-row, .property-editor-grid { grid-template-columns: 1fr; }
}
/* Merkezi destek ekranı */
.destek-layout {
    align-items: start;
}

.support-message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    margin: 18px 0;
    padding: 4px;
}

.support-message {
    border: 1px solid #d8e0e8;
    border-left: 4px solid #e07019;
    background: #fffaf5;
    padding: 10px 12px;
}

.support-message-user {
    border-left-color: #177e89;
    background: #f2fbfc;
}

.support-message-support {
    border-left-color: #e07019;
}

.support-ai-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.support-message strong {
    display: inline-block;
    margin-right: 10px;
}

.support-message small {
    color: #687684;
}

.support-message p {
    margin: 6px 0 0;
    white-space: pre-wrap;
}

.support-message-attachments,
.support-selected-files,
.support-attachment-editor {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.support-message-attachments {
    margin-top: 10px;
}

.support-attachment,
.support-selected-file {
    background: #fff;
    border: 1px solid #cbd7e2;
    color: #245d82;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    text-decoration: none;
}

.support-selected-file button {
    background: transparent;
    border: 0;
    color: #a33434;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
}

.support-file-picker {
    background: #fff4e8;
    border: 1px solid #e07019;
    color: #8c4614;
    cursor: pointer;
    display: inline-flex;
    font-weight: 600;
    padding: 6px 10px;
}

.support-file-picker input[type="file"] {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.support-attachment-editor {
    margin-top: 10px;
}

.support-selected-files {
    margin-top: 8px;
}

.support-status-filter {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .65rem .85rem;
    border-bottom: 1px solid #d8e0e8;
    background: #fbfcfd;
}

.support-status-filter-button {
    font-size: .78rem;
}

.support-platform-filter {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .65rem .85rem 0;
    background: #fbfcfd;
}

.support-platform-filter-button {
    border: 1px solid #d5dde7;
    border-radius: 999px;
    padding: .28rem .7rem;
    background: #fff;
    color: #526577;
    cursor: pointer;
    font-size: .78rem;
}

.support-platform-filter-button.active {
    border-color: #c94b3d;
    background: #fff1ee;
    color: #b74336;
    font-weight: 700;
}
.report-filter-screen {
    padding: 24px;
}

.report-filter-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.report-filter-screen-header h2 {
    margin: 0 0 4px;
}

.report-filter-screen-header p {
    margin: 0;
    color: var(--text-muted, #667085);
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.report-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-filter-field span {
    font-size: .85rem;
    font-weight: 600;
}

.report-filter-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.report-filter-control .form-control {
    min-width: 0;
    flex: 1 1 auto;
}

.report-filter-control .dxbl-btn {
    flex: 0 0 auto;
}

.report-guide-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.report-guide-toolbar .dxbl-text-edit {
    flex: 1 1 auto;
}

.report-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
}

.ai-report-manual-note {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px;
    padding: 9px 12px;
    border-left: 3px solid #e87518;
    background: #fff7ed;
    color: #5c3b20;
    font-size: .84rem;
}

.ai-report-manual-note strong {
    color: #a84e0b;
}

.ai-report-column-order-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mail-user-assignment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--erp-border, #d7dee8);
    background: #fbfcfe;
}

.mail-user-assignment-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    column-gap: 8px;
    row-gap: 1px;
    padding: 7px 9px;
    border: 1px solid #e1e6ee;
    background: #fff;
    cursor: pointer;
}

.mail-user-assignment-item small {
    grid-column: 2;
    color: #6b7788;
    font-size: 11px;
}

.mail-default-user-grid {
    display: grid;
    gap: 8px;
}

.mail-default-user-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 360px);
    align-items: center;
    gap: 16px;
    padding: 8px 10px;
    border-bottom: 1px solid #e6eaf0;
}

.mail-default-user-row small {
    display: block;
    color: #6b7788;
    font-size: 11px;
}

.mail-test-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.mail-signature-editor-card {
    border: 1px solid #c8d0dc;
    background: #fff;
}

.mail-signature-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-bottom: 1px solid #e1e6ee;
    background: #f6f8fb;
}

.mail-signature-tool {
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #c8d0dc;
    background: #fff;
    color: #26384b;
    cursor: pointer;
    font-size: 12px;
}

.mail-signature-tool:hover,
.mail-signature-tool:focus-visible {
    border-color: #e87517;
    color: #a84e0b;
    outline: none;
}

.mail-signature-tool-strong {
    font-weight: 700;
}

.mail-signature-tool-italic {
    font-style: italic;
}

.mail-signature-tool-underline {
    text-decoration: underline;
}

.mail-signature-toolbar-divider {
    width: 1px;
    height: 22px;
    margin: 0 3px;
    background: #d7dee8;
}

.mail-signature-editor,
.mail-signature-source {
    width: 100%;
    min-height: 190px;
    padding: 12px;
    border: 0;
    background: #fff;
    color: #1f2d3d;
    font-size: 13px;
    line-height: 1.5;
}

.mail-signature-editor {
    overflow: auto;
    outline: none;
}

.mail-signature-editor:focus {
    box-shadow: inset 0 0 0 2px rgba(232, 117, 23, .25);
}

.mail-signature-editor:empty::before {
    content: "Imzanizi buraya yazin...";
    color: #8a96a5;
    pointer-events: none;
}

.mail-signature-source {
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    outline: none;
}

.mail-signature-source:focus {
    box-shadow: inset 0 0 0 2px rgba(232, 117, 23, .25);
}

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

.mail-signature-preview {
    min-height: 70px;
    padding: 12px;
    border: 1px dashed #c8d0dc;
    background: #fff;
}

@media (max-width: 900px) {
    .mail-default-user-row,
    .mail-test-bar {
        grid-template-columns: 1fr;
    }
}

.release-notes-counters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}

.release-note-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 10px 14px;
    border: 1px solid #d5dde7;
    border-left: 4px solid #66788a;
    background: #fff;
}

.release-note-counter strong {
    color: #1d2b3a;
    font-size: 20px;
}

.release-note-counter span {
    color: #637487;
    font-size: 12px;
}

.release-note-counter small {
    color: #8795a3;
    font-size: 11px;
}

.release-note-counter-new {
    border-left-color: #e87517;
}

.release-note-counter-fix {
    border-left-color: #c44747;
}

.release-note-counter-feature {
    border-left-color: #198754;
}

.release-note-counter-web {
    border-left-color: #2d6cdf;
}

.release-note-counter-mobile {
    border-left-color: #7b52ab;
}

.release-notes-filters {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #d5dde7;
    border-bottom: 1px solid #d5dde7;
    background: #f7f9fb;
}

.release-notes-grid .release-note-type {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.release-note-platform {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
}

.release-note-platform-web {
    color: #2458a6;
    background: #e7f0ff;
}

.release-note-platform-mobil {
    color: #69439b;
    background: #f0e9fb;
}

.release-note-type-yenilik {
    color: #17643a;
    background: #e2f3e9;
}

.release-note-type-gelistirme {
    color: #875213;
    background: #fff0dc;
}

.release-note-type-hatadueltme {
    color: #922e2e;
    background: #fde5e5;
}

.release-note-detail-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid #d5dde7;
    background: #f7f9fb;
}

.release-note-detail-summary div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.release-note-detail-summary span {
    color: #66788a;
    font-size: 11px;
}

.release-note-detail-summary strong {
    color: #1d2b3a;
    font-size: 13px;
}

.release-note-detail-section {
    margin-top: 14px;
}

.release-note-detail-section h3 {
    margin: 0 0 6px;
    color: #1d2b3a;
    font-size: 14px;
}

.session-loading-screen {
    align-items: center;
    background: #f7f9fb;
    display: flex;
    height: 100vh;
    justify-content: center;
    min-height: 240px;
    width: 100%;
}

.session-loading-card {
    align-items: center;
    color: #506174;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    text-align: center;
}

.session-loading-card strong {
    color: #1b2635;
    font-size: 1.05rem;
    font-weight: 600;
}

.session-loading-card > span:last-child {
    font-size: .85rem;
}

.session-loading-spinner {
    animation: session-loading-spin .8s linear infinite;
    border: 3px solid #d5dde6;
    border-radius: 50%;
    border-top-color: #e87516;
    height: 34px;
    width: 34px;
}

.database-backup-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0;
}

.database-backup-summary > div {
    background: #f7f9fb;
    border: 1px solid #d7e0e8;
    padding: 12px 14px;
}

.database-backup-summary span,
.database-backup-summary strong {
    display: block;
}

.database-backup-summary span {
    color: #66788a;
    font-size: 12px;
    margin-bottom: 4px;
}

.database-backup-summary strong {
    color: #1d2b3a;
    overflow-wrap: anywhere;
}

.database-backup-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.database-backup-progress,
.database-backup-permission-warning {
    color: #506174;
    font-size: 13px;
}

.database-backup-permission-warning {
    color: #9a4d00;
}

.database-backup-list {
    margin-top: 22px;
}

.database-backup-list-header {
    align-items: end;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.database-backup-list-header h3 {
    color: #1d2b3a;
    font-size: 16px;
    margin: 0 0 4px;
}

.database-backup-list-header span,
.database-backup-list-header strong {
    color: #66788a;
    font-size: 12px;
}

.database-backup-list-header strong {
    white-space: nowrap;
}

.database-backup-empty {
    border: 1px dashed #c8d3df;
    color: #66788a;
    padding: 18px;
    text-align: center;
}

.database-backup-grid {
    min-height: 240px;
}

.database-restore-panel {
    border-left: 3px solid #c0392b;
}

.database-restore-loading {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(17, 24, 39, 0.48);
}

.database-restore-loading-card {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    min-width: min(360px, 100%);
    padding: 1.5rem 1.75rem;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
    text-align: center;
}

.database-restore-loading-card strong {
    font-size: 1rem;
}

.database-restore-loading-card span:not(.database-restore-spinner) {
    color: #4b5563;
}

.database-restore-loading-card small {
    max-width: 320px;
    color: #6b7280;
    line-height: 1.45;
}

.database-restore-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #fed7aa;
    border-top-color: #f97316;
    border-radius: 50%;
    animation: database-restore-spin 0.8s linear infinite;
}

@keyframes database-restore-spin {
    to {
        transform: rotate(360deg);
    }
}

.database-restore-warning {
    background: #fff7ed;
    border: 1px solid #f1c79b;
    color: #714214;
    display: grid;
    gap: 4px;
    margin: 16px 0;
    padding: 12px 14px;
}

.database-restore-warning strong {
    color: #8f351f;
}

.database-restore-actions {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.database-restore-file-picker {
    display: grid;
    gap: 5px;
    min-width: min(420px, 100%);
}

.database-restore-file-picker label {
    color: #34495e;
    font-size: 13px;
    font-weight: 600;
}

.database-restore-selected-file {
    color: #506174;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.restore-confirmation {
    color: #34495e;
    line-height: 1.5;
}

.restore-confirmation p {
    margin: 0 0 12px;
}

.restore-confirmation p:last-child {
    margin-bottom: 0;
}

.restore-confirmation-danger {
    color: #a93226;
    font-weight: 600;
}

.restore-confirmation-password {
    display: grid;
    gap: 6px;
    margin-top: 16px;
}

.restore-confirmation-password label {
    color: #34495e;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 700px) {
    .database-backup-summary {
        grid-template-columns: 1fr;
    }

    .database-backup-list-header {
        align-items: start;
        flex-direction: column;
        gap: 4px;
    }

    .database-restore-file-picker {
        min-width: 100%;
    }
}

@keyframes session-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.release-note-detail-section p {
    margin: 0;
    color: #3e4c5c;
    line-height: 1.55;
    white-space: pre-wrap;
}

@media (max-width: 900px) {
    .release-notes-filters,
    .release-note-detail-summary {
        grid-template-columns: 1fr;
    }

    .release-notes-counters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .giden-ebelge-filter-groups,
    .giden-ebelge-search-bar {
        grid-template-columns: 1fr;
    }

    .giden-ebelge-summary-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }
}

@media (max-width: 640px) {
    .giden-ebelge-filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .2rem;
        scrollbar-width: none;
    }

    .giden-ebelge-filter-row::-webkit-scrollbar {
        display: none;
    }

    .giden-ebelge-filter-pill {
        flex: 0 0 auto;
    }

    .giden-ebelge-summary-values {
        gap: .35rem;
    }

    .giden-ebelge-summary-values > div {
        padding: .55rem;
    }
}
