@import url('loading-screen.css');
@import url('brand-mark.css');
@import url('responsive.css');
@import url('kiosk-discrete-logout.css');

html, body {
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto !important;
}

/* Pull-to-refresh'i yalnızca işaretlenen sayfalarda kapat (ör. drenaj girişi) */
html.agro-block-ptr,
html.agro-block-ptr body,
body.agro-block-ptr,
body.agro-block-ptr #app,
body.agro-block-ptr .mud-main-content,
body.agro-block-ptr .mud-layout {
    overscroll-behavior-y: none !important;
    overscroll-behavior: none !important;
}

/* =========================================================
   PREMIUM SAAS TİPOGRAFİ
   Başlıklar: Inter (bold) | Gövde / input / tablo: Poppins
   ========================================================= */
h1, h2, h3, h4, h5, h6,
.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4,
.mud-typography-h5,
.mud-typography-h6,
.page-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
}

.mud-typography-body1,
.mud-typography-body2,
.mud-typography-subtitle1,
.mud-typography-subtitle2,
.mud-typography-caption,
.mud-typography-button,
.mud-input-control .mud-input input,
.mud-input-control .mud-input textarea,
.mud-input-control .mud-input .mud-select-input,
.mud-table .mud-table-cell,
.mud-list-item-text,
.mud-chip-content {
    font-family: 'Poppins', sans-serif !important;
}

/* Drawer + içerik flex düzeni: main-content'e width:100% verilmez (drawer ile birlikte taşar) */
.agroculus-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    --layout-gutter: 20px;
}

.agroculus-layout > .mud-main-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.main-content-padding,
.app-content-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Sera mimari / söküm: kroki yatay kaydırma + sticky panel */
@media (min-width: 1024px) {
    .designer-page.mud-container,
    .removal-page.mud-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .gh-editor-shell {
        max-width: 100% !important;
    }

    .gh-editor-main,
    .gh-editor-aside-slot {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .sticky-minimap {
        overflow: visible !important;
    }

    .designer-kroki-col,
    .removal-kroki-col {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .kroki-scroll-area {
        overflow-x: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .gh-editor-aside-slot,
    .gh-editor-aside {
        overflow: visible !important;
        min-width: 0 !important;
    }
}

#app {
    min-height: 100vh;
    height: auto !important;
    overflow-x: hidden;
    max-width: 100%;
}

.agro-table-scroll,
.agro-matrix-scroll {
    overflow-x: auto;
    max-width: 100%;
}

/* Drainage giriş tablosu: iç overflow dikey sayfa scroll’unu yutmasın */
.drainage-mgmt-page .entry-table-wrap {
    overflow: visible !important;
}

.drainage-mgmt-page .entry-table-scroll {
    overflow: visible !important;
}

@media (max-width: 768px) {
    .drainage-mgmt-page .entry-table-scroll {
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: auto;
        touch-action: pan-x;
    }
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #2e7d32;
}

.btn-primary {
    color: #fff;
    background-color: #2e7d32;
    border-color: #1b5e20;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(46, 125, 50, 0.45);
}

.content {
    padding-top: 1.1rem;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.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."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #2e7d32;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/* =========================================================
   AGRYNEA PREMIUM LIGHT TEMA
   ========================================================= */

/* Tüm Inputların Ferah Görünümü */
.mud-input-control .mud-input {
    background-color: #f8f9fa !important; /* İçi çok hafif gri */
    border-radius: 12px !important;
}

.mud-input-control fieldset {
    border-color: rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
}
/* Inputa tıklanınca Apple tarzı yeşil parlama */
.mud-input-control .mud-input.mud-input-focused fieldset {
    border-color: #2e7d32 !important;
    border-width: 1px !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15) !important;
}

/* Yazı renkleri artık koyu ve çok net (login ekranı hariç) */
.mud-input-control .mud-input input,
.mud-input-control .mud-input .mud-select-input {
    color: #1a1a1a !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

.login-page .mud-input-control .mud-input input,
.login-page .mud-input-control .mud-input .mud-select-input,
.login-page .premium-input input {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
}

/* Mud input/select metin görünmezliği yaşanan filtrelerde kullanılan stabil native pattern */
.agro-filter-search,
.agro-filter-picker {
    min-width: 0;
    padding: 0.72rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #e3ebe4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.agro-filter-search__label,
.agro-filter-picker__label {
    display: block;
    margin-bottom: 0.42rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}

.agro-filter-search__control,
.agro-filter-picker__selected {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.56rem 0.68rem;
    border: 1px solid #dce9df;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fcf9 100%);
    color: #13231a;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.agro-filter-search__control:focus-within {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.agro-filter-picker__selected {
    width: 100%;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.agro-filter-picker__selected:hover {
    border-color: #b7d8bd;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.08);
    transform: translateY(-1px);
}

.agro-filter-search__control .mud-icon-root,
.agro-filter-picker__selected .mud-icon-root {
    color: #2e7d32;
    flex-shrink: 0;
}

.agro-filter-search__control input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #13231a;
    -webkit-text-fill-color: #13231a;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
}

.agro-filter-search__control input::placeholder {
    color: #94a3b8;
    -webkit-text-fill-color: #94a3b8;
    font-weight: 600;
    opacity: 1;
}

.agro-filter-search__control input::-webkit-search-cancel-button {
    appearance: none;
}

.agro-filter-search__clear {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #eef7f0;
    color: #2e7d32;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.agro-filter-search__clear:hover {
    background: #2e7d32;
    color: #fff;
}

.agro-filter-picker__selected span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agro-filter-picker__options {
    display: flex;
    gap: 0.42rem;
    margin-top: 0.58rem;
    padding-bottom: 0.08rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.agro-filter-option {
    flex: 0 0 auto;
    padding: 0.36rem 0.62rem;
    border: 1px solid #dfeae2;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.agro-filter-option:hover {
    border-color: #b7d8bd;
    color: #1b5e20;
}

.agro-filter-option.is-selected {
    border-color: #2e7d32;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(46, 125, 50, 0.18);
}

/* =========================================================
   PREMIUM NEUMORPHIC YÜZEYLER (KART / PAPER / DİALOG)
   ========================================================= */
.mud-card,
.mud-paper,
.premium-light-card {
    border-radius: 12px !important;
    border: 1px solid rgba(237, 242, 238, 0.95) !important;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.05), 0 2px 8px rgba(46, 125, 50, 0.03) !important;
    transition: box-shadow 0.28s ease, transform 0.28s ease !important;
}

.premium-light-card {
    background-color: #ffffff !important;
}

.premium-light-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(46, 125, 50, 0.08), 0 4px 12px rgba(46, 125, 50, 0.04) !important;
}

.mud-dialog {
    border-radius: 12px !important;
    box-shadow: 0 18px 48px rgba(46, 125, 50, 0.1), 0 6px 20px rgba(46, 125, 50, 0.05) !important;
    animation: agro-dialog-enter 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mud-overlay-dialog {
    animation: agro-overlay-fade 0.28s ease both;
}

@keyframes agro-dialog-enter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes agro-overlay-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Sera Durumu — sıra detay tip (CSS isolation dışı, her zaman görünür) */
.sd2-map-tip {
    position: fixed !important;
    left: 50% !important;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    z-index: 14000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: min(760px, calc(100vw - 1.5rem)) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 16px;
    border: 1px solid #c8e0cd;
    background: #ffffff !important;
    box-shadow: 0 18px 48px rgba(18, 48, 26, 0.22), 0 4px 14px rgba(18, 48, 26, 0.1);
    pointer-events: auto !important;
    overflow: hidden;
}

.sd2-map-tip__main {
    display: flex !important;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 0.9rem 0.85rem 1rem;
    min-height: 64px;
    position: relative;
}

.sd2-map-tip__history {
    border-top: 1px solid #eaf2ec;
    padding: 0.65rem 0.9rem 0.75rem 1rem;
    max-height: min(42vh, 280px);
    overflow: auto;
    background: #f8fbf9;
}

.sd2-map-tip__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--sd2-worker-accent, #2e7d32);
}

.sd2-map-tip__avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
}

.sd2-map-tip__avatar--empty {
    background: linear-gradient(145deg, #78909c, #546e7a);
}

.sd2-map-tip__body {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 0.12rem;
}

.sd2-map-tip__body strong {
    font-size: 0.98rem;
    font-weight: 800;
    color: #12301a;
    line-height: 1.25;
    word-break: break-word;
}

.sd2-map-tip__body span {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
}

.sd2-map-tip__close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #eef4f0;
    color: #475569;
    cursor: pointer;
}

/* Hasat girişi: odaklanan input yeşil glow */
.harvest-entry-page .soft-field .mud-input.mud-input-outlined.mud-input-focused fieldset,
.harvest-entry-page .soft-field.mud-input-control .mud-input.mud-input-focused fieldset {
    border-color: #2e7d32 !important;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12), 0 4px 14px rgba(46, 125, 50, 0.08) !important;
}

.harvest-entry-page .preview-row-enter {
    animation: harvest-row-enter 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes harvest-row-enter {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fizyoloji grafiği: marker hover pulse + premium tooltip */
.chart-dialog .apexcharts-marker {
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.chart-dialog .apexcharts-series-markers .apexcharts-marker:hover {
    animation: chart-marker-pulse 0.65s ease-in-out infinite;
}

@keyframes chart-marker-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.28);
        opacity: 0.88;
    }
}

.chart-dialog .apexcharts-tooltip {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 125, 50, 0.14) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(46, 125, 50, 0.12) !important;
}

.chart-dialog .apexcharts-tooltip-title,
.chart-dialog .apexcharts-tooltip .apexcharts-tooltip-title {
    background: rgba(232, 245, 233, 0.85) !important;
    border-bottom: 1px solid rgba(46, 125, 50, 0.12) !important;
    color: #2e7d32 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    border-radius: 12px 12px 0 0 !important;
}

.chart-dialog .apexcharts-tooltip-series-group,
.chart-dialog .apexcharts-tooltip-y-group {
    font-family: 'Poppins', sans-serif !important;
}

/* MudSelect / MudAutocomplete açılır menü */
.mud-popover .mud-list {
    overflow-x: hidden;
    max-width: 95vw;
}

.mud-popover .mud-list-item .mud-list-item-text,
.mud-popover .mud-list-item .mud-typography {
    white-space: normal;
    word-break: break-word;
}

/* Audit logs premium filter panel */
.audit-logs-page .audit-filter-panel {
    padding: 1rem 1.1rem 1.1rem;
    border: 1px solid #e3ece5;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(76, 175, 80, 0.08), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #f7faf8 100%);
    box-shadow: 0 8px 28px rgba(32, 72, 41, 0.055);
}

.audit-logs-page .audit-filter-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.audit-logs-page .audit-filter-panel__title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #1f3826;
}

.audit-logs-page .audit-filter-panel__title .mud-typography-subtitle2 {
    font-weight: 800;
    color: #193520;
}

.audit-logs-page .audit-filter-panel__title .mud-typography-caption {
    display: block;
    color: #718078;
    margin-top: 0.05rem;
}

.audit-logs-page .audit-filter-panel__icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 11px;
    background: #e8f5e9;
    color: #2e7d32;
}

.audit-logs-page .audit-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(125px, 0.8fr)
        minmax(125px, 0.8fr)
        minmax(155px, 1fr)
        minmax(150px, 1fr)
        minmax(220px, 1.45fr)
        auto;
    gap: 0.7rem;
    align-items: end;
}

.audit-logs-page .audit-filter-slot,
.audit-logs-page .audit-filter-actions {
    min-width: 0;
}

.audit-logs-page .audit-filter-slot .mud-input-control,
.audit-logs-page .audit-filter-slot .mud-picker,
.audit-logs-page .audit-filter-slot .mud-select {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.audit-logs-page .audit-filter-action {
    height: 40px;
    min-width: 112px;
}

@media (max-width: 1180px) {
    .audit-logs-page .audit-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audit-logs-page .audit-filter-slot--search {
        grid-column: 1 / -1;
    }

    .audit-logs-page .audit-filter-actions {
        grid-column: 1 / -1;
        display: flex;
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .audit-logs-page .audit-filter-panel {
        padding: 0.85rem;
        border-radius: 15px;
    }

    .audit-logs-page .audit-filter-grid {
        grid-template-columns: 1fr;
    }

    .audit-logs-page .audit-filter-slot--search,
    .audit-logs-page .audit-filter-actions {
        grid-column: auto;
    }

    .audit-logs-page .audit-filter-action,
    .audit-logs-page .audit-filter-actions {
        width: 100%;
    }
}

/* Dönem haritası yazdırma — dialog açıkken sınıf kalır; chrome tamamen gizlenir */
@media print {
    @page {
        size: A4 landscape;
        margin: 8mm;
    }

    html.gpm-printing,
    body.gpm-printing {
        background: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html.gpm-printing *,
    body.gpm-printing * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.gpm-printing .mud-appbar,
    body.gpm-printing .mud-drawer,
    body.gpm-printing .mud-drawer-content,
    body.gpm-printing .mud-drawer-header,
    body.gpm-printing .mud-drawer-overlay,
    body.gpm-printing .agroculus-drawer,
    body.gpm-printing aside.mud-drawer,
    body.gpm-printing .mud-overlay,
    body.gpm-printing .mud-snackbar-provider,
    body.gpm-printing .mud-dialog-provider,
    body.gpm-printing .mud-popover-provider,
    body.gpm-printing nav,
    body.gpm-printing aside,
    body.gpm-printing header.mud-appbar,
    body.gpm-printing .admin-context-cluster,
    body.gpm-printing .campus-scope-banner,
    body.gpm-printing .campus-scope-gate-card,
    body.gpm-printing .sd2-top,
    body.gpm-printing .sd2-tabs,
    body.gpm-printing .sd2-back,
    body.gpm-printing .no-print,
    body.gpm-printing .gpm-bar,
    body.gpm-printing .gpm-filters,
    body.gpm-printing .gpm-dates,
    body.gpm-printing .gpm-tip,
    body.gpm-printing .gpm-zoom,
    body.gpm-printing .gpm-nav,
    body.gpm-printing .gpm-palette,
    body.gpm-printing button.gpm-btn {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -99999px !important;
    }

    body.gpm-printing .mud-layout,
    body.gpm-printing .mud-main-content,
    body.gpm-printing .mud-container,
    body.gpm-printing .sera-durumu-page,
    body.gpm-printing .sd2,
    body.gpm-printing .sd2-pane--period,
    body.gpm-printing .gpm {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        width: 100% !important;
        box-shadow: none !important;
        background: #fff !important;
        left: 0 !important;
        position: static !important;
    }

    body.gpm-printing .mud-main-content {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    body.gpm-printing .gpm-print-head,
    body.gpm-printing .print-only {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        width: auto !important;
        position: static !important;
        left: auto !important;
    }

    body.gpm-printing .gpm-cell,
    body.gpm-printing .gpm-overview-card,
    body.gpm-printing .gpm-katir-row,
    body.gpm-printing .gpm-cell__jobs,
    body.gpm-printing .gpm-density-scale {
        break-inside: avoid;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.gpm-printing .gpm-stats {
        page-break-after: avoid !important;
        break-after: avoid-page !important;
    }

    body.gpm-printing .gpm-stat,
    body.gpm-printing .gpm-tunnel {
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    body.gpm-printing .gpm-corridor {
        writing-mode: horizontal-tb;
        transform: none;
        min-height: auto;
        padding: .2rem;
        font-size: .55rem;
    }
}
