html, body {
    font-family: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

:root {
    --app-primary: var(--primary-bg-color, #6c5ffc);
    --app-primary-hover: var(--primary-bg-hover, #233ac5);
    --app-sidebar-width: 260px;
    --app-header-height: 64px;
    --app-bg: #f1f4fb;
    --app-border: #e9edf4;
    --app-page-bg: #f1f4fb;
    --app-text: #1d212f;
    --app-muted: #6b7280;
}

body.app-theme {
    background: var(--app-page-bg);
    color: var(--app-text);
}

#blazor-error-ui {
    background: #fff3cd;
    border-top: 1px solid #ffe69c;
    bottom: 0;
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.12);
    color: #664d03;
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    right: 0;
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.65rem;
}

a {
    color: var(--app-primary);
}

a:focus,
.app-button:focus,
.app-button-link:focus,
.app-control:focus {
    outline: 0;
    box-shadow: 0 0 0 0.12rem rgba(108, 95, 252, .22);
}

.content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.app-main,
.app-content {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

body.app-theme .app-paper {
    background: #fff;
    color: var(--app-text);
}

.app-button,
.app-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 31px;
    padding: .22rem .65rem;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
    cursor: pointer;
}

.app-button-primary {
    border-color: var(--app-primary);
    background: var(--app-primary);
    color: #fff;
}

.app-button-outline {
    background: transparent;
    color: var(--app-primary);
}

.app-button-link {
    border-color: transparent;
    color: var(--app-primary);
    text-decoration: none;
}

.app-button-sm {
    min-height: 30px;
    padding: .2rem .6rem;
    font-size: .78rem;
}

.app-button-lg {
    min-height: 44px;
    padding: .55rem 1rem;
    font-size: 1rem;
}

.app-label {
    display: inline-block;
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.app-control {
    display: block;
    width: 100%;
    min-height: 34px;
    padding: 0.375rem 0.75rem;
    border: 1px solid #d8dde8;
    border-radius: 4px;
    background: #fff;
    color: var(--app-text);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.app-control-sm {
    min-height: 31px;
    padding: 0.22rem 0.55rem;
}

.app-control:focus {
    border-color: var(--app-primary);
    outline: 0;
    box-shadow: 0 0 0 0.12rem rgba(108, 95, 252, .18);
}

.app-select {
    appearance: auto;
}

body.app-theme .app-check {
    display: flex;
    min-height: 1.5rem;
    align-items: center;
    gap: 0.45rem;
    padding-left: 0;
}

.app-table-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--app-border);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(31, 45, 61, 0.05);
    -webkit-overflow-scrolling: touch;
}

body.app-theme .app-table {
    width: 100%;
    min-width: 760px;
    color: var(--app-text);
    font-size: 0.8125rem;
    border: 0;
    border-collapse: collapse;
}

body.app-theme .app-table thead {
    background: #f8f9fc;
}

body.app-theme .app-table th {
    height: 38px;
    border-bottom: 1px solid var(--app-border);
    color: #4b5563;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

body.app-theme .app-table td {
    height: 38px;
    border-bottom: 1px solid #eef2f7;
    color: #1f2937;
    vertical-align: middle;
}

body.app-theme .app-table tbody tr:last-child td {
    border-bottom: 0;
}

body.app-theme .app-table tbody tr:hover {
    background: #fafbff;
}

body.app-theme .app-table-hover tbody tr:hover {
    background: #fafbff;
}

body.app-theme .app-table .app-text-end {
    white-space: nowrap;
}

body.app-theme .app-table .rz-button + .rz-button,
body.app-theme .app-table .app-button + .app-button {
    margin-left: 0.35rem;
}

body.app-theme .app-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: inherit;
}

.align-center {
    align-items: center !important;
}

.app-flex {
    display: flex !important;
}

.app-block {
    display: block !important;
}

.app-w-100 {
    width: 100% !important;
}

.app-gap-2 {
    gap: .5rem !important;
}

.justify-center {
    justify-content: center !important;
}

.justify-end {
    justify-content: flex-end !important;
}

.app-text-start { text-align: left !important; }
.app-text-end { text-align: right !important; }
.app-text-center { text-align: center !important; }
.app-muted { color: var(--app-muted) !important; }

.app-mt-2 { margin-top: .5rem !important; }
.app-mt-3 { margin-top: 1rem !important; }
.app-mt-4 { margin-top: 1.5rem !important; }
.app-mb-2 { margin-bottom: .5rem !important; }
.app-mb-3 { margin-bottom: 1rem !important; }
.app-mb-4 { margin-bottom: 1.5rem !important; }
.app-me-2 { margin-right: .5rem !important; }
.app-ms-2 { margin-left: .5rem !important; }

.app-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.app-grid > * {
    min-width: 0;
}

.app-col {
    grid-column: span 12;
}

.app-col-1 { grid-column: span 1; }
.app-col-2 { grid-column: span 2; }
.app-col-3 { grid-column: span 3; }
.app-col-4 { grid-column: span 4; }
.app-col-5 { grid-column: span 5; }
.app-col-6 { grid-column: span 6; }
.app-col-7 { grid-column: span 7; }
.app-col-8 { grid-column: span 8; }
.app-col-9 { grid-column: span 9; }
.app-col-10 { grid-column: span 10; }
.app-col-11 { grid-column: span 11; }
.app-col-12 { grid-column: span 12; }

@media (min-width: 576px) {
    .app-col-sm-1 { grid-column: span 1; }
    .app-col-sm-2 { grid-column: span 2; }
    .app-col-sm-3 { grid-column: span 3; }
    .app-col-sm-4 { grid-column: span 4; }
    .app-col-sm-5 { grid-column: span 5; }
    .app-col-sm-6 { grid-column: span 6; }
    .app-col-sm-7 { grid-column: span 7; }
    .app-col-sm-8 { grid-column: span 8; }
    .app-col-sm-9 { grid-column: span 9; }
    .app-col-sm-10 { grid-column: span 10; }
    .app-col-sm-11 { grid-column: span 11; }
    .app-col-sm-12 { grid-column: span 12; }
}

@media (min-width: 768px) {
    .app-col-md-1 { grid-column: span 1; }
    .app-col-md-2 { grid-column: span 2; }
    .app-col-md-3 { grid-column: span 3; }
    .app-col-md-4 { grid-column: span 4; }
    .app-col-md-5 { grid-column: span 5; }
    .app-col-md-6 { grid-column: span 6; }
    .app-col-md-7 { grid-column: span 7; }
    .app-col-md-8 { grid-column: span 8; }
    .app-col-md-9 { grid-column: span 9; }
    .app-col-md-10 { grid-column: span 10; }
    .app-col-md-11 { grid-column: span 11; }
    .app-col-md-12 { grid-column: span 12; }
}

.pa-0 { padding: 0 !important; }
.pa-1 { padding: 0.25rem !important; }
.pa-2 { padding: 0.5rem !important; }
.pa-3 { padding: 1rem !important; }
.pa-4 { padding: 1.5rem !important; }
.pa-5 { padding: 2rem !important; }
.pa-6 { padding: 2.5rem !important; }
.pa-7 { padding: 3rem !important; }
.pa-8 { padding: 3.5rem !important; }

.ma-0 { margin: 0 !important; }
.ma-1 { margin: 0.25rem !important; }
.ma-2 { margin: 0.5rem !important; }
.ma-3 { margin: 1rem !important; }
.ma-4 { margin: 1.5rem !important; }
.ma-5 { margin: 2rem !important; }
.ma-6 { margin: 2.5rem !important; }
.ma-7 { margin: 3rem !important; }
.ma-8 { margin: 3.5rem !important; }

.mt-6 { margin-top: 2.5rem !important; }
.mb-6 { margin-bottom: 2.5rem !important; }
.my-6 { margin-top: 2.5rem !important; margin-bottom: 2.5rem !important; }
.mx-6 { margin-left: 2.5rem !important; margin-right: 2.5rem !important; }
.pt-6 { padding-top: 2.5rem !important; }
.pb-6 { padding-bottom: 2.5rem !important; }
.py-6 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.px-6 { padding-left: 2.5rem !important; padding-right: 2.5rem !important; }

.mt-7 { margin-top: 3rem !important; }
.mb-7 { margin-bottom: 3rem !important; }
.my-7 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.mx-7 { margin-left: 3rem !important; margin-right: 3rem !important; }
.pt-7 { padding-top: 3rem !important; }
.pb-7 { padding-bottom: 3rem !important; }
.py-7 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-7 { padding-left: 3rem !important; padding-right: 3rem !important; }

.mt-8 { margin-top: 3.5rem !important; }
.mb-8 { margin-bottom: 3.5rem !important; }
.my-8 { margin-top: 3.5rem !important; margin-bottom: 3.5rem !important; }
.mx-8 { margin-left: 3.5rem !important; margin-right: 3.5rem !important; }
.pt-8 { padding-top: 3.5rem !important; }
.pb-8 { padding-bottom: 3.5rem !important; }
.py-8 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
.px-8 { padding-left: 3.5rem !important; padding-right: 3.5rem !important; }

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-header h5 {
    color: var(--app-text);
    font-weight: 600;
}

.crud-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.48);
}

.crud-modal {
    width: min(760px, 100%);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border-radius: 8px;
}

.z-rapor-modal {
    width: min(820px, calc(100vw - 2rem));
}

.crud-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.crud-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.z-resim-listesi {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.z-resim-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--app-border);
    border-radius: 4px;
    background: #fff;
}

.z-resim-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .content {
        padding: 1rem !important;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .page-header .app-button,
    .page-header .rz-button {
        width: 100%;
    }

    .app-table-shell {
        border-radius: 4px;
    }

    body.app-theme .app-table {
        width: 100%;
        min-width: 0;
        table-layout: auto;
        font-size: 0.75rem;
    }

    .app-table-shell {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    body.app-theme .app-table th,
    body.app-theme .app-table td {
        height: auto;
        padding: 5px 8px;
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: keep-all;
        line-height: 1.2;
    }

    body.app-theme .app-table .rz-button {
        min-height: 28px !important;
        padding-inline: 0.5rem !important;
        font-size: 0.75rem !important;
    }

    .app-table-responsive-collapse .app-mobile-hidden-cell,
    .app-table-responsive-collapse thead th:nth-child(n + 5):not(:last-child) {
        display: none;
    }

    .app-table-action-cell {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: .35rem;
        justify-content: flex-start;
        white-space: normal;
    }

    .app-table-action-cell .rz-button {
        margin-left: 0 !important;
    }

    .app-table-plus {
        display: inline-flex;
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--app-primary);
        border-radius: 4px;
        background: #fff;
        color: var(--app-primary);
        font-size: .85rem;
        font-weight: 700;
        line-height: 1;
    }

    .app-mobile-extra-row > td {
        padding: 0 !important;
        border-bottom: 1px solid #eef2f7 !important;
    }

    .app-mobile-extra-panel {
        display: grid;
        grid-template-columns: 1fr;
        gap: .35rem;
        padding: .6rem .75rem;
        background: #fbfcff;
    }

    .app-mobile-extra-item {
        display: grid;
        grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
        gap: .5rem;
        align-items: start;
    }

    .app-mobile-extra-label {
        color: var(--app-muted);
        font-size: .68rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .app-mobile-extra-value {
        min-width: 0;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .app-control,
    .app-rz-input-sm.rz-textbox,
    .app-rz-input-sm.rz-password,
    .app-rz-input-sm.rz-spinner,
    .app-rz-input-sm.rz-datepicker,
    .app-rz-input-sm.rz-textarea {
        font-size: 0.8125rem !important;
    }

    .crud-modal-backdrop {
        align-items: flex-start;
        padding: 0.75rem;
    }

    .crud-modal {
        width: 100%;
        max-height: calc(100vh - 1.5rem);
    }

    .crud-modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .crud-modal-actions .app-button,
    .crud-modal-actions .rz-button {
        width: 100%;
        margin-left: 0 !important;
    }

    .app-flex.justify-end.app-gap-2 {
        flex-direction: column;
        align-items: stretch;
    }

    .app-flex.justify-end.app-gap-2 .app-button,
    .app-flex.justify-end.app-gap-2 .rz-button {
        width: 100%;
        margin-left: 0 !important;
    }
}

.app-inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: text-bottom;
    font-size: 1.15rem;
    line-height: 1;
}

.app-icon-sm { font-size: 1rem !important; }
.app-icon-lg { font-size: 1.75rem !important; }

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: radial-gradient(circle at top left, rgba(108, 95, 252, .16), transparent 34%), #f1f4fb;
}

.container-login100 {
    width: 100%;
    display: flex;
    justify-content: center;
}

.wrap-login100 {
    width: min(420px, 100%);
    padding: 2rem;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .12);
}

.header-brand-img {
    max-width: 72px;
    max-height: 72px;
}

/* Radzen dÃ¶nÃ¼ÅŸÃ¼m yardÄ±mcÄ±larÄ± */
.login-card {
    width: min(430px, 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .12);
}

.login-brand {
    margin-bottom: 1.5rem;
}

.login-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.login-brand h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #111827;
}

.login-brand p {
    margin: .35rem 0 0;
    color: #64748b;
}

.app-rz-card {
    border: 1px solid var(--app-border);
    border-radius: 10px;
}

.app-rz-card-elevated {
    box-shadow: 0 18px 55px rgba(15, 23, 42, .16);
}

.app-rz-field {
    width: 100%;
}

.app-rz-field .rz-textbox,
.app-rz-field .rz-password,
.app-rz-field .rz-spinner,
.app-rz-field .rz-datepicker,
.app-rz-field .rz-textarea {
    width: 100%;
}

.app-rz-input-sm.rz-textbox,
.app-rz-input-sm.rz-password,
.app-rz-input-sm.rz-spinner,
.app-rz-input-sm.rz-datepicker,
.app-rz-input-sm.rz-textarea,
.app-rz-field .app-rz-input-sm {
    min-height: 31px !important;
    font-size: .8125rem !important;
}

.app-rz-input-sm.rz-textarea {
    min-height: auto !important;
}

.app-rz-input-sm .rz-inputtext,
.app-rz-input-sm .rz-datepicker-trigger {
    font-size: .8125rem !important;
}

.app-rz-switch,
.app-rz-checkbox {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 2rem;
}

.app-rz-switch-label,
.app-rz-checkbox-label {
    font-size: .875rem;
    color: #334155;
}

.app-icon-rz-button {
    min-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0 !important;
}

.app-icon-rz-button-lg {
    min-width: 42px;
    width: 42px;
    height: 42px;
}

.app-rz-button-sm {
    min-height: 30px !important;
    padding: .22rem .65rem !important;
    font-size: .78rem !important;
}

.app-rz-button-lg {
    min-height: 44px !important;
    font-size: 1rem !important;
}

.app-rz-alert-dense {
    padding-block: .5rem !important;
}

.app-progress-circular-sm {
    width: 1.5rem !important;
    height: 1.5rem !important;
}

.app-badge,
.app-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: .2rem .55rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.2;
}

.app-badge-pill {
    border-radius: 999px;
}

.app-chip-small {
    min-height: 20px;
    padding: .12rem .45rem;
    font-size: .7rem;
}

.app-badge-primary,
.app-chip-primary.app-chip-filled { background: var(--app-primary); color: #fff; }
.app-badge-secondary,
.app-chip-secondary.app-chip-filled { background: #64748b; color: #fff; }
.app-badge-success,
.app-chip-success.app-chip-filled { background: #16a34a; color: #fff; }
.app-badge-danger,
.app-badge-error,
.app-chip-danger.app-chip-filled,
.app-chip-error.app-chip-filled { background: #dc2626; color: #fff; }
.app-badge-warning,
.app-chip-warning.app-chip-filled { background: #d97706; color: #fff; }
.app-badge-info,
.app-chip-info.app-chip-filled { background: #0284c7; color: #fff; }

.app-chip-outlined {
    background: transparent;
}

.app-chip-primary.app-chip-outlined { border-color: var(--app-primary); color: var(--app-primary); }
.app-chip-secondary.app-chip-outlined { border-color: #64748b; color: #64748b; }
.app-chip-success.app-chip-outlined { border-color: #16a34a; color: #16a34a; }
.app-chip-danger.app-chip-outlined,
.app-chip-error.app-chip-outlined { border-color: #dc2626; color: #dc2626; }
.app-chip-warning.app-chip-outlined { border-color: #d97706; color: #d97706; }
.app-chip-info.app-chip-outlined { border-color: #0284c7; color: #0284c7; }

.app-spinner {
    width: 2rem;
    height: 2rem;
    border: .2rem solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: app-spinner .75s linear infinite;
}

.app-spinner-sm {
    width: 1rem;
    height: 1rem;
    border-width: .15rem;
}

.app-spinner-primary { color: var(--app-primary); }
.app-spinner-secondary { color: #64748b; }
.app-spinner-success { color: #16a34a; }
.app-spinner-danger,
.app-spinner-error { color: #dc2626; }
.app-spinner-warning { color: #d97706; }
.app-spinner-info { color: #0284c7; }

@keyframes app-spinner {
    to { transform: rotate(360deg); }
}

.app-text-primary { color: var(--app-primary) !important; }
.app-text-success { color: #16a34a !important; }
.app-text-danger { color: #dc2626 !important; }
.app-text-warning { color: #d97706 !important; }
.app-text-info { color: #0284c7 !important; }
.app-text-secondary { color: #64748b !important; }

/* =========================================================
   MOBIL TABLO KART GORUNUMU
   Masaustu tablo ayni kalir, sadece mobilde kart liste olur.
   ========================================================= */

@media (max-width: 768px) {
    .content {
        padding: 0.75rem !important;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
    }

    .page-header .app-button,
    .page-header .rz-button {
        width: 100%;
    }

    .app-table-shell.app-table-card-mobile {
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        background: transparent !important;
        font-size: 0.8125rem !important;
        table-layout: auto !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table thead {
        display: none !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table tbody {
        display: grid !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table tbody tr {
        display: block !important;
        width: 100% !important;
        overflow: hidden !important;
        border: 1px solid var(--app-border) !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table tbody tr:hover {
        background: #fff !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table th,
    body.app-theme .app-table-shell.app-table-card-mobile .app-table td {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table td {
        display: grid !important;
        grid-template-columns: 105px minmax(0, 1fr) !important;
        gap: 0.75rem !important;
        align-items: start !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0.6rem 0.75rem !important;
        border-bottom: 1px solid #eef2f7 !important;
        color: #111827 !important;
        line-height: 1.35 !important;
        text-align: left !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table td::before {
        content: attr(data-label);
        color: var(--app-muted);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table td[data-label=""]::before {
        display: none !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table tbody tr td:last-child {
        border-bottom: 0 !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table .app-table-full-cell {
        display: block !important;
        padding: 0.75rem !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table .app-table-full-cell::before {
        display: none !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table .app-table-action-cell {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding-top: 0.75rem !important;
        background: #fbfcff !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table .app-table-action-cell::before {
        display: none !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table .app-table-action-cell .rz-button,
    body.app-theme .app-table-shell.app-table-card-mobile .app-table .app-table-action-cell .app-button {
        flex: 1 1 auto !important;
        min-width: 92px !important;
        margin-left: 0 !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-table .rz-button + .rz-button,
    body.app-theme .app-table-shell.app-table-card-mobile .app-table .app-button + .app-button {
        margin-left: 0 !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-mobile-hidden-cell {
        display: grid !important;
    }

    body.app-theme .app-table-shell.app-table-card-mobile .app-mobile-extra-row,
    body.app-theme .app-table-shell.app-table-card-mobile .app-table-plus,
    body.app-theme .app-table-shell.app-table-card-mobile .app-mobile-extra-panel {
        display: none !important;
    }

    .z-resim-listesi {
        justify-content: flex-start !important;
        gap: 0.45rem !important;
    }

    .z-resim-link {
        width: 48px !important;
        height: 48px !important;
    }

    .crud-modal-actions {
        align-items: stretch !important;
        flex-direction: column-reverse !important;
    }

    .crud-modal-actions .rz-button,
    .crud-modal-actions .app-button {
        width: 100% !important;
    }
}

.z-rapor-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--app-border);
    border-radius: 6px;
    background: #f8fafc;
}

.z-rapor-total-bar {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2fr);
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    background: #eff6ff;
    color: #1e3a8a;
}

.z-rapor-total-main,
.z-rapor-channel-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.z-rapor-total-main strong,
.z-rapor-channel-total strong {
    font-size: 1rem;
}

.z-rapor-channel-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.z-rapor-channel-total {
    min-width: 0;
    padding: 0.35rem 0.55rem;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    background: #ffffff;
}

.z-rapor-channel-total span,
.z-rapor-channel-total strong {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .z-rapor-section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .z-rapor-total-bar {
        grid-template-columns: 1fr;
    }
}

.kasa-odeme-satiri {
    display: grid;
    gap: 0.55rem;
    padding: 0.75rem;
    border: 1px solid var(--app-border);
    border-radius: 6px;
    background: #ffffff;
}

.kasa-odeme-satiri .rz-chkbox-label {
    font-size: 0.9rem;
}
