:root {
    --bg: #f8f9fa;
    --surface: #ffffff;
    --surface-soft: #f4f6fb;
    --line: #e6e9ef;
    --text: #1f2937;
    --muted: #6b7280;
    --accent: #ffc90f;
    --accent-2: #eab308;
    --sidebar: #151619;
    --danger: #ef4444;
    --success: #10b981;
    --radius: 14px;
    --sidebar-w: 258px;
    --shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    color: var(--text);
    line-height: 1.5;
}

body.has-able-shell {
    background: var(--bs-body-bg, #f8f9fa);
}

a {
    color: inherit;
    text-decoration: none;
}

.muted {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Eski sidebar / .app kabuğu kaldırıldı — Able Pro (q) şablonu layout.php içinde */

.page-title {
    margin: 0;
    font-size: 1.82rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.section-title {
    margin: 1.5rem 0 0.55rem;
    font-size: 1.06rem;
    font-weight: 700;
}

.section-title.compact {
    margin: 0 0 0.6rem;
    font-size: 0.98rem;
}

.page-toolbar {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    justify-content: space-between;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    min-width: 260px;
    max-width: 560px;
}

.search-input {
    width: 100%;
    border: 1px solid #dbe2ea;
    background: #fff;
    color: #111827;
    border-radius: 11px;
    padding: 0.62rem 0.78rem;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.18s ease;
}

.search-input:focus {
    border-color: rgba(255, 201, 15, 0.82);
    box-shadow: 0 0 0 3px rgba(255, 201, 15, 0.16);
}

.toolbar-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cards {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.9rem;
}

.cards.stats-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.stats-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Eski grid (.cards) içi kartlar — Bootstrap .card ile çakışmasın */
.cards > .card {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid #d8dde6;
    background: var(--surface);
    padding: 1rem;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
}

.cards > .card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0.9;
}

.cards.two-cols {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 1rem;
}

.stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-label {
    color: #6b7280;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #111827;
    font-weight: 800;
    font-size: 1rem;
}

.i-blue { background: #bfdbfe; }
.i-orange { background: #fde68a; }
.i-green { background: #bbf7d0; }
.i-warn { background: #fef08a; }
.i-danger { background: #fecaca; }

.stat-value {
    margin-top: 0.35rem;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: #111827;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.table-wrap {
    margin-top: 0.85rem;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
}

.mini-list {
    display: grid;
    gap: 0.55rem;
}

.mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid #edf1f5;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    background: #fff;
}

.mini-main {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
}

.mini-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
}

.mini-badge.badge-danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

.mini-badge.badge-warn {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

.mini-badge.badge-ok {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.89rem;
}

.data-table th,
.data-table td {
    padding: 0.72rem 0.88rem;
    text-align: left;
    border-bottom: 1px solid #edf1f5;
}

.data-table th {
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    background: #f8fafc;
}

.data-table tbody tr:hover td {
    background: #fff9db;
}

.data-table tbody tr.service-open-row td {
    background: #fee2e2;
}

.data-table tbody tr.service-open-row:hover td {
    background: #fecaca;
}

.data-table tbody tr.service-done-row td {
    background: #dcfce7;
}

.data-table tbody tr.service-done-row:hover td {
    background: #bbf7d0;
}

.data-table tbody tr.muayene-expired-row td {
    background: #fecaca !important;
    color: #7f1d1d;
    font-weight: 600;
}

.data-table tbody tr.muayene-expired-row:hover td {
    background: #fca5a5 !important;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.cell-actions {
    text-align: right;
    white-space: nowrap;
}

.nowrap-cell {
    white-space: nowrap;
}

.inline-form {
    display: inline-block;
    margin-left: 0.32rem;
}

.form-card {
    max-width: 560px;
    margin-top: 0.95rem;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    padding: 1.2rem;
}

.form-card label,
.login-card label {
    display: block;
    margin-top: 0.9rem;
    color: #6b7280;
    font-size: 0.77rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
}

.form-card label:first-of-type {
    margin-top: 0;
}

.form-card input,
.form-card select,
.login-card input {
    width: 100%;
    margin-top: 0.34rem;
    border: 1px solid #dbe2ea;
    background: #fff;
    color: #111827;
    border-radius: 11px;
    padding: 0.64rem 0.75rem;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.18s ease;
}

.form-card input:focus,
.form-card select:focus,
.login-card input:focus {
    border-color: rgba(255, 201, 15, 0.82);
    box-shadow: 0 0 0 3px rgba(255, 201, 15, 0.16);
}

.form-actions {
    margin-top: 1.1rem;
    display: flex;
    gap: 0.62rem;
}

.dash-filter-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.4rem;
}

.dash-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    padding: 0.3rem 0.62rem;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0.5rem 0.92rem;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #111827;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 22px rgba(255, 201, 15, 0.24);
}

.btn-ghost {
    color: #374151;
    background: #ffffff;
    border-color: #dbe2ea;
}

.logout-btn {
    gap: 0.35rem;
}

.logout-ic {
    width: 14px;
    text-align: center;
}

.btn-danger {
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fecaca;
}

.btn-sm {
    padding: 0.33rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
}

.search-btn {
    min-width: 58px;
}

/* Bootstrap .modal ile çakışmayı önlemek için uygulama diyalogları */
.servis-app .modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2050 !important;
    background: rgba(15, 23, 42, 0.5) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    overflow: hidden !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.servis-app .modal.show {
    display: flex !important;
}

.modal-card {
    width: min(520px, 100%);
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.15);
    padding: 1rem;
}

.modal-card-lg {
    width: min(1100px, 96vw);
}

.modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: #111827;
}

.modal-form label {
    display: block;
    margin-top: 0.7rem;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6b7280;
    text-transform: uppercase;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    margin-top: 0.3rem;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    padding: 0.6rem 0.74rem;
    font-size: 0.92rem;
    outline: none;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    border-color: rgba(255, 201, 15, 0.82);
    box-shadow: 0 0 0 3px rgba(255, 201, 15, 0.16);
}

.modal-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.action-grid {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.6rem;
}

.action-grid.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-tile {
    border: 1px solid #dbe2ea;
    background: #fff;
    border-radius: 12px;
    padding: 0.85rem 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.22rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.action-tile:hover {
    border-color: rgba(255, 201, 15, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.1);
}

.action-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.action-title {
    font-size: 0.83rem;
    font-weight: 800;
    color: #111827;
}

.action-sub {
    font-size: 0.72rem;
    color: #6b7280;
}

.route-mode-wrap {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.55rem;
}

.route-mode-btn.active {
    border-color: rgba(255, 201, 15, 0.8);
    background: linear-gradient(120deg, #fde68a, #facc15);
    color: #111827;
}

.route-map {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    border: 1px solid #dbe2ea;
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.route-autocomplete {
    position: relative;
}

.route-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 9;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
    max-height: 220px;
    overflow: auto;
    display: none;
}

.route-suggest.show {
    display: block;
}

.route-suggest-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
    color: #111827;
    padding: 0.56rem 0.68rem;
    font-size: 0.84rem;
    cursor: pointer;
}

.route-suggest-item:last-child {
    border-bottom: none;
}

.route-suggest-item:hover {
    background: #fff9db;
}

.route-detail-list .mini-item {
    align-items: flex-start;
}

.route-detail-badge {
    max-width: 70%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-top: 0.4rem;
}

.tag-option {
    cursor: pointer;
}

.tag-option input {
    display: none;
}

.tag-option span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #dbe2ea;
    background: #fff;
    color: #374151;
    padding: 0.28rem 0.62rem;
    font-size: 0.76rem;
    font-weight: 700;
    transition: all 0.16s ease;
}

.tag-option input:checked + span {
    border-color: rgba(255, 201, 15, 0.82);
    background: linear-gradient(120deg, #fde68a, #facc15);
    color: #111827;
}

.pagination-wrap {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.page-link {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    color: #374151;
    background: #fff;
    font-size: 0.84rem;
    font-weight: 700;
}

.page-link.active {
    border-color: rgba(255, 201, 15, 0.8);
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #111827;
}

.btn-block {
    width: 100%;
}

.alert {
    margin: 0.9rem 0;
    border-radius: 10px;
    border: 1px solid;
    padding: 0.64rem 0.78rem;
    font-size: 0.86rem;
}

.alert-success {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}

.alert-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.login-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 1rem;
    background:
        radial-gradient(circle at 24% 24%, rgba(255, 201, 15, 0.26), transparent 36%),
        radial-gradient(circle at 78% 76%, rgba(59, 130, 246, 0.14), transparent 34%),
        linear-gradient(145deg, #090b0e, #11151c 46%, #0b0e14);
}

.login-card {
    width: min(420px, 100%);
    border-radius: 22px;
    background: #171a20;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.36);
    padding: 1.5rem;
}

.login-badge {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 0.85rem;
    font-size: 1.55rem;
    font-weight: 800;
    color: #111827;
    background: linear-gradient(130deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 26px rgba(255, 201, 15, 0.32);
}

.login-card h1 {
    margin: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.login-card .muted {
    text-align: center;
    margin-top: 0.34rem;
    margin-bottom: 0.6rem;
}

.login-card label {
    color: #9ca3af;
}

.login-card input {
    color: #f9fafb;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 980px) {
    /* Mobilde tablo hücreleri alta kaymasın, yatay kaydırma kullanılsın. */
    .data-table th,
    .data-table td {
        white-space: nowrap;
    }

    .cards.stats-top,
    .cards.stats-bottom {
        grid-template-columns: 1fr;
    }

    .page-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        max-width: none;
        min-width: 0;
    }

    .toolbar-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .page-title {
        font-size: 1.5rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.6rem;
    }
}

/* Able Pro (q) ana içerik alanı — tema ile uyum */
.servis-app {
    max-width: 1320px;
    margin: 0 auto;
    padding-bottom: 1.5rem;
}

body.has-able-shell .servis-app .page-title {
    color: var(--pc-heading-color, #1d2630);
    font-weight: 700;
}

body.has-able-shell .servis-app .btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--bs-primary, #4680ff), #3866cc);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(70, 128, 255, 0.22);
}

body.has-able-shell .servis-app .btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

body.has-able-shell .servis-app .cards > .card.stat::before {
    background: linear-gradient(90deg, var(--bs-primary, #4680ff), rgba(var(--bs-primary-rgb, 70, 128, 255), 0.72));
}

.servis-app .card-header .page-toolbar {
    margin-top: 0;
}

.servis-app .table.data-table {
    margin-bottom: 0;
}

/* Dashboard kompakt KPI */
.servis-app .dash-stat-compact .avtar-s {
    width: 40px;
    height: 40px;
}

.servis-app .muayene-expired-row td {
    font-weight: 500;
}

/* Header muayene bildirimleri */
body.has-able-shell .pc-header .pc-h-item.dropdown {
    overflow: visible;
}

/* Profil: tema 44px + overflow:hidden ile adı kesiyor; tam göster */
body.has-able-shell .pc-header .header-user-profile .pc-header-user-trigger {
    overflow: visible !important;
    max-width: none;
    width: auto !important;
    min-width: 44px;
    padding-left: 8px;
    padding-right: 10px;
    gap: 2px;
}

body.has-able-shell .pc-header .header-user-profile .pc-header-user-trigger > i {
    flex-shrink: 0;
}

body.has-able-shell .pc-header .pc-notify-bell-link {
    position: relative;
    overflow: visible !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
}

/* Zil üstü sayı — temanın badge renklerini bypass et */
body.has-able-shell .pc-header .pc-notify-count-pill {
    position: absolute;
    top: -2px;
    right: -4px;
    z-index: 5;
    min-width: 1.4rem;
    min-height: 1.4rem;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #ffffff !important;
    background-color: #dc2626 !important;
    border-radius: 999px;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

body.has-able-shell .pc-header .pc-notify-row-badge.pc-notify-badge-past {
    color: #ffffff !important;
    background-color: #b91c1c !important;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.4em 0.65em;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

body.has-able-shell .pc-header .pc-notify-row-badge.pc-notify-badge-soon {
    color: #1c1917 !important;
    background-color: #facc15 !important;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.4em 0.65em;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pc-notify-dropdown {
    min-width: 300px;
    max-width: min(380px, calc(100vw - 1rem));
}

.pc-notify-scroll {
    max-height: min(400px, 72vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pc-notify-item {
    transition: background-color 0.15s ease;
}

.pc-notify-item:hover {
    background-color: rgba(var(--bs-primary-rgb, 70, 128, 255), 0.07);
}

.pc-notify-past {
    border-left: 3px solid var(--bs-danger, #dc3545);
    padding-left: calc(0.75rem - 3px) !important;
}

.pc-notify-soon {
    border-left: 3px solid var(--bs-warning, #ffc107);
    padding-left: calc(0.75rem - 3px) !important;
}

.pc-notify-bell-active .ti-bell {
    display: inline-block;
    animation: pc-bell-shake 2.5s ease-in-out infinite;
}

@keyframes pc-bell-shake {
    0%, 92%, 100% { transform: rotate(0); }
    94% { transform: rotate(14deg); }
    96% { transform: rotate(-12deg); }
    98% { transform: rotate(8deg); }
}

/* ——— Mobil / modal / menü ——— */

html.servis-modal-open,
body.servis-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.servis-app .modal.show .modal-card {
    max-height: min(88dvh, 88vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.servis-app .modal.show .modal-card-lg {
    max-height: min(90dvh, 90vh);
}

@media (max-width: 575.98px) {
    .servis-app .modal.show {
        align-items: center !important;
        justify-content: center !important;
        padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem max(0.75rem, env(safe-area-inset-bottom, 0px)) !important;
    }

    .servis-app .modal-card,
    .servis-app .modal-card-lg {
        width: 100% !important;
        max-width: 100%;
    }

    .action-grid.three-col,
    .action-grid-arac-islemler {
        grid-template-columns: 1fr !important;
    }

    .action-tile {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 0.35rem;
        padding: 0.75rem 0.85rem;
    }

    .action-tile .action-icon {
        font-size: 1.35rem;
    }

    .action-tile .action-title {
        font-size: 0.9rem;
        word-break: break-word;
        width: 100%;
    }

    .action-tile .action-sub {
        width: 100%;
        font-size: 0.72rem;
    }

    .servis-app .cards.stats-top {
        grid-template-columns: 1fr;
    }

    .servis-app .stat-value {
        font-size: 1.45rem;
    }

    .servis-app .mini-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }

    .servis-app .mini-badge {
        white-space: normal;
        word-break: break-word;
        border-radius: 10px;
        text-align: left;
        align-self: flex-start;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .servis-app .data-table .cell-actions {
        white-space: normal;
        text-align: left;
        vertical-align: top;
    }

    .servis-app .data-table .cell-actions > .btn,
    .servis-app .data-table .cell-actions > form.inline-form {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0.4rem 0 0 0 !important;
        box-sizing: border-box;
    }

    .servis-app .data-table .cell-actions > .btn:first-child,
    .servis-app .data-table .cell-actions > form.inline-form:first-child {
        margin-top: 0 !important;
    }

    .servis-app .data-table .cell-actions .btn {
        text-align: center;
        justify-content: center;
    }
}

.servis-app .dash-stat-title {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

@media (max-width: 575.98px) {
    .servis-app .dash-stat-compact .card-body {
        padding: 0.65rem 0.75rem;
    }

    .servis-app .dash-stat-compact .fs-5 {
        font-size: 1.15rem !important;
    }
}

@media (max-width: 1024px) {
    /*
     * Tema left ile animasyon yapıyor → her karede layout; ilk açılışta donma.
     * translate3d sadece compositor → sayfa başına ve her açılışta tutarlı hız.
     */
    body.has-able-shell .pc-sidebar {
        left: 0 !important;
        transform: translate3d(-100%, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform;
        transition: transform 0.08s cubic-bezier(0.22, 1, 0.36, 1) !important;
    }

    body.has-able-shell .pc-sidebar.mob-sidebar-active {
        transform: translate3d(0, 0, 0);
    }

    /* Mobil menü: body’deki backdrop (script.js) — içerik kararır, tıklanabilir */
    body > .pc-menu-overlay.servis-mob-menu-backdrop {
        z-index: 1024;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.has-able-shell .pc-sidebar,
    body.has-able-shell .pc-sidebar ~ .pc-header,
    body.has-able-shell .pc-sidebar ~ .pc-footer,
    body.has-able-shell .pc-sidebar ~ .pc-container {
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1024px) {
    body.has-able-shell .pc-sidebar {
        transition: none !important;
    }
}
