/*
 * ZirveMenu /panel özel tasarım dosyası.
 * Sadece müşteri paneli layout/login içinde çağrılır; /ztadmin bu dosyayı kullanmaz.
 */

body.customer-panel-ui,
body.customer-panel-login{
  --panel-bg:#f4f6f8;
  --panel-sidebar:#0f172a;
  --panel-sidebar-2:#111c31;
  --panel-card:#ffffff;
  --panel-card-2:#f8fafc;
  --panel-line:#e5e7eb;
  --panel-line-2:#d6dce5;
  --panel-text:#111827;
  --panel-muted:#6b7280;
  --panel-primary:#0f766e;
  --panel-primary-2:#115e59;
  --panel-primary-soft:#e6f4f2;
  --panel-danger:#dc2626;
  --panel-warning:#b45309;
  --panel-success:#15803d;
  --panel-shadow:0 14px 40px rgba(15,23,42,.08);
  --panel-radius:14px;
  background:var(--panel-bg);
  color:var(--panel-text);
  font-family:Inter,Arial,sans-serif;
}

/* Ana müşteri paneli iskeleti */
body.customer-panel-ui{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  min-height:100vh;
  background:linear-gradient(180deg,#f7f9fb 0%,#eef2f6 100%);
}

body.customer-panel-ui .panel-menu-toggle,
body.customer-panel-ui .panel-sidebar-backdrop{display:none}

body.customer-panel-ui .sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:20px 14px;
  background:linear-gradient(180deg,var(--panel-sidebar),var(--panel-sidebar-2));
  border-right:1px solid rgba(255,255,255,.08);
  box-shadow:8px 0 28px rgba(15,23,42,.12);
  overflow:auto;
}
body.customer-panel-ui .sidebar::-webkit-scrollbar{width:8px}
body.customer-panel-ui .sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:999px}

body.customer-panel-ui .sidebar .brand,
body.customer-panel-login .brand{
  display:flex;
  align-items:center;
  gap:0;
  width:100%;
  margin:0;
  padding:11px 10px;
  border-radius:12px;
  color:#fff;
  text-decoration:none;
  font-size:24px;
  font-weight:950;
  letter-spacing:-.045em;
  line-height:1;
}
body.customer-panel-ui .sidebar .brand:before,
body.customer-panel-login .brand:before{
  content:'';
  width:34px;
  height:34px;
  margin-right:10px;
  border-radius:10px;
  background:var(--panel-primary);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
}
body.customer-panel-ui .sidebar .brand span,
body.customer-panel-login .brand span{color:#5eead4}
body.customer-panel-ui .sidebar .brand:hover{background:rgba(255,255,255,.05)}

body.customer-panel-ui .panel-company-card{
  margin:8px 6px 18px;
  padding:13px 12px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:13px;
  background:rgba(255,255,255,.055);
}
body.customer-panel-ui .panel-company-card small{
  display:block;
  color:#94a3b8;
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
body.customer-panel-ui .panel-company-card strong{
  display:block;
  margin-top:5px;
  color:#fff;
  font-size:14px;
  line-height:1.35;
}

body.customer-panel-ui .sidebar nav{display:grid;gap:4px}
body.customer-panel-ui .sidebar nav a{
  position:relative;
  display:flex;
  align-items:center;
  min-height:42px;
  gap:10px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid transparent;
  color:#cbd5e1;
  text-decoration:none;
  font-size:14px;
  font-weight:760;
  line-height:1.25;
  transition:background .15s ease,color .15s ease,border-color .15s ease,transform .15s ease;
}
body.customer-panel-ui .sidebar nav a:before{
  content:'';
  flex:0 0 auto;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#64748b;
}
body.customer-panel-ui .sidebar nav a:hover,
body.customer-panel-ui .sidebar nav a.active{
  color:#fff;
  background:rgba(255,255,255,.075);
  border-color:rgba(255,255,255,.09);
  transform:translateX(1px);
}
body.customer-panel-ui .sidebar nav a:hover:before,
body.customer-panel-ui .sidebar nav a.active:before{background:#5eead4}
body.customer-panel-ui .sidebar nav a:nth-last-child(2){
  margin-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:15px;
}
body.customer-panel-ui .sidebar nav a:last-child{color:#fecaca}
body.customer-panel-ui .sidebar nav a:last-child:before{background:#ef4444}

body.customer-panel-ui .admin-main{
  min-width:0;
  padding:28px clamp(20px,2.4vw,34px) 36px;
  background:transparent;
  color:var(--panel-text);
}
body.customer-panel-ui .admin-main:before{display:none}
body.customer-panel-ui .admin-main>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 22px;
  padding:18px 20px;
  border:1px solid var(--panel-line);
  border-radius:18px;
  background:rgba(255,255,255,.86);
  box-shadow:var(--panel-shadow);
}
body.customer-panel-ui .admin-main>header h1{
  margin:0;
  color:var(--panel-text);
  font-family:Inter,Arial,sans-serif;
  font-size:clamp(24px,2.2vw,34px);
  font-weight:900;
  letter-spacing:-.035em;
}
body.customer-panel-ui .admin-main>header p{margin:6px 0 0;color:var(--panel-muted);font-size:14px}
body.customer-panel-ui .actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}

/* Butonlar */
body.customer-panel-ui .btn,
body.customer-panel-login .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  border:1px solid var(--panel-primary);
  border-radius:10px;
  padding:10px 15px;
  background:var(--panel-primary);
  color:#fff;
  text-decoration:none;
  font-weight:850;
  box-shadow:none;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,transform .15s ease,box-shadow .15s ease;
}
body.customer-panel-ui .btn:hover,
body.customer-panel-login .btn:hover{
  background:var(--panel-primary-2);
  border-color:var(--panel-primary-2);
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(15,118,110,.18);
  filter:none;
}
body.customer-panel-ui .btn.small{min-height:34px;padding:8px 11px;border-radius:9px;font-size:13px}
body.customer-panel-ui .btn.ghost,
body.customer-panel-login .btn.ghost{
  background:#fff;
  color:#1f2937;
  border-color:var(--panel-line-2);
}
body.customer-panel-ui .btn.ghost:hover,
body.customer-panel-login .btn.ghost:hover{
  background:#f8fafc;
  border-color:#b9c3d1;
  box-shadow:0 8px 20px rgba(15,23,42,.08);
}
body.customer-panel-ui .btn.danger,
body.customer-panel-ui .danger-link{
  color:#b91c1c!important;
  border-color:#fecaca!important;
  background:#fff5f5!important;
  text-decoration:none;
  font-weight:850;
}
body.customer-panel-ui .danger-link{padding:8px 10px;border-radius:9px;display:inline-flex}

/* Kartlar, paneller, formlar */
body.customer-panel-ui .panel,
body.customer-panel-ui .card,
body.customer-panel-ui .stats div,
body.customer-panel-ui .export-card,
body.customer-panel-ui .sort-card,
body.customer-panel-ui .qr-polish-card,
body.customer-panel-ui .download-card,
body.customer-panel-ui .qr-info-box,
body.customer-panel-ui .qr-preview-box{
  background:var(--panel-card);
  border:1px solid var(--panel-line);
  border-radius:var(--panel-radius);
  box-shadow:var(--panel-shadow);
}
body.customer-panel-ui .panel,
body.customer-panel-ui .card,
body.customer-panel-ui .qr-polish-card{padding:20px;margin-bottom:18px}
body.customer-panel-ui .panel-head,
body.customer-panel-ui .page-head,
body.customer-panel-ui .variant-head,
body.customer-panel-ui .sort-title-row,
body.customer-panel-ui .qr-polish-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}
body.customer-panel-ui .panel h1,
body.customer-panel-ui .panel h2,
body.customer-panel-ui .panel h3,
body.customer-panel-ui .card h1,
body.customer-panel-ui .card h2,
body.customer-panel-ui .card h3,
body.customer-panel-ui .qr-polish-head h1{
  margin-top:0;
  color:var(--panel-text);
  font-family:Inter,Arial,sans-serif;
  letter-spacing:-.02em;
}
body.customer-panel-ui .muted,
body.customer-panel-ui small{color:var(--panel-muted);line-height:1.55}
body.customer-panel-ui .section-title{
  margin:24px 0 10px;
  color:var(--panel-primary);
  font-size:13px;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
}
body.customer-panel-ui .form,
body.customer-panel-ui .form-grid{display:grid;gap:14px}
body.customer-panel-ui .grid2,
body.customer-panel-ui .settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.customer-panel-ui .grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.customer-panel-ui label{color:#1f2937;font-weight:820;gap:7px}
body.customer-panel-ui input,
body.customer-panel-ui select,
body.customer-panel-ui textarea{
  width:100%;
  min-height:42px;
  border:1px solid var(--panel-line-2);
  border-radius:10px;
  padding:11px 12px;
  background:#fff;
  color:#111827;
  outline:none;
  box-shadow:none;
}
body.customer-panel-ui textarea{resize:vertical;min-height:100px}
body.customer-panel-ui input:focus,
body.customer-panel-ui select:focus,
body.customer-panel-ui textarea:focus{
  border-color:#0f766e;
  box-shadow:0 0 0 4px rgba(15,118,110,.10);
}
body.customer-panel-ui input[type="color"]{height:46px;padding:4px}
body.customer-panel-ui .check{display:flex;align-items:center;gap:10px;color:#334155}
body.customer-panel-ui .check input{width:auto;min-height:auto;accent-color:var(--panel-primary)}
body.customer-panel-ui .form-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

/* Tablolar */
body.customer-panel-ui .table-wrap{
  overflow:auto;
  border:1px solid var(--panel-line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}
body.customer-panel-ui table{width:100%;border-collapse:collapse;min-width:760px;background:#fff;color:#111827}
body.customer-panel-ui th,
body.customer-panel-ui td{
  text-align:left;
  padding:13px 12px;
  border-bottom:1px solid #eef2f7;
  vertical-align:middle;
}
body.customer-panel-ui th{
  background:#f8fafc;
  color:#475569;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.045em;
  font-weight:950;
}
body.customer-panel-ui tr:hover td{background:#fbfdff}
body.customer-panel-ui td a{color:var(--panel-primary);font-weight:850;text-decoration:none}
body.customer-panel-ui td a:hover{text-decoration:underline}
body.customer-panel-ui .status,
body.customer-panel-ui .badge,
body.customer-panel-ui .status-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 9px;
  border-radius:999px;
  background:var(--panel-primary-soft);
  border:1px solid #b8ded8;
  color:#0f766e;
  font-size:12px;
  font-weight:900;
}
body.customer-panel-ui .table-filter{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 14px;
}
body.customer-panel-ui .table-filter label{
  position:relative;
  display:block;
  width:min(360px,100%);
  color:transparent;
  font-size:0;
}
body.customer-panel-ui .table-filter label:before{
  content:'🔎';
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  z-index:1;
  font-size:15px;
  color:#64748b;
}
body.customer-panel-ui .table-filter input[type="search"]{padding-left:38px;background:#fff}
body.customer-panel-ui .table-filter [data-table-count]{color:#64748b;font-size:13px;font-weight:850}

/* Dashboard ve istatistikler */
body.customer-panel-ui .stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}
body.customer-panel-ui .stats div{
  padding:18px;
  position:relative;
  overflow:hidden;
}
body.customer-panel-ui .stats div:after{
  content:'';
  position:absolute;
  right:16px;
  top:16px;
  width:38px;
  height:38px;
  border-radius:12px;
  background:var(--panel-primary-soft);
  border:1px solid #cce7e2;
}
body.customer-panel-ui .stats b{display:block;font-size:34px;line-height:1;color:#0f172a;letter-spacing:-.05em}
body.customer-panel-ui .stats span{display:block;color:var(--panel-muted);margin-top:8px;font-weight:760}
body.customer-panel-ui .mini-bars{display:grid;gap:10px}
body.customer-panel-ui .mini-bars div{display:grid;grid-template-columns:90px 1fr 42px;align-items:center;gap:10px}
body.customer-panel-ui .mini-bars b{display:block;height:9px;border-radius:999px;background:var(--panel-primary)}
body.customer-panel-ui .pill-list{display:flex;gap:8px;flex-wrap:wrap}
body.customer-panel-ui .pill-list span{display:inline-flex;gap:8px;align-items:center;padding:8px 10px;border-radius:999px;background:#f8fafc;border:1px solid var(--panel-line);color:#334155;font-weight:850}

/* Önizleme ve özel kartlar */
body.customer-panel-ui .preview-row,
body.customer-panel-ui .qr-note{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  background:#f8fafc;
  border:1px solid var(--panel-line);
  border-radius:14px;
  padding:14px;
}
body.customer-panel-ui .admin-preview,
body.customer-panel-ui .ztadmin-preview{
  width:118px;
  height:118px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--panel-line);
  background:#f8fafc;
}
body.customer-panel-ui .admin-preview.wide,
body.customer-panel-ui .ztadmin-preview.wide{width:260px}
body.customer-panel-ui .copy-row{display:flex;gap:8px}
body.customer-panel-ui .copy-row input{flex:1}
body.customer-panel-ui .palette-row{display:flex;gap:8px;flex-wrap:wrap}
body.customer-panel-ui .palette{border:1px solid #b8ded8;background:#e6f4f2;color:#0f766e;border-radius:999px;padding:8px 12px;font-weight:850;cursor:pointer}

/* QR sayfası */
body.customer-panel-ui .qr-polish-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:18px;align-items:start}
body.customer-panel-ui .qr-preview-box{padding:18px;text-align:center}
body.customer-panel-ui .qr-preview-box img{margin:14px auto;border-radius:14px;background:#fff}
body.customer-panel-ui .qr-preview-title{font-weight:950;color:#0f172a}
body.customer-panel-ui .qr-preview-slug{color:#64748b;font-weight:850}
body.customer-panel-ui .qr-info-box{padding:18px}
body.customer-panel-ui .copy-line{padding:12px;border-radius:10px;background:#f8fafc;border:1px solid var(--panel-line);color:#0f172a;word-break:break-all}
body.customer-panel-ui .download-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.customer-panel-ui .download-card{padding:14px;text-decoration:none;color:#0f172a}
body.customer-panel-ui .download-card span{display:block;margin-top:5px;color:#64748b;font-size:13px}
body.customer-panel-ui .qr-soft-badge{background:#e6f4f2;color:#0f766e;border:1px solid #b8ded8;border-radius:999px;padding:6px 10px;font-weight:900;font-size:12px}

/* Sıralama */
body.customer-panel-ui .sort-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.customer-panel-ui .sort-card{padding:18px}
body.customer-panel-ui .zm-sort-list{display:grid;gap:10px}
body.customer-panel-ui .zm-sort-item{display:grid;grid-template-columns:42px 44px minmax(0,1fr);gap:10px;align-items:center;padding:10px;border:1px solid var(--panel-line);border-radius:12px;background:#fff}
body.customer-panel-ui .zm-sort-handle{width:36px;height:36px;border:1px solid var(--panel-line);border-radius:9px;background:#f8fafc;color:#334155;cursor:grab}
body.customer-panel-ui .zm-sort-thumb{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:#e6f4f2;color:#0f766e;font-weight:950}
body.customer-panel-ui .zm-sort-main b{display:block;color:#0f172a}
body.customer-panel-ui .zm-sort-main small{display:block;color:#64748b}

/* Login */
body.customer-panel-login{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px;
  background:
    radial-gradient(circle at 20% 8%,rgba(15,118,110,.16),transparent 30%),
    radial-gradient(circle at 80% 80%,rgba(17,94,89,.14),transparent 34%),
    linear-gradient(180deg,#f7f9fb,#eef2f6);
}
body.customer-panel-login .login-card{
  width:min(430px,100%);
  display:grid;
  gap:14px;
  background:rgba(255,255,255,.92);
  border:1px solid var(--panel-line);
  border-radius:24px;
  padding:30px;
  box-shadow:0 22px 70px rgba(15,23,42,.12);
  backdrop-filter:blur(18px);
}
body.customer-panel-login .login-card .brand{
  color:#0f172a;
  padding:0;
  margin:0 0 4px;
}
body.customer-panel-login .login-card .brand span{color:var(--panel-primary)}
body.customer-panel-login .login-card h1{
  margin:4px 0 0;
  color:#0f172a;
  font-family:Inter,Arial,sans-serif;
  font-size:32px;
  letter-spacing:-.035em;
}
body.customer-panel-login .login-card p{margin:0;color:#64748b}
body.customer-panel-login .login-card label{display:grid;gap:7px;color:#334155;font-weight:850}
body.customer-panel-login .login-card input{
  width:100%;
  min-height:44px;
  border:1px solid var(--panel-line-2);
  border-radius:10px;
  padding:12px;
  background:#fff;
  color:#111827;
  outline:none;
}
body.customer-panel-login .login-card input:focus{border-color:#0f766e;box-shadow:0 0 0 4px rgba(15,118,110,.10)}
body.customer-panel-login .login-card .btn{width:100%;margin-top:2px}
body.customer-panel-login .alert{background:#fff5f5;border:1px solid #fecaca;color:#b91c1c;border-radius:12px;padding:12px;margin:0}

@media (max-width:1100px){
  body.customer-panel-ui .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.customer-panel-ui .grid3{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.customer-panel-ui .download-grid{grid-template-columns:1fr}
  body.customer-panel-ui .qr-polish-layout{grid-template-columns:1fr}
}

@media (max-width:760px){
  body.customer-panel-ui{display:block;padding-top:58px}
  body.customer-panel-ui .panel-menu-toggle{
    display:inline-flex;
    position:fixed;
    top:12px;
    left:12px;
    z-index:1100;
    min-height:40px;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:9px 13px;
    border:1px solid #dbe3ed;
    border-radius:11px;
    background:#fff;
    color:#0f172a;
    font-weight:950;
    box-shadow:0 10px 28px rgba(15,23,42,.12);
  }
  body.customer-panel-ui .panel-sidebar-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:999;
    background:rgba(15,23,42,.46);
    opacity:0;
    pointer-events:none;
    transition:opacity .18s ease;
  }
  body.customer-panel-ui.panel-menu-open .panel-sidebar-backdrop{opacity:1;pointer-events:auto}
  body.customer-panel-ui .sidebar{
    position:fixed;
    inset:0 auto 0 0;
    z-index:1000;
    width:min(310px,86vw);
    height:100vh;
    padding:18px 14px;
    transform:translateX(-104%);
    transition:transform .2s ease;
    box-shadow:18px 0 44px rgba(15,23,42,.24);
  }
  body.customer-panel-ui.panel-menu-open .sidebar{transform:translateX(0)}
  body.customer-panel-ui .sidebar .brand{margin:0 6px 12px}
  body.customer-panel-ui .sidebar nav{display:grid;grid-template-columns:1fr;gap:4px}
  body.customer-panel-ui .admin-main{padding:16px}
  body.customer-panel-ui .admin-main>header{display:grid;gap:14px;padding:16px}
  body.customer-panel-ui .admin-main>header .actions{width:100%}
  body.customer-panel-ui .admin-main>header .actions .btn{flex:1 1 auto}
  body.customer-panel-ui .grid2,
  body.customer-panel-ui .grid3,
  body.customer-panel-ui .settings-grid,
  body.customer-panel-ui .sort-grid{grid-template-columns:1fr}
  body.customer-panel-ui .stats{grid-template-columns:1fr}
  body.customer-panel-ui .panel,
  body.customer-panel-ui .card,
  body.customer-panel-ui .qr-polish-card{padding:16px}
  body.customer-panel-ui .panel-head,
  body.customer-panel-ui .qr-polish-head{display:grid;gap:10px}
  body.customer-panel-ui .table-filter{display:grid;justify-items:stretch}
  body.customer-panel-ui .table-filter label{width:100%}
  body.customer-panel-login .login-card{padding:24px;border-radius:20px}
}

/* Panel menü ayırıcı */
.panel-menu-separator {
    display: block;
    height: 1px;
    margin: 10px 14px;
    background: rgba(255, 255, 255, 0.14);
}

/* Panel yedek al/yükle sayfası */
body.customer-panel-ui .export-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  align-items:stretch;
  margin:12px 0 6px;
}
body.customer-panel-ui .export-grid.import-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
body.customer-panel-ui .export-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  min-height:150px;
  padding:18px;
  color:var(--panel-text);
  text-decoration:none;
  line-height:1.45;
}
body.customer-panel-ui a.export-card:hover{
  border-color:#99d5ce;
  transform:translateY(-1px);
  box-shadow:0 18px 45px rgba(15,23,42,.08);
  text-decoration:none;
}
body.customer-panel-ui .export-card b{
  display:block;
  font-size:16px;
  font-weight:950;
  color:#0f172a;
  line-height:1.25;
}
body.customer-panel-ui .export-card span{
  display:block;
  color:var(--panel-muted);
  font-size:13px;
  line-height:1.6;
}
body.customer-panel-ui .export-card:after{
  content:'CSV indir';
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:auto;
  padding:8px 11px;
  border-radius:10px;
  background:#e6f4f2;
  color:#0f766e;
  border:1px solid #b8ded8;
  font-size:12px;
  font-weight:900;
}
body.customer-panel-ui form.export-card:after{content:none}
body.customer-panel-ui .import-card input[type="file"]{
  margin-top:4px;
  background:#f8fafc;
}
body.customer-panel-ui .import-card .check-line{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:13px;
  font-weight:750;
  color:#334155;
}
body.customer-panel-ui .import-card .check-line input{
  width:auto;
  min-height:auto;
  margin-top:3px;
  accent-color:var(--panel-primary);
}
body.customer-panel-ui .note-panel pre{
  margin:12px 0 0;
  padding:14px;
  border-radius:12px;
  background:#0f172a;
  color:#e2e8f0;
  overflow:auto;
  font-size:12px;
  line-height:1.55;
}
@media(max-width:980px){
  body.customer-panel-ui .export-grid,
  body.customer-panel-ui .export-grid.import-grid{grid-template-columns:1fr}
}

/* Sıralama sürükle-bırak davranış düzeltmesi */
body.customer-panel-ui .zm-sort-item,
body.customer-panel-ui .zm-sort-handle{
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}
body.customer-panel-ui .zm-sort-handle{
  touch-action:none;
  display:grid;
  place-items:center;
}
body.customer-panel-ui .zm-sort-item.dragging{
  opacity:.72;
  border-color:var(--panel-primary);
  box-shadow:0 14px 34px rgba(15,23,42,.16);
  cursor:grabbing;
}
body.zm-sorting-active,
body.zm-sorting-active *{
  cursor:grabbing !important;
}

/* Panel ziyaretler sayfası */
body.customer-panel-ui .panel-visits-overview{
  display:grid;
  grid-template-columns:minmax(220px,.8fr) minmax(0,1.35fr) minmax(0,1fr);
  gap:16px;
  margin-bottom:18px;
  align-items:stretch;
}
body.customer-panel-ui .visit-summary-stack{
  display:grid;
  gap:14px;
}
body.customer-panel-ui .visit-summary-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:118px;
  padding:20px;
  border:1px solid var(--panel-line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--panel-shadow);
  position:relative;
  overflow:hidden;
}
body.customer-panel-ui .visit-summary-card:after{
  content:'';
  position:absolute;
  right:18px;
  top:18px;
  width:40px;
  height:40px;
  border-radius:14px;
  background:var(--panel-primary-soft);
  border:1px solid #cce7e2;
}
body.customer-panel-ui .visit-summary-card b{
  display:block;
  font-size:36px;
  line-height:1;
  color:#0f172a;
  letter-spacing:-.05em;
}
body.customer-panel-ui .visit-summary-card span{
  display:block;
  margin-top:9px;
  color:var(--panel-muted);
  font-weight:850;
}
body.customer-panel-ui .visit-chart-card,
body.customer-panel-ui .visit-device-card{
  min-height:250px;
}
body.customer-panel-ui .visit-bars div{
  grid-template-columns:86px 1fr 38px;
}
body.customer-panel-ui .device-pill-list{
  align-content:start;
}
body.customer-panel-ui .device-pill-list span{
  width:100%;
  justify-content:space-between;
  border-radius:14px;
  padding:12px 14px;
}
body.customer-panel-ui .muted{
  color:var(--panel-muted);
  margin:0;
}
@media (max-width:1100px){
  body.customer-panel-ui .panel-visits-overview{
    grid-template-columns:1fr 1fr;
  }
  body.customer-panel-ui .visit-summary-stack{
    grid-column:1 / -1;
    grid-template-columns:1fr 1fr;
  }
}
@media (max-width:760px){
  body.customer-panel-ui .panel-visits-overview,
  body.customer-panel-ui .visit-summary-stack{
    grid-template-columns:1fr;
  }
}



/* Panel Dil Seçenekleri - ztadmin ile uyumlu düzen */
body.customer-panel-ui .language-settings-row{
  margin-top:14px;
}
body.customer-panel-ui .license-card{
  padding:16px;
  border:1px solid var(--panel-line);
  border-radius:16px;
  background:#f8fafc;
  box-shadow:0 10px 26px rgba(15,23,42,.04);
}
body.customer-panel-ui .license-card > .check{
  padding:12px 14px;
  border-radius:13px;
  background:#fff;
  border:1px solid #e5e7eb;
}
body.customer-panel-ui .language-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:10px;
  max-height:360px;
  overflow:auto;
  padding:12px;
  margin-top:14px;
  border:1px solid rgba(148,163,184,.30);
  border-radius:14px;
  background:#eef3f8;
  scrollbar-width:thin;
  scrollbar-color:#94a3b8 transparent;
}
body.customer-panel-ui .language-grid::-webkit-scrollbar{
  width:7px;
}
body.customer-panel-ui .language-grid::-webkit-scrollbar-track{
  background:transparent;
}
body.customer-panel-ui .language-grid::-webkit-scrollbar-thumb{
  background:#94a3b8;
  border-radius:999px;
}
body.customer-panel-ui .language-check{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0!important;
  padding:9px 11px;
  border-radius:11px;
  background:#fff;
  border:1px solid rgba(226,232,240,.96);
  color:#1f2937;
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
body.customer-panel-ui .language-check:hover{
  transform:translateY(-1px);
  border-color:rgba(15,118,110,.28);
  box-shadow:0 8px 18px rgba(15,23,42,.06);
}
body.customer-panel-ui .language-check input{
  flex:0 0 auto;
}
body.customer-panel-ui .language-check span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.customer-panel-ui .language-check small{
  margin-left:auto;
  color:#64748b;
  font-weight:700;
  white-space:nowrap;
}
@media(max-width:700px){
  body.customer-panel-ui .language-grid{
    grid-template-columns:1fr;
    max-height:330px;
  }
}



/* v50 - Global yazı tipi standardı */
:root{
  --font: Inter, Arial, sans-serif;
  --display: Inter, Arial, sans-serif;
}
html,
body,
button,
input,
select,
textarea,
table,
a,
label,
small,
strong,
b,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
div{
  font-family: Inter, Arial, sans-serif!important;
}



/* v56 - Admin ve panel alert mesaj kontrast düzeltmesi */
body.admin .alert,
body.super-admin-ui .alert,
body.customer-panel-ui .alert,
body.customer-panel-ui .flash,
body.admin .flash,
body.super-admin-ui .flash{
  padding:14px 16px!important;
  border-radius:14px!important;
  border:1px solid #dbe3ef!important;
  background:#ffffff!important;
  color:#111827!important;
  font-weight:700!important;
  line-height:1.55!important;
  box-shadow:0 10px 24px rgba(15,23,42,.06)!important;
}
body.admin .alert *,
body.super-admin-ui .alert *,
body.customer-panel-ui .alert *,
body.customer-panel-ui .flash *,
body.admin .flash *,
body.super-admin-ui .flash *{
  color:inherit!important;
}
body.admin .alert.success,
body.admin .alert-success,
body.admin .success.alert,
body.super-admin-ui .alert.success,
body.super-admin-ui .alert-success,
body.super-admin-ui .success.alert,
body.customer-panel-ui .alert.success,
body.customer-panel-ui .alert-success,
body.customer-panel-ui .success.alert,
body.customer-panel-ui .flash.success,
body.admin .flash.success,
body.super-admin-ui .flash.success{
  background:#ecfdf5!important;
  border-color:#bbf7d0!important;
  color:#065f46!important;
}
body.admin .alert.danger,
body.admin .alert-danger,
body.admin .danger.alert,
body.admin .alert.error,
body.admin .alert-error,
body.super-admin-ui .alert.danger,
body.super-admin-ui .alert-danger,
body.super-admin-ui .danger.alert,
body.super-admin-ui .alert.error,
body.super-admin-ui .alert-error,
body.customer-panel-ui .alert.danger,
body.customer-panel-ui .alert-danger,
body.customer-panel-ui .danger.alert,
body.customer-panel-ui .alert.error,
body.customer-panel-ui .alert-error,
body.customer-panel-ui .flash.error,
body.customer-panel-ui .flash.danger,
body.admin .flash.error,
body.admin .flash.danger,
body.super-admin-ui .flash.error,
body.super-admin-ui .flash.danger{
  background:#fef2f2!important;
  border-color:#fecaca!important;
  color:#991b1b!important;
}
body.admin .alert.warning,
body.admin .alert-warning,
body.super-admin-ui .alert.warning,
body.super-admin-ui .alert-warning,
body.customer-panel-ui .alert.warning,
body.customer-panel-ui .alert-warning,
body.customer-panel-ui .flash.warning,
body.admin .flash.warning,
body.super-admin-ui .flash.warning{
  background:#fffbeb!important;
  border-color:#fde68a!important;
  color:#92400e!important;
}
body.admin .alert.info,
body.admin .alert-info,
body.super-admin-ui .alert.info,
body.super-admin-ui .alert-info,
body.customer-panel-ui .alert.info,
body.customer-panel-ui .alert-info,
body.customer-panel-ui .flash.info,
body.admin .flash.info,
body.super-admin-ui .flash.info{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
  color:#1e3a8a!important;
}



/* v65 - Görsel URL alanları kaldırıldı, önizleme kartları */
.visual-upload-grid label{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.image-inline-preview,
.image-field-preview{
  display:block;
  margin-top:10px;
  padding:10px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#f8fafc;
}
.image-inline-preview img,
.image-field-preview img{
  width:100%;
  max-height:170px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
}
.image-inline-preview.wide img{
  max-height:220px;
  object-fit:cover;
}
.image-field-preview b{
  display:block;
  margin-bottom:8px;
  color:#111827;
}



/* v71 - Panel ürün formunda görsel alanı Sıra'nın altında tam satır */
.product-image-row{
  margin-top:14px;
  margin-bottom:18px;
}
.product-image-row .product-image-field{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  width:100%!important;
}
.product-image-row input[type="file"]{
  width:100%!important;
}



/* v72 - Ürün formu standart alan sırası */
.product-image-row{
  margin-top:14px;
  margin-bottom:18px;
}
.product-image-row .product-image-field{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  width:100%!important;
}
.product-image-row input[type="file"]{
  width:100%!important;
}
.product-price-grid{
  margin-bottom:18px;
}
