.inp{display:block;width:100%;border:1px solid #cbd5e1;border-radius:.5rem;padding:.5rem .65rem;background:#fff;font-size:.9rem}
.inp:focus{outline:2px solid #3b82f6;outline-offset:-1px;border-color:#3b82f6}
.inp-sm{border:1px solid #cbd5e1;border-radius:.4rem;padding:.3rem .45rem;background:#fff;font-size:.85rem;width:100%}
.card{background:#fff;border-radius:.75rem;box-shadow:0 1px 3px rgba(0,0,0,.08);padding:1.25rem}
.tbl{width:100%;font-size:.875rem}
.tbl th{text-align:left;font-weight:600;color:#475569;background:#f8fafc;padding:.6rem .75rem;border-bottom:1px solid #e2e8f0;white-space:nowrap}
.tbl td{padding:.6rem .75rem;border-bottom:1px solid #f1f5f9;vertical-align:top}
.tbl tr:hover td{background:#f8fafc}
.sec-title{font-weight:700;font-size:1.05rem;margin-bottom:.75rem;display:flex;justify-content:space-between;align-items:center}
@media print{.no-print{display:none!important}body{background:#fff}main{padding:0!important;max-width:none!important}.card{box-shadow:none;padding:0}}
[hidden]{display:none!important}
/* ---------- ikonlar ---------- */
.ic{width:1.15rem;height:1.15rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
/* ---------- kabuk: sol menü + üst çubuk ---------- */
.sidebar{position:fixed;top:0;bottom:0;left:0;width:16rem;background:#0f172a;color:#cbd5e1;display:flex;flex-direction:column;z-index:40;transform:translateX(-100%);transition:transform .2s ease}
.sidebar.open{transform:none}
@media (min-width:1024px){.sidebar{transform:none}}
.sb-head{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#64748b;padding:0 .75rem .4rem;font-weight:600}
.sb-link{display:flex;align-items:center;gap:.75rem;padding:.55rem .75rem;border-radius:.55rem;color:#cbd5e1;margin-bottom:2px}
.sb-link:hover{background:#1e293b;color:#fff}
.sb-link.active{background:#4f46e5;color:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.topbar{position:fixed;top:0;right:0;left:0;height:4rem;background:rgba(255,255,255,.92);backdrop-filter:blur(6px);border-bottom:1px solid #e2e8f0;display:flex;align-items:center;gap:.75rem;padding:0 1.25rem;z-index:20}
@media (min-width:1024px){.topbar{left:16rem}}
body.shell main{max-width:none!important;margin:0!important;padding:5.25rem 1.25rem 2rem!important}
@media (min-width:1024px){body.shell main{padding-left:calc(16rem + 2rem)!important;padding-right:2rem!important}}
.um-link{display:flex;align-items:center;gap:.6rem;padding:.5rem 1rem;color:#334155;text-align:left}
.um-link:hover{background:#f8fafc}
/* ---------- sayfa başlığı + üstte sabit aksiyon çubuğu ---------- */
.actionbar{position:sticky;top:4rem;z-index:15;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;background:rgba(241,245,249,.96);backdrop-filter:blur(4px);margin:-1.25rem -1.25rem 1.25rem;padding:.9rem 1.25rem;border-bottom:1px solid #e2e8f0}
@media (min-width:1024px){.actionbar{margin-left:-2rem;margin-right:-2rem;padding-left:2rem;padding-right:2rem}}
.actionbar h1{font-size:1.35rem;font-weight:700;line-height:1.2}
.actionbar .sub{font-size:.8rem;color:#64748b;margin-top:.15rem}
.btn{display:inline-flex;align-items:center;gap:.45rem;padding:.5rem .95rem;border-radius:.6rem;font-size:.875rem;font-weight:500;border:1px solid transparent;white-space:nowrap;cursor:pointer}
.btn-primary{background:#4f46e5;color:#fff}.btn-primary:hover{background:#4338ca}
.btn-light{background:#fff;border-color:#e2e8f0;color:#334155}.btn-light:hover{background:#f8fafc}
.btn-green{background:#059669;color:#fff}.btn-green:hover{background:#047857}
.btn-red{background:#dc2626;color:#fff}.btn-red:hover{background:#b91c1c}
.btn-amber{background:#f59e0b;color:#fff}.btn-amber:hover{background:#d97706}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-sm{padding:.3rem .65rem;font-size:.8rem}
.kpi{display:flex;align-items:center;gap:1rem}
.kpi-ic{width:2.75rem;height:2.75rem;border-radius:.8rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.kpi-ic .ic{width:1.35rem;height:1.35rem}
.kpi-val{font-size:1.5rem;font-weight:700;line-height:1.1}
.kpi-lbl{font-size:.8rem;color:#64748b}
@media print{.sidebar,.topbar,.actionbar{display:none!important}body.shell main{padding:0!important}}
/* menü: rol filtresi uygulanana kadar rol'e bağlı bağlantıları gösterme (yanlış menü anlık görünmesin) */
#nav:not(.ready) [data-roles]{visibility:hidden}
/* liste işlem kolonu */
.acts{white-space:nowrap;text-align:right}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:.5rem;color:#64748b}
.icon-btn:hover{background:#f1f5f9;color:#1e293b}
.icon-btn.del:hover{background:#fef2f2;color:#dc2626}
.icon-btn .ic{width:1.05rem;height:1.05rem}
.add-row{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem;padding-top:.75rem;border-top:1px dashed #e2e8f0}
/* küçük girişlerde sabit genişlik (Tailwind w-* ile .inp-sm %100 çakışmasın) */
.inp-sm.w-16{width:4rem}.inp-sm.w-20{width:5rem}.inp-sm.w-24{width:6rem}.inp-sm.w-28{width:7rem}.inp-sm.w-32{width:8rem}.inp-sm.w-36{width:9rem}.inp-sm.w-40{width:10rem}
.tbl th.text-right{text-align:right}.tbl th.text-center{text-align:center}
/* ---------- dialog (native <dialog>) ---------- */
dialog.dlg{border:0;border-radius:1rem;padding:0;width:min(34rem,calc(100vw - 1.5rem));max-height:calc(100vh - 2rem);box-shadow:0 20px 50px rgba(15,23,42,.25)}
dialog.dlg::backdrop{background:rgba(15,23,42,.45)}
dialog.dlg .dlg-h{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem 1.25rem;border-bottom:1px solid #e2e8f0;font-weight:600}
dialog.dlg .dlg-b{padding:1.25rem;overflow-y:auto}
dialog.dlg .dlg-f{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem;padding:.9rem 1.25rem;border-top:1px solid #e2e8f0;background:#f8fafc}
/* ---------- mobilde tabloyu kart listesine çevir: <table class="tbl tbl-m"> + <td data-l="Başlık"> ---------- */
@media (max-width:767px){
  .tbl-m thead{display:none}
  .tbl-m tr{display:block;border-bottom:1px solid #e2e8f0;padding:.55rem 0}
  .tbl-m td{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;border:0;padding:.2rem .25rem;text-align:right}
  .tbl-m td::before{content:attr(data-l);font-weight:500;font-size:.75rem;color:#64748b;text-align:left;flex-shrink:0;padding-top:.1rem}
  .tbl-m td.m-full{display:block;text-align:left}.tbl-m td.m-full::before{content:none}
  .tbl-m td.acts{justify-content:flex-end}.tbl-m td.acts::before{content:none}
  .tbl-m tr:hover td{background:transparent}
}
/* ---------- açılır bölüm (akordiyon): <details class="card acc"><summary>… ---------- */
details.acc>summary{list-style:none}
details.acc>summary::-webkit-details-marker{display:none}
details.acc>summary::after{content:"";width:.55rem;height:.55rem;border-right:2px solid #94a3b8;border-bottom:2px solid #94a3b8;transform:rotate(45deg);margin:0 .25rem .2rem .5rem;flex-shrink:0;transition:transform .15s}
details.acc[open]>summary::after{transform:rotate(-135deg);margin-bottom:-.2rem}
/* ---------- liste kiti: toplam / sayfa / sayfa adedi / Excel-PDF ---------- */
.lk-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem .75rem;margin:-.25rem 0 .75rem;font-size:.82rem;color:#475569}
.lk-bar .lk-tools{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem}
.lk-bar .lk-per{display:flex;align-items:center;gap:.35rem;white-space:nowrap}
.lk-bar .lk-per .inp-sm{width:4.5rem}
.lk-bar.busy{opacity:.55;pointer-events:none}
.lk-bar.busy+*{opacity:.35}
th.lk-sort{cursor:pointer;user-select:none}
th.lk-sort:hover{color:#4f46e5}
th .lk-arrow{margin-left:.25rem;font-size:.7rem;color:#4f46e5}
/* ---------- sol menü açılır bölümler ---------- */
.sb-tgl{display:flex;width:100%;align-items:center;justify-content:space-between;background:none;border:0;cursor:pointer;text-align:left}
.sb-tgl:hover{color:#cbd5e1}
.sb-tgl .ic{width:.9rem;height:.9rem;transition:transform .15s}
.sb-grp.closed .sb-tgl .ic{transform:rotate(-90deg)}
.sb-grp.closed .sb-items{display:none}
/* ---------- dosya ekleri ---------- */
.ek-drop{border:1px dashed #cbd5e1;border-radius:.6rem;padding:.35rem .6rem;transition:background .15s}
.ek-drop.over{background:#eef2ff;border-color:#6366f1}
.ek-drop.busy{opacity:.5;pointer-events:none}
.ek-item{display:flex;align-items:center;gap:.65rem;padding:.45rem 0;border-bottom:1px solid #f1f5f9}
.ek-item:last-child{border-bottom:0}
.ek-th{width:2.5rem;height:2.5rem;object-fit:cover;border-radius:.4rem;border:1px solid #e2e8f0;flex-shrink:0}
.ek-ext{width:2.5rem;height:2.5rem;border-radius:.4rem;background:#eef2ff;color:#4338ca;font-size:.65rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ek-name{display:block;color:#4f46e5;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* ---------- kart resmi ---------- */
.img-field{display:flex;gap:.9rem;align-items:center}
.img-box{width:5.5rem;height:5.5rem;border-radius:.8rem;border:1px solid #e2e8f0;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;color:#94a3b8}
.img-box img{width:100%;height:100%;object-fit:cover}
.img-box .ic{width:1.8rem;height:1.8rem}
.thumb{width:2.25rem;height:2.25rem;border-radius:.5rem;object-fit:cover;border:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0}
.thumb-ph{width:2.25rem;height:2.25rem;border-radius:.5rem;background:#f1f5f9;color:#94a3b8;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.thumb-ph .ic{width:1rem;height:1rem}
.detail-img{width:7rem;height:7rem;border-radius:1rem;object-fit:cover;border:1px solid #e2e8f0}
/* ---------- sekmeler ---------- */
.tabs{display:flex;gap:.25rem;border-bottom:1px solid #e2e8f0;margin-bottom:1rem;overflow-x:auto}
.tabs a{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem .9rem;font-size:.875rem;font-weight:500;color:#64748b;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.tabs a:hover{color:#1e293b}
.tabs a.on{color:#4f46e5;border-bottom-color:#4f46e5}
