/* Admin kabuk: header, sidebar, sekmeler, panel */

/* ---- Shell iskeleti ---- */
.dk-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: var(--dk-content-bg);
}

/* ---- Header (Docker Desktop tarzı tam genişlik; aynı zamanda sürükleme bölgesi) ---- */
.dk-header {
    height: var(--dk-header-h);
    min-height: var(--dk-header-h);
    flex: 0 0 auto;
    padding: 0 1rem;
    background: var(--dk-header-bg);
    color: var(--dk-header-fg);
}

/* Masaüstü pencere düğmeleri sağ kenara yaslansın; avatar onların solunda kalsın */
.dk-header:has(.dk-winbtns) {
    padding-right: 0;
}

/* Başlık iskeleti. app-region: drag masaüstü app.css'te .app-titlebar üzerinde
   (Electron/WebView2 kalıbı). Tam 60px yükseklik sürükleme için açık px yüksekliği şart. */
.app-titlebar {
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    -webkit-app-region: drag;
    app-region: drag;
}

.dk-header.app-titlebar {
    height: 60px;
    min-height: 60px;
}

.app-titlebar > .app-titlebar-content {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.dk-header > .app-titlebar-content {
    gap: .75rem;
}

.dk-header-left {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
}

.dk-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    flex: 0 0 auto;
}

.dk-logo-brand {
    display: block;
    height: 34px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    flex: 0 0 auto;
}

.dk-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, .12);
}

.dk-title {
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .01em;
    white-space: nowrap;
    color: var(--dk-header-fg);
}

.dk-badge {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: .15rem .45rem;
    border-radius: 5px;
    color: #ecfdf5;
    background: rgba(16, 185, 129, .28);
    border: 1px solid rgba(110, 231, 183, .45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.dk-header-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.dk-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    min-width: 0;
    flex: 0 0 auto;
}

/* ---- Gövde: sidebar + içerik ---- */
.dk-body {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
}

/* ---- Sidebar ---- */
.dk-sidebar {
    position: relative;
    flex: 0 0 auto;
    width: var(--dk-sidebar-w);
    min-height: 0;
    align-self: stretch;
    background: var(--dk-sidebar-bg);
    border-right: 1px solid var(--dk-sidebar-border);
    display: flex;
    flex-direction: column;
    padding: .5rem;
    transition: width .16s ease;
    overflow: visible;
}

.dk-sidebar.dk-collapsed {
    width: var(--dk-sidebar-collapsed-w);
    z-index: 40;
    overflow: visible;
}

.dk-sidebar-nav {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dk-nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dk-nav-group + .dk-nav-group {
    margin-top: 0.15rem;
}

.dk-nav-group .dk-section-title {
    padding-top: 0.65rem;
    padding-bottom: 0.2rem;
}

.dk-nav-group:first-child .dk-section-title {
    padding-top: 0.25rem;
}

.dk-nav-group-bottom {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--dk-sidebar-border);
}

.dk-nav-group-bottom .dk-section-title {
    padding-top: 0.55rem;
}

/* Daraltılmışken tooltip taşabilsin (overflow-x:hidden kesmesin) */
.dk-sidebar.dk-collapsed .dk-sidebar-nav {
    overflow: visible;
}

.dk-nav-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    height: 38px;
    padding: 0 .6rem;
    border-radius: 8px;
    color: var(--dk-nav-fg);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.dk-nav-item:hover { background: var(--dk-nav-hover-bg); }

.dk-nav-item.active {
    background: var(--dk-accent-soft);
    color: var(--dk-accent);
    font-weight: 600;
}

.dk-nav-item .rzi {
    font-size: 20px;
    flex: 0 0 auto;
    width: 24px;
    text-align: center;
}

/* Harici eylem (POS açma vb.) — NavLink ile aynı görünüm */
button.dk-nav-item {
    width: 100%;
    border: none;
    background: transparent;
    font: inherit;
    text-align: left;
}

button.dk-nav-item:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.dk-nav-label {
    font-size: .875rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dk-sidebar.dk-collapsed .dk-nav-item {
    position: relative;
    justify-content: center;
    padding: 0;
}

.dk-sidebar.dk-collapsed .dk-nav-label { display: none; }
.dk-sidebar.dk-collapsed .dk-section-title { display: none; }
.dk-sidebar.dk-collapsed .dk-nav-group-bottom {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top-color: transparent;
}

/* Daraltılmış sidebar: ikon hover'da sağda etiket tooltip (header mavisi) */
.dk-sidebar.dk-collapsed .dk-nav-item[title]::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(-3px);
    z-index: 50;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    background: var(--dk-header-bg, #1353d3);
    color: var(--dk-header-fg, #eef1f8);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--dk-header-bg, #1353d3) 35%, transparent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
}

/* Ok: border-triangle yerine balonla aynı renkte döndürülmüş kare (daha temiz) */
.dk-sidebar.dk-collapsed .dk-nav-item[title]::before {
    content: "";
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translateY(-50%) translateX(-3px) rotate(45deg);
    z-index: 49;
    border-radius: 1.5px;
    background: var(--dk-header-bg, #1353d3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
}

.dk-sidebar.dk-collapsed .dk-nav-item[title]:hover::after,
.dk-sidebar.dk-collapsed .dk-nav-item[title]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.dk-sidebar.dk-collapsed .dk-nav-item[title]:hover::before,
.dk-sidebar.dk-collapsed .dk-nav-item[title]:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0) rotate(45deg);
}

.dk-section-title {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #98a2b3;
    padding: .75rem .6rem .25rem;
}

/* ---- Rapor Merkezi (hub sayfası) ---- */
.dk-report-hub-grid {
    align-items: stretch;
}

.dk-report-hub-grid > .rz-col {
    display: flex;
    flex-direction: column;
}

.dk-report-group-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem 1.1rem;
}

.dk-report-group-head {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding-bottom: .75rem;
    margin-bottom: .5rem;
    border-bottom: 1px solid var(--dk-sidebar-border);
    color: var(--dk-text-color, #1c2330);
}

.dk-report-group-head .rzi {
    font-size: 20px;
    color: var(--dk-accent);
}

.dk-report-group-links {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.dk-report-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .65rem;
    border-radius: 8px;
    color: var(--dk-nav-fg);
    text-decoration: none;
    transition: background-color .12s ease, color .12s ease;
}

.dk-report-link:hover {
    background: var(--dk-nav-hover-bg);
    color: var(--dk-accent);
}

.dk-report-link > .rzi:first-child {
    font-size: 18px;
    flex: 0 0 auto;
    width: 22px;
    text-align: center;
}

.dk-report-link-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.dk-report-link-title {
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.25;
}

.dk-report-link-desc {
    font-size: .75rem;
    color: #98a2b3;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dk-report-link:hover .dk-report-link-desc {
    color: color-mix(in srgb, var(--dk-accent) 55%, #98a2b3);
}

.dk-report-link-arrow {
    font-size: 18px !important;
    flex: 0 0 auto;
    opacity: .35;
    transition: opacity .12s ease, transform .12s ease;
}

.dk-report-link:hover .dk-report-link-arrow {
    opacity: .85;
    transform: translateX(2px);
}

/* Sidebar kenarı — üstte daralt / genişlet (hover'da görünür) */
.dk-sidebar-toggle {
    position: absolute;
    top: 56px;
    right: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dk-sidebar-border);
    border-radius: 6px;
    background: #fff;
    color: var(--dk-accent);
    cursor: pointer;
    opacity: 0;
    transform: translateX(calc(50% + 4px));
    transition: opacity .14s, transform .14s, background .12s;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
    z-index: 2;
}

.dk-sidebar:hover .dk-sidebar-toggle {
    opacity: 1;
    transform: translateX(50%);
}
.dk-sidebar-toggle:hover { background: var(--dk-nav-hover-bg); }
.dk-sidebar-toggle .rzi { font-size: 22px; }

/* ---- Header: arama (palette trigger) ---- */
.dk-search {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: min(100%, 460px);
    height: 36px;
    padding: 0 .55rem 0 .85rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    font: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

.dk-search .rzi {
    color: #fff;
    opacity: .95;
}

.dk-search:hover,
.dk-search:focus-visible {
    background: rgba(255, 255, 255, .24);
    border-color: rgba(255, 255, 255, .42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    outline: none;
}

.dk-search-placeholder {
    flex: 1 1 auto;
    text-align: left;
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .92);
}

.dk-kbd {
    font-size: .7rem;
    font-weight: 600;
    padding: .15rem .4rem;
    border-radius: 5px;
    background: transparent;
    color: rgba(255, 255, 255, .95);
    border: 1px solid rgba(255, 255, 255, .55);
    letter-spacing: .01em;
}

/* ---- Bildirim çekmecesi (Docker Desktop tarzı, sağdan sola) ---- */
.dk-notif-backdrop {
    position: fixed;
    top: var(--dk-header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1190;
    background: rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.dk-notif-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.dk-notif-drawer {
    position: fixed;
    top: var(--dk-header-h);
    right: 0;
    bottom: 0;
    z-index: 1191;
    width: min(100%, 420px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-left: 1px solid #e4e7ec;
    /* Kapalıyken gölge yok: translateX(100%) ile ekran dışındayken sol tarafa
       sızan gölge sağ kenarda kalıcı koyu şerit bırakıyordu. */
    box-shadow: none;
    transform: translateX(100%);
    transition: transform .22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .22s ease;
    pointer-events: none;
}

.dk-notif-drawer.is-open {
    transform: translateX(0);
    pointer-events: auto;
    box-shadow: -6px 0 20px rgba(15, 23, 42, 0.08);
}

.dk-notif-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    height: 48px;
    padding: 0 .85rem 0 1.1rem;
    border-bottom: 1px solid #eef2f6;
}

.dk-notif-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    color: #101828;
}

.dk-notif-close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--dk-accent);
    cursor: pointer;
}

.dk-notif-close:hover { background: var(--dk-accent-soft); }
.dk-notif-close .rzi { font-size: 20px; }

.dk-notif-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.dk-notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    height: 100%;
    min-height: 240px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #98a2b3;
}

.dk-notif-empty-icon {
    font-size: 42px !important;
    color: #d0d5dd;
    margin-bottom: .35rem;
}

.dk-notif-empty strong {
    font-size: .95rem;
    font-weight: 600;
    color: #475467;
}

.dk-notif-empty span {
    font-size: .82rem;
    line-height: 1.4;
    max-width: 220px;
}

.dk-notif-list {
    list-style: none;
    margin: 0;
    padding: .25rem 0 1rem;
}

.dk-notif-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.05rem 1.35rem;
}

.dk-notif-item:hover { background: #f8fafc; }

.dk-notif-dismiss {
    position: absolute;
    top: .7rem;
    right: .65rem;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #98a2b3;
    opacity: 0;
    cursor: pointer;
    transition: opacity .12s, background .12s, color .12s;
}

.dk-notif-item:hover .dk-notif-dismiss { opacity: 1; }
.dk-notif-dismiss:hover { background: #f2f4f7; color: #344054; }
.dk-notif-dismiss .rzi { font-size: 16px; }

.dk-notif-item-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-top: .1rem;
}

.dk-notif-item-icon .rzi { font-size: 22px; }

.dk-notif-sev-info { color: #1d63ed; background: #eef4ff; }
.dk-notif-sev-ok { color: #067647; background: #ecfdf3; }
.dk-notif-sev-warn { color: #b54708; background: #fffaeb; }
.dk-notif-sev-err { color: #b42318; background: #fef3f2; }

.dk-notif-item-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding-right: 1.4rem;
}

.dk-notif-item-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.4;
    color: #101828;
}

.dk-notif-item-msg {
    margin: 0;
    font-size: .86rem;
    line-height: 1.4;
    color: #667085;
}

.dk-notif-item-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dk-accent);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.3;
}

.dk-notif-item-action:hover { text-decoration: underline; }

.dk-notif-item-time {
    font-size: .82rem;
    color: #98a2b3;
    line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
    .dk-notif-backdrop,
    .dk-notif-drawer { transition: none; }
}

/* ---- Eğitim Merkezi çekmecesi ---- */
.dk-learn-drawer {
    width: min(100%, 440px);
}

.dk-learn-body {
    padding: .25rem 0 1.25rem;
}

.dk-learn-section {
    padding: .85rem 1.2rem 0;
}

.dk-learn-section h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #101828;
}

.dk-learn-lead {
    margin: .3rem 0 0;
    font-size: .84rem;
    line-height: 1.4;
    color: #667085;
}

.dk-learn-cards {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-top: .85rem;
}

.dk-learn-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: 100%;
    padding: .55rem;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .12s, background .12s, box-shadow .12s;
}

.dk-learn-card:hover {
    background: #f8fafc;
    border-color: #d0d5dd;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}

.dk-learn-thumb {
    width: 72px;
    height: 52px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
}

.dk-learn-thumb .rzi { font-size: 26px; }

.dk-learn-thumb-blue { background: linear-gradient(145deg, #1353d3, #3b82f6); }
.dk-learn-thumb-teal { background: linear-gradient(145deg, #0f766e, #14b8a6); }
.dk-learn-thumb-indigo { background: linear-gradient(145deg, #3730a3, #6366f1); }
.dk-learn-thumb-amber { background: linear-gradient(145deg, #b45309, #f59e0b); }

.dk-learn-card-text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.dk-learn-card-text strong {
    font-size: .9rem;
    font-weight: 650;
    color: #101828;
}

.dk-learn-card-text span {
    font-size: .8rem;
    color: #98a2b3;
}

.dk-learn-link {
    margin-top: .75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dk-accent);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.dk-learn-link:hover { text-decoration: underline; }

.dk-learn-link-block {
    display: inline-block;
    margin-top: .55rem;
}

.dk-learn-guides {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-top: .85rem;
}

.dk-learn-guide {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    width: 100%;
    padding: .85rem;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .12s, background .12s;
}

.dk-learn-guide:hover {
    background: #f8fafc;
    border-color: #d0d5dd;
}

.dk-learn-guide-icons {
    display: inline-flex;
    gap: .25rem;
    flex-shrink: 0;
    padding-top: .1rem;
}

.dk-learn-guide-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #eef4ff;
    color: #1353d3;
}

.dk-learn-guide-icon .rzi { font-size: 16px; }

.dk-learn-guide-text {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

.dk-learn-guide-text strong {
    font-size: .9rem;
    font-weight: 650;
    color: #101828;
}

.dk-learn-guide-text span {
    font-size: .8rem;
    line-height: 1.4;
    color: #667085;
}

.dk-learn-role-list {
    list-style: none;
    margin: .55rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.dk-learn-role-list .dk-learn-link { margin-top: 0; }

/* ---- Command palette (Docker Desktop tarzı) ---- */
.dk-cmd-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 1rem 2rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.dk-cmd-panel {
    width: min(100%, 760px);
    display: flex;
    flex-direction: column;
    max-height: min(72vh, 560px);
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.dk-cmd-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eef2f6;
}

.dk-cmd-input-icon {
    flex: 0 0 auto;
    font-size: 22px !important;
    color: #94a3b8;
}

.dk-cmd-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 1.05rem;
    color: #0f172a;
}

.dk-cmd-input::placeholder {
    color: #94a3b8;
}

.dk-cmd-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.5rem 0.5rem 0.65rem;
}

.dk-cmd-section-label {
    padding: 0.35rem 0.65rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.dk-cmd-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dk-cmd-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 40px;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    color: #0f172a;
}

.dk-cmd-item.is-selected,
.dk-cmd-item:hover {
    background: var(--dk-accent-soft, #e8f0ff);
}

.dk-cmd-item-icon {
    flex: 0 0 auto;
    font-size: 20px !important;
    width: 24px;
    text-align: center;
    color: var(--dk-accent, #1d63ed);
}

.dk-cmd-item-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dk-cmd-item-group {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.dk-cmd-empty {
    margin: 1.25rem 0.65rem;
    font-size: 0.875rem;
    color: #94a3b8;
    text-align: center;
}

.dk-cmd-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1rem;
    border-top: 1px solid #eef2f6;
    background: #f8fafc;
}

.dk-cmd-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #64748b;
}

.dk-cmd-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--dk-header-bg, #1353d3);
    color: #fff;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
}

/* Pencere düğmeleri (min/max/close) */
.dk-winbtns { display: flex; align-items: center; margin-left: .25rem; }

.dk-winbtn {
    width: 44px;
    height: var(--dk-header-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--dk-header-fg);
    cursor: pointer;
    transition: background .12s;
}

.dk-winbtn:hover { background: rgba(255, 255, 255, .12); }
.dk-winbtn.dk-close:hover { background: #e81123; color: #fff; }
.dk-winbtn .rzi { font-size: 18px; }

/* ---- Header sağ: durum pill'leri (şimdilik mock) ---- */
.dk-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    height: 30px;
    padding: 0 .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--dk-header-fg);
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .14);
}

.dk-pill .rzi { font-size: 16px; }

.dk-pill-ok {
    color: #bbf7d0;
    background: rgba(34, 197, 94, .18);
    border-color: rgba(34, 197, 94, .35);
}

.dk-pill-warn {
    color: #fde68a;
    background: rgba(245, 158, 11, .18);
    border-color: rgba(245, 158, 11, .35);
}

/* ---- Header sağ: ikon butonları ---- */
.dk-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background .12s, color .12s;
}

.dk-icon-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.dk-icon-btn.is-active { background: rgba(255, 255, 255, .18); color: #fff; }
.dk-icon-btn .rzi {
    font-size: 24px;
    font-weight: 200 !important;
    font-variation-settings:
        "FILL" 0,
        "wght" 200,
        "GRAD" -50,
        "opsz" 24 !important;
}

.dk-icon-btn.dk-has-badge::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 7px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f04438;
    border: 2px solid var(--dk-header-bg);
}

/* ---- Header sağ: kullanıcı / avatar ---- */
details.dk-user-wrap {
    position: relative;
    border: 0;
    margin: 0;
    padding: 0;
}

details.dk-user-wrap > summary.dk-user {
    list-style: none;
}

details.dk-user-wrap > summary.dk-user::-webkit-details-marker {
    display: none;
}

details.dk-user-wrap[open] > summary.dk-user {
    background: rgba(255, 255, 255, .12);
}

details.dk-user-wrap:not([open]) > .dk-menu-backdrop {
    display: none;
}

.dk-user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: var(--dk-header-fg);
    transition: background .12s;
}

.dk-user:hover { background: rgba(255, 255, 255, .12); }

.dk-user.is-active { background: rgba(255, 255, 255, .12); }

/* Hesap menüsü açılır kutusu */
.dk-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.dk-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    width: 280px;
    padding: 0 0 .4rem;
    background: #fff;
    border: 1px solid var(--dk-sidebar-border);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .16);
    overflow: hidden;
}

.dk-user-menu-hero {
    position: relative;
    padding-bottom: .85rem;
}

.dk-user-menu-banner {
    height: 64px;
    background:
        radial-gradient(120% 140% at 10% 20%, rgba(255, 255, 255, .28), transparent 55%),
        linear-gradient(125deg, #0f4ec4 0%, #1d63ed 45%, #3b82f6 100%);
}

.dk-user-menu-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    margin-top: -28px;
    padding: 0 1rem;
    text-align: center;
}

.dk-user-menu-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1353d3;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .12);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.dk-user-menu-badge {
    margin-top: .35rem;
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 .55rem;
    border-radius: 999px;
    background: #344054;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dk-user-menu-name {
    font-size: .95rem;
    font-weight: 650;
    color: #101828;
    line-height: 1.3;
}

.dk-user-menu-user {
    font-size: .8rem;
    color: #98a2b3;
    line-height: 1.2;
}

.dk-user-menu-section {
    display: flex;
    flex-direction: column;
    padding: .25rem .4rem;
}

.dk-user-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: .55rem .75rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #101828;
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background .12s, color .12s;
}

.dk-user-menu-item:hover { background: var(--dk-nav-hover-bg); }

.dk-user-menu-item.dk-danger { color: #b42318; }
.dk-user-menu-item.dk-danger:hover { background: #fef3f2; }

.dk-user-menu-sep {
    height: 1px;
    margin: .15rem 0;
    background: var(--dk-sidebar-border);
}

/* ---- Header: uygulama geçiş menüsü (9 nokta) ---- */
.dk-app-switcher-wrap { position: relative; }

.dk-app-switcher-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 50;
    min-width: 320px;
    max-width: 360px;
    padding: .5rem;
    background: #fff;
    border: 1px solid var(--dk-sidebar-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .16);
}

.dk-app-switcher-head {
    padding: .35rem .75rem .5rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #98a2b3;
}

.dk-app-switcher-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    width: 100%;
    padding: .75rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background .12s;
}

.dk-app-switcher-item:hover:not(:disabled) { background: var(--dk-nav-hover-bg); }

.dk-app-switcher-item:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.dk-app-switcher-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef4ff;
    color: #175cd3;
}

.dk-app-switcher-icon .rzi { font-size: 22px; }

.dk-app-switcher-text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.dk-app-switcher-text strong {
    font-size: .9rem;
    font-weight: 600;
    color: var(--dk-nav-fg);
}

.dk-app-switcher-text span {
    font-size: .8rem;
    color: #667085;
    line-height: 1.35;
}

.dk-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0b3fa8;
    border: 2px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    flex: 0 0 auto;
    letter-spacing: .02em;
}

.dk-user-name {
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ---- İçerik ---- */
.dk-content {
    flex: 1 1 auto;
    min-width: 0;
    overflow: auto;
    padding: 1.5rem;
    background: var(--dk-content-bg);
}

/* Masaüstü: sekme çubuğu üstte, içerik padding'i sekmelerin altında kalır */
.dk-content.dk-content-tabs {
    padding-top: 0;
}

/* ---- Çalışma alanı sekmeleri (VS / tarayıcı tarzı) ---- */
.dk-workspace-tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    margin: 0 -1.5rem 1rem;
    padding: 0.45rem 0.85rem 0;
    background: #eef1f5;
    border-bottom: 1px solid var(--dk-sidebar-border, #e6e8ec);
    min-height: 38px;
}

.dk-workspace-tabs-scroll {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.dk-workspace-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 220px;
    height: 32px;
    padding: 0 0.55rem 0 0.75rem;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: #5b6577;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.dk-workspace-tab:hover {
    background: rgba(255, 255, 255, 0.65);
    color: #1c2330;
}

.dk-workspace-tab.is-active {
    background: #fff;
    color: #1c2330;
    border-color: var(--dk-sidebar-border, #e6e8ec);
    box-shadow: 0 1px 0 #fff;
    position: relative;
    z-index: 1;
}

.dk-workspace-tab-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dk-workspace-tab-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #8b93a7;
    cursor: pointer;
    opacity: 0.55;
    transition: background-color 0.12s ease, color 0.12s ease, opacity 0.12s ease;
}

.dk-workspace-tab:hover .dk-workspace-tab-close,
.dk-workspace-tab.is-active .dk-workspace-tab-close {
    opacity: 1;
}

.dk-workspace-tab-close:hover {
    background: #e8ebf0;
    color: #1c2330;
}

.dk-workspace-tab-close .rzi {
    font-size: 14px;
}

.dk-workspace-tab-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.dk-workspace-tab-menu {
    position: fixed;
    z-index: 41;
    min-width: 160px;
    padding: 0.25rem;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(28, 35, 48, 0.14);
}

.dk-workspace-tab-menu-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.45rem 0.7rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #1c2330;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.dk-workspace-tab-menu-item:hover:not(:disabled) {
    background: #eef1f5;
}

.dk-workspace-tab-menu-item:disabled {
    color: #9aa3b5;
    cursor: default;
}

/* Canlı sekmeler: pasif sayfa gizlenir, dispose edilmez (form state korunur) */
.dk-workspace-pane {
    display: none;
}

.dk-workspace-pane.is-active {
    display: block;
}

/* ---- Radzen butonları — shell içinde KantinApp yoğunluğu ---- */
.dk-shell .rz-button:not(.rz-numeric-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: var(--dk-btn-h);
    min-height: var(--dk-btn-h);
    min-width: 0;
    padding: 0 0.875rem;
    border-radius: var(--dk-btn-radius);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: none;
    box-shadow: none !important;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, opacity 0.12s ease;
}

.dk-shell .rz-button:not(.rz-numeric-button) .rzi {
    font-size: 16px;
}

.dk-shell .rz-button-sm:not(.rz-numeric-button),
.dk-shell .rz-button.rz-button-sm:not(.rz-numeric-button) {
    height: var(--dk-btn-h-sm);
    padding: 0 0.7rem;
    font-size: 0.8125rem;
}

.dk-shell .rz-button-sm:not(.rz-numeric-button) .rzi,
.dk-shell .rz-button.rz-button-sm:not(.rz-numeric-button) .rzi {
    font-size: 15px;
}

/* Numeric yukarı/aşağı — genel .rz-button kurallarından ayrı tutulur */
.dk-shell .rz-numeric .rz-numeric-button.rz-button {
    position: absolute;
    inset-inline-end: var(--rz-numeric-button-offset);
    width: var(--rz-numeric-button-width);
    height: var(--rz-numeric-button-height);
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: var(--rz-numeric-button-border-radius);
    background-color: var(--rz-numeric-button-background-color);
    color: var(--rz-numeric-button-color);
    box-shadow: none !important;
    font-size: inherit;
    font-weight: normal;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.dk-shell .rz-numeric .rz-numeric-button.rz-button .rzi {
    font-size: var(--rz-numeric-button-height);
    vertical-align: top;
}

.dk-shell .rz-numeric .rz-numeric-up.rz-button {
    inset-block-start: var(--rz-numeric-button-offset);
}

.dk-shell .rz-numeric .rz-numeric-down.rz-button {
    inset-block-end: var(--rz-numeric-button-offset);
}

.dk-shell .rz-numeric .rz-numeric-button.rz-button:hover:not(:disabled) {
    background-color: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
}

.dk-shell .rz-numeric.rz-state-disabled .rz-numeric-button.rz-button {
    opacity: 0.45;
}

.dk-shell .rz-button.rz-primary.rz-variant-filled {
    background: var(--dk-btn-primary) !important;
    border-color: var(--dk-btn-primary) !important;
    color: #fff !important;
}

.dk-shell .rz-button.rz-primary.rz-variant-filled:hover:not(:disabled) {
    background: var(--dk-btn-primary-hover) !important;
    border-color: var(--dk-btn-primary-hover) !important;
}

.dk-shell .rz-button.rz-secondary.rz-variant-filled,
.dk-shell .rz-button.rz-light.rz-variant-filled,
.dk-shell .rz-button.rz-variant-outlined {
    box-shadow: none !important;
}

.dk-shell .rz-button.rz-light.rz-variant-filled,
.dk-shell .rz-button.rz-secondary.rz-variant-filled {
    background: #fff !important;
    border: 1px solid var(--dk-btn-border) !important;
    color: var(--dk-btn-fg) !important;
}

.dk-shell .rz-button.rz-light.rz-variant-filled:hover:not(:disabled),
.dk-shell .rz-button.rz-secondary.rz-variant-filled:hover:not(:disabled) {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: var(--dk-btn-fg) !important;
}

.dk-shell .rz-button.rz-variant-outlined,
.dk-shell .rz-button.rz-light.rz-variant-outlined {
    background: #fff !important;
    border: 1px solid var(--dk-btn-border) !important;
    color: var(--dk-btn-fg) !important;
}

.dk-shell .rz-button.rz-variant-outlined:hover:not(:disabled),
.dk-shell .rz-button.rz-light.rz-variant-outlined:hover:not(:disabled) {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.dk-shell .rz-button.rz-warning.rz-variant-filled {
    background: #fff7ed !important;
    border: 1px solid #fdba74 !important;
    color: #c2410c !important;
    box-shadow: none !important;
}

.dk-shell .rz-button.rz-warning.rz-variant-filled:hover:not(:disabled) {
    background: #ffedd5 !important;
    border-color: #fb923c !important;
    color: #9a3412 !important;
}

.dk-shell .rz-button.rz-success.rz-variant-filled {
    background: #ecfdf3 !important;
    border: 1px solid #abefc6 !important;
    color: #067647 !important;
    box-shadow: none !important;
}

.dk-shell .rz-button.rz-success.rz-variant-filled:hover:not(:disabled) {
    background: #d1fadf !important;
    border-color: #75e0a7 !important;
    color: #05603a !important;
}

.dk-shell .rz-button.rz-danger.rz-variant-filled {
    background: var(--dk-btn-destructive) !important;
    border-color: var(--dk-btn-destructive) !important;
    box-shadow: none !important;
}

.dk-shell .rz-button.rz-danger.rz-variant-filled:hover:not(:disabled) {
    background: var(--dk-btn-destructive-hover) !important;
    border-color: var(--dk-btn-destructive-hover) !important;
}

.dk-shell .rz-button.rz-success.rz-variant-filled {
    box-shadow: none !important;
}

.dk-shell .rz-button:disabled:not(.rz-numeric-button) {
    opacity: 0.5;
}

/* ---- Kart gölgeleri (Radzen rz-shadow-* + özel kartlar) ---- */
.dk-shell .rz-shadow-1,
.dk-shell .rz-card.rz-shadow-1,
.rz-shadow-1.rz-card {
    box-shadow: var(--rz-card-shadow) !important;
}

.dk-shell .rz-shadow-2,
.dk-shell .rz-card.rz-shadow-2 {
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06) !important;
}

.dk-shell .rz-shadow-3,
.dk-shell .rz-card.rz-shadow-3,
.pos-login-card.rz-shadow-3 {
    box-shadow: 0 2px 8px rgba(16, 24, 40, .08) !important;
}

/* ---- Bootstrap-benzeri card yardımcıları (WebAdmin Bootstrap yüklemez) ---- */
.card {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: var(--rz-card-border-radius, 12px);
    box-shadow: var(--rz-card-shadow);
}

.card-body {
    padding: 1rem 1.25rem;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* ---- Sayfa başlığı kartı (MatDash: card card-body py-3 ≈ 56px) ---- */
.dk-page-header.card.card-body.py-3 {
    box-sizing: border-box;
    min-height: 56px;
    padding: 1rem 1.25rem !important;
    background: #fff;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: var(--rz-card-border-radius, 12px);
    box-shadow: var(--rz-card-shadow);
    overflow: visible;
}

.dk-page-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    height: 100%;
    overflow: visible;
}

.dk-page-header-text {
    min-width: 0;
    flex: 1 1 auto;
}

.dk-page-header-title-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    min-width: 0;
}

.dk-page-header-sub {
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--dk-statusbar-fg, #64748b);
}

.dk-page-header-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    min-width: 0;
}

.dk-page-header-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.dk-page-header-home:hover {
    color: var(--dk-accent, #1d63ed);
    background: var(--dk-accent-soft, #e8f0ff);
    border-color: color-mix(in srgb, var(--dk-accent, #1d63ed) 18%, transparent);
}

.dk-page-header-home .rzi {
    font-size: 18px;
}

.dk-page-header-back {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    height: 32px;
    padding: 0 0.55rem 0 0.15rem;
    border-radius: 6px;
    border: 1px solid transparent;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.dk-page-header-back:hover {
    color: var(--dk-accent, #1d63ed);
    background: var(--dk-accent-soft, #e8f0ff);
    border-color: color-mix(in srgb, var(--dk-accent, #1d63ed) 18%, transparent);
}

.dk-page-header-back-sep {
    font-size: 1rem;
    color: #94a3b8;
    transform: rotate(180deg);
}

.dk-page-header-back:hover .dk-page-header-back-sep {
    color: var(--dk-accent, #1d63ed);
}

/* MatDash h4.card-title: ~18px / 600 / satır 24px (element yüksekliği 24px) */
.dk-page-header-title,
.dk-page-header .card-title {
    margin: 0;
    min-width: 0;
    font-family: var(--rz-text-font-family);
    font-size: 1.125rem;    /* 18px — MatDash h4, Bootstrap 1.5rem değil */
    font-weight: 600;
    line-height: 1.5rem;    /* 24px */
    letter-spacing: -0.01em;
    color: var(--rz-text-color, #1c2330);
}

.mb-0 {
    margin-bottom: 0 !important;
}

.dk-page-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    overflow: visible;
}

.dk-page-header-action-slot {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Birincil aksiyon (Primary) en sağda kalsın; ikincil/light önce gelir */
.dk-page-header-action-slot .rz-button.rz-primary {
    order: 2;
}

.dk-page-header-action-slot .rz-button:not(.rz-primary),
.dk-page-header-action-slot .dk-page-header-icon-btn {
    order: 1;
}

.dk-page-header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

/* Üst kenara yakın icon butonlarda tooltip altta açılır */
.dk-page-header-icon-btn.dk-tooltip[data-tooltip]::after,
.dk-panel-head > .dk-page-header-icon-btn.dk-tooltip[data-tooltip]::after {
    z-index: 80;
}

.dk-page-header-icon-btn:hover:not(:disabled) {
    color: var(--dk-accent, #1d63ed);
    background: var(--dk-accent-soft, #e8f0ff);
}

.dk-page-header-icon-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--dk-accent, #1d63ed) 35%, transparent);
}

.dk-page-header-icon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dk-page-header-icon-btn .rzi {
    font-size: 18px;
}

@keyframes dk-icon-spin {
    to { transform: rotate(360deg); }
}

.dk-icon-spin.rzi {
    animation: dk-icon-spin 0.8s linear infinite;
}

/* MatDash: badge fw-medium fs-2 bg-primary-subtle text-primary */
.dk-page-header-badge.badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    background: var(--dk-accent-soft, #e8f0ff);
    color: var(--dk-accent, #1d63ed);
}

.dk-page-header-actions .rz-button {
    height: var(--dk-btn-h-sm);
}

/* ---- Panel KPI — MatDash split: [renkli ikon paneli | değer + etiket] ---- */
.dk-kpi-card {
    --kpi-accent: #635bff;
    --kpi-soft: #eeedfe;

    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 72px;
    height: 100%;
    padding: 0;
    background: #fff;
    border: 1px solid var(--dk-sidebar-border, #e6e8ec);
    border-radius: 12px;
    box-shadow: var(--rz-card-shadow);
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.report-summary-card .dk-kpi-card:hover {
    border-color: color-mix(in srgb, var(--kpi-accent) 28%, var(--dk-sidebar-border, #e6e8ec));
    box-shadow: 0 6px 18px color-mix(in srgb, var(--kpi-accent) 12%, transparent);
    transform: translateY(-1px);
}

.dk-kpi-icon {
    flex: 0 0 68px;
    width: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--kpi-soft);
    color: var(--kpi-accent);
}

.dk-kpi-icon .rzi {
    font-size: 26px;
}

.dk-kpi-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.55rem 0.9rem;
    background: #fff;
}

.dk-kpi-amount {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--kpi-accent);
    white-space: nowrap;
}

.dk-kpi-title {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.25;
    color: #6b7280;
}

.dk-kpi-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: #9ca3af;
}

.dk-kpi-foot {
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.3;
    color: #b0b8c4;
    margin-top: 0.1rem;
}

.dk-kpi-tone-primary { --kpi-accent: #1d63ed; --kpi-soft: #e8f0ff; }
.dk-kpi-tone-sky     { --kpi-accent: #0284c7; --kpi-soft: #e0f2fe; }
.dk-kpi-tone-teal    { --kpi-accent: #0f766e; --kpi-soft: #ccfbf1; }
.dk-kpi-tone-indigo  { --kpi-accent: #635bff; --kpi-soft: #eeedfe; }
.dk-kpi-tone-slate   { --kpi-accent: #475569; --kpi-soft: #f1f5f9; }
.dk-kpi-tone-amber   { --kpi-accent: #d97706; --kpi-soft: #fef3c7; }
.dk-kpi-tone-rose    { --kpi-accent: #e11d48; --kpi-soft: #ffe4e6; }

.dk-kpi-value-alert {
    color: #dc2626 !important;
}

/* Panel KPI ızgarası: satır içi kartlar eşit yükseklikte */
.dk-kpi-grid {
    align-items: stretch;
}

.dk-kpi-grid > .rz-col {
    display: flex;
    flex-direction: column;
}

.dk-kpi-grid > .rz-col > .dk-kpi-card {
    flex: 1;
    width: 100%;
}

.dk-backup-alert {
    border: 1px solid #fecaca;
    background: #fef2f2;
}

.dk-panel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dk-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-bottom: .75rem;
    margin-bottom: .75rem;
    border-bottom: 1px solid var(--dk-sidebar-border);
    overflow: visible;
}

/* Panel kart başlığı — sayfa başlığından (18px) küçük kalmalı */
.dk-panel-head .rz-text-h6,
.dk-panel-head h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35rem;
    letter-spacing: -0.01em;
}

.dk-panel-head-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.dk-panel-head-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.dk-panel-head-icon-primary {
    background: var(--dk-btn-soft);
    color: var(--dk-btn-primary);
}

.dk-panel-head-icon .rzi {
    font-size: 18px;
}

.dk-panel-head-text {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

/* Panel başlığı yanında ? — hover'da ipucu balonu */
.dk-panel-help {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--dk-btn-muted);
    cursor: help;
    transition: color 0.12s ease, background-color 0.12s ease;
}

.dk-panel-help .rzi {
    font-size: 16px;
}

.dk-panel-help:hover,
.dk-panel-help:focus-visible {
    color: var(--dk-btn-primary);
    background: var(--dk-btn-soft);
    outline: none;
}

/* ---- Özel tooltip (dk-tooltip.js): CSS balon devre dışı, fixed balon kullanılır ---- */
html.dk-tooltip-js .dk-panel-help[data-tooltip]::after,
html.dk-tooltip-js .dk-panel-help[data-tooltip]::before,
html.dk-tooltip-js .dk-tooltip[data-tooltip]::after,
html.dk-tooltip-js .dk-tooltip[data-tooltip]::before {
    display: none !important;
}

.dk-tooltip-float {
    position: fixed;
    z-index: 10000;
    width: max-content;
    max-width: 240px;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    background: var(--dk-header-bg, #1353d3);
    color: var(--dk-header-fg, #eef1f8);
    font-family: var(--rz-text-font-family);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: normal;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--dk-header-bg, #1353d3) 35%, transparent);
    pointer-events: none;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.dk-tooltip-float.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Eski CSS-only balon (JS yoksa yedek) */
.dk-panel-help[data-tooltip]::after,
.dk-tooltip[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 60;
    width: max-content;
    max-width: 220px;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    background: var(--dk-header-bg, #1353d3);
    color: var(--dk-header-fg, #eef1f8);
    font-family: var(--rz-text-font-family);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: normal;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--dk-header-bg, #1353d3) 35%, transparent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(3px);
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
}

.dk-panel-help[data-tooltip]::before,
.dk-tooltip[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    z-index: 59;
    width: 8px;
    height: 8px;
    border-radius: 1.5px;
    background: var(--dk-header-bg, #1353d3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) rotate(45deg);
    transition: opacity 0.12s ease, visibility 0.12s ease;
}

.dk-panel-help[data-tooltip]:hover::after,
.dk-panel-help[data-tooltip]:focus-visible::after,
.dk-tooltip[data-tooltip]:hover::after,
.dk-tooltip[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dk-panel-help[data-tooltip]:hover::before,
.dk-panel-help[data-tooltip]:focus-visible::before,
.dk-tooltip[data-tooltip]:hover::before,
.dk-tooltip[data-tooltip]:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

/* Grid / sıkışık alanlarda tercih edilen yön (JS konumlandırma) */
.dk-tooltip[data-tooltip-pos="bottom"]::after {
    bottom: auto;
    top: calc(100% + 8px);
    transform: translateX(-50%) translateY(-3px);
}

.dk-tooltip[data-tooltip-pos="bottom"]::before {
    bottom: auto;
    top: calc(100% + 4px);
}

.dk-tooltip[data-tooltip-pos="bottom"]:hover::after,
.dk-tooltip[data-tooltip-pos="bottom"]:focus-visible::after {
    transform: translateX(-50%) translateY(0);
}

.dk-grid-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--rz-warning, #d97706);
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.dk-grid-action-btn .rzi {
    font-size: 18px;
}

.dk-grid-action-btn:hover {
    background: color-mix(in srgb, var(--rz-warning, #d97706) 14%, transparent);
    color: var(--rz-warning-darker, #b45309);
}

.dk-grid-action-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--rz-warning, #d97706) 35%, transparent);
}

/* İçi ileride doldurulacak alanlar için asgari yükseklik */
.dk-panel-body {
    flex: 1 1 auto;
    min-height: 220px;
}

.dk-panel-body-inquiry {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Panel — Stok uyarıları kompakt liste (DataGrid sütun genişliği yerine) */
.dk-stock-warning-panel {
    border: 1px solid var(--dk-sidebar-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.dk-stock-warning-list {
    background: #fff;
}

.dk-stock-warning-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--dk-sidebar-border);
}

.dk-stock-warning-row:last-child {
    border-bottom: none;
}

.dk-stock-warning-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dk-btn-fg);
}

.dk-stock-warning-pager-wrap {
    border-top: 1px solid var(--dk-sidebar-border);
    padding: 0.35rem 0.5rem;
    background: #fafbfc;
}

.dk-stock-warning-pager.rz-pager {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    justify-content: center;
    gap: 0.2rem;
    flex-wrap: nowrap;
}

.dk-stock-warning-pager .rz-pager-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2rem;
    max-height: none;
    margin: 0;
    padding: 0;
}

.dk-stock-warning-pager .rz-pager-element,
.dk-stock-warning-pager .rz-pager-page {
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1;
}

.dk-stock-warning-pager .rz-pager-element .rz-button,
.dk-stock-warning-pager .rz-pager-page .rz-button {
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border-radius: var(--dk-btn-radius, 6px);
    box-shadow: none !important;
}

.dk-stock-warning-pager .rz-pager-element .rzi,
.dk-stock-warning-pager .rz-pager-page .rzi {
    font-size: 18px;
}

/* ---- Hızlı işlemler (panel) ---- */
.dk-quick-actions-panel {
    border: 1px solid var(--dk-sidebar-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.dk-quick-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--dk-sidebar-border);
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.dk-quick-action:last-child {
    border-bottom: none;
}

.dk-quick-action:hover {
    background: #fafbfc;
}

.dk-quick-action:focus-visible {
    outline: none;
    background: var(--dk-btn-soft);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--dk-btn-primary) 35%, transparent);
}

.dk-quick-action-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--dk-btn-soft);
    color: var(--dk-btn-primary);
}

.dk-quick-action-icon .rzi {
    font-size: 20px;
}

.dk-quick-action-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.dk-quick-action-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dk-btn-fg);
}

.dk-quick-action-desc {
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--dk-btn-muted);
}

.dk-quick-action-chevron.rzi {
    flex-shrink: 0;
    font-size: 20px;
    color: #cbd5e1;
    transition: color 0.12s ease, transform 0.12s ease;
}

.dk-quick-action:hover .dk-quick-action-chevron.rzi {
    color: var(--dk-btn-primary);
    transform: translateX(1px);
}

/* ---- Alt durum çubuğu ---- */
.dk-statusbar {
    height: var(--dk-statusbar-h);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    background: var(--dk-statusbar-bg);
    border-top: 1px solid var(--dk-sidebar-border);
    color: var(--dk-statusbar-fg);
    font-size: .75rem;
    position: relative;
}

.dk-status-item { display: inline-flex; align-items: center; gap: .35rem; }

/* Alt çubukta sürüm etiketi (ortada) */
.dk-status-item--center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dk-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dk-ok);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

.dk-dot-err {
    background: var(--dk-err);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .18);
}

.dk-dot-muted {
    background: #98a2b3;
    box-shadow: none;
}

/* Status bar içi kompakt pill (header dk-pill'den daha küçük; açık zemin) */
.dk-status-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    height: 20px;
    padding: 0 .5rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    white-space: nowrap;
}

.dk-status-pill .rzi { font-size: 14px; }

.dk-status-pill-muted {
    color: #98a2b3;
    background: rgba(152, 162, 179, .12);
    border: 1px solid rgba(152, 162, 179, .28);
}

.dk-spacer { flex: 1 1 auto; }

/* Lisans uyarı bandı — üst barın hemen altında, tam genişlik */
.dk-license-banner {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    padding: .55rem 1rem;
    font-size: .8125rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    box-sizing: border-box;
}

.dk-license-banner-warn {
    color: #92400e;
    background: #fffbeb;
    border-bottom-color: #fde68a;
}

.dk-license-banner-danger {
    color: #991b1b;
    background: #fef2f2;
    border-bottom-color: #fecaca;
}

.dk-license-banner-link {
    margin-left: auto;
    padding: .2rem .55rem;
    border: 0;
    border-radius: 6px;
    background: rgba(0, 0, 0, .06);
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.dk-license-banner-link:hover {
    background: rgba(0, 0, 0, .1);
}

/* ---- Mobil kabuk (theme-shell en sonda — app.css’ten sonra yüklenir) ---- */
.dk-mobile-nav-btn {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--dk-header-fg, #eef1f8);
    cursor: pointer;
    transition: background 0.12s ease;
}

.dk-mobile-nav-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.dk-mobile-nav-btn .rzi {
    font-size: 22px;
}

.dk-sidebar-backdrop {
    display: none;
}

@media (max-width: 767.98px) {
    :root {
        --dk-statusbar-h: 0px;
    }

    .dk-mobile-nav-btn {
        display: inline-flex;
    }

    /*
     * Mobil kaydırma: belge (html/body) — iç içe scroll + Chrome emülasyon uyumu.
     * --veli-vvh: isteğe bağlı min-height (visualViewport resize; scroll dinlenmez).
     */
    :root {
        --veli-vvh: 100dvh;
    }

    html {
        height: auto !important;
        max-height: none !important;
        min-height: var(--veli-vvh, 100dvh);
        overflow-x: hidden;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }

    body {
        height: auto !important;
        max-height: none !important;
        min-height: var(--veli-vvh, 100dvh);
        overflow-x: hidden;
        overflow-y: visible;
    }

    .dk-shell {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: var(--veli-vvh, 100dvh);
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .dk-statusbar {
        display: none !important;
    }

    .dk-header {
        position: sticky;
        top: 0;
        flex: 0 0 auto;
        z-index: 80;
        padding: 0 max(0.65rem, env(safe-area-inset-right, 0px)) 0 max(0.65rem, env(safe-area-inset-left, 0px));
    }

    .dk-header > .app-titlebar-content {
        width: 100%;
        gap: 0.5rem;
    }

    .dk-header-left {
        flex: 1 1 auto;
        min-width: 0;
    }

    .dk-header-right {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .dk-header-center {
        display: none;
    }

    .dk-logo-brand {
        height: 28px;
        max-width: min(148px, 42vw);
    }

    details.dk-user-wrap {
        flex-shrink: 0;
    }

    .dk-header .dk-user {
        width: 38px;
        height: 38px;
    }

    .dk-header .dk-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.72rem;
        border-width: 1.5px;
    }

    .dk-badge.dk-badge-panel {
        display: none;
    }

    .dk-body {
        display: flex;
        flex-direction: row;
        flex: 1 0 auto;
        position: relative;
        min-width: 0;
        min-height: auto;
        overflow: visible;
    }

    .dk-sidebar-backdrop {
        display: none;
        position: fixed;
        top: var(--dk-header-h, 60px);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 90;
        background: rgba(15, 23, 42, 0.42);
        pointer-events: none;
    }

    /* [hidden] + display:block çakışmasında gri perde kalıp tıklamayı kesmesin */
    .dk-sidebar-backdrop[hidden] {
        display: none !important;
        pointer-events: none !important;
    }

    .dk-sidebar-backdrop:not([hidden]) {
        display: block;
        pointer-events: auto;
    }

    .dk-sidebar {
        position: fixed;
        top: var(--dk-header-h, 60px);
        bottom: 0;
        left: 0;
        z-index: 95;
        flex: none;
        width: min(88vw, var(--dk-sidebar-w));
        max-width: var(--dk-sidebar-w);
        transform: translateX(-105%);
        transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: none;
    }

    .dk-sidebar.dk-mobile-open {
        transform: translateX(0);
        box-shadow: 8px 0 28px rgba(15, 23, 42, 0.14);
    }

    html.pnl-sidebar-collapsed-pending .dk-sidebar,
    .dk-sidebar.dk-collapsed {
        width: min(88vw, var(--dk-sidebar-w));
    }

    html.pnl-sidebar-collapsed-pending .dk-sidebar:not(.dk-mobile-open) .dk-nav-label,
    html.pnl-sidebar-collapsed-pending .dk-sidebar:not(.dk-mobile-open) .dk-section-title,
    .dk-sidebar.dk-collapsed:not(.dk-mobile-open) .dk-nav-label,
    .dk-sidebar.dk-collapsed:not(.dk-mobile-open) .dk-section-title {
        display: none;
    }

    .dk-sidebar.dk-mobile-open .dk-nav-label,
    .dk-sidebar.dk-mobile-open .dk-section-title {
        display: block;
    }

    .dk-sidebar.dk-mobile-open.dk-collapsed .dk-nav-item,
    html.pnl-sidebar-collapsed-pending .dk-sidebar.dk-mobile-open .dk-nav-item {
        justify-content: flex-start;
        padding: 0 0.6rem;
    }

    .dk-sidebar-toggle {
        display: none;
    }

    .dk-content {
        flex: 1 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: auto;
        overflow: visible;
        padding: 0.85rem 0.75rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    .dk-content::after {
        content: none;
        display: none;
    }

    .dk-page-header.card.card-body.py-3 {
        padding: 0.85rem 1rem !important;
    }

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

    .dk-page-header-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
    }

    .dk-page-header-action-slot {
        flex-wrap: wrap;
    }

    .pnl-user-menu {
        position: fixed;
        top: calc(var(--dk-header-h, 60px) + 0.35rem);
        right: 0.65rem;
        left: auto;
        width: min(calc(100vw - 1.3rem), 280px);
    }
}

@media (max-width: 420px) {
    .dk-page-header-title,
    .dk-page-header .card-title {
        font-size: 1rem;
        line-height: 1.35rem;
    }
}

