/* =====================================================================
   Nova3D Stok Takibi - Arayuz stilleri
   Harici font / ikon / CSS CDN kullanilmaz. Tamami yerel.
   Kimlik: koyu lacivert zemin + cyan / mor / olculu turuncu vurgu.
   ===================================================================== */

:root {
    --navy-900: #060b1e;
    --navy-800: #0a1230;
    --navy-700: #0f1a42;
    --navy-600: #152355;
    --navy-500: #1d2f6b;

    --line: #24356e;
    --line-soft: #1a2856;

    --cyan: #2ee6d6;
    --cyan-dim: #16b8ab;
    --purple: #a97bff;
    --purple-dim: #7c4ddb;
    --orange: #ff9f43;
    --orange-dim: #e07f1f;

    --ok: #37d67a;
    --warn: #ffc44d;
    --danger: #ff6b6b;

    --text: #eef2ff;
    --text-soft: #b9c4ea;
    --text-muted: #8593c4;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 12px 32px rgba(0, 0, 0, .38);

    --font: "Segoe UI", "Trebuchet MS", Tahoma, Verdana, system-ui, -apple-system, sans-serif;
    --mono: "Cascadia Mono", Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background:
        radial-gradient(1100px 620px at 12% -10%, rgba(46, 230, 214, .12), transparent 60%),
        radial-gradient(900px 560px at 92% 0%, rgba(169, 123, 255, .13), transparent 62%),
        var(--navy-900);
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    margin: 0 0 .6rem;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: .2px;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.18rem; }
h3 { font-size: 1.02rem; }

p { margin: 0 0 .8rem; }

a {
    color: var(--cyan);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: .6rem 1rem;
    background: var(--cyan);
    color: var(--navy-900);
    font-weight: 700;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    left: 0;
}

/* ---------------------------------------------------------------------
   Giris ekrani
   --------------------------------------------------------------------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem 1.75rem;
    background: linear-gradient(160deg, rgba(21, 35, 85, .96), rgba(10, 18, 48, .98));
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow), 0 0 44px rgba(46, 230, 214, .07);
}

.login-card .brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1.4rem;
}

/* ---------------------------------------------------------------------
   Marka
   --------------------------------------------------------------------- */
.brand__mark {
    flex: 0 0 auto;
    filter: drop-shadow(0 0 10px rgba(46, 230, 214, .38));
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__title {
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: .3px;
    color: var(--text);
}

.brand__title em {
    font-style: normal;
    color: var(--cyan);
}

.brand__city {
    font-size: .68rem;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--orange);
}

/* ---------------------------------------------------------------------
   Uygulama iskeleti
   --------------------------------------------------------------------- */
.app {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.1rem .85rem;
    background: linear-gradient(180deg, rgba(15, 26, 66, .97), rgba(6, 11, 30, .97));
    border-right: 1px solid var(--line);
    overflow-y: auto;
}

.sidebar .brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .3rem .4rem 1rem;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: .9rem;
}

.nav-group {
    margin-bottom: 1rem;
}

.nav-group__title {
    padding: 0 .55rem;
    margin-bottom: .35rem;
    font-size: .66rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .52rem .6rem;
    margin-bottom: 2px;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-size: .92rem;
    border-left: 3px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.nav-link:hover {
    background: rgba(46, 230, 214, .08);
    color: var(--text);
    text-decoration: none;
}

.nav-link.is-active {
    background: linear-gradient(90deg, rgba(46, 230, 214, .16), rgba(169, 123, 255, .07));
    border-left-color: var(--cyan);
    color: #fff;
    font-weight: 600;
}

.nav-link svg {
    flex: 0 0 auto;
    opacity: .9;
}

.sidebar__footer {
    margin-top: auto;
    padding-top: .9rem;
    border-top: 1px solid var(--line-soft);
    font-size: .8rem;
    color: var(--text-muted);
}

.main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem 1.25rem;
    background: rgba(10, 18, 48, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.topbar__title {
    margin: 0;
    min-width: 0;
    font-size: 1.06rem;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar__spacer {
    flex: 1 1 auto;
}

.topbar__user {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    font-size: .86rem;
    color: var(--text-soft);
}

.topbar__user > span:not(.badge) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(46, 230, 214, .1);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
}

.content {
    flex: 1 1 auto;
    padding: 1.25rem;
    max-width: 1400px;
    width: 100%;
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.1rem;
}

.page-head h1 {
    margin: 0;
}

.page-head__actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* ---------------------------------------------------------------------
   Kartlar
   --------------------------------------------------------------------- */
.card {
    background: linear-gradient(165deg, rgba(21, 35, 85, .58), rgba(10, 18, 48, .8));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem;
    margin-bottom: 1.1rem;
    box-shadow: var(--shadow);
}

.card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-bottom: .85rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--line-soft);
}

.card__head h2,
.card__head h3 {
    margin: 0;
}

.card__head .spacer {
    flex: 1 1 auto;
}

.grid {
    display: grid;
    gap: 1rem;
}

/* min() sarmalayicisi, dar ekranlarda sutunun kapsayicisindan tasmasini onler. */
.grid--stats {
    grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr));
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.stat {
    position: relative;
    padding: 1rem 1.05rem;
    background: linear-gradient(160deg, rgba(21, 35, 85, .72), rgba(10, 18, 48, .9));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--cyan);
}

.stat--purple::before { background: var(--purple); }
.stat--orange::before { background: var(--orange); }
.stat--ok::before { background: var(--ok); }
.stat--warn::before { background: var(--warn); }

.stat__label {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .35rem;
}

.stat__value {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: .4px;
    color: #fff;
    word-break: break-word;
}

.stat__hint {
    margin-top: .2rem;
    font-size: .78rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------------
   Butonlar
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .55rem 1rem;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    background: rgba(29, 47, 107, .7);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease, filter .15s ease, background .15s ease;
}

.btn:hover {
    filter: brightness(1.12);
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
    border-color: transparent;
    color: #04202a;
    box-shadow: 0 0 18px rgba(46, 230, 214, .22);
}

.btn--purple {
    background: linear-gradient(135deg, var(--purple-dim), var(--purple));
    border-color: transparent;
    color: #150a2b;
    box-shadow: 0 0 18px rgba(169, 123, 255, .2);
}

.btn--orange {
    background: linear-gradient(135deg, var(--orange-dim), var(--orange));
    border-color: transparent;
    color: #2b1500;
}

.btn--danger {
    background: rgba(255, 107, 107, .14);
    border-color: rgba(255, 107, 107, .5);
    color: #ffc9c9;
}

.btn--ghost {
    background: transparent;
}

.btn--sm {
    padding: .34rem .68rem;
    font-size: .82rem;
}

.btn--block {
    width: 100%;
}

.btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------------
   Formlar
   --------------------------------------------------------------------- */
.form-grid {
    display: grid;
    gap: .9rem;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 0;
}

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

.field > label {
    font-size: .84rem;
    font-weight: 600;
    color: var(--text-soft);
}

.field .req {
    color: var(--orange);
}

.field__hint {
    font-size: .76rem;
    color: var(--text-muted);
}

.field__error {
    font-size: .78rem;
    color: #ffb4b4;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: .55rem .7rem;
    font: inherit;
    font-size: .92rem;
    color: var(--text);
    background: rgba(6, 11, 30, .72);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}

textarea {
    min-height: 84px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(46, 230, 214, .16);
    outline: none;
}

input[readonly],
input[disabled],
select[disabled] {
    background: rgba(6, 11, 30, .4);
    color: var(--text-muted);
    cursor: not-allowed;
}

.has-error input,
.has-error select,
.has-error textarea {
    border-color: rgba(255, 107, 107, .75);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: var(--text-soft);
}

.checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--cyan);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--line-soft);
}

.filters {
    display: grid;
    gap: .7rem;
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
    align-items: end;
}

.filters .field--actions {
    display: flex;
    flex-direction: row;
    gap: .5rem;
    align-items: center;
}

/* ---------------------------------------------------------------------
   Uyari / flash mesajlari
   --------------------------------------------------------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .7rem .9rem;
    margin-bottom: .7rem;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-size: .92rem;
}

.alert--success {
    background: rgba(55, 214, 122, .1);
    border-color: rgba(55, 214, 122, .42);
    color: #b9f5d1;
}

.alert--error {
    background: rgba(255, 107, 107, .1);
    border-color: rgba(255, 107, 107, .45);
    color: #ffc9c9;
}

.alert--warning {
    background: rgba(255, 196, 77, .1);
    border-color: rgba(255, 196, 77, .42);
    color: #ffe6ac;
}

.alert--info {
    background: rgba(46, 230, 214, .09);
    border-color: rgba(46, 230, 214, .38);
    color: #b6f4ee;
}

.alert svg {
    flex: 0 0 auto;
    margin-top: 2px;
}

/* ---------------------------------------------------------------------
   Tablolar
   --------------------------------------------------------------------- */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(6, 11, 30, .35);
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: .89rem;
}

table.data th,
table.data td {
    padding: .6rem .75rem;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
    white-space: nowrap;
}

table.data th {
    position: sticky;
    top: 0;
    background: rgba(15, 26, 66, .98);
    color: var(--text-soft);
    font-size: .74rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    z-index: 1;
}

table.data tbody tr:hover {
    background: rgba(46, 230, 214, .05);
}

table.data tbody tr:last-child td {
    border-bottom: none;
}

table.data td.wrap,
table.data th.wrap {
    white-space: normal;
    min-width: 180px;
}

.num {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

.empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------------
   Ürün fotoğrafları
   --------------------------------------------------------------------- */
.photo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    object-fit: cover;
    background: rgba(6, 11, 30, .6);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 700;
    overflow: hidden;
}

.photo--thumb {
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
}

.photo--card {
    width: 150px;
    height: 150px;
    font-size: 2.6rem;
    border-radius: var(--radius);
}

.photo--large {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    height: auto;
    font-size: 4rem;
    border-radius: var(--radius);
}

.photo--empty {
    background:
        linear-gradient(150deg, rgba(46, 230, 214, .12), rgba(169, 123, 255, .12)),
        rgba(6, 11, 30, .7);
    border-style: dashed;
}

img.photo {
    display: block;
}

.photo-cell {
    width: 58px;
    padding-right: 0 !important;
}

/* Fotoğraflı form düzeni: solda önizleme, sağda alanlar */
.photo-form {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
}

.photo-form > .field {
    align-items: flex-start;
}

.photo-form input[type="file"] {
    max-width: 220px;
    font-size: .84rem;
}

.photo-form .field__hint,
.photo-form .field__error {
    max-width: 220px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
}

.page-head__ident {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
}

/* Katlanır "Diğer bilgiler" bölümü */
.more {
    margin-top: 1.1rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: rgba(6, 11, 30, .3);
}

.more > summary {
    padding: .6rem .85rem;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-soft);
    list-style: none;
}

.more > summary::-webkit-details-marker {
    display: none;
}

.more > summary::before {
    content: "▸ ";
    color: var(--cyan);
}

.more[open] > summary::before {
    content: "▾ ";
}

.more > summary:hover {
    color: var(--text);
}

.more > .form-grid {
    padding: 0 .85rem .95rem;
}

/* ---------------------------------------------------------------------
   Rozetler
   --------------------------------------------------------------------- */
.badge {
    display: inline-block;
    padding: .16rem .55rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.badge--in       { background: rgba(46, 230, 214, .14); color: #92f2e9; border-color: rgba(46, 230, 214, .4); }
.badge--sale     { background: rgba(169, 123, 255, .16); color: #d8c2ff; border-color: rgba(169, 123, 255, .42); }
.badge--out      { background: rgba(255, 159, 67, .14); color: #ffd3a3; border-color: rgba(255, 159, 67, .42); }
.badge--adjust   { background: rgba(255, 196, 77, .13); color: #ffe6ac; border-color: rgba(255, 196, 77, .4); }
.badge--muted    { background: rgba(133, 147, 196, .13); color: var(--text-soft); border-color: var(--line); }
.badge--ok       { background: rgba(55, 214, 122, .14); color: #b9f5d1; border-color: rgba(55, 214, 122, .4); }
.badge--danger   { background: rgba(255, 107, 107, .14); color: #ffc9c9; border-color: rgba(255, 107, 107, .42); }
.badge--low      { background: rgba(255, 107, 107, .16); color: #ffc9c9; border-color: rgba(255, 107, 107, .5); }

.mono {
    font-family: var(--mono);
    font-size: .84rem;
    color: var(--text-soft);
}

.text-muted { color: var(--text-muted); }
.text-soft  { color: var(--text-soft); }
.text-ok    { color: var(--ok); }
.text-warn  { color: var(--warn); }
.text-danger{ color: var(--danger); }
.text-cyan  { color: var(--cyan); }

.pos::before { content: "+"; }

/* ---------------------------------------------------------------------
   Sayfalama
   --------------------------------------------------------------------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin-top: .9rem;
}

.pagination__info {
    margin-right: auto;
    font-size: .82rem;
    color: var(--text-muted);
}

.pagination a,
.pagination span {
    display: inline-block;
    min-width: 36px;
    padding: .32rem .55rem;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    color: var(--text-soft);
}

.pagination a:hover {
    background: rgba(46, 230, 214, .1);
    text-decoration: none;
}

.pagination .is-current {
    background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
    border-color: transparent;
    color: #04202a;
    font-weight: 700;
}

.pagination .is-disabled {
    opacity: .4;
}

/* ---------------------------------------------------------------------
   Aciklama listeleri
   --------------------------------------------------------------------- */
.dl {
    display: grid;
    grid-template-columns: minmax(120px, auto) 1fr;
    gap: .4rem .9rem;
    margin: 0;
    font-size: .9rem;
}

.dl dt {
    color: var(--text-muted);
}

.dl dd {
    margin: 0;
    color: var(--text);
    word-break: break-word;
}

.json-box {
    margin: 0;
    padding: .5rem .6rem;
    max-width: 460px;
    max-height: 150px;
    overflow: auto;
    font-family: var(--mono);
    font-size: .76rem;
    color: var(--text-soft);
    background: rgba(6, 11, 30, .7);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---------------------------------------------------------------------
   Hata sayfalari
   --------------------------------------------------------------------- */
.error-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}

.error-code {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 960px) {
    .app {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        position: fixed;
        z-index: 60;
        top: 0;
        left: 0;
        width: 260px;
        max-width: 84vw;
        transform: translateX(-102%);
        transition: transform .2s ease;
        box-shadow: var(--shadow);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .menu-toggle {
        display: inline-flex;
    }

    .backdrop {
        position: fixed;
        inset: 0;
        z-index: 50;
        background: rgba(3, 6, 18, .6);
        border: 0;
        padding: 0;
        cursor: pointer;
    }

    .content {
        padding: 1rem .85rem;
    }

    .page-head__actions {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 14.5px;
    }

    .stat__value {
        font-size: 1.4rem;
    }

    .grid--stats,
    .grid--2,
    .form-grid,
    .filters,
    .photo-form,
    .product-detail {
        grid-template-columns: minmax(0, 1fr);
    }

    .photo-form input[type="file"],
    .photo-form .field__hint,
    .photo-form .field__error {
        max-width: 100%;
    }

    .photo--large {
        max-width: 100%;
    }

    /* Dar ekranda kullanicinin adi yerine yalnizca rol rozeti gosterilir. */
    .topbar__user > span:not(.badge),
    .topbar__user > svg {
        display: none;
    }

    .topbar {
        padding: .7rem .85rem;
        gap: .55rem;
    }

    /* Esnek bosluk kaldirilir; artan alani sayfa basligi alir ve
       gerektiginde ucu uc noktasiyla kisalir. Rol rozeti tasmaz. */
    .topbar__spacer {
        display: none;
    }

    .topbar__title {
        flex: 1 1 auto;
    }

    .topbar__user .badge {
        flex: 0 0 auto;
    }

    .dl {
        grid-template-columns: minmax(0, 1fr);
        gap: .1rem .5rem;
    }

    .dl dd {
        margin-bottom: .5rem;
    }

    .btn {
        flex: 1 1 auto;
    }

    .page-head__actions .btn {
        flex: 1 1 140px;
    }

    table.data {
        font-size: .84rem;
    }

    table.data th,
    table.data td {
        padding: .5rem .55rem;
    }

    .json-box {
        max-width: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

@media print {
    .sidebar,
    .topbar,
    .page-head__actions,
    .pagination,
    .filters {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}
