/* Alliance Metal – panel tasarım katmanı (Faz 12: Cork esinli yeni görünüm).
   Derleme gerektirmez: Tailwind çıktısının ÜSTÜNE yüklenir; mevcut sınıfları yeniden biçimlendirir.
   Marka renkleri (lacivert #1f4b74 / kırmızı #e62a4e) aynıdır; yazı tipi Onest'tir.
   Sağ alttaki bildirim (toast) stilleri bu dosyanın sonundadır ve değiştirilmemiştir. */

:root {
    --am-font: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

    --am-bg: #f3f4f9;
    --am-surface: #ffffff;
    --am-ink: #1c2434;
    --am-text: #3b4660;
    --am-muted: #6f7b91;
    --am-faint: #9aa5b8;
    --am-line: #e7eaf2;
    --am-line-soft: #eff1f7;

    --am-brand: #1f4b74;
    --am-brand-2: #2c6190;
    --am-brand-dark: #153754;
    --am-brand-soft: #eaf1f8;
    --am-accent: #e62a4e;
    --am-accent-soft: #fdebee;

    --am-ok: #15803d;      --am-ok-soft: #e8f7ef;
    --am-warn: #b45309;    --am-warn-soft: #fff4de;
    --am-bad: #d1243f;     --am-bad-soft: #fdebee;

    --am-radius: 1rem;
    --am-radius-sm: .65rem;
    --am-shadow: 0 1px 2px rgba(31, 40, 80, .03), 0 12px 32px -16px rgba(60, 72, 130, .16);
    --am-shadow-lg: 0 2px 6px rgba(31, 40, 80, .05), 0 24px 48px -20px rgba(31, 60, 110, .28);

    --am-side-w: 16.5rem;
    --am-side-mini: 4.75rem;
}

/* ------------------------------------------------------------------ temel */
html { background-color: var(--am-bg); }
html.h-full { background-color: var(--am-bg); }
body, button, input, select, textarea, .font-sans, .font-desc { font-family: var(--am-font); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; color: var(--am-text); letter-spacing: -.004em; }
::selection { background: rgba(31, 75, 116, .16); }
* { scrollbar-width: thin; scrollbar-color: #cbd3e1 transparent; }
:focus-visible { outline: 2px solid var(--am-brand-2); outline-offset: 2px; }

/* ------------------------------------------------------------------ kabuk */
.am-shell { min-height: 100vh; transition: padding-left .2s ease; }
@media (min-width: 1024px) {
    .am-shell { padding-left: var(--am-side-w); }
    body.am-collapsed .am-shell { padding-left: var(--am-side-mini); }
}
.am-overlay {
    position: fixed; inset: 0; z-index: 30; background: rgba(13, 33, 51, .5); opacity: 0; pointer-events: none; transition: opacity .2s;
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.am-overlay[data-open="true"] { opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) { .am-overlay { display: none; } }

/* ------------------------------------------------------------------ kenar menü */
.am-side {
    position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column;
    width: var(--am-side-w); max-width: 86vw; background: var(--am-surface); border-right: 1px solid var(--am-line);
    transform: translateX(-100%); transition: transform .22s ease, width .2s ease, box-shadow .2s ease;
}
.am-side[data-open="true"] { transform: none; box-shadow: 12px 0 40px -12px rgba(13, 33, 51, .35); }
@media (min-width: 1024px) { .am-side { transform: none; max-width: none; box-shadow: none; } }

.am-brand { flex: none; display: flex; align-items: center; justify-content: space-between; height: 4.5rem; padding: 0 1.1rem 0 1.4rem; gap: .5rem; }
.am-brand a { display: flex; align-items: center; min-width: 0; }
.am-brand img { height: 2.2rem; width: auto; max-width: 11.5rem; object-fit: contain; }
.am-brand-mark {
    display: none; width: 2.5rem; height: 2.5rem; place-items: center; flex: none;
    border-radius: 50%; background-color: #fff; background-repeat: no-repeat; background-position: center; background-size: contain;
    box-shadow: 0 0 0 1px var(--am-line), 0 6px 14px -6px rgba(31, 75, 116, .45);
}
.am-side-close { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem; color: var(--am-muted); }
.am-side-close:hover { background: var(--am-line-soft); color: var(--am-ink); }
@media (min-width: 1024px) { .am-side-close { display: none; } }

.am-nav { flex: 1; overflow-y: auto; padding: .35rem .8rem 1.5rem; }
.am-nav > * + * { margin-top: .15rem; }

.am-m {
    position: relative; display: flex; align-items: center; gap: .8rem; width: 100%; padding: .62rem .8rem; border-radius: .7rem; cursor: pointer; list-style: none;
    font-size: .8125rem; font-weight: 600; line-height: 1.25; color: #55627b; text-align: left; transition: background .15s, color .15s;
}
.am-m::-webkit-details-marker, .am-m::marker { display: none; content: ""; }
.am-m:hover { background: #f4f6fb; color: var(--am-brand); }
.am-m-ico { flex: none; width: 1.3rem; height: 1.3rem; color: #8995ad; transition: color .15s; }
.am-m:hover .am-m-ico { color: var(--am-brand); }
.am-m-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-m-chev { flex: none; width: .9rem; height: .9rem; color: #a3adc0; transition: transform .18s; }
details[open] > .am-m { color: var(--am-brand); }
details[open] > .am-m .am-m-ico { color: var(--am-brand); }
details[open] > .am-m .am-m-chev { transform: rotate(90deg); color: var(--am-brand); }
.am-m.is-active { background: var(--am-brand-soft); color: var(--am-brand); font-weight: 700; }
.am-m.is-active .am-m-ico { color: var(--am-brand); }
.am-m.is-active::before { content: ""; position: absolute; left: -.8rem; top: .55rem; bottom: .55rem; width: .22rem; border-radius: 0 .25rem .25rem 0; background: var(--am-accent); }

.am-sub { position: relative; margin: .15rem 0 .45rem 1.6rem; padding-left: .85rem; border-left: 1px solid var(--am-line); }
.am-sub > * + * { margin-top: .1rem; }
.am-sub .am-sub { margin-left: .4rem; }
.am-s {
    position: relative; display: flex; align-items: center; gap: .5rem; padding: .48rem .7rem; border-radius: .55rem;
    font-size: .78rem; font-weight: 500; line-height: 1.3; color: var(--am-muted); transition: background .15s, color .15s;
}
.am-s:hover { background: #f4f6fb; color: var(--am-brand); }
.am-s.is-active { color: var(--am-brand); font-weight: 700; background: var(--am-brand-soft); }
.am-s.is-active::before { content: ""; position: absolute; left: calc(-.85rem - 1px); top: .4rem; bottom: .4rem; width: 2px; border-radius: 2px; background: var(--am-accent); }
.am-sub > details > .am-m { padding: .48rem .7rem; font-size: .78rem; font-weight: 600; }
.am-soon { margin-left: auto; padding: .08rem .45rem; border-radius: 999px; background: var(--am-line-soft); color: var(--am-muted); font-size: .625rem; font-weight: 700; }

/* masaüstünde daraltılmış menü: yalnızca simgeler; üzerine gelince açılır */
@media (min-width: 1024px) {
    body.am-collapsed .am-side:not(:hover):not(:focus-within) { width: var(--am-side-mini); }
    body.am-collapsed .am-side:hover, body.am-collapsed .am-side:focus-within { box-shadow: 16px 0 40px -16px rgba(13, 33, 51, .3); }
    body.am-collapsed .am-side:not(:hover):not(:focus-within) .am-brand { padding: 0; justify-content: center; }
    body.am-collapsed .am-side:not(:hover):not(:focus-within) .am-brand img { display: none; }
    body.am-collapsed .am-side:not(:hover):not(:focus-within) .am-brand-mark { display: grid; }
    body.am-collapsed .am-side:not(:hover):not(:focus-within) .am-nav { padding-left: .7rem; padding-right: .7rem; }
    body.am-collapsed .am-side:not(:hover):not(:focus-within) .am-m { justify-content: center; padding-left: 0; padding-right: 0; }
    body.am-collapsed .am-side:not(:hover):not(:focus-within) .am-m-label,
    body.am-collapsed .am-side:not(:hover):not(:focus-within) .am-m-chev,
    body.am-collapsed .am-side:not(:hover):not(:focus-within) .am-sub,
    body.am-collapsed .am-side:not(:hover):not(:focus-within) .am-soon { display: none; }
    body.am-collapsed .am-side:not(:hover):not(:focus-within) .am-m.is-active::before { left: -.7rem; }
}

/* ------------------------------------------------------------------ üst bar */
.am-top {
    position: sticky; top: .75rem; z-index: 20; display: flex; align-items: center; gap: .6rem; height: 3.75rem; margin: .75rem 1rem 0; padding: 0 .7rem 0 .6rem;
    background: rgba(255, 255, 255, .9); border: 1px solid var(--am-line); border-radius: 1rem; box-shadow: var(--am-shadow);
    -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px);
}
@media (min-width: 640px) { .am-top { margin-left: 1.5rem; margin-right: 1.5rem; padding-right: .9rem; } }
.am-icon-btn {
    position: relative; display: inline-grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: .75rem;
    color: var(--am-muted); cursor: pointer; transition: background .15s, color .15s;
}
.am-icon-btn:hover { background: var(--am-brand-soft); color: var(--am-brand); }
.am-top .am-toggle-desktop { display: none; }
@media (min-width: 1024px) { .am-top .am-toggle-desktop { display: inline-grid; } .am-top .am-toggle-mobile { display: none; } }
.am-heading { min-width: 0; }
.am-crumb { display: block; font-size: .6875rem; font-weight: 600; line-height: 1.1; color: var(--am-faint); }
.am-title { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.05rem; font-weight: 700; line-height: 1.3; letter-spacing: -.012em; color: var(--am-ink); }
.am-top-right { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.am-role {
    display: none; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; background: var(--am-brand-soft); color: var(--am-brand);
    font-size: .72rem; font-weight: 700;
}
.am-role::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--am-accent); }
@media (min-width: 640px) { .am-role { display: inline-flex; } }
.am-user { position: relative; margin-left: .35rem; padding-left: .75rem; border-left: 1px solid var(--am-line); }
.am-user > summary { display: flex; align-items: center; gap: .6rem; padding: .25rem .4rem; border-radius: .8rem; cursor: pointer; list-style: none; transition: background .15s; }
.am-user > summary::-webkit-details-marker, .am-user > summary::marker { display: none; content: ""; }
.am-user > summary:hover, .am-user[open] > summary { background: var(--am-brand-soft); }
.am-avatar {
    display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: .7rem; color: #fff; font-size: .8rem; font-weight: 700;
    background: linear-gradient(135deg, var(--am-brand-2), var(--am-brand)); box-shadow: 0 6px 12px -6px rgba(31, 75, 116, .65);
}
.am-user-meta { display: none; text-align: left; line-height: 1.2; }
.am-user-meta b { display: block; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; font-weight: 700; color: var(--am-ink); }
.am-user-meta span { font-size: .68rem; font-weight: 500; color: var(--am-faint); }
@media (min-width: 640px) { .am-user-meta { display: block; } }

/* açılır kutular (kullanıcı menüsü + bildirim zili) */
.am-pop {
    position: absolute; right: 0; top: calc(100% + .6rem); z-index: 30; width: 14.5rem; padding: .4rem;
    background: #fff; border: 1px solid var(--am-line); border-radius: 1rem; box-shadow: var(--am-shadow-lg);
}
.am-pop-head { padding: .6rem .75rem .65rem; margin-bottom: .3rem; border-bottom: 1px solid var(--am-line-soft); }
.am-pop-head b { display: block; font-size: .8rem; color: var(--am-ink); }
.am-pop-head span { font-size: .7rem; color: var(--am-faint); }
.am-pop a, .am-pop button.am-pop-item {
    display: flex; align-items: center; width: 100%; padding: .55rem .75rem; border-radius: .6rem; font-size: .8rem; font-weight: 600; color: var(--am-text); text-align: left; cursor: pointer; transition: background .12s, color .12s;
}
.am-pop a:hover, .am-pop button.am-pop-item:hover { background: var(--am-brand-soft); color: var(--am-brand); }
.am-pop .is-danger { color: var(--am-bad); }
.am-pop .is-danger:hover { background: var(--am-bad-soft); color: var(--am-bad); }

/* bildirim zili (livewire/notification-bell) */
.am-bell-panel {
    position: fixed; left: .75rem; right: .75rem; top: 5.5rem; z-index: 30; overflow: hidden;
    background: #fff; border: 1px solid var(--am-line); border-radius: 1rem; box-shadow: var(--am-shadow-lg);
}
@media (min-width: 640px) { .am-bell-panel { position: absolute; left: auto; right: -.5rem; top: calc(100% + .6rem); width: 22rem; } }
.am-bell-badge {
    position: absolute; right: .15rem; top: .15rem; display: flex; align-items: center; justify-content: center; min-width: 1.05rem; height: 1.05rem; padding: 0 .28rem;
    border-radius: 999px; background: var(--am-accent); color: #fff; font-size: .625rem; font-weight: 700; box-shadow: 0 0 0 2px #fff;
}

/* ------------------------------------------------------------------ içerik */
.am-main { padding: 1.5rem 1rem 1.25rem; }
@media (min-width: 640px) { .am-main { padding: 1.75rem 1.5rem 1.5rem; } }
.am-foot { padding: .5rem 1.5rem 1.75rem; font-size: .72rem; font-weight: 500; color: var(--am-faint); }
main .mx-auto.max-w-5xl { max-width: 72rem; }
main .mx-auto.max-w-6xl { max-width: 82rem; }

@media (prefers-reduced-motion: no-preference) {
    main > div:not([role="status"]), main > form { animation: am-in .4s cubic-bezier(.2, .7, .2, 1) backwards; }
    @keyframes am-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* Kartlar */
main .rounded-xl.border.bg-white,
main .rounded-lg.border.bg-white,
main .rounded-xl.border.bg-sky-50 {
    border-radius: var(--am-radius);
    border-color: var(--am-line);
    box-shadow: var(--am-shadow);
}
main .rounded-xl.border.border-amber-200 { border-radius: var(--am-radius); }
main .rounded-xl.border.bg-white.p-6 > h2.text-sm,
main .rounded-xl.border.bg-white.p-5 > h2.text-sm {
    padding-bottom: .9rem; border-bottom: 1px solid var(--am-line-soft);
}
main h2.text-sm.font-semibold { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; color: var(--am-ink); }
main h2.text-sm.font-semibold + .mt-4 { margin-top: 1.15rem; }
main .border-b.border-slate-100.px-5.py-3 { border-color: var(--am-line-soft); padding-top: 1rem; padding-bottom: 1rem; }
main h1.text-lg, main h1.text-xl, main h1.text-2xl { color: var(--am-ink); font-weight: 700; letter-spacing: -.015em; }
main .text-slate-800 { color: var(--am-ink); }
main .text-slate-500 { color: var(--am-muted); }
main .text-slate-400 { color: var(--am-faint); }

/* Formlar */
main label.block { color: #3b4660; }
main label.block.text-sm { font-size: .78rem; font-weight: 600; letter-spacing: 0; }
main label.block.text-xs { font-size: .72rem; font-weight: 600; color: var(--am-muted); }
main p.text-xs.text-slate-400 { line-height: 1.4; }
main input, main select, main textarea { padding: .62rem .9rem; }
main :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=hidden]):not([type=color]) {
    border-radius: .7rem;
    border: 1px solid #dde2ec;
    background-color: #fff;
    color: var(--am-ink);
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
main :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=hidden]):not([type=color]):hover { border-color: #bfc9da; }
main :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=hidden]):not([type=color]):focus {
    border-color: var(--am-brand-2); outline: none; box-shadow: 0 0 0 4px rgba(44, 97, 144, .13);
}
main :is(input, select, textarea)::placeholder { color: #a3adbf; font-weight: 400; }
main :is(input, select, textarea):disabled, main :is(input, select, textarea)[readonly] { background-color: #f3f5f9; color: var(--am-muted); cursor: not-allowed; }
main select:not([multiple]) {
    -webkit-appearance: none; appearance: none; padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236f7b91' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.1rem;
}
main textarea { min-height: 5.5rem; resize: vertical; }
main input[type=date], main input[type=datetime-local], main input[type=month] { min-height: 2.6rem; }
main td :is(input, select):not([type=checkbox]):not([type=radio]) { padding: .42rem .65rem; border-radius: .55rem; }
main input[type=checkbox], main input[type=radio] { accent-color: var(--am-brand); width: 1.05rem; height: 1.05rem; padding: 0; cursor: pointer; }
main input[type=checkbox] { border-radius: .3rem; }
main input[type=file] { padding: .4rem; font-size: .78rem; color: var(--am-muted); }
main input[type=file]::file-selector-button {
    margin-right: .75rem; padding: .5rem .95rem; border: 0; border-radius: .6rem; background: var(--am-brand-soft); color: var(--am-brand);
    font-weight: 700; cursor: pointer; transition: background .15s;
}
main input[type=file]::file-selector-button:hover { background: #dce9f5; }
main [aria-invalid=true], main .border-red-300, main .border-red-500 { border-color: #f1a2b0 !important; background-color: #fff8f9 !important; }
main p.text-red-600.text-sm { font-size: .78rem; font-weight: 600; }
/* seçilebilir kart (radyo): seçili olan marka renginde */
main label.cursor-pointer.rounded-lg.border { border-radius: .85rem; transition: border-color .15s, background-color .15s, box-shadow .15s; }
main label.cursor-pointer.rounded-lg.border:hover { border-color: #9db8d3; }
main label.cursor-pointer.rounded-lg.border.border-brand-500 { box-shadow: 0 0 0 3px rgba(44, 97, 144, .12); }

/* Form kaydet çubuğu: sayfa altında yapışık */
main form > div.flex:last-child:has(button[type=submit]) {
    position: sticky; bottom: 1rem; z-index: 10; margin-top: 1.5rem; padding: .75rem 1rem; gap: .75rem;
    border: 1px solid var(--am-line); border-radius: 1rem; background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--am-shadow-lg);
}

/* Düğmeler */
:is(button, a, label, input[type=submit]).bg-brand-600,
:is(button, a, label, input[type=submit]).bg-emerald-600,
:is(button, a, label, input[type=submit]).bg-red-600,
:is(button, a, label, input[type=submit]).bg-accent-500,
:is(button, a, label, input[type=submit]).bg-accent-600 {
    border-radius: .7rem; font-weight: 700; letter-spacing: 0; cursor: pointer;
    transition: background-color .15s, box-shadow .15s, transform .1s;
}
:is(button, a, label, input[type=submit]).bg-brand-600 { box-shadow: 0 10px 18px -10px rgba(31, 75, 116, .75); }
:is(button, a, label, input[type=submit]).bg-emerald-600 { box-shadow: 0 10px 18px -10px rgba(5, 150, 105, .7); }
:is(button, a, label, input[type=submit]).bg-red-600 { box-shadow: 0 10px 18px -10px rgba(220, 38, 38, .7); }
:is(button, a, label, input[type=submit]).bg-accent-500, :is(button, a, label, input[type=submit]).bg-accent-600 { box-shadow: 0 10px 18px -10px rgba(230, 42, 78, .7); }
:is(button, a, label, input[type=submit]).bg-brand-600:hover,
:is(button, a, label, input[type=submit]).bg-emerald-600:hover,
:is(button, a, label, input[type=submit]).bg-red-600:hover,
:is(button, a, label, input[type=submit]).bg-accent-500:hover { transform: translateY(-1px); }
:is(button, a, label, input[type=submit]).bg-brand-600:active,
:is(button, a, label, input[type=submit]).bg-emerald-600:active,
:is(button, a, label, input[type=submit]).bg-red-600:active { transform: none; box-shadow: none; }
:is(button, a, label, input[type=submit]).bg-brand-600:focus-visible,
:is(button, a, label, input[type=submit]).bg-emerald-600:focus-visible,
:is(button, a, label, input[type=submit]).bg-red-600:focus-visible { outline: 2px solid var(--am-brand-2); outline-offset: 2px; }
:is(button, a, input[type=submit]).bg-brand-600:disabled, button[disabled].bg-brand-600,
button[disabled].bg-emerald-600 { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
/* İkincil (çerçeveli) düğmeler */
:is(button, a).border.border-slate-300.rounded-lg,
:is(button, a).border.border-slate-300.rounded-md {
    border-color: #dde2ec; border-radius: .7rem; background-color: #fff; color: var(--am-text); font-weight: 600; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
:is(button, a).border.border-slate-300.rounded-lg:hover,
:is(button, a).border.border-slate-300.rounded-md:hover { background-color: var(--am-brand-soft); border-color: #9db8d3; color: var(--am-brand); }
:is(button, a).border.text-red-600, :is(button, a).border.text-red-700 { background-color: #fff; border-radius: .7rem; font-weight: 600; }
:is(button, a).border.text-red-600:hover, :is(button, a).border.text-red-700:hover { background-color: var(--am-bad-soft); border-color: #f1a2b0; }
a.text-sm.text-slate-500.hover\:text-slate-700 { font-weight: 600; padding: .5rem .75rem; border-radius: .6rem; transition: background .15s, color .15s; }
a.text-sm.text-slate-500.hover\:text-slate-700:hover { background: var(--am-brand-soft); color: var(--am-brand); }
main a.text-brand-600, main a.text-brand-700 { font-weight: 600; }

/* Tablolar */
main .overflow-x-auto.rounded-xl { border-radius: var(--am-radius); }
main table { border-collapse: separate; border-spacing: 0; }
main table thead th {
    background: #f6f7fc; color: var(--am-muted); font-size: .6875rem; font-weight: 700; letter-spacing: .07em; border-bottom: 1px solid var(--am-line);
    padding-top: .85rem; padding-bottom: .85rem; white-space: nowrap;
}
main table thead th:first-child { border-top-left-radius: var(--am-radius); }
main table thead th:last-child { border-top-right-radius: var(--am-radius); }
main table tbody td { border-top: 1px solid var(--am-line-soft); color: var(--am-text); }
main table tbody tr:first-child td { border-top: 0; }
main table tbody tr { transition: background .12s; }
main table tbody tr:hover { background: #f8faff; }
main table tbody td:first-child a, main table td a.text-brand-600, main table td a.text-brand-700 { font-weight: 700; }
main table td a:hover { text-decoration: underline; text-underline-offset: 3px; }
main table tfoot td { background: #f9fafd; font-weight: 700; }
main .divide-y > * + * { border-color: var(--am-line-soft); }
main dl dt { font-weight: 600; }

/* Rozetler (durum etiketleri) */
main span.rounded.px-2, main span.rounded.px-1\.5, main span.rounded-md.px-2 { border-radius: 999px; padding-left: .65rem; padding-right: .65rem; font-weight: 700; }
main span.rounded-full.px-2, main span.rounded-full.px-2\.5 { font-weight: 700; letter-spacing: .005em; padding-top: .22rem; padding-bottom: .22rem; }

/* Uyarı kutuları */
main div[role=status].rounded-lg, main div[role=alert].rounded-lg { border-radius: .9rem; box-shadow: none; border-left-width: 4px; }

/* Sayfalama */
main nav[role=navigation] a, main nav[role=navigation] span[aria-disabled] > span { border-radius: .5rem; }
main nav[role=navigation] span[aria-current] > span { background: var(--am-brand); color: #fff; border-color: var(--am-brand); border-radius: .5rem; }

/* ------------------------------------------------------------------ ana sayfa */
.am-hero {
    position: relative; overflow: hidden; border-radius: 1.25rem; padding: 1.9rem 2.1rem; color: #fff;
    background:
        radial-gradient(55% 130% at 100% 0%, rgba(230, 42, 78, .30), transparent 62%),
        radial-gradient(70% 100% at 0% 100%, rgba(79, 129, 173, .45), transparent 62%),
        linear-gradient(135deg, #1f4b74 0%, #153754 58%, #0d2133 100%);
    box-shadow: 0 28px 48px -28px rgba(13, 33, 51, .75);
}
.am-hero::before, .am-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; border: 1px solid rgba(255, 255, 255, .1); }
.am-hero::before { right: -2rem; top: -5rem; width: 17rem; height: 17rem; }
.am-hero::after { right: 2.5rem; top: -1rem; width: 9rem; height: 9rem; border-color: rgba(255, 255, 255, .07); }
.am-hero h2 { position: relative; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.am-hero p { position: relative; color: rgba(255, 255, 255, .8); max-width: 38rem; }
.am-hero .am-date { position: relative; display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .75rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .13); font-size: .72rem; font-weight: 600; }

.am-stat {
    position: relative; display: flex; align-items: center; gap: .95rem; overflow: hidden; padding: 1.1rem 1.25rem;
    border: 1px solid var(--am-line); border-radius: 1rem; background: #fff; box-shadow: var(--am-shadow);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.am-stat:hover { transform: translateY(-3px); box-shadow: var(--am-shadow-lg); border-color: #cfdbea; }
.am-stat-ico { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .9rem; background: var(--am-brand-soft); color: var(--am-brand); }
.am-stat-ico svg { width: 1.45rem; height: 1.45rem; }
.am-stat.is-warn .am-stat-ico { background: var(--am-accent-soft); color: var(--am-accent); }
.am-stat-text { min-width: 0; }
.am-stat .am-label { font-size: .72rem; font-weight: 600; line-height: 1.35; color: var(--am-muted); }
.am-stat .am-value { margin-top: .2rem; font-size: 1.75rem; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; color: var(--am-ink); font-variant-numeric: tabular-nums; }
.am-stat.is-warn .am-value { color: var(--am-bad); }
.am-stat .am-go { position: absolute; right: 1rem; top: 50%; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-top: -.85rem; border-radius: 50%; background: var(--am-brand-soft); color: var(--am-brand); opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s; }
.am-stat:hover .am-go { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ Stok Takip (depo / bayi / servis stok sayfası) */
.ws-hero {
    position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.4rem 1.6rem;
    border-radius: 1.1rem; color: #fff; background: linear-gradient(120deg, var(--am-brand) 0%, var(--am-brand-2) 70%, #3b78ab 100%); box-shadow: var(--am-shadow-lg);
}
.ws-hero::after { content: ""; position: absolute; right: -3rem; top: -4rem; width: 15rem; height: 15rem; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%); pointer-events: none; }
.ws-hero-eyebrow { font-size: .6875rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .75; }
.ws-hero-title { margin-top: .1rem; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ws-hero-total { margin-left: auto; text-align: right; position: relative; z-index: 1; }
.ws-hero-total b { display: block; font-size: 2.1rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ws-hero-total span { font-size: .75rem; opacity: .8; }
.ws-hero select { color: var(--am-ink); max-width: 18rem; }

.ws-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ws-stat { position: relative; padding: 1.1rem 1.2rem; border: 1px solid var(--am-line); border-radius: 1rem; background: #fff; box-shadow: var(--am-shadow); }
.ws-stat-head { display: flex; align-items: center; gap: .6rem; }
.ws-ico { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: .7rem; background: var(--am-brand-soft); color: var(--am-brand); }
.ws-ico svg { width: 1.1rem; height: 1.1rem; }
.ws-ico.is-green { background: var(--am-ok-soft); color: var(--am-ok); }
.ws-ico.is-amber { background: var(--am-warn-soft); color: var(--am-warn); }
.ws-ico.is-red { background: var(--am-bad-soft); color: var(--am-bad); }
.ws-label { font-size: .72rem; font-weight: 600; color: var(--am-muted); }
.ws-value { margin-top: .65rem; font-size: 1.75rem; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; color: var(--am-ink); font-variant-numeric: tabular-nums; }
.ws-value small { font-size: .8rem; font-weight: 600; color: var(--am-muted); letter-spacing: 0; }
.ws-note { margin-top: .25rem; font-size: .72rem; color: var(--am-muted); }

.ws-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.ws-panel { padding: 1.2rem 1.3rem; border: 1px solid var(--am-line); border-radius: 1rem; background: #fff; box-shadow: var(--am-shadow); }
.ws-panel h3 { font-size: .85rem; font-weight: 700; color: var(--am-ink); }
.ws-big { display: flex; align-items: baseline; gap: .5rem; margin-top: .6rem; }
.ws-big b { font-size: 2.3rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--am-ok); font-variant-numeric: tabular-nums; }
.ws-big span { font-size: .8rem; color: var(--am-muted); }
.ws-health { display: flex; height: .7rem; margin-top: 1rem; overflow: hidden; border-radius: 999px; background: var(--am-line-soft); }
.ws-health > i { display: block; height: 100%; min-width: 0; }
.ws-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .9rem; font-size: .78rem; color: var(--am-muted); }
.ws-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.ws-legend b { color: var(--am-ink); font-variant-numeric: tabular-nums; }
.ws-dot { width: .6rem; height: .6rem; border-radius: 50%; }
.ws-top { margin-top: .75rem; display: grid; gap: .6rem; }
.ws-top-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .75rem; align-items: baseline; font-size: .8rem; }
.ws-top-row .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--am-ink); font-weight: 600; }
.ws-top-row .q { color: var(--am-muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.ws-bar { grid-column: 1 / -1; height: .38rem; border-radius: 999px; background: var(--am-line-soft); overflow: hidden; }
.ws-bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--am-brand-2), #5b9bd0); }
.ws-empty { margin-top: .75rem; font-size: .8rem; color: var(--am-muted); }

.ws-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; padding: 1rem 1.2rem; border: 1px solid var(--am-line); border-radius: 1rem; background: #fff; box-shadow: var(--am-shadow); }
.ws-seg { display: inline-flex; padding: .22rem; border-radius: .8rem; background: var(--am-line-soft); }
.ws-seg button { padding: .45rem 1rem; border-radius: .6rem; font-size: .78rem; font-weight: 700; color: var(--am-muted); transition: background .15s, color .15s; }
.ws-seg button.is-on { background: #fff; color: var(--am-brand); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.ws-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.ws-pill::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.ws-pill.is-ok { background: var(--am-ok-soft); color: var(--am-ok); }
.ws-pill.is-low { background: var(--am-warn-soft); color: var(--am-warn); }
.ws-pill.is-out { background: var(--am-bad-soft); color: var(--am-bad); }

@media (max-width: 1023px) { .ws-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .ws-panels { grid-template-columns: minmax(0, 1fr); } .ws-hero-total { margin-left: 0; text-align: left; } }
@media (max-width: 479px) { .ws-stats { gap: .65rem; } .ws-value { font-size: 1.45rem; } .ws-hero-title { font-size: 1.2rem; } }

/* ------------------------------------------------------------------ İstatistik kartları (hs-*) – "Dashboard 2" şablonundaki grup kart görünümü
   Tek beyaz kart, ince ayraçlı sütunlar; başlık solda, yuvarlak renkli ikon sağda, altında büyük değer.
   .hs-stats = kapsayıcı, .hs-stat = tek istatistik; .hs-c2..c6 = geniş ekrandaki sütun sayısı; .is-split = ayrı kartlar. */
.hs-stats {
    display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden;
    background: #fff; border: 1px solid var(--am-line); border-radius: 1rem; box-shadow: var(--am-shadow);
}
@media (min-width: 640px) {
    .hs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hs-stats > .hs-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
    .hs-stats.hs-c3, .hs-stats.hs-c6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hs-stats.hs-c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hs-stats.hs-c3 > .hs-stat:last-child:nth-child(odd), .hs-stats.hs-c4 > .hs-stat:last-child:nth-child(odd),
    .hs-stats.hs-c6 > .hs-stat:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 1280px) {
    .hs-stats.hs-c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .hs-stats.hs-c5 > .hs-stat:last-child:nth-child(odd) { grid-column: auto; }
}
.hs-stats.is-split { gap: 1rem; overflow: visible; background: none; border: 0; border-radius: 0; box-shadow: none; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.hs-stats.is-split > .hs-stat:last-child:nth-child(odd) { grid-column: auto; }
.hs-stats.is-split > .hs-stat { margin: 0; border: 1px solid var(--am-line); border-radius: 1rem; box-shadow: var(--am-shadow); }
.hs-stats.is-split > a.hs-stat:hover { transform: translateY(-3px); box-shadow: var(--am-shadow-lg); border-color: #cfdbea; }

.hs-stat {
    --t: var(--am-brand); --tb: var(--am-brand-soft);
    position: relative; display: block; min-width: 0; margin: -1px 0 0 -1px; padding: 1.25rem 1.4rem 1.2rem; background: #fff;
    box-shadow: inset 1px 0 0 var(--am-line), inset 0 1px 0 var(--am-line);
    transition: background-color .18s, transform .18s, box-shadow .18s, border-color .18s;
}
.hs-stat:nth-child(4n+2) { --t: #15803d; --tb: #e8f7ef; }
.hs-stat:nth-child(4n+3) { --t: #0b7bb5; --tb: #e5f4fb; }
.hs-stat:nth-child(4n+4) { --t: #b45309; --tb: #fff4de; }
.hs-stat.is-warn { --t: var(--am-accent); --tb: var(--am-accent-soft); }
a.hs-stat { text-decoration: none; }
a.hs-stat:hover { background: #fafcff; }
/* yuvarlak ikon: ::before = renkli zemin, ::after = ikon */
.hs-stat::before { content: ""; position: absolute; top: 1.1rem; right: 1.2rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--tb); transition: transform .35s cubic-bezier(.2, .8, .2, 1.2); }
.hs-stat::after {
    content: ""; position: absolute; top: 1.1rem; right: 1.2rem; width: 2.6rem; height: 2.6rem; background: var(--t);
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: 1.2rem; mask-size: 1.2rem;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1.2);
}
.hs-stat::before, .hs-stat::after { z-index: 0; transform-origin: 100% 0; pointer-events: none; }
.hs-stat > * { position: relative; z-index: 1; }
.hs-stat:hover::before, .hs-stat:hover::after { transform: scale(2); }
.hs-stat:hover::after { opacity: .4; }
.hs-stat-label { padding-right: 3.4rem; min-height: 2.6rem; font-size: .8125rem; font-weight: 600; line-height: 1.35; color: var(--am-muted); }
.hs-stat-value { margin-top: .55rem; font-size: 1.65rem; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; color: var(--am-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hs-stat-value.is-bad { color: var(--am-bad); }
.hs-stat-value.is-ok { color: var(--am-ok); }
.hs-stat-value.is-warn { color: var(--am-warn); }
.hs-stat-value.is-sm { font-size: 1rem; }
.hs-stat-value small, .hs-stat-value span { font-size: .75rem; font-weight: 500; letter-spacing: 0; color: var(--am-faint); }
.hs-stat-note { margin-top: .4rem; font-size: .75rem; color: var(--am-faint); }
.hs-stat > a:not(.hs-stat-link) { display: inline-flex; margin-top: .55rem; font-size: .75rem; font-weight: 600; color: var(--am-brand); }
.hs-stat > a:not(.hs-stat-link):hover { text-decoration: underline; }
.hs-stat-pill { display: inline-flex; align-items: center; margin-top: .45rem; padding: .15rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 600; background: var(--tb); color: var(--t); }
.hs-stat[data-i="chart"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 15l4-5 3 3 5-7'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 15l4-5 3 3 5-7'/%3E%3C/svg%3E"); }
.hs-stat[data-i="box"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5v8l9 5 9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5v8l9 5 9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
.hs-stat[data-i="users"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c0-3.5 3-6 6.5-6s6.5 2.5 6.5 6'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 010 7M18 14.5c2 .8 3.5 2.6 3.5 5.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c0-3.5 3-6 6.5-6s6.5 2.5 6.5 6'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 010 7M18 14.5c2 .8 3.5 2.6 3.5 5.5'/%3E%3C/svg%3E"); }
.hs-stat[data-i="wallet"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 012-2h13v4'/%3E%3Cpath d='M3 7v11a2 2 0 002 2h15V9H5a2 2 0 01-2-2z'/%3E%3Ccircle cx='16.5' cy='14.5' r='1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 012-2h13v4'/%3E%3Cpath d='M3 7v11a2 2 0 002 2h15V9H5a2 2 0 01-2-2z'/%3E%3Ccircle cx='16.5' cy='14.5' r='1'/%3E%3C/svg%3E"); }
.hs-stat[data-i="wrench"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94l-6.91 6.91a2.12 2.12 0 01-3-3l6.91-6.91a6 6 0 017.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94l-6.91 6.91a2.12 2.12 0 01-3-3l6.91-6.91a6 6 0 017.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E"); }
.hs-stat[data-i="document"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 00-2 2v14a2 2 0 002 2h12a2 2 0 002-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h8'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 00-2 2v14a2 2 0 002 2h12a2 2 0 002-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h8'/%3E%3C/svg%3E"); }
.hs-stat[data-i="cart"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.3'/%3E%3Ccircle cx='18' cy='20' r='1.3'/%3E%3Cpath d='M2 3h3l2.7 12.4a2 2 0 002 1.6h7.7a2 2 0 002-1.6L21 7H6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.3'/%3E%3Ccircle cx='18' cy='20' r='1.3'/%3E%3Cpath d='M2 3h3l2.7 12.4a2 2 0 002 1.6h7.7a2 2 0 002-1.6L21 7H6'/%3E%3C/svg%3E"); }
.hs-stat[data-i="store"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l1.5-5h15L21 9'/%3E%3Cpath d='M3 9a3 3 0 006 0 3 3 0 006 0 3 3 0 006 0'/%3E%3Cpath d='M5 12v8h14v-8'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l1.5-5h15L21 9'/%3E%3Cpath d='M3 9a3 3 0 006 0 3 3 0 006 0 3 3 0 006 0'/%3E%3Cpath d='M5 12v8h14v-8'/%3E%3C/svg%3E"); }
.hs-stat[data-i="chat"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 01-11.6 7.1L3 21l1.9-5.4A8 8 0 1121 12z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 01-11.6 7.1L3 21l1.9-5.4A8 8 0 1121 12z'/%3E%3C/svg%3E"); }
.hs-stat[data-i="clipboard"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4' width='12' height='17' rx='2'/%3E%3Cpath d='M9 4h6v3H9zM9 12h6M9 16h6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4' width='12' height='17' rx='2'/%3E%3Cpath d='M9 4h6v3H9zM9 12h6M9 16h6'/%3E%3C/svg%3E"); }
.hs-stat[data-i="alert"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v5M12 18v.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v5M12 18v.01'/%3E%3C/svg%3E"); }
.hs-stat[data-i="clock"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }

/* Stok Takip (ws-stat) kartları da aynı grup kart görünümüne alındı */
.ws-stats { gap: 0; overflow: hidden; background: #fff; border: 1px solid var(--am-line); border-radius: 1rem; box-shadow: var(--am-shadow); }
.ws-stat { margin: -1px 0 0 -1px; padding: 1.25rem 1.4rem 1.2rem; border: 0; border-radius: 0; box-shadow: inset 1px 0 0 var(--am-line), inset 0 1px 0 var(--am-line); }
.ws-stat-head { flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; }
.ws-ico { width: 2.6rem; height: 2.6rem; border-radius: 50%; }
.ws-ico svg { width: 1.2rem; height: 1.2rem; }
.ws-label { font-size: .8125rem; line-height: 1.35; }
.ws-value { margin-top: .55rem; font-size: 1.65rem; }
.ws-note { color: var(--am-faint); }

/* --- İstatistik kartları: modern katman (yumuşak ışıma, degrade ikon, hover'da alt çizgi, kademeli giriş) --- */
.hs-stat {
    background:
        linear-gradient(90deg, var(--t), var(--t)) no-repeat left bottom / 0 3px,
        radial-gradient(130% 100% at 100% 0%, var(--tb) 0%, rgba(255, 255, 255, 0) 58%),
        #fff;
    transition: background-size .35s ease, background-color .18s, transform .18s, box-shadow .18s, border-color .18s;
    animation: hs-in .5s cubic-bezier(.2, .7, .2, 1) both;
}
.hs-stat:hover { background-size: 100% 3px, auto, auto; }
a.hs-stat:hover { background-color: #fff; }
.hs-stat:nth-child(2) { animation-delay: .05s; } .hs-stat:nth-child(3) { animation-delay: .1s; }
.hs-stat:nth-child(4) { animation-delay: .15s; } .hs-stat:nth-child(5) { animation-delay: .2s; } .hs-stat:nth-child(n+6) { animation-delay: .25s; }
@keyframes hs-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hs-stat { animation: none; } }
.hs-stat::before {
    top: 1.05rem; right: 1.15rem; width: 2.75rem; height: 2.75rem;
    background: linear-gradient(145deg, #fff -20%, var(--tb) 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 18%, transparent), 0 8px 16px -10px var(--t);
}
.hs-stat::after { top: 1.05rem; right: 1.15rem; width: 2.75rem; height: 2.75rem; -webkit-mask-size: 1.3rem; mask-size: 1.3rem; }
.hs-stat-label { padding-right: 3.6rem; min-height: 2.75rem; font-size: .78rem; font-weight: 600; letter-spacing: .01em; color: var(--am-muted); }
.hs-stat-value { margin-top: .5rem; font-size: 1.9rem; font-weight: 800; letter-spacing: -.035em; }
.hs-stat-value.is-sm { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.hs-stat-note { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; padding: .18rem .6rem; border-radius: 999px; background: #f3f5fa; font-size: .72rem; font-weight: 600; color: var(--am-muted); }
.hs-stat > a:not(.hs-stat-link) { margin-top: .6rem; gap: .25rem; }
.hs-stat > a:not(.hs-stat-link)::after { content: "→"; transition: transform .18s; }
.hs-stat > a:not(.hs-stat-link):hover::after { transform: translateX(3px); }
.hs-stats.is-split > .hs-stat { overflow: hidden; border-color: #e9edf5; }
.hs-stats.is-split > .hs-stat:hover { transform: translateY(-4px); }
.hs-stats { border-color: #e9edf5; box-shadow: 0 1px 2px rgba(31, 40, 80, .04), 0 20px 40px -24px rgba(31, 75, 116, .28); }
.hs-stat.is-warn .hs-stat-label { color: var(--am-accent); }
.ws-stat { background: radial-gradient(130% 100% at 100% 0%, var(--am-brand-soft) 0%, rgba(255, 255, 255, 0) 58%), #fff; }
.ws-ico { width: 2.75rem; height: 2.75rem; box-shadow: inset 0 0 0 1px rgba(31, 75, 116, .12), 0 8px 16px -10px currentColor; }
.ws-value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.035em; }

/* ------------------------------------------------------------------ giriş / şifre sayfaları */
.fx-label { display: block; margin-bottom: .45rem; font-size: .78rem; font-weight: 600; color: var(--am-text); }
.fx-field { position: relative; }
.fx-input {
    display: block; width: 100%; height: 3rem; padding: 0 1rem; border: 1px solid #dde2ec; border-radius: .8rem; background: #f8f9fd; color: var(--am-ink);
    font-size: .875rem; font-weight: 500; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.fx-input::placeholder { color: #a3adbf; font-weight: 400; }
.fx-input:hover { border-color: #bfc9da; }
.fx-input:focus { outline: none; background: #fff; border-color: var(--am-brand-2); box-shadow: 0 0 0 4px rgba(44, 97, 144, .13); }
.fx-input[aria-invalid="true"] { border-color: #f1a2b0; background: #fff8f9; }
.fx-input.has-icon { padding-left: 2.85rem; }
.fx-input.has-action { padding-right: 5rem; }
.fx-ico { position: absolute; left: 1rem; top: 50%; width: 1.15rem; height: 1.15rem; margin-top: -.575rem; color: var(--am-faint); pointer-events: none; transition: color .15s; }
.fx-input:focus ~ .fx-ico { color: var(--am-brand); }
.fx-action {
    position: absolute; top: .3rem; right: .3rem; bottom: .3rem; padding: 0 .85rem; border-radius: .6rem; font-size: .75rem; font-weight: 700; color: var(--am-muted); cursor: pointer;
}
.fx-action:hover { background: var(--am-brand-soft); color: var(--am-brand); }
.fx-error { margin-top: .4rem; font-size: .78rem; font-weight: 600; color: var(--am-bad); }
.fx-hint { font-size: .75rem; line-height: 1.5; color: var(--am-muted); }
.fx-btn {
    display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; height: 3rem; padding: 0 1.5rem; border-radius: .8rem; cursor: pointer;
    background: var(--am-brand); color: #fff; font-size: .875rem; font-weight: 700; box-shadow: 0 14px 24px -14px rgba(31, 75, 116, .9);
    transition: background-color .15s, transform .1s, box-shadow .15s;
}
.fx-btn:hover { background: var(--am-brand-dark); transform: translateY(-1px); }
.fx-btn:active { transform: none; box-shadow: none; }
.fx-btn.is-auto { width: auto; }
.fx-btn svg { width: 1.1rem; height: 1.1rem; transition: transform .15s; }
.fx-btn:hover svg { transform: translateX(2px); }
.fx-link { font-size: .8rem; font-weight: 600; color: var(--am-muted); }
.fx-link:hover { color: var(--am-brand); }
.fx-note { padding: .8rem 1rem; border: 1px solid #bfe6d0; border-radius: .8rem; background: var(--am-ok-soft); color: #166534; font-size: .8rem; font-weight: 600; }

.am-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--am-bg); }
@media (min-width: 1024px) { .am-auth { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); } }
.am-auth-hero {
    position: relative; display: none; overflow: hidden; flex-direction: column; justify-content: space-between; padding: 3rem 3.5rem; color: #fff;
    background-color: #0d2133;
    background-image:
        radial-gradient(80% 60% at 0% 0%, rgba(79, 129, 173, .45), transparent 65%),
        linear-gradient(155deg, #1f4b74 0%, #153754 48%, #0d2133 100%);
}
@media (min-width: 1024px) { .am-auth-hero { display: flex; } }
@media (min-width: 1280px) { .am-auth-hero { padding: 4rem 4.5rem; } }
.am-auth-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.am-auth-logo { position: relative; display: inline-block; }
.am-auth-logo img { display: block; height: 3rem; width: auto; max-width: 16rem; object-fit: contain; }
.am-auth-copy { position: relative; max-width: 30rem; }
.am-auth-copy h2 { font-size: 2.6rem; font-weight: 700; line-height: 1.14; letter-spacing: -.03em; }
@media (min-width: 1280px) { .am-auth-copy h2 { font-size: 3.1rem; } }
.am-auth-copy > p { margin-top: 1.25rem; font-size: .95rem; font-weight: 500; line-height: 1.7; color: #b9d0e5; }
.am-auth-roles { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.am-auth-roles span { padding: .38rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-size: .75rem; font-weight: 700; color: #fff; }
.am-auth-list { margin-top: 2.25rem; display: grid; gap: .8rem; }
.am-auth-list li { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: 1rem; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09); font-size: .82rem; font-weight: 500; color: #dce8f3; }
.am-auth-list i { display: grid; place-items: center; flex: none; width: 2.3rem; height: 2.3rem; border-radius: .7rem; background: rgba(255, 255, 255, .12); }
.am-auth-list svg { width: 1.15rem; height: 1.15rem; color: #fff; }
.am-auth-copyright { position: relative; font-size: .72rem; font-weight: 500; color: rgba(185, 208, 229, .75); }

.am-auth-main { display: flex; flex-direction: column; padding: 2rem 1.25rem; background-image: radial-gradient(60% 45% at 100% 0%, rgba(31, 75, 116, .08), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(230, 42, 78, .05), transparent 70%); }
@media (min-width: 640px) { .am-auth-main { padding: 2rem 2.5rem; } }
.am-auth-center { flex: 1; display: flex; align-items: center; justify-content: center; }
.am-auth-box { width: 100%; max-width: 28rem; }
.am-auth-mobile-logo { display: block; margin-bottom: 1.75rem; text-align: center; }
.am-auth-mobile-logo img { display: inline-block; height: 2.75rem; width: auto; max-width: 15rem; object-fit: contain; }
@media (min-width: 1024px) { .am-auth-mobile-logo, .am-auth-mobile-copy { display: none; } }
.am-auth-card { padding: 2rem 1.75rem; border: 1px solid #fff; border-radius: 1.5rem; background: #fff; box-shadow: var(--am-shadow-lg); }
@media (min-width: 640px) { .am-auth-card { padding: 2.5rem; } }
@media (prefers-reduced-motion: no-preference) { .am-auth-card { animation: am-in .5s cubic-bezier(.2, .7, .2, 1) both; } }
.am-auth-card h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.025em; color: var(--am-ink); }
.am-auth-card .am-sub-text { margin-top: .5rem; font-size: .84rem; font-weight: 500; line-height: 1.6; color: var(--am-muted); }
.am-auth-mobile-copy { margin-top: 1.5rem; text-align: center; font-size: .72rem; color: var(--am-faint); }

/* ------------------------------------------------------------------ mobil */
@media (max-width: 639px) {
    .am-title { font-size: .95rem; }
    main .grid:has(> .am-stat) { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
    .am-stat { padding: .95rem 1rem; }
    .am-stat .am-value { font-size: 1.45rem; }
    .am-hero { padding: 1.4rem 1.3rem; border-radius: 1rem; }
    .am-hero h2 { font-size: 1.25rem; }
    main form > div.flex:last-child:has(button[type=submit]) { bottom: .5rem; padding: .6rem; }
    main form > div.flex:last-child:has(button[type=submit]) button { flex: 1; }
}

/* ------------------------------------------------------------------ Üretim/Tedarik: kategori gezgini + seri no satırları */
@keyframes am-slide-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }

.am-cat { border: 1px solid var(--am-line); border-radius: 1rem; background: linear-gradient(180deg, #f8fafd, #fff); padding: 1rem 1.1rem 1.1rem; overflow: hidden; }
.am-cat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .9rem; }
.am-cat-title { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 650; color: var(--am-ink); }
.am-cat-title svg { color: var(--am-brand-2); }
.am-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; font-size: .8rem; }
.am-crumbs button { padding: .2rem .5rem; border-radius: .45rem; color: var(--am-brand-2); font-weight: 500; }
.am-crumbs button:hover { background: var(--am-brand-soft); }
.am-crumbs button.is-current { color: var(--am-ink); font-weight: 650; background: var(--am-brand-soft); cursor: default; }
.am-crumb-sep { color: #b6c0cf; }
.am-cat-body { margin-top: .9rem; animation: am-slide-in .28s cubic-bezier(.2,.7,.2,1) both; }
.am-cat-back { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .6rem; padding: .3rem .7rem .3rem .5rem; border: 1px solid var(--am-line); border-radius: 999px; background: #fff; font-size: .78rem; font-weight: 600; color: var(--am-muted); }
.am-cat-back:hover { color: var(--am-brand); border-color: #c9d6e6; }
.am-cat-label { margin: .9rem 0 .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--am-muted); }
.am-cat-label:first-child, .am-cat-back + .am-cat-label { margin-top: .2rem; }
.am-cat-label span { font-weight: 500; letter-spacing: 0; text-transform: none; }
.am-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .65rem; }
.am-cat-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: .85rem .95rem; border: 1px solid var(--am-line); border-radius: .9rem; background: #fff; text-align: left; box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: transform .15s, box-shadow .15s, border-color .15s; }
.am-cat-card:hover { transform: translateY(-2px); border-color: #b9cde3; box-shadow: var(--am-shadow-lg); }
.am-cat-card:focus-visible, .am-prod-card:focus-visible { outline: 2px solid var(--am-brand-2); outline-offset: 2px; }
.am-cat-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .65rem; background: linear-gradient(135deg, var(--am-brand-2), var(--am-brand)); color: #fff; }
.am-cat-name { font-size: .92rem; font-weight: 650; color: var(--am-ink); line-height: 1.25; padding-right: 1rem; }
.am-cat-meta { display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .74rem; color: var(--am-muted); }
.am-cat-sub { color: var(--am-brand-2); font-weight: 600; }
.am-cat-go { position: absolute; right: .8rem; top: 1rem; color: #b6c0cf; transition: transform .15s, color .15s; }
.am-cat-card:hover .am-cat-go { color: var(--am-brand); transform: translateX(3px); }
.am-cat-card.is-empty { opacity: .6; }
.am-cat-card.is-empty .am-cat-icon { background: #cbd5e1; }
.am-cat-empty { padding: .8rem 1rem; border: 1px dashed #cfd8e5; border-radius: .8rem; font-size: .85rem; color: var(--am-muted); background: #fff; }
.am-prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .65rem; }
.am-prod-card { position: relative; display: flex; flex-direction: column; gap: .25rem; padding: .8rem .95rem; border: 1px solid var(--am-line); border-left: 3px solid var(--am-brand-2); border-radius: .8rem; background: #fff; text-align: left; transition: transform .15s, box-shadow .15s, border-color .15s; }
.am-prod-card:hover { transform: translateY(-2px); box-shadow: var(--am-shadow-lg); border-color: #b9cde3; border-left-color: var(--am-accent); }
.am-prod-name { font-size: .9rem; font-weight: 650; color: var(--am-ink); padding-right: 2.5rem; }
.am-prod-sku { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; color: var(--am-muted); }
.am-prod-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .15rem; }
.am-prod-tags span { padding: .05rem .5rem; border-radius: 999px; background: #eef2f7; font-size: .68rem; font-weight: 600; color: #475569; }
.am-prod-tags span.is-serial { background: #fff1f3; color: #c81f40; }
.am-prod-pick { position: absolute; right: .8rem; top: .75rem; padding: .15rem .6rem; border-radius: 999px; background: var(--am-brand-soft); font-size: .7rem; font-weight: 700; color: var(--am-brand); }
.am-prod-card:hover .am-prod-pick { background: var(--am-brand); color: #fff; }

.am-serial { border: 1px solid var(--am-line); border-radius: 1rem; background: #fff; padding: 1rem 1.1rem; }
.am-serial-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; }
.am-serial-title { font-size: .9rem; font-weight: 650; color: var(--am-ink); }
.am-serial-title span { font-weight: 500; color: var(--am-muted); }
.am-serial-count { padding: .15rem .65rem; border-radius: 999px; background: #eef2f7; font-size: .74rem; color: #475569; }
.am-serial-count.is-done { background: #dcfce7; color: #166534; }
.am-serial-hint { margin-top: .6rem; padding: .7rem .9rem; border-radius: .7rem; background: #f6f8fb; font-size: .84rem; color: var(--am-muted); }
.am-serial-hint.is-warn { background: #fff7ed; color: #b45309; }
.am-serial-hint p + .am-serial-btn { margin-top: .5rem; }
.am-serial-btn { display: inline-block; padding: .4rem .85rem; border: 1px solid #c9d6e6; border-radius: .6rem; background: #fff; font-size: .78rem; font-weight: 600; color: var(--am-brand); }
.am-serial-btn:hover { background: var(--am-brand-soft); }
.am-serial-list { margin-top: .7rem; max-height: 24rem; overflow-y: auto; padding: .6rem; border: 1px solid var(--am-line); border-radius: .8rem; background: #fafbfd; display: flex; flex-direction: column; gap: .45rem; animation: am-slide-in .25s ease both; }
.am-serial-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: .5rem; }
.am-serial-no { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--am-brand-soft); font-size: .72rem; font-weight: 700; color: var(--am-brand); }
.am-serial-barcode, .am-serial-input { width: 100%; padding: .5rem .7rem; border-radius: .6rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.am-serial-barcode { border: 1px solid var(--am-line); background: #f1f4f9; color: #64748b; }
.am-serial-input { border: 1px solid #cbd5e1; background: #fff; }
.am-serial-input:focus { outline: none; border-color: var(--am-brand-2); box-shadow: 0 0 0 3px rgba(44, 97, 144, .15); }
.am-serial-bulk { margin-top: .6rem; font-size: .85rem; }
.am-serial-bulk summary { cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--am-brand-2); }
.am-serial-bulk textarea { margin-bottom: .4rem; }
@media (max-width: 639px) {
    .am-serial-row { grid-template-columns: 1.7rem minmax(0, 1fr); }
    .am-serial-row .am-serial-input { grid-column: 2; }
    .am-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ Ürünler: kategori ağacı paneli */
.am-tree { height: fit-content; padding: .8rem; border: 1px solid var(--am-line); border-radius: 1rem; background: #fff; box-shadow: var(--am-shadow); }
@media (min-width: 1024px) { .am-tree { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; } .am-tree-list { overflow-y: auto; } }
.am-tree-head { display: flex; align-items: center; justify-content: space-between; padding: 0 .3rem .5rem; }
.am-tree-head h2 { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--am-muted); }
.am-tree-tools { display: flex; gap: .15rem; }
.am-tree-tools button { padding: .15rem .5rem; border-radius: .4rem; font-size: .72rem; font-weight: 600; color: var(--am-brand-2); }
.am-tree-tools button:hover { background: var(--am-brand-soft); }
.am-tree-search { position: relative; margin-bottom: .55rem; }
.am-tree-search svg { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.am-tree-search input { width: 100%; padding: .45rem .7rem .45rem 2rem; border: 1px solid var(--am-line); border-radius: .65rem; background: #f6f8fb; font-size: .82rem; }
.am-tree-search input:focus { outline: none; background: #fff; border-color: var(--am-brand-2); box-shadow: 0 0 0 3px rgba(44, 97, 144, .12); }
.am-tree-list, .am-tree-sub { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.am-tree-sub { margin: 2px 0 2px .85rem; padding-left: .45rem; border-left: 1px solid #e3e9f2; animation: am-slide-in .2s ease both; }
.am-tree-all { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: .45rem .6rem; border-radius: .6rem; font-size: .86rem; font-weight: 600; color: #334155; text-align: left; }
.am-tree-all:hover, .am-tree-row:hover { background: #f3f6fb; }
.am-tree-all.is-muted { font-weight: 500; color: #64748b; }
.am-tree-row { display: flex; align-items: center; gap: .15rem; padding-left: .15rem; border-radius: .6rem; }
.am-tree-toggle { flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: .4rem; color: #94a3b8; }
.am-tree-toggle:hover { background: #e6edf6; color: var(--am-brand); }
.am-tree-toggle svg { width: 12px; height: 12px; transition: transform .15s; }
.am-tree-toggle.is-open svg { transform: rotate(90deg); }
.am-tree-dot { flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; }
.am-tree-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #cbd5e1; }
.am-tree-name { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .5rem .35rem .15rem; font-size: .86rem; color: #334155; text-align: left; }
.am-tree-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-tree-count { flex: none; min-width: 1.4rem; padding: .02rem .45rem; border-radius: 999px; background: #eef2f7; font-size: .7rem; font-weight: 600; text-align: center; color: #64748b; font-variant-numeric: tabular-nums; }
.am-tree-row.is-empty .am-tree-name { color: #94a3b8; }
.am-tree-row.is-empty .am-tree-count { background: transparent; color: #cbd5e1; }
.am-tree-row.is-selected, .am-tree-all.is-selected { background: var(--am-brand); }
.am-tree-row.is-selected .am-tree-name, .am-tree-row.is-selected .am-tree-toggle, .am-tree-all.is-selected { color: #fff; font-weight: 650; }
.am-tree-row.is-selected .am-tree-count, .am-tree-all.is-selected .am-tree-count { background: rgba(255, 255, 255, .2); color: #fff; }
.am-tree-row.is-selected .am-tree-dot::before { background: rgba(255,255,255,.7); }
.am-tree-row.is-selected .am-tree-toggle:hover { background: rgba(255,255,255,.15); color: #fff; }
.am-tree-empty { padding: .6rem .5rem; font-size: .8rem; color: #94a3b8; }
.am-tree-empty a { color: var(--am-brand-2); font-weight: 600; }
.am-tree-manage { display: block; margin-top: .6rem; padding: .45rem; border-top: 1px solid var(--am-line); text-align: center; font-size: .78rem; font-weight: 600; color: var(--am-brand-2); }
.am-tree-manage:hover { color: var(--am-brand); }

/* ------------------------------------------------------------------ Ürün seçici penceresi */
.am-pick-trigger { position: relative; margin-top: .25rem; }
.am-pick-btn { display: flex; width: 100%; align-items: center; gap: .6rem; padding: .7rem .9rem; border: 1px solid #cbd5e1; border-radius: .8rem; background: #fff; text-align: left; font-size: .9rem; color: #64748b; box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: border-color .15s, box-shadow .15s; }
.am-pick-btn:hover { border-color: var(--am-brand-2); box-shadow: 0 0 0 3px rgba(44,97,144,.1); }
.am-pick-btn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-pick-btn.has-value { color: var(--am-ink); font-weight: 600; padding-right: 3rem; }
.am-pick-btn em { font-style: normal; padding: .15rem .65rem; border-radius: 999px; background: var(--am-brand-soft); font-size: .72rem; font-weight: 700; color: var(--am-brand); }
.am-pick-btn.has-value em { margin-right: .2rem; }
.am-pick-clear { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: 1.1rem; line-height: 1; color: #94a3b8; }
.am-pick-clear:hover { background: #fee2e2; color: #b91c1c; }
/* Ortak seçim penceresi (ürün / tedarikçi / sevk yeri / müşteri formu).
   Pencere <body>'ye taşınır (x-teleport) ve her zaman GÖRÜNEN ekranın tam ortasında açılır; sayfa kaydırması önemli değildir.
   Kabuk: resources/views/components/pick-modal.blade.php */
html.am-pick-lock { overflow: hidden; scrollbar-gutter: stable; }
.am-pick-overlay {
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem;
    background: rgba(13, 33, 51, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); overscroll-behavior: contain;
}
.am-pick-modal {
    display: flex; flex-direction: column; width: 100%; max-width: 40rem; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem);
    border-radius: 1.1rem; background: #fff; box-shadow: 0 30px 70px -20px rgba(13, 33, 51, .5); overflow: hidden;
    animation: am-pick-in .16s ease-out both;
}
/* Sabit yükseklik: kategori/ürün değiştikçe pencere zıplamaz */
.am-pick-tall { height: 38rem; height: min(38rem, calc(100dvh - 2rem)); }
.am-pick-head { display: flex; align-items: center; gap: .6rem; padding: .85rem .9rem .2rem 1.1rem; }
.am-pick-title { display: flex; align-items: center; gap: .55rem; min-width: 0; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; color: var(--am-ink); }
.am-pick-title svg { flex: none; color: var(--am-brand-2); }
.am-pick-head .am-pick-close { margin-left: auto; }
.am-pick-top { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem .75rem; border-bottom: 1px solid var(--am-line-soft); }
.am-pick-search { position: relative; flex: 1; }
.am-pick-search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.am-pick-search input { width: 100%; padding: .7rem .9rem .7rem 2.3rem; border: 1px solid var(--am-line); border-radius: .8rem; background: #f6f8fb; font-size: .95rem; }
.am-pick-search input:focus { outline: none; background: #fff; border-color: var(--am-brand-2); box-shadow: 0 0 0 3px rgba(44,97,144,.14); }
.am-pick-close { flex: none; width: 2.2rem; height: 2.2rem; border-radius: .7rem; font-size: 1.5rem; line-height: 1; color: #64748b; }
.am-pick-close:hover { background: #f1f5f9; color: var(--am-ink); }
/* Gezinti çubuğu: gövde kayarken de görünür kalır */
.am-pick-nav { display: flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-bottom: 1px solid var(--am-line-soft); background: #fbfcfe; }
.am-pick-nav .am-cat-back { flex: none; margin: 0; padding: .25rem .65rem .25rem .45rem; }
.am-pick-nav .am-crumbs { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.am-pick-nav .am-crumbs::-webkit-scrollbar { display: none; }
.am-pick-nav .am-crumbs button { white-space: nowrap; }
.am-pick-nav .am-crumbs span { display: inline-flex; align-items: center; }
.am-pick-body { flex: 1; min-height: 0; overflow-y: auto; padding: .8rem .9rem; contain: content; overscroll-behavior: contain; }
.am-pick-head + .am-pick-body { border-top: 1px solid var(--am-line-soft); }
.am-pick-body .am-cat-label { margin-top: .9rem; }
.am-pick-body .am-cat-label:first-child { margin-top: .1rem; }
.am-pick-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 1rem; border-top: 1px solid var(--am-line-soft); background: #fbfcfe; font-size: .72rem; color: var(--am-muted); }
.am-pick-foot kbd { padding: .05rem .35rem; border: 1px solid #d5dce8; border-bottom-width: 2px; border-radius: .35rem; background: #fff; font: inherit; font-size: .68rem; font-weight: 600; color: #475569; }
.am-pick-hints { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; }
@media (hover: none) { .am-pick-hints { display: none; } }
.am-pick-row { display: flex; width: 100%; align-items: center; gap: .75rem; margin-bottom: .4rem; padding: .65rem .8rem; border: 1px solid var(--am-line); border-radius: .8rem; background: #fff; text-align: left; transition: none; content-visibility: auto; contain-intrinsic-size: auto 3.4rem; }
.am-pick-row:hover { border-color: #b9cde3; background: #f6f9fd; }
.am-pick-row.is-active { border-color: var(--am-brand-2); background: #eef5fc; box-shadow: 0 0 0 3px rgba(44,97,144,.14); }
.am-pick-row.is-empty { opacity: .6; }
.am-pick-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.am-pick-main strong { font-size: .9rem; font-weight: 650; color: var(--am-ink); }
.am-pick-main small { font-size: .74rem; color: var(--am-muted); }
.am-pick-badge { padding: .05rem .5rem; border-radius: 999px; background: #fff1f3; font-size: .68rem; font-weight: 600; color: #c81f40; white-space: nowrap; }
.am-pick-go { padding: .15rem .65rem; border-radius: 999px; background: var(--am-brand-soft); font-size: .72rem; font-weight: 700; color: var(--am-brand); white-space: nowrap; }
.am-pick-row:hover .am-pick-go, .am-pick-row.is-active .am-pick-go { background: var(--am-brand); color: #fff; }
.am-pick-row .am-cat-go { position: static; flex: none; }
.am-pick-body .am-cat-icon { flex: none; width: 2rem; height: 2rem; border-radius: .55rem; font-size: .9rem; font-weight: 700; text-transform: uppercase; background: var(--am-brand-soft); color: var(--am-brand); }
.am-pick-chev { flex: none; font-size: 1.3rem; line-height: 1; color: #94a3b8; }
.am-pick-row:hover .am-pick-chev, .am-pick-row.is-active .am-pick-chev { color: var(--am-brand); }
.am-pick-body .am-crumbs span { display: inline-flex; align-items: center; }
@media (max-width: 639px) {
    .am-pick-overlay { padding: .5rem; }
    .am-pick-modal { max-height: calc(100dvh - 1rem); border-radius: 1rem; }
    .am-pick-tall { height: calc(100dvh - 1rem); }
}

@keyframes am-pick-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes am-slide { from { opacity: .0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.am-slide { animation: am-slide .16s ease-out both; }
@media (prefers-reduced-motion: reduce) { .am-pick-modal, .am-slide { animation: none; } }

/* Açılır pencerede geniş içerik (örn. müşteri formu) */
.am-modal-lg { max-width: 46rem; }
.am-modal-lg .am-pick-body { padding: 1rem; background: #f6f8fb; }
.am-modal-lg form > div.flex:last-child:has(button[type=submit]) { position: static; margin-top: 1rem; background: transparent; border: 0; box-shadow: none; padding: 0; backdrop-filter: none; }

/* ------------------------------------------------------------------ ortadaki bildirimler (toast) */
[data-toast="success"], [data-toast="error"], [data-toast="info"] { display: none !important; }

#am-toasts {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    pointer-events: none;
}
.am-toast {
    --tc: #059669; --tc-soft: #ecfdf5;
    position: relative; overflow: hidden; pointer-events: auto;
    display: flex; align-items: flex-start; gap: .85rem;
    width: 100%; max-width: 27rem; padding: 1rem 1.1rem;
    background: #fff; color: #1e293b;
    border: 1px solid #e5e9f0; border-radius: 1rem;
    box-shadow: 0 24px 60px -16px rgba(15, 23, 42, .38), 0 4px 14px -6px rgba(15, 23, 42, .12);
    font-size: .9rem; line-height: 1.5;
    animation: am-toast-in .22s cubic-bezier(.2, .8, .3, 1);
}
.am-toast--error   { --tc: #dc2626; --tc-soft: #fef2f2; }
.am-toast--warning { --tc: #d97706; --tc-soft: #fffbeb; }
.am-toast--info    { --tc: #0284c7; --tc-soft: #f0f9ff; }
.am-toast--tap { cursor: pointer; }
.am-toast--out { animation: am-toast-out .16s ease-in forwards; }

.am-toast-icon {
    flex: none; display: flex; align-items: center; justify-content: center;
    width: 2.1rem; height: 2.1rem; border-radius: 9999px;
    background: var(--tc-soft); color: var(--tc);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tc) 28%, transparent);
    font-size: 1rem; font-weight: 700; font-style: normal;
}
.am-toast-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.am-toast-body { width: 100%; padding-top: .3rem; overflow-wrap: anywhere; word-break: break-word; }
.am-toast-body a { color: var(--tc); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.am-toast-close {
    align-self: flex-end; min-height: 2.25rem; padding: .35rem 1.25rem;
    border: 0; border-radius: .6rem; background: var(--tc); color: #fff;
    font-size: .85rem; font-weight: 600; cursor: pointer; transition: filter .15s;
}
.am-toast-close:hover { filter: brightness(1.08); }
.am-toast-close:focus-visible { outline: 2px solid var(--tc); outline-offset: 2px; }

/* Kalan süreyi gösteren ince çubuk (fareyle üstüne gelince durur) */
.am-toast-bar {
    position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
    background: var(--tc); opacity: .75; transform-origin: left;
    animation-name: am-toast-bar; animation-timing-function: linear; animation-fill-mode: forwards;
}
.am-toast--paused .am-toast-bar { animation-play-state: paused; }

@keyframes am-toast-in  { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes am-toast-out { to { opacity: 0; transform: scale(.97); } }
@keyframes am-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Mobil: kart ekrana yayılır, düğme tam genişlik ve kolay dokunulur */
@media (max-width: 480px) {
    .am-toast { max-width: none; padding: .95rem 1rem; gap: .7rem; border-radius: .95rem; font-size: .92rem; }
    .am-toast-icon { width: 1.9rem; height: 1.9rem; }
    .am-toast-close { align-self: stretch; width: 100%; min-height: 2.75rem; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
    .am-toast, .am-toast--out { animation: none; }
    .am-toast-bar { animation: none; display: none; }
}

/* Sağ alt köşe bildirimleri (ör. ürün güncellendi): ekranı kapatmaz, sayfa kullanılmaya devam eder */
#am-toasts-corner {
    position: fixed; z-index: 9998; right: 0; bottom: 0;
    display: flex; flex-direction: column; align-items: flex-end; gap: .6rem;
    width: 100%; max-width: 26rem; pointer-events: none;
    padding: 1rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) 1rem;
}
.am-toast--corner { animation-name: am-toast-corner-in; box-shadow: 0 14px 34px -14px rgba(15, 23, 42, .4), 0 3px 10px -4px rgba(15, 23, 42, .12); }
@keyframes am-toast-corner-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
    #am-toasts-corner { max-width: none; padding-left: max(.75rem, env(safe-area-inset-left)); padding-right: max(.75rem, env(safe-area-inset-right)); }
}

/* Bilgi kutusu (x-alert type="info" inline) */
.am-alert-info { border-color: #bae6fd; background: #f0f9ff; color: #075985; }
.am-alert-info a { font-weight: 600; text-decoration: underline; }

/* Telefon alanı: ülke kodu seçici + ulusal numara (x-phone-input) */
.am-phone { display: flex; gap: .5rem; margin-top: .25rem; width: 100%; }
.am-phone-dial, .am-phone-national {
    border: 1px solid #cbd5e1; border-radius: .5rem; background: #fff; color: #1e293b;
    padding: .5rem .75rem; font-size: .875rem; line-height: 1.25rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.am-phone-dial { flex: none; width: 6.4rem; padding-left: .5rem; padding-right: .25rem; cursor: pointer; }
.am-phone-national { flex: 1; min-width: 0; letter-spacing: .02em; }
.am-phone-dial:focus, .am-phone-national:focus { outline: none; border-color: var(--am-brand, #e62a4e); box-shadow: 0 0 0 1px var(--am-brand, #e62a4e); }
.am-phone-dial:disabled, .am-phone-national:disabled { background: #f1f5f9; cursor: not-allowed; }
@media (max-width: 380px) { .am-phone-dial { width: 5.6rem; } }

/* Depo takip kartları: ek ikonlar + div kartlarda da hover kalkma efekti */
.hs-stat[data-i="in"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v12M7 11l5 5 5-5M5 20h14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v12M7 11l5 5 5-5M5 20h14'/%3E%3C/svg%3E"); }
.hs-stat[data-i="truck"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h13v9H1zM14 10h4l3 3v3h-7z'/%3E%3Ccircle cx='6' cy='18' r='1.8'/%3E%3Ccircle cx='17' cy='18' r='1.8'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h13v9H1zM14 10h4l3 3v3h-7z'/%3E%3Ccircle cx='6' cy='18' r='1.8'/%3E%3Ccircle cx='17' cy='18' r='1.8'/%3E%3C/svg%3E"); }
.hs-stats.is-split > div.hs-stat:hover { transform: translateY(-3px); box-shadow: var(--am-shadow-lg); border-color: #cfdbea; }

/* Tam genişlikte eşit sütunlu ayrı kartlar (Depo Takip) */
.hs-stats.is-split.is-full { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .hs-stats.is-split.is-full { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hs-stats.is-split.is-full { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Yan menü daraltılmışken sayfa içeriği daha geniş kullanılır */
@media (min-width: 1024px) {
    body.am-collapsed .am-main > .mx-auto.max-w-3xl { max-width: 56rem; }
    body.am-collapsed .am-main > .mx-auto.max-w-4xl { max-width: 64rem; }
    body.am-collapsed .am-main > .mx-auto.max-w-5xl { max-width: 80rem; }
    body.am-collapsed .am-main > .mx-auto.max-w-6xl,
    body.am-collapsed .am-main > .mx-auto.max-w-7xl { max-width: 100rem; }
}
.am-main > .mx-auto { transition: max-width .2s ease; }
