/* =====================================================================
   Technic Software Panel - Ana stil dosyasi
   Kurumsal renk: #F79646 (teklif sablonundan alindi)
   ===================================================================== */

:root {
    /* Marka */
    --brand:        #F79646;
    --brand-dark:   #E07B28;
    --brand-light:  #FDEEE0;

    /* Notr tonlar */
    --ink:          #1C2229;
    --ink-soft:     #566270;
    --ink-faint:    #8A96A3;
    --line:         #E3E8ED;
    --bg:           #F4F6F8;
    --surface:      #FFFFFF;

    /* Durum renkleri */
    --ok:           #2E9E5B;
    --ok-bg:        #E8F6EE;
    --warn:         #E8880C;
    --warn-bg:      #FDF0DD;
    --danger:       #D64541;
    --danger-bg:    #FBE9E8;

    /* Olculer */
    --radius:       10px;
    --radius-sm:    6px;
    --shadow:       0 1px 2px rgba(16,24,40,.05), 0 4px 12px rgba(16,24,40,.06);
    --shadow-lg:    0 12px 40px rgba(16,24,40,.18);
    --sidebar-w:    248px;
}

* { box-sizing: border-box; }

/* HTML'deki hidden ozelligi her zaman kazanmali.
   Aksi halde .img-remove{display:grid} gibi kurallar hidden'i ezer. */
[hidden] { display: none !important; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* =====================================================================
   GİRİŞ EKRANI
   ===================================================================== */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: linear-gradient(140deg, #2B3340 0%, #1C2229 55%, #141A20 100%);
}

.login-wrap { width: 100%; max-width: 400px; }

.login-card {
    background: var(--surface);
    border-radius: 14px;
    padding: 36px 32px 32px;
    box-shadow: var(--shadow-lg);
}

.login-logo { text-align: center; margin-bottom: 22px; }
.login-logo img { height: 52px; width: auto; }

.login-title {
    margin: 0;
    font-size: 20px;
    font-weight: 650;
    text-align: center;
    letter-spacing: -.2px;
}

.login-sub {
    margin: 4px 0 24px;
    text-align: center;
    color: var(--ink-faint);
    font-size: 13.5px;
}

.login-foot {
    margin-top: 22px;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255,255,255,.45);
}

.password-wrap { position: relative; }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: 0;
    padding: 4px 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-faint);
    cursor: pointer;
}
.password-toggle:hover { color: var(--brand-dark); }

/* =====================================================================
   FORM ELEMANLARI
   ===================================================================== */
.field { margin-bottom: 16px; }

.field label,
.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(247,150,70,.18);
}

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

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 20px;
    font-size: 14px;
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
}
.checkbox input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

/* =====================================================================
   BUTONLAR
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost { background: var(--surface); color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { background: #F7F9FA; color: var(--ink); }

.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: #F3C9C7; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn-block { width: 100%; padding: 11px 16px; font-size: 15px; }

.btn-sm { padding: 6px 11px; font-size: 13px; }

/* =====================================================================
   UYARI MESAJLARI
   ===================================================================== */
.alert {
    padding: 11px 14px;
    margin-bottom: 14px;
    font-size: 13.5px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}
.alert-error,
.alert-danger  { background: var(--danger-bg); color: #8E2B28; border-color: #F3C9C7; }
.alert-success { background: var(--ok-bg);     color: #1C6B3C; border-color: #BFE5CE; }
.alert-warning { background: var(--warn-bg);   color: #8A5309; border-color: #F6D9AE; }
.alert-info    { background: #EAF2FB;          color: #1F4E79; border-color: #C6DDF4; }

/* =====================================================================
   UYGULAMA İSKELETİ
   ===================================================================== */
.app { display: flex; min-height: 100vh; }

/* ---------- Sol menü ---------- */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-w);
    background: #1C2229;
    color: #CBD3DC;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 20px;
    background: #fff;
    border-bottom: 3px solid var(--brand);
}
.sidebar-brand img { height: 32px; width: auto; }

.sidebar-nav { flex: 1; padding: 14px 10px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    margin-bottom: 2px;
    font-size: 14.5px;
    font-weight: 500;
    color: #AEB9C5;
    border-radius: var(--radius-sm);
    transition: background .14s, color .14s;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav-item.is-active { background: var(--brand); color: #fff; font-weight: 600; }

/* Menü ikonları (CSS ile çizilen basit semboller) */
.nav-icon {
    flex: none;
    width: 18px; height: 18px;
    background: currentColor;
    opacity: .9;
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
}
.nav-icon[data-icon="home"]   { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9.5 12 3l9 6.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9.5 12 3l9 6.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.nav-icon[data-icon="box"]    { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5z'/%3E%3Cpath d='m3 8 9 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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5z'/%3E%3Cpath d='m3 8 9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
.nav-icon[data-icon="layers"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 9 5-9 5-9-5z'/%3E%3Cpath d='m3 12 9 5 9-5M3 17l9 5 9-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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 9 5-9 5-9-5z'/%3E%3Cpath d='m3 12 9 5 9-5M3 17l9 5 9-5'/%3E%3C/svg%3E"); }
.nav-icon[data-icon="mail"]   { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m2 7 10 6 10-6'/%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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m2 7 10 6 10-6'/%3E%3C/svg%3E"); }

/* ---------- Sol menü alt kısmı ---------- */
.sidebar-foot {
    padding: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.user-chip { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.user-avatar {
    flex: none;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
}

.user-meta { min-width: 0; line-height: 1.3; }
.user-meta strong { display: block; font-size: 13.5px; color: #fff; font-weight: 600;
                    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span   { font-size: 12px; color: #7E8B99; }

.btn-logout {
    width: 100%;
    padding: 8px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #AEB9C5;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .14s, color .14s;
}
.btn-logout:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ---------- İçerik alanı ---------- */
.main {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 64px;
    padding: 0 26px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.page-title { flex: 1; margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.2px; }

.topbar-actions { display: flex; align-items: center; gap: 9px; }

.sidebar-toggle {
    display: none;
    background: none; border: 0;
    font-size: 22px; line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
}

.flash-area { padding: 18px 26px 0; }

.content { flex: 1; padding: 22px 26px 40px; }

/* =====================================================================
   ÖZET KARTLARI
   ===================================================================== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stat-card--danger { border-left-color: var(--danger); }
.stat-card--warn   { border-left-color: var(--warn); }

.stat-label { font-size: 12.5px; font-weight: 600; color: var(--ink-faint);
              text-transform: uppercase; letter-spacing: .4px; }
.stat-value { font-size: 27px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; }
.stat-note  { font-size: 12.5px; color: var(--ink-faint); }

/* =====================================================================
   PANELLER
   ===================================================================== */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 16px;
    align-items: start;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 650; }
.panel-link { font-size: 13px; font-weight: 600; color: var(--brand-dark); }

.empty {
    margin: 0;
    padding: 28px 18px;
    text-align: center;
    font-size: 13.5px;
    color: var(--ink-faint);
}

/* ---------- Küçük liste (dashboard) ---------- */
.mini-list { list-style: none; margin: 0; padding: 0; }

.mini-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 18px;
    border-bottom: 1px solid #F0F3F6;
}
.mini-list li:last-child { border-bottom: 0; }

.mini-thumb {
    flex: none;
    width: 38px; height: 38px;
    object-fit: cover;
    background: #F4F6F8;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.mini-main { flex: 1; min-width: 0; line-height: 1.35; }
.mini-main strong { display: block; font-size: 13.5px; font-weight: 600;
                    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-sub { font-size: 12.5px; color: var(--ink-faint); }

.mini-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.amount { font-size: 13.5px; font-weight: 650; }

/* =====================================================================
   ROZETLER / STOK ETİKETLERİ
   ===================================================================== */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11.5px;
    font-weight: 650;
    border-radius: 20px;
    white-space: nowrap;
}
.badge-gray   { background: #EEF1F4; color: var(--ink-soft); }
.badge-orange { background: var(--warn-bg); color: #8A5309; }
.badge-green  { background: var(--ok-bg); color: #1C6B3C; }
.badge-red    { background: var(--danger-bg); color: #8E2B28; }

.stock-pill {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11.5px;
    font-weight: 650;
    border-radius: 20px;
    white-space: nowrap;
}
.stock-ok     { background: var(--ok-bg);     color: #1C6B3C; }
.stock-warn   { background: var(--warn-bg);   color: #8A5309; }
.stock-danger { background: var(--danger-bg); color: #8E2B28; }

/* =====================================================================
   POP-UP (MODAL) - Faz 2'den itibaren kullanılacak
   ===================================================================== */
.modal-backdrop {
    position: fixed; inset: 0;
    z-index: 100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    background: rgba(16,24,40,.55);
}
.modal-backdrop.is-open { display: flex; }

.modal {
    width: 100%;
    max-width: 640px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    animation: modal-in .18s ease-out;
}
.modal--wide  { max-width: 880px; }
.modal--xwide { max-width: 1060px; }   /* teklif detayı: tablo rahat sığsın */

@keyframes modal-in {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 650; }

.modal-close {
    background: none; border: 0;
    font-size: 24px; line-height: 1;
    color: var(--ink-faint);
    cursor: pointer;
    padding: 0 4px;
}
.modal-close:hover { color: var(--danger); }

.modal-body { padding: 20px; }

.modal-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 14px 20px;
    background: #FAFBFC;
    border-top: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
}

/* =====================================================================
   ARAÇ ÇUBUĞU (arama + ekle butonu)
   ===================================================================== */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.search-form { position: relative; flex: 1; max-width: 420px; }
.search-form input { padding-right: 34px; }

.search-clear {
    position: absolute;
    top: 50%; right: 10px;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1;
    color: var(--ink-faint);
    text-decoration: none;
}
.search-clear:hover { color: var(--danger); text-decoration: none; }

.btn-plus { font-size: 17px; line-height: 1; font-weight: 400; }

.result-info { margin: -6px 0 16px; font-size: 13.5px; color: var(--ink-soft); }

/* =====================================================================
   ÜRÜN KARTLARI
   ===================================================================== */
.product-list { display: flex; flex-direction: column; gap: 14px; }

.product-card {
    display: flex;
    gap: 18px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: border-color .15s, box-shadow .15s;
}
.product-card:hover { border-color: #CFD8E0; box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 8px 20px rgba(16,24,40,.08); }

/* ---------- Sol: resim ---------- */
.pc-media {
    position: relative;
    flex: none;
    width: 132px; height: 132px;
    background: #F7F9FA;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.pc-media img { width: 100%; height: 100%; object-fit: contain; display: block; }

.pc-imgcount {
    position: absolute;
    bottom: 5px; right: 5px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(28,34,41,.72);
    border-radius: 20px;
}

/* ---------- Sağ: gövde ---------- */
.pc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 11px; }

.pc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }

.pc-titles { min-width: 0; }

.pc-name {
    margin: 0 0 6px;
    font-size: 15.5px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -.1px;
}

.pc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }

.pc-sku {
    display: inline-block;
    padding: 2px 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    background: #F1F4F7;
    border-radius: var(--radius-sm);
    white-space: nowrap;   /* stok kodu asla satır kırmasın */
}

.pc-actions { flex: none; display: flex; gap: 7px; }

/* ---------- Fiyat kademeleri ---------- */
.price-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.tier {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 7px 10px;
    background: #FCFDFD;
}
.tier-range { font-size: 11.5px; font-weight: 600; color: var(--ink-faint);
              text-transform: uppercase; letter-spacing: .3px; }
.tier-price { font-size: 15px; font-weight: 700; color: var(--brand-dark); letter-spacing: -.2px; }

/* ---------- Kısa özellik ---------- */
.pc-features {
    padding: 9px 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-soft);
    background: #FAFBFC;
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pc-features strong { color: var(--ink); }

/* =====================================================================
   FİLTRE SEKMELERİ
   ===================================================================== */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background .14s, border-color .14s, color .14s;
}
.filter-tab:hover { background: #F7F9FA; color: var(--ink); text-decoration: none; }
.filter-tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.filter-count {
    padding: 0 6px;
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(0,0,0,.07);
    border-radius: 20px;
}
.filter-tab.is-active .filter-count { background: rgba(255,255,255,.25); }

/* =====================================================================
   STOK KARTI
   ===================================================================== */
.stock-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sc-main {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
}

.sc-media {
    flex: none;
    width: 62px; height: 62px;
    background: #F7F9FA;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.sc-media img { width: 100%; height: 100%; object-fit: contain; display: block; }

.sc-info { flex: 1; min-width: 0; }
.sc-name {
    margin: 0 0 5px;
    font-size: 14.5px;
    font-weight: 650;
    line-height: 1.35;
}

/* ---------- Rakam bloğu ---------- */
.sc-numbers { flex: none; display: flex; gap: 8px; }

.sc-num {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 76px;
    padding: 8px 10px;
    background: #FAFBFC;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.sc-num-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.sc-num-value { font-size: 19px; font-weight: 700; line-height: 1.1; letter-spacing: -.4px; }

/* Ana rakam (müsait stok) — renk kodlu */
.sc-num--main { min-width: 92px; border-width: 2px; }
.sc-num--main .sc-num-value { font-size: 24px; }

.sc-ok     { background: var(--ok-bg);     border-color: #BFE5CE; }
.sc-ok     .sc-num-value { color: #1C6B3C; }
.sc-ok     .sc-num-label { color: #2E9E5B; }

.sc-warn   { background: var(--warn-bg);   border-color: #F6D9AE; }
.sc-warn   .sc-num-value { color: #8A5309; }
.sc-warn   .sc-num-label { color: #B5700C; }

.sc-danger { background: var(--danger-bg); border-color: #F3C9C7; }
.sc-danger .sc-num-value { color: #8E2B28; }
.sc-danger .sc-num-label { color: #C0413D; }

.js-reserved.is-reserved { color: var(--brand-dark); }

/* ---------- İşlem satırı ---------- */
.sc-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 11px 16px;
    background: #FAFBFC;
    border-top: 1px solid var(--line);
}

.stock-edit { display: flex; align-items: center; gap: 6px; }
.stock-edit label {
    margin: 0 4px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: .3px;
}
.stock-edit input {
    width: 92px;
    padding: 7px 9px;
    text-align: center;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.step-btn {
    width: 30px; height: 34px;
    display: grid; place-items: center;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .14s, color .14s, border-color .14s;
}
.step-btn:hover { background: var(--brand-light); border-color: var(--brand); color: var(--brand-dark); }

.sc-buttons { display: flex; gap: 7px; }

/* ---------- Rezervasyon listesi ---------- */
.sc-reservations {
    padding: 11px 16px 13px;
    background: #FFFBF6;
    border-top: 1px solid #F6E2CC;
}

.sc-res-head {
    margin-bottom: 7px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.res-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 0;
    border-bottom: 1px dashed #F0DCC4;
}
.res-row:last-child { border-bottom: 0; padding-bottom: 0; }

.res-who { flex: 1; min-width: 0; line-height: 1.3; }
.res-who strong { font-size: 13.5px; font-weight: 650; }
.res-note { display: block; font-size: 12px; color: var(--ink-faint); }

.res-qty {
    flex: none;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand-dark);
    font-variant-numeric: tabular-nums;
}

/* Rezerve pop-up'ındaki ürün özeti */
.res-product {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 13px;
    margin-bottom: 18px;
    background: #FAFBFC;
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.res-product strong { font-size: 13.5px; line-height: 1.35; }
.res-product span   { font-size: 12.5px; color: var(--ink-soft); }
.res-product b      { color: var(--brand-dark); }

/* =====================================================================
   TEKLİF LİSTESİ (mail kutusu görünümü)
   ===================================================================== */
.offer-inbox { padding: 0; }

.offer-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid #F0F3F6;
    cursor: pointer;
    transition: background .13s;
}
.offer-row:last-child { border-bottom: 0; }
.offer-row:hover { background: #FAFBFC; }
.offer-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

/* Taslaklar okunmamış mail gibi vurgulu */
.offer-row.is-draft { background: #FFFDFA; }
.offer-row.is-draft .or-company { color: var(--ink); }
.offer-row.is-draft::before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px; height: 100%;
    background: var(--brand);
}
.offer-row { position: relative; }

.or-thumb {
    position: relative;
    flex: none;
    width: 46px; height: 46px;
    background: #F7F9FA;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.or-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.or-count {
    position: absolute;
    top: -5px; right: -5px;
    min-width: 18px; height: 18px;
    display: grid; place-items: center;
    padding: 0 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    background: var(--brand);
    border: 2px solid #fff;
    border-radius: 20px;
}

.or-main { flex: 1; min-width: 0; }

.or-line1 { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.or-company {
    font-size: 14.5px;
    font-weight: 650;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.or-line2 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--ink-faint);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.or-no { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
         font-weight: 600; color: var(--ink-soft); }
.or-items { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.or-side {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}
.or-total { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.or-date  { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }

.or-actions { flex: none; display: flex; gap: 6px; opacity: 0; transition: opacity .13s; }
.offer-row:hover .or-actions,
.offer-row:focus-within .or-actions { opacity: 1; }

/* =====================================================================
   TEKLİF DETAY POP-UP'I
   ===================================================================== */
.od-meta {
    margin-bottom: 14px;
    font-size: 12.5px;
    color: var(--ink-faint);
}

.od-company {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px 18px;
    padding: 13px 15px;
    margin-bottom: 18px;
    background: #FAFBFC;
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.od-field { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.od-field span   { font-size: 11px; font-weight: 700; color: var(--ink-faint);
                   text-transform: uppercase; letter-spacing: .4px; }
.od-field strong { font-size: 13.5px; font-weight: 600; word-break: break-word; }

.od-table th { background: var(--brand); color: #fff; border-bottom: 0; }
.od-table .od-no  { width: 34px; color: var(--ink-faint); font-weight: 600; }
.od-table .od-img { width: 52px; }
.od-table .od-img img {
    width: 44px; height: 44px;
    object-fit: contain;
    background: #F7F9FA;
    border: 1px solid var(--line);
    border-radius: 4px;
    display: block;
}
.od-noimg { color: var(--ink-faint); }
.od-pname { font-weight: 600; line-height: 1.35; }
.od-num    { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.od-strong { font-weight: 700; }

.od-totals {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    max-width: 300px;
    margin: 14px 0 0 auto;
}
.od-sum {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 12px;
    font-size: 13.5px;
}
.od-sum span { color: var(--ink-soft); }
.od-sum strong { font-variant-numeric: tabular-nums; }
.od-sum--total {
    margin-top: 3px;
    padding: 9px 12px;
    font-size: 15px;
    color: #fff;
    background: var(--brand);
    border-radius: var(--radius-sm);
}
.od-sum--total span { color: rgba(255,255,255,.9); font-weight: 600; }
.od-sum--total strong { font-size: 16px; }

.od-notes { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.od-notes-head {
    margin-bottom: 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: .5px;
}
.od-feature {
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-soft);
}
.od-feature strong { color: var(--ink); }
.od-terms {
    margin-top: 10px;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-soft);
    background: #FAFBFC;
    border-radius: var(--radius-sm);
}

/* =====================================================================
   TEKLİF FORMU
   ===================================================================== */
.offer-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 13px 16px;
    margin-bottom: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.offer-no { display: flex; flex-direction: column; gap: 1px; }
.offer-no-label { font-size: 11px; font-weight: 700; color: var(--ink-faint);
                  text-transform: uppercase; letter-spacing: .4px; }
.offer-no strong { font-size: 17px; font-weight: 700;
                   font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.offer-topbar-actions { display: flex; gap: 8px; }

.offer-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.offer-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.panel-body { padding: 16px 18px; }
.panel-head .item-count {
    display: inline-block;
    min-width: 20px;
    padding: 1px 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-dark);
    background: var(--brand-light);
    border-radius: 20px;
}

/* ---------- Teklif satırları ---------- */
.offer-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #F0F3F6;
}
.offer-item:last-child { border-bottom: 0; }

.oi-no {
    flex: none;
    width: 22px; height: 22px;
    display: grid; place-items: center;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-faint);
    background: #F1F4F7;
    border-radius: 50%;
}
.oi-img {
    flex: none;
    width: 52px; height: 52px;
    object-fit: contain;
    background: #F7F9FA;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.oi-body { flex: 1; min-width: 0; }
.oi-name { font-size: 14px; font-weight: 650; line-height: 1.35; margin-bottom: 4px; }
.oi-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oi-calc { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.oi-features {
    margin-top: 6px;
    padding: 6px 10px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-soft);
    background: #FAFBFC;
    border-left: 2px solid var(--brand);
    border-radius: 0 4px 4px 0;
}
.oi-features strong { color: var(--ink); }
.oi-total {
    flex: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-dark);
    font-variant-numeric: tabular-nums;
}
.oi-actions { flex: none; display: flex; flex-direction: column; gap: 5px; }

/* ---------- Özet paneli ---------- */
.offer-summary { position: sticky; top: 80px; }

.sum-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: 13.5px;
}
.sum-row span   { color: var(--ink-soft); }
.sum-row strong { font-size: 15px; font-variant-numeric: tabular-nums; }

.sum-row--total {
    margin-top: 8px;
    padding: 11px 13px;
    color: #fff;
    background: var(--brand);
    border-radius: var(--radius-sm);
}
.sum-row--total span   { color: rgba(255,255,255,.9); font-weight: 600; }
.sum-row--total strong { font-size: 18px; }

.field--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0;
}
.field--inline label { margin: 0; flex: 1; }
.field--inline input { width: 110px; text-align: right; }

/* =====================================================================
   CANLI ARAMA (autocomplete)
   ===================================================================== */
.autocomplete { position: relative; }

.ac-list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 60;
    max-height: 290px;
    overflow-y: auto;
    margin-top: 3px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    cursor: pointer;
    border-bottom: 1px solid #F4F7F9;
}
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover,
.ac-item.is-active { background: var(--brand-light); }

.ac-item img {
    flex: none;
    width: 34px; height: 34px;
    object-fit: contain;
    background: #F7F9FA;
    border: 1px solid var(--line);
    border-radius: 4px;
}
.ac-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ac-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ac-sku {
    font-size: 11.5px;
    color: var(--ink-faint);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ac-price { flex: none; font-size: 13px; font-weight: 700; color: var(--brand-dark); }

.ac-item mark { background: #FFE2C2; color: inherit; font-weight: 700; padding: 0 1px; border-radius: 2px; }

.ac-empty { padding: 13px; text-align: center; font-size: 13px; color: var(--ink-faint); }

/* =====================================================================
   ÜRÜN POP-UP'I: resim seçimi ve fiyat kademeleri
   ===================================================================== */
.item-images { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }

.item-img {
    position: relative;
    width: 78px; height: 78px;
    padding: 3px;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color .14s;
}
.item-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.item-img:hover { border-color: var(--brand); }
.item-img.is-selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(247,150,70,.18); }

.item-img-check {
    position: absolute;
    top: -8px; right: -8px;
    width: 21px; height: 21px;
    display: none;
    place-items: center;
    font-size: 12px;
    color: #fff;
    background: var(--brand);
    border: 2px solid #fff;
    border-radius: 50%;
}
.item-img.is-selected .item-img-check { display: grid; }

/* ---------- Fiyat kademesi seçimi ---------- */
.tier-picker { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }

.tier-picker-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-faint);
}

.tier-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 6px 11px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color .14s, background .14s;
}
.tier-chip:hover { border-color: var(--brand); background: var(--brand-light); }
.tier-chip.is-active { border-color: var(--brand); background: var(--brand); }
.tier-chip.is-active .tier-chip-range { color: rgba(255,255,255,.85); }
.tier-chip.is-active .tier-chip-price { color: #fff; }

.tier-chip-range { font-size: 10.5px; font-weight: 700; color: var(--ink-faint);
                   text-transform: uppercase; letter-spacing: .3px; }
.tier-chip-price { font-size: 14px; font-weight: 700; color: var(--brand-dark); }

/* =====================================================================
   VERİ TABLOSU (stok geçmişi vb.)
   ===================================================================== */
.table-scroll { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
    padding: 8px 10px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: .4px;
    background: #FAFBFC;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.data-table td { padding: 9px 10px; border-bottom: 1px solid #F0F3F6; vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }

.hist-date   { white-space: nowrap; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hist-change { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hist-up     { color: var(--ok); }
.hist-down   { color: var(--danger); }
.hist-new    { font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.hist-note   { color: var(--ink-soft); min-width: 180px; }
.hist-user   { color: var(--ink-faint); white-space: nowrap; }

.history-product {
    margin: 0 0 14px;
    padding-bottom: 12px;
    font-size: 14px;
    font-weight: 650;
    border-bottom: 1px solid var(--line);
}

/* =====================================================================
   FORM DÜZENİ (pop-up içi)
   ===================================================================== */
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-row--2 { grid-template-columns: repeat(2, 1fr); }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
.form-row--4 { grid-template-columns: repeat(4, 1fr); }

.form-label {
    display: block;
    margin: 4px 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}
.label-hint {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    color: var(--ink-faint);
    text-transform: none;
}

.req { color: var(--danger); font-weight: 400; }

.field-hint { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-faint); }

.field-error { display: block; margin-top: 5px; font-size: 12.5px; color: var(--danger); font-weight: 500; }
.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(214,69,65,.15); }

.form-error {
    padding: 11px 14px;
    margin-bottom: 16px;
    font-size: 13.5px;
    color: #8E2B28;
    background: var(--danger-bg);
    border: 1px solid #F3C9C7;
    border-radius: var(--radius-sm);
}

.tier-inputs .field label { font-size: 12px; color: var(--ink-faint);
                            text-transform: uppercase; letter-spacing: .3px; }

/* =====================================================================
   RESİM SLOTLARI (4 adet)
   ===================================================================== */
.image-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.img-slot { position: relative; }

.img-drop {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    padding: 6px;
    background: #FAFBFC;
    border: 2px dashed var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color .15s, background .15s;
    overflow: hidden;
}
.img-drop:hover { border-color: var(--brand); background: var(--brand-light); }

.img-slot.has-image .img-drop { border-style: solid; border-color: var(--line); background: #fff; padding: 0; }

.img-preview { width: 100%; height: 100%; object-fit: contain; }

.img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.img-plus { font-size: 22px; line-height: 1; color: var(--ink-faint); font-weight: 300; }
.img-text { font-size: 11.5px; font-weight: 600; color: var(--ink-faint); }

.img-remove {
    position: absolute;
    top: -7px; right: -7px;
    width: 22px; height: 22px;
    display: grid; place-items: center;
    font-size: 16px; line-height: 1;
    color: #fff;
    background: var(--danger);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(16,24,40,.2);
}
.img-remove:hover { background: #B4322E; }

/* Resim küçültülürken gösterilen bekleme durumu */
.img-slot.is-busy .img-drop { border-color: var(--brand); background: var(--brand-light); }
.img-slot.is-busy .img-drop::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 22px; height: 22px;
    border: 2px solid rgba(247,150,70,.3);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: slot-spin .7s linear infinite;
}
.img-slot.is-busy .img-placeholder { opacity: 0; }
.img-slot .img-drop { position: relative; }

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

/* =====================================================================
   MOBİL
   ===================================================================== */
/* ---------- Tablet ---------- */
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .main { margin-left: 0; }
    .sidebar-toggle { display: block; }
    .topbar { padding: 0 16px; }
    .content { padding: 18px 16px 32px; }
    .flash-area { padding: 14px 16px 0; }

    .form-row--3 { grid-template-columns: repeat(2, 1fr); }
    .modal-backdrop { padding: 20px 14px; }

    /* Teklif formu tek sütuna düşer, özet üste gelir */
    .offer-layout { grid-template-columns: 1fr; }
    .offer-side { order: -1; }
    .offer-summary { position: static; }
}

/* ---------- Telefon ---------- */
@media (max-width: 620px) {
    /* Araç çubuğu alt alta */
    .toolbar { flex-direction: column; align-items: stretch; }
    .search-form { max-width: none; }

    /* Ürün kartı: resim üstte, bilgiler altta */
    .product-card { flex-direction: column; gap: 14px; }
    .pc-media { width: 100%; height: 190px; }

    /* Başlık ve butonlar alt alta */
    .pc-head { flex-direction: column; gap: 10px; }
    .pc-actions { width: 100%; }
    .pc-actions .btn { flex: 1; }

    /* Fiyat kademeleri 2x2 */
    .price-tiers { grid-template-columns: repeat(2, 1fr); }

    /* Form alanları tek sütun, fiyatlar 2x2 */
    .form-row--3 { grid-template-columns: 1fr; }
    .form-row--4 { grid-template-columns: repeat(2, 1fr); }

    /* Stok kartı: bilgi üstte, rakamlar altta tam genişlik */
    .sc-main { flex-wrap: wrap; }
    .sc-numbers { width: 100%; }
    .sc-num { flex: 1; min-width: 0; }
    .sc-num--main { min-width: 0; }

    .sc-actions { flex-direction: column; align-items: stretch; }
    .stock-edit { justify-content: space-between; }
    .stock-edit input { flex: 1; width: auto; }
    .sc-buttons .btn { flex: 1; }

    /* Rezervasyon satırı alt alta */
    .res-row { flex-wrap: wrap; gap: 7px; }
    .res-who { flex-basis: 100%; }

    /* Teklif listesi: işlem butonları hep görünsün (hover yok) */
    .offer-row { flex-wrap: wrap; }
    .or-actions { opacity: 1; width: 100%; }
    .or-actions .btn { flex: 1; }
    .or-side { align-items: flex-start; text-align: left; }

    /* Teklif satırı */
    .offer-item { flex-wrap: wrap; }
    .oi-body { flex-basis: calc(100% - 100px); }
    .oi-total { margin-left: 34px; }
    .oi-actions { flex-direction: row; width: 100%; margin-left: 0; }
    .oi-actions .btn { flex: 1; }

    /* Üst bar */
    .offer-topbar { flex-direction: column; align-items: stretch; }
    .offer-topbar-actions .btn { flex: 1; }

    /* Resim slotları 2x2 */
    .image-slots { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    /* Pop-up tam genişlik.
       DİKKAT: align-items:stretch kullanılmamalı — pop-up kutusunu kapsayıcı
       yüksekliğine sabitler ve uzun içerik beyaz zeminin dışına taşar. */
    .modal-backdrop { padding: 0; align-items: flex-start; }
    .modal, .modal--wide { max-width: none; border-radius: 0; min-height: 100vh; }
    .modal-foot { border-radius: 0; position: sticky; bottom: 0; }
    .modal-foot .btn { flex: 1; }

    /* Özet kartları tek sütun */
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
}
