/* MEYA Bayi Portalı — Easyerp (dokuman/1–3.PNG) */
:root{
  --emerald-50:#ecfdf5;--emerald-100:#d1fae5;--emerald-500:#10b981;--emerald-600:#059669;--emerald-700:#047857;
  --teal-500:#14b8a6;--teal-600:#0d9488;
  --green-btn:#22c55e;--red-btn:#ef4444;--orange-btn:#f97316;--pdf-btn:#e11d48;
  --gray-50:#f9fafb;--gray-100:#f3f4f6;--gray-200:#e5e7eb;--gray-300:#d1d5db;
  --gray-400:#9ca3af;--gray-500:#6b7280;--gray-600:#4b5563;--gray-700:#374151;--gray-800:#1f2937;--gray-900:#111827;
  --top:4rem;--side:14.5rem;--radius:.5rem;--radius-lg:.75rem;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --text-xs:.75rem;--text-sm:.8125rem;--text-base:.9375rem;--text-lg:1.125rem;--text-xl:1.25rem;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden;max-width:100%}
body{margin:0;font-family:var(--font);font-size:var(--text-base);line-height:1.45;color:var(--gray-800);background:var(--gray-100);-webkit-font-smoothing:antialiased;overflow-x:hidden;max-width:100%}
@media(min-width:1100px){body{zoom:.85}}
button,input,select,textarea{font:inherit}button{cursor:pointer}
button:disabled{opacity:.5;cursor:not-allowed}
img{max-width:100%;display:block}
h1{font-size:var(--text-xl);font-weight:700;color:var(--gray-800);margin:0;letter-spacing:-.02em}
h2{font-size:var(--text-lg);font-weight:700;margin:0 0 .75rem}
h3{font-size:var(--text-sm);font-weight:600;margin:.35rem 0}
.muted,.empty{color:var(--gray-500);font-size:var(--text-sm)}
.txt{background:none;border:0;color:var(--emerald-600);padding:.25rem;font-size:var(--text-sm);font-weight:500}
.txt:hover{text-decoration:underline}.txt.danger,.linkbtn.danger{color:#dc2626}
.linkbtn,button.textbtn{background:none;border:0;color:var(--emerald-600);padding:.25rem;font-size:var(--text-sm)}
.iconbtn{width:2.25rem;height:2.25rem;border:0;border-radius:var(--radius);background:var(--gray-100);color:var(--gray-700);display:grid;place-items:center;padding:0}
.iconbtn:hover{background:var(--gray-200)}
.only-m{display:none}

/* —— Butonlar —— */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
  border:0;border-radius:var(--radius);padding:.45rem .85rem;font-size:var(--text-sm);font-weight:600;color:#fff;white-space:nowrap;
}
.btn-excel{background:var(--green-btn)}.btn-excel:hover{background:#16a34a}
.btn-pdf{background:var(--pdf-btn)}.btn-pdf:hover{background:#be123c}
.btn-print{background:var(--orange-btn)}.btn-print:hover{background:#ea580c}
.btn-new,.btn-green,.btn-ara{background:var(--emerald-600)}.btn-new:hover,.btn-green:hover,.btn-ara:hover{background:var(--emerald-700)}
.btn-temizle{background:var(--red-btn)}.btn-temizle:hover{background:#dc2626}
.btn-ico{background:#fff;color:var(--gray-600);border:1px solid var(--gray-300);padding:.4rem;min-width:2.15rem}
.btn-ico.green{color:var(--emerald-600);border-color:#a7f3d0;background:var(--emerald-50)}
.btn-ico:hover{background:var(--gray-50)}
.btn-sm{background:#fff;color:var(--gray-700);border:1px solid var(--gray-300);padding:.3rem .55rem;font-size:var(--text-xs);font-weight:500}
.btn-sm:hover{background:var(--gray-50)}
.btn.wide,.wide{width:100%}
button.sub,.btn-secondary{
  background:#fff;color:var(--gray-700);border:1px solid var(--gray-300);border-radius:var(--radius);
  padding:.45rem .85rem;font-size:var(--text-sm);font-weight:500;
}
button.sub:hover{background:var(--gray-50)}
button:not(.btn):not(.sub):not(.txt):not(.linkbtn):not(.iconbtn):not(.textbtn):not(.closebtn):not(.eye):not(.tab):not(.variantbutton):not(.productrow):not(.menutoggle):not(.userchip):not([class*="product"]){
  background:var(--emerald-600);color:#fff;border:0;border-radius:var(--radius);padding:.5rem 1rem;font-size:var(--text-sm);font-weight:600;
}
button:not(.btn):not(.sub):not(.txt):not(.linkbtn):not(.iconbtn):not(.textbtn):not(.closebtn):not(.eye):not(.tab):not(.variantbutton):not(.productrow):not(.userchip):hover{
  background:var(--emerald-700);
}

/* —— Alanlar —— */
.field{display:block;margin-bottom:.85rem}
.field>span{display:block;font-size:var(--text-sm);font-weight:500;color:var(--gray-700);margin-bottom:.35rem}
.field input,.field select,.field textarea,.variantbutton{
  width:100%;min-height:2.5rem;padding:.55rem .75rem;font-size:var(--text-sm);
  border:1px solid var(--gray-300);border-radius:var(--radius);background:#fff;color:var(--gray-800);outline:none;
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--emerald-500);box-shadow:0 0 0 2px rgba(16,185,129,.25)}
.fieldgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 .85rem}
.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;max-width:52rem;margin:.75rem 0 0}
.fl{display:block;margin-bottom:1rem}
.fl>span{display:block;font-size:var(--text-sm);font-weight:500;color:var(--gray-700);margin-bottom:.35rem}
.fl input{width:100%;min-height:2.75rem;padding:.65rem .85rem;border:1px solid var(--gray-300);border-radius:var(--radius);outline:none}
.fl input:focus{border-color:var(--emerald-500);box-shadow:0 0 0 2px rgba(16,185,129,.25)}

/* —— Login —— */
.login-page{min-height:100dvh;background:var(--gray-100);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.25rem 1rem 3.5rem;box-sizing:border-box;touch-action:manipulation}
.login-card{width:100%;max-width:24rem;background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius-lg);box-shadow:0 8px 24px -8px rgb(0 0 0/.1);padding:1.5rem 1.35rem 1.25rem;margin:auto 0}
/* iOS: <16px input odak zoom yapar — login alanları sabit 16px */
.login-card .fl input,
.login-card .field input,
.login-card input[type="text"],
.login-card input[type="email"],
.login-card input[type="password"],
.login-card input:not([type="checkbox"]){font-size:16px!important}
.login-brand{text-align:center;margin-bottom:1.15rem}
.login-brand img{height:3.5rem;width:auto;max-width:min(14rem,80vw);margin:0 auto;display:block;object-fit:contain}
.login-brand h1{margin:.55rem 0 0;font-size:1.25rem;font-weight:800;color:var(--gray-800);letter-spacing:-.02em}
.login-brand p{margin:.15rem 0 0;font-size:var(--text-sm);color:var(--gray-500)}
.login-links{display:flex;justify-content:flex-end;margin:-.25rem 0 .75rem}
.login-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:-.15rem 0 .85rem}
.login-row .remember{margin:0;font-size:var(--text-sm);color:var(--gray-700)}
.pass-field .pass-wrap{position:relative;display:block}
.pass-field .pass-wrap input{width:100%;padding-right:2.75rem}
.pass-field .eye{position:absolute;right:.65rem;top:50%;transform:translateY(-50%);border:0;background:transparent;color:var(--gray-500);padding:.25rem;line-height:0}
.pass-field .eye:hover{color:var(--emerald-700)}
.alert-dialog .alert-text{margin:0;font-size:var(--text-sm);line-height:1.45;color:var(--gray-700)}
.btn-bayiol{margin-top:.65rem;background:#fff!important;color:var(--emerald-700)!important;border:1.5px solid var(--emerald-500)!important}
.btn-bayiol:hover{background:var(--emerald-50)!important}
.btn-wa{margin-top:.65rem;background:#25d366!important;color:#fff!important;border:1px solid #1ebe57!important;text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center;gap:.45rem}
.btn-wa:hover{background:#1ebe57!important;color:#fff!important}
.wa-icon{display:inline-block;flex-shrink:0;vertical-align:-.15em}
.wa-inline{margin-right:.3rem;color:#25d366;vertical-align:-.2em}
.btn-ghost{background:#fff!important;color:var(--gray-700)!important;border:1px solid var(--gray-300)!important}
.btn-ghost:hover{background:var(--gray-50)!important}
.wa-fab{
  position:fixed;right:1rem;bottom:3.4rem;z-index:35;
  width:3.15rem;height:3.15rem;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#25d366;color:#fff;box-shadow:0 8px 20px -6px rgb(37 211 102/.55);
  text-decoration:none
}
.wa-fab:hover{background:#1ebe57;color:#fff}
.wa-fab-login{bottom:3.6rem;z-index:20}
@media(max-width:760px){
  .wa-fab{right:.85rem;width:2.85rem;height:2.85rem}
  .wa-fab-login{bottom:3.4rem}
}
.bayi-quick button.wa-quick{border-color:#86efac!important;color:#166534!important;background:#f0fdf4!important}
.bayi-quick button.wa-quick:hover{border-color:#25d366!important;color:#14532d!important;background:#dcfce7!important}
.productdialog.apply-dialog{width:min(44rem,calc(100% - 1rem));max-height:92dvh;padding:1.1rem 1.2rem 1.15rem;overflow:auto}
.apply-form .muted{margin:0 0 .85rem;line-height:1.45}
.apply-form .fieldgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 .9rem}
.apply-form .fieldgrid+.field{grid-column:1/-1}
.apply-consents{display:grid;gap:.45rem;margin:.85rem 0 .15rem}
.apply-kvkk{align-items:flex-start;gap:.5rem;margin:0;padding:.55rem .7rem;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius);line-height:1.4;color:var(--gray-700);font-size:var(--text-sm)}
.apply-kvkk input{margin-top:.15rem;flex-shrink:0}
.apply-kvkk .notice-link{padding:0;font-weight:600;text-decoration:underline;font-size:inherit}
.apply-actions-row{margin-top:.75rem}
.notice-dialog{width:min(26rem,calc(100% - 1rem));padding:1rem 1rem 1.05rem;overflow:visible;max-height:none}
.notice-body{overflow:visible;max-height:none;font-size:var(--text-sm);line-height:1.45;color:var(--gray-700)}
.notice-body p{margin:0 0 .65rem}
.notice-body p:last-child{margin-bottom:0}
.notice-sec{margin:0 0 .55rem;padding-bottom:.5rem;border-bottom:1px solid var(--gray-200)}
.notice-sec:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.notice-sec h3{margin:0 0 .2rem;font-size:var(--text-sm);font-weight:700;color:var(--gray-800)}
.notice-sec p{margin:0}
.notice-actions{margin-top:.85rem}
.confirm-dialog{width:min(28rem,calc(100% - 1rem));padding:0;overflow:hidden;border-radius:var(--radius-lg,1rem)}
.confirm-banner{height:.28rem;background:var(--emerald-600)}
.confirm-danger .confirm-banner{background:#b91c1c}
.confirm-warn .confirm-banner{background:#c2410c}
.confirm-info .confirm-banner{background:var(--emerald-600)}
.confirm-head{align-items:flex-start;padding:.95rem 1rem .15rem;gap:.65rem}
.confirm-title{display:flex;align-items:flex-start;gap:.65rem;min-width:0}
.confirm-title h2{font-size:var(--text-lg);line-height:1.25}
.confirm-ico{flex-shrink:0;width:1.7rem;height:1.7rem;border-radius:999px;display:inline-grid;place-items:center;font-weight:800;font-size:.95rem;line-height:1;margin-top:.05rem}
.confirm-ico.t-danger{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
.confirm-ico.t-warn{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}
.confirm-ico.t-info{background:#ecfdf5;color:var(--emerald-700);border:1px solid #a7f3d0}
.confirm-meta{display:grid;gap:.35rem;margin:.55rem 1rem 0;padding:.7rem .8rem;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius)}
.confirm-meta>div{display:grid;grid-template-columns:7.2rem 1fr;gap:.5rem;align-items:baseline}
.confirm-meta dt{margin:0;font-size:var(--text-xs);color:var(--gray-500);font-weight:600}
.confirm-meta dd{margin:0;font-size:var(--text-sm);color:var(--gray-800);font-weight:600;word-break:break-word}
.confirm-body{padding:.75rem 1rem 0}
.confirm-actions{padding:0 1rem 1rem;margin-top:.9rem}
.confirm-actions .btn-danger-solid,.confirm-dialog .btn-danger-solid{background:#b91c1c!important;border-color:#b91c1c!important;color:#fff!important}
.confirm-actions .btn-danger-solid:hover,.confirm-dialog .btn-danger-solid:hover{background:#991b1b!important;border-color:#991b1b!important}
.confirm-actions .btn-warn-solid,.confirm-dialog .btn-warn-solid{background:#c2410c!important;border-color:#c2410c!important;color:#fff!important}
.confirm-actions .btn-warn-solid:hover,.confirm-dialog .btn-warn-solid:hover{background:#9a3412!important;border-color:#9a3412!important}
.productdialog.party-docs-dialog{width:min(48rem,calc(100% - 1rem))}
.party-docs .muted{margin:0 0 .75rem}
.party-docs-tabs{margin:0 0 .75rem}
.party-docs-table{max-height:min(55dvh,28rem);overflow:auto}
.login-contact{list-style:none;margin:1rem 0 0;padding:.85rem 0 0;border-top:1px solid var(--gray-200);display:grid;gap:.4rem}
.login-contact li{display:flex;align-items:flex-start;gap:.4rem;font-size:var(--text-xs);line-height:1.35;color:var(--gray-600)}
.login-contact a{color:var(--emerald-700);text-decoration:none}
.login-contact a:hover{text-decoration:underline}
.login-web{font-weight:600}
.login-foot{position:fixed;left:0;right:0;bottom:0;padding:.45rem 1rem;background:#fff;border-top:1px solid var(--gray-200);font-size:var(--text-xs);color:var(--gray-500);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:5}
.okbox{background:var(--emerald-50);border:1px solid #a7f3d0;color:#065f46;padding:.65rem .85rem;border-radius:var(--radius);font-size:var(--text-sm);margin-bottom:1rem}
@media(max-width:420px){
  .login-page{padding:.85rem .75rem 3.5rem}
  .login-card{padding:1.15rem 1rem 1rem;border-radius:var(--radius)}
  .apply-form .field{margin-bottom:.7rem}
  .apply-form .fieldgrid{grid-template-columns:1fr}
  .apply-form input,.apply-form .variantbutton,.apply-form textarea,.productdialog.apply-dialog input,.productdialog.apply-dialog .variantbutton{font-size:16px}
  .productdialog.apply-dialog,.notice-dialog{width:calc(100% - .75rem)}
}
@media(min-width:560px) and (max-width:760px){
  .productdialog.apply-dialog{width:min(40rem,calc(100% - .85rem))}
  .apply-form .fieldgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* —— Kabuk (dokuman) —— */
.shell{min-height:100dvh;display:flex;flex-direction:column}
.shell.app{padding-top:var(--top);background:var(--gray-100);overflow-x:hidden;max-width:100%}
.topbar{
  position:fixed;inset:0 0 auto;height:var(--top);z-index:50;
  display:flex;align-items:center;gap:.75rem;padding:0 1rem;
  background:#fff;border-bottom:1px solid var(--gray-200);box-shadow:0 1px 2px rgb(0 0 0/.04);
}
.logo{display:flex;align-items:center;text-decoration:none;line-height:0;flex:0 0 auto}
.logo img{height:3.35rem;width:auto;max-width:min(13.5rem,46vw);object-fit:contain}
@media(min-width:961px){.logo img{height:3.6rem;max-width:15rem}}
.userbox{margin-left:auto;display:flex;align-items:center;gap:.65rem;min-width:0}
.userchip{display:flex;align-items:center;gap:.55rem;min-width:0;max-width:16rem;padding:.2rem .35rem .2rem .2rem;border:0!important;background:transparent!important;border-radius:999px;cursor:pointer;color:var(--gray-800)!important;font:inherit;text-align:left;font-weight:500!important}
.userchip:hover{background:var(--gray-100)!important}
.userchip.static{cursor:default}
.userchip.static:hover{background:transparent!important}
.avatar{
  width:2.15rem;height:2.15rem;border-radius:999px;background:var(--gray-200)!important;color:var(--gray-700)!important;
  display:grid;place-items:center;font-weight:700;font-size:var(--text-sm);
}
.userinfo{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.userinfo b{font-size:var(--text-sm);color:var(--gray-800)!important;font-weight:600}
.userinfo small{font-size:10px;color:var(--gray-500)!important;text-transform:uppercase;letter-spacing:.03em}
.chev{color:var(--gray-400)}
.logout{display:inline-flex;align-items:center;gap:.3rem;color:var(--gray-500)!important;font-size:var(--text-xs)!important}
.logout:hover{color:#dc2626!important}

.order-notice-bar{
  position:sticky;top:0;z-index:28;margin:0 0 .75rem;
  background:#fff7ed;border:1px solid #fdba74;border-radius:var(--radius-lg);
  padding:.55rem .7rem;display:grid;gap:.4rem;box-shadow:0 1px 2px rgb(154 52 18 /.06);
}
.order-notice-list{display:grid;gap:.35rem}
.order-notice-item{display:flex;align-items:center;gap:.5rem;min-width:0}
.order-notice-main{
  flex:1;min-width:0;display:flex;align-items:flex-start;gap:.55rem;text-align:left;
  border:0!important;background:transparent!important;padding:.15rem 0;cursor:pointer;color:#9a3412!important;font:inherit;
}
.order-notice-main:hover{opacity:.9}
.order-notice-text{display:flex;flex-direction:column;gap:.1rem;min-width:0;line-height:1.25}
.order-notice-text b{font-size:var(--text-sm);font-weight:700}
.order-notice-text small{font-size:var(--text-xs);color:#c2410c;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-notice-all{justify-self:end;font-size:var(--text-xs)!important;color:#9a3412!important}

.dim{display:none;position:fixed;inset:var(--top) 0 0;background:rgba(0,0,0,.4);z-index:35}
.dim.on{display:block}
.sidebar{
  position:fixed;top:var(--top);left:0;bottom:0;width:var(--side);z-index:40;
  background:#f8fafc;border-right:1px solid var(--gray-200);
  display:flex;flex-direction:column;overflow:auto;
}
.side-top{display:none;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--gray-200)}
.sidebar nav{padding:.5rem .55rem;display:grid;gap:2px;align-content:start}
.sidebar nav button{
  display:flex;align-items:center;gap:.7rem;width:100%;text-align:left;
  padding:.7rem .9rem;border:0!important;border-radius:var(--radius);background:transparent!important;
  color:var(--gray-600)!important;font-size:1.05rem;font-weight:600;position:relative;
}
.sidebar nav button span{font-size:1.05rem;line-height:1.25}
.sidebar nav button:hover{background:var(--gray-100)!important;color:var(--gray-800)!important}
.sidebar nav button.on{
  background:var(--emerald-50)!important;color:var(--emerald-700)!important;font-weight:600;
}
.sidebar nav button.on::before{
  content:"";position:absolute;left:0;top:20%;bottom:20%;width:3px;border-radius:0 3px 3px 0;background:var(--emerald-600);
}

.main{margin-left:var(--side);min-height:calc(100dvh - var(--top) - 2.25rem);padding:.85rem 1rem 1.5rem;min-width:0;max-width:100%;overflow-x:hidden}
.foot{
  margin-left:var(--side);padding:.45rem 1rem;font-size:var(--text-xs);color:var(--gray-500);
  background:#fff;border-top:1px solid var(--gray-200);text-align:center;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.foot-web{color:inherit;text-decoration:none;font-weight:600}
.foot-web:hover{color:var(--emerald-700);text-decoration:underline}
.login-foot .foot-web{color:var(--gray-600)}
.dealer-acts{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}
.dealer-status-acts{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 .75rem}
.btn-pasif{background:#fef2f2!important;color:#b91c1c!important;border:1px solid #fecaca!important}
.btn-pasif:hover{background:#fee2e2!important}
/* Toast: popover top-layer → modal dialog arkasına düşmez */
.toast{
  position:fixed;inset:auto;margin:0;border:0;max-width:min(28rem,calc(100vw - 1.5rem));
  top:calc(var(--top,3.5rem) + .5rem);left:50%;transform:translateX(-50%);
  z-index:2147483000;display:flex;align-items:center;gap:1rem;padding:.65rem 1rem;
  background:#d1fae5;color:#065f46;font-size:var(--text-sm);font-weight:500;
  border-radius:var(--radius);box-shadow:0 8px 20px rgb(0 0 0/.18);
}
.toast.bad{background:#fef3c7;color:#92400e}
.toast .txt{color:inherit;font-weight:600;flex-shrink:0}
.working{cursor:progress}

/* —— Sayfa kabuğu (Sipariş / Stok / Ayarlar) —— */
.page{max-width:100%}
.page-card{background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius-lg);box-shadow:0 1px 3px rgb(0 0 0/.04);overflow:hidden}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.1rem .65rem;flex-wrap:wrap}
.page-title{display:flex;align-items:center;gap:.75rem}
.page-title p{margin:.15rem 0 0;font-size:var(--text-xs);color:var(--gray-500)}
.page-ico{
  width:2.5rem;height:2.5rem;border-radius:var(--radius);background:var(--emerald-50);color:var(--emerald-600);
  display:grid;place-items:center;flex-shrink:0;
}
.page-actions{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}

.sum-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;padding:0 1.1rem .85rem}
.sum-row.sum-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.sum-card{
  background:#fff!important;border:1px solid var(--gray-200)!important;border-radius:var(--radius-lg);padding:.75rem 1rem;
  display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;border-top:3px solid var(--gray-300)!important;
  color:inherit!important;text-align:left;cursor:pointer;transition:box-shadow .15s,border-color .15s;
}
.sum-card:hover{box-shadow:0 4px 12px rgb(0 0 0/.06)}
.sum-card.on{box-shadow:0 0 0 2px rgba(16,185,129,.35);background:var(--emerald-50)!important}
.sum-card span{font-size:var(--text-xs);color:var(--gray-500);font-weight:500}
.sum-card b{font-size:var(--text-lg);color:var(--gray-800);font-variant-numeric:tabular-nums}
.sum-card.c-green{border-top-color:var(--green-btn)!important}.sum-card.c-green b{color:#15803d}
.sum-card.c-orange{border-top-color:var(--orange-btn)!important}.sum-card.c-orange b{color:#c2410c}
.sum-card.c-teal{border-top-color:var(--teal-500)!important}.sum-card.c-teal b{color:var(--teal-600)}
.sum-card.c-red{border-top-color:#ef4444!important}.sum-card.c-red b{color:#b91c1c}
.sum-card.c-blue{border-top-color:#3b82f6!important}.sum-card.c-blue b{color:#1d4ed8}
.filter-chips{display:flex;gap:.35rem;padding:0 1.1rem .5rem;flex-wrap:wrap}
.filter-chips .chip{background:var(--gray-100);border:0;border-radius:999px;padding:.35rem .75rem;font-size:var(--text-xs);font-weight:600;color:var(--gray-600)}
.filter-chips .chip.on{background:var(--emerald-50);color:var(--emerald-700)}
.filter-chips .chip em{font-style:normal;margin-left:.25rem;background:#fff;padding:.05rem .35rem;border-radius:999px}
.hint-line{margin:0 1.1rem .65rem;font-size:var(--text-xs);color:#c2410c}

.tabs-row{display:flex;gap:.15rem;padding:0 1.1rem;border-bottom:1px solid var(--gray-200);align-items:center;flex-wrap:wrap}
.search-dates{display:flex;align-items:center;gap:.35rem}
.search-dates input{width:7.25rem;min-height:2.35rem;border:1px solid var(--gray-300);border-radius:var(--radius);padding:0 .5rem;background:#fff;font-size:var(--text-sm);color:var(--gray-800)}
.search-dates-sep{color:var(--gray-400);font-weight:600}
.tab{
  background:none!important;border:0!important;border-radius:0!important;color:var(--gray-500)!important;
  padding:.55rem .9rem;font-size:var(--text-sm);font-weight:500;position:relative;
}
.tab.on{color:var(--emerald-700)!important;font-weight:600}
.tab.on::after{content:"";position:absolute;left:.5rem;right:.5rem;bottom:-1px;height:2px;background:var(--emerald-500);border-radius:2px 2px 0 0}

.search-row{display:flex;align-items:center;gap:.45rem;padding:.85rem 1.1rem;flex-wrap:wrap}
.search-acts{display:flex;align-items:center;gap:.35rem;flex:0 0 auto}
.search-acts .btn{min-width:4.5rem}
.search-box{
  flex:1;min-width:12rem;display:flex;align-items:center;gap:.5rem;padding:0 .75rem;
  border:1px solid var(--gray-300);border-radius:var(--radius);background:#fff;color:var(--gray-400);
}
.search-box input{flex:1;border:0;outline:none;min-height:2.35rem;background:transparent;color:var(--gray-800);font-size:var(--text-sm)}
.status-sel{min-height:2.35rem;border:1px solid var(--gray-300);border-radius:var(--radius);padding:0 .55rem;background:#fff;font-size:var(--text-sm);color:var(--gray-700)}

.table-wrap{overflow:auto;max-height:calc(100dvh - 22rem);border-top:1px solid var(--gray-200)}
.erp-table{width:100%;border-collapse:collapse;font-size:var(--text-sm);background:#fff}
/* Mobil: sipariş/teklif listesi + rapor tabloları kart */
@media(max-width:760px){
  .table-wrap.card-mobile,.rep-table{overflow:visible;max-height:none;border-top:0;padding:.55rem .55rem .75rem;background:var(--gray-100)}
  .erp-table.cardable thead{display:none}
  .erp-table.cardable,.erp-table.cardable tbody{display:block;width:100%}
  .erp-table.cardable tbody tr{
    display:block;background:#fff!important;border:1px solid var(--gray-200);border-radius:var(--radius-lg);
    box-shadow:0 1px 2px rgb(15 23 42/.05);margin:0 0 .55rem;padding:.65rem .75rem .55rem;cursor:default;
  }
  .erp-table.cardable tbody tr.expand{
    padding:0;border:0;box-shadow:none;background:transparent!important;margin:-.35rem 0 .65rem;
  }
  .erp-table.cardable tbody tr.expand td{display:block;padding:0;border:0}
  .erp-table.cardable td{
    display:flex;justify-content:space-between;align-items:flex-start;gap:.55rem;
    padding:.28rem 0;border:0;border-bottom:1px dashed var(--gray-100);white-space:normal;text-align:right;
  }
  .erp-table.cardable td:last-child{border-bottom:0}
  .erp-table.cardable td::before{
    content:attr(data-label);flex:0 0 auto;max-width:38%;text-align:left;font-weight:600;font-size:var(--text-xs);
    color:var(--gray-500);white-space:normal;line-height:1.3;
  }
  .erp-table.cardable td:not(.acts-cell):not([data-label="İşlem"])>*{
    flex:1 1 auto;min-width:0;max-width:62%;text-align:right;
    overflow-wrap:anywhere;word-break:break-word;white-space:normal;line-height:1.35;
  }
  .erp-table.cardable td>.pill{max-width:100%;display:inline-block}
  .erp-table.cardable td[data-label=""]{display:block;text-align:left;padding:.15rem 0}
  .erp-table.cardable td[data-label=""]::before{display:none}
  .erp-table.cardable td.num,.erp-table.cardable td.clip{max-width:none;overflow:visible;text-overflow:unset}
  .erp-table.cardable .clip{white-space:normal}
  .erp-table.cardable .hide-m{display:none!important}
  .erp-table.cardable td.acts-cell,
  .erp-table.cardable td[data-label="İşlem"]{
    display:block;padding:.55rem 0 .15rem;border-bottom:0;text-align:left;
  }
  .erp-table.cardable td.acts-cell::before,
  .erp-table.cardable td[data-label="İşlem"]::before{display:none}
  .erp-table.cardable .row-actions{
    display:flex;flex-direction:column;align-items:stretch;gap:.35rem;width:100%;margin:0;
  }
  .erp-table.cardable .row-act-open{
    width:100%;min-height:2.4rem;font-size:var(--text-sm);border-radius:var(--radius);
  }
  .erp-table.cardable .row-act-grid{
    display:grid;grid-template-columns:1fr 1fr;gap:.3rem;width:100%;
  }
  .erp-table.cardable .row-act-grid:empty{display:none}
  .erp-table.cardable .row-act-grid .btn{
    width:100%;min-width:0;justify-content:center;padding:.4rem .35rem;font-size:var(--text-xs);
  }
  .erp-table.cardable .row-status{width:100%;min-width:0;min-height:2.25rem}
  .erp-table.cardable .row-act-export{display:none!important}
}
.erp-table thead{position:sticky;top:0;z-index:2}
.erp-table th{
  background:var(--emerald-600);color:#fff;font-weight:600;font-size:var(--text-xs);
  padding:.55rem .65rem;text-align:left;white-space:nowrap;border-right:1px solid rgba(255,255,255,.18);
}
.erp-table th:last-child{border-right:0}
.erp-table th.num,.erp-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.erp-table td{padding:.45rem .65rem;border-bottom:1px solid var(--gray-200);vertical-align:middle;white-space:nowrap}
.erp-table tbody tr{cursor:pointer;transition:background .12s}
.erp-table tbody tr.alt{background:rgba(249,250,251,.7)}
.erp-table tbody tr:hover{background:var(--emerald-50)}
.erp-table .linkish{color:var(--emerald-700);font-weight:600}
.erp-table .kdv{color:#ea580c;font-weight:500}
.erp-table .clip{max-width:10rem;overflow:hidden;text-overflow:ellipsis}
.erp-table .expand,.erp-table .expand:hover{background:#fff;cursor:default}
.erp-table .expand td{padding:0;white-space:normal}
.pill{
  display:inline-block;font-size:10px;font-weight:600;padding:.2rem .5rem;border-radius:999px;
  border:1px solid var(--emerald-500);color:var(--emerald-700);background:var(--emerald-50);white-space:nowrap;
}
.pill.s-Onaylandı{border-color:#3b82f6;color:#1d4ed8;background:#eff6ff}
.pill.s-Alındı,.pill.s-Onaybekliyor{border-color:#f59e0b;color:#b45309;background:#fffbeb}
.pill.s-İptal{border-color:#ef4444;color:#b91c1c;background:#fef2f2}
.pill.s-Sevkedildi,.pill.s-Muhasebelendi{border-color:var(--emerald-500);color:var(--emerald-700);background:var(--emerald-50)}
.table-foot{
  display:flex;justify-content:space-between;align-items:center;gap:1rem;
  padding:.55rem 1rem;background:var(--emerald-50);border-top:1px solid #a7f3d0;
  font-size:var(--text-sm);color:var(--emerald-800);
}
.table-foot b{color:var(--emerald-700);font-variant-numeric:tabular-nums}
.detail-box{padding:1rem;background:var(--gray-50);border-top:1px solid var(--gray-200)}
.orderline{padding:.65rem 0;border-bottom:1px solid var(--gray-200)}
.orderline h3{font-size:var(--text-sm);display:flex;justify-content:space-between;gap:1rem}
.orderline h3 small{font-weight:700;color:var(--emerald-700)}
.row-actions{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.75rem;align-items:center}
td .row-actions{margin-top:0}
.row-act-grid{display:contents}
.row-act-export{display:contents}
.row-status{min-height:2rem;min-width:7rem;font-size:var(--text-xs);padding:0 .35rem}
.facts>div{display:flex;justify-content:space-between;gap:.75rem;padding:.35rem 0;border-bottom:1px solid var(--gray-200);font-size:var(--text-sm)}
.facts span{color:var(--gray-500)}.facts b{text-align:right;font-weight:600}
.warn{color:#92400e;background:#fffbeb;border:1px solid #fde68a;padding:.5rem .75rem;border-radius:var(--radius);font-size:var(--text-sm)}

/* Eski panel / kart uyumu */
.panel,.card,.table-card,.mailpanel,.datebar{
  background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius-lg);box-shadow:0 1px 2px rgb(0 0 0/.04);
  min-width:0;max-width:100%;
}
.panel,.card,.datebar,.mailpanel{padding:.85rem 1rem;margin-bottom:.75rem}
.table-card{padding:0;overflow:hidden;margin-top:.75rem}
.sectionhead,.actions,.dashbar,.dashrow{display:flex;align-items:center;gap:.75rem}
.sectionhead{justify-content:space-between;flex-wrap:wrap;gap:.75rem;margin-bottom:.35rem}
.actions.wrap{flex-wrap:wrap}.actions{gap:.5rem}
.tablewrap{overflow:auto}
.data-table{width:100%;border-collapse:collapse;font-size:var(--text-sm)}
.data-table th{background:var(--emerald-600);color:#fff;font-weight:600;padding:.55rem .65rem;text-align:left;white-space:nowrap}
.data-table th.num,.data-table td.num{text-align:right}
.data-table td{padding:.45rem .65rem;border-bottom:1px solid var(--gray-200)}
.data-table tbody tr.alt{background:rgba(249,250,251,.7)}
.data-table tbody tr:hover,.data-table tbody tr.sel{background:var(--emerald-50)}
.data-table .detail-row td{padding:0}
.badge{display:inline-block;font-size:var(--text-xs);font-weight:600;padding:.2rem .55rem;border-radius:.25rem;background:var(--emerald-50);color:var(--emerald-700)}
.detail{padding:1rem;background:var(--gray-50);border-top:1px solid var(--gray-200)}

/* Cari */
.carigrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.75rem;margin-top:.75rem}
.caricard{background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius-lg);padding:1rem;cursor:pointer}
.caricard:hover,.caricard.on{border-color:#a7f3d0;box-shadow:0 4px 12px rgba(16,185,129,.1)}
.caricard header{display:flex;justify-content:space-between;gap:.5rem;font-size:var(--text-sm)}
.caricard header span{color:var(--gray-500);font-size:var(--text-xs)}
.caridetay{margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--gray-200)}
.caribelge{list-style:none;margin:.5rem 0 0;padding:0;display:grid;gap:.35rem}
.caribelge li{display:grid;grid-template-columns:1fr auto;gap:.1rem .75rem;padding:.5rem .65rem;background:var(--gray-50);border-radius:var(--radius);font-size:var(--text-sm)}
.caribelge li span{grid-column:1;color:var(--gray-500);font-size:var(--text-xs)}
.caribelge li strong{grid-row:1/span 2;align-self:center}

/* Dashboard */
.dashboard{padding-top:.15rem}
.dashhead{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem;background:linear-gradient(135deg,var(--emerald-500),var(--teal-600));color:#fff;border-radius:var(--radius-lg);margin-bottom:.75rem}
.dashhead h1{margin:0;color:#fff}.dashhead p{margin:.2rem 0 0;font-size:var(--text-sm);color:rgba(255,255,255,.85)}
.dashmetrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.7rem;margin-bottom:.75rem}
.dashmetrics button{background:#fff!important;color:var(--gray-800)!important;border:1px solid var(--gray-200)!important;border-radius:var(--radius-lg);text-align:left;padding:1rem}
.dashmetrics span{display:block;font-size:var(--text-sm);color:var(--gray-500)}
.dashmetrics strong{font-size:var(--text-xl);color:var(--emerald-600)}
.twocards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.75rem}
.dashbar{padding:.4rem 0;font-size:var(--text-sm)}.dashbar span{width:7rem}.dashbar progress{flex:1;accent-color:var(--emerald-500);height:.55rem}
.dashrow{justify-content:space-between;padding:.5rem 0;border-bottom:1px solid var(--gray-200);font-size:var(--text-sm);gap:.5rem;min-width:0}
.dashrow>span{min-width:0;overflow-wrap:anywhere}
.dashrow strong{flex:0 0 auto;white-space:nowrap}
.dashrow small{display:block;color:var(--gray-500);font-size:var(--text-xs)}
.twocards{min-width:0}

/* Ayarlar (dokuman/3) */
.settingspage .settingtabs{display:flex;gap:.1rem;border-bottom:1px solid var(--gray-200);margin:.25rem 0 1rem;background:#fff;padding:0 .5rem;border-radius:var(--radius-lg) var(--radius-lg) 0 0}
.settingtabs button{background:none!important;color:var(--gray-600)!important;border:0!important;border-radius:0!important;padding:.7rem 1rem;font-size:var(--text-sm);font-weight:500}
.settingtabs button[aria-pressed=true]{color:var(--emerald-700)!important;font-weight:600;border-bottom:2px solid var(--emerald-500)!important;margin-bottom:-1px}
.staff-users .staff-groups{padding:0 0 .85rem;margin:0}
.staff-group-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin:0 0 .75rem}
.staff-group-head h3{display:inline-flex;align-items:center;gap:.4rem;margin:0;font-size:var(--text-base);font-weight:700;color:var(--gray-800)}
.staff-group-hint{margin:0;font-size:var(--text-xs)}
.staff-add{margin:0}
.staff-table{width:100%;border-collapse:collapse;font-size:var(--text-sm);background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius-lg);overflow:hidden}
.staff-table th{background:var(--gray-700);color:#fff;text-align:left;padding:.55rem .75rem;font-size:var(--text-xs)}
.staff-table td{padding:.55rem .75rem;border-bottom:1px solid var(--gray-200);vertical-align:middle}
.staff-table tr:last-child td{border-bottom:0}
.role-badge{display:inline-block;font-size:10px;font-weight:600;padding:.2rem .55rem;border-radius:999px}
.role-badge.admin{background:#fef3c7;color:#92400e}
.role-badge.user{background:#dbeafe;color:#1d4ed8}
.role-badge.bayi{background:#ffedd5;color:#9a3412}
.status-aktif{color:var(--emerald-600);font-weight:600;font-size:var(--text-sm)}
.mail-form{padding:.85rem 1.1rem 1.1rem}
.mail-form .sum-row{
  display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .45rem;padding:0;margin:0 0 .4rem;grid-template-columns:none;
}
.mail-form .sum-card{
  flex:0 0 auto;min-width:0;padding:.1rem .4rem;border-radius:.3rem;border:0!important;border-top:0!important;
  background:var(--gray-100)!important;gap:0;cursor:default;box-shadow:none;
  flex-direction:row;align-items:baseline;gap:.2rem;line-height:1.25;
}
.mail-form .sum-card:hover{box-shadow:none}
.mail-form .sum-card span{font-size:10px;line-height:1.2;color:var(--gray-500)}
.mail-form .sum-card span::after{content:":"}
.mail-form .sum-card b{font-size:10px;font-weight:600;line-height:1.2}
.mail-form .sum-card.c-green{background:#ecfdf5!important}
.mail-form .sum-card.c-orange{background:#fff7ed!important}
.mail-form .sum-card.c-teal{background:#f0fdfa!important}
.mail-form .sum-card.c-blue{background:#eff6ff!important}
.mail-block{margin-top:.85rem;padding-top:.75rem;border-top:1px solid var(--gray-200)}
.mail-block h3{margin:0 0 .55rem;font-size:var(--text-sm);font-weight:700;color:var(--gray-700)}
.check.tight{display:flex;align-items:center;gap:.45rem;margin:.35rem 0 .15rem;font-size:var(--text-sm);color:var(--gray-700)}
.greenaction{background:var(--emerald-600)!important;color:#fff!important;border:0!important;border-radius:var(--radius)!important}
.recover{max-width:28rem;margin:2rem auto;padding:1.5rem}

/* Dialog / form yardımcı */
.productdialog{width:min(36rem,calc(100% - 1.5rem));max-height:88dvh;overflow:auto;margin:auto;padding:1.25rem;border:0;border-radius:1rem;color:var(--gray-800);box-shadow:0 25px 50px -12px rgb(0 0 0/.25)}
.productdialog.product-edit-dialog{width:min(64rem,calc(100% - 1.25rem));max-height:94dvh;padding:1.35rem 1.5rem 1.4rem}
.productdialog .stock-formula{margin:.15rem 0 .75rem;line-height:1.4}
.productdialog::backdrop{background:rgba(0,0,0,.55)}
.productdialog.erp-dialog{width:min(56rem,calc(100% - 1.25rem));max-height:92dvh;padding:0;overflow:hidden;display:flex;flex-direction:column}
.erp-dialog-head{margin:0;padding:.9rem 1.15rem;background:var(--emerald-600);color:#fff}
.erp-dialog-head h2{color:#fff;font-size:var(--text-xl)}
.erp-dialog-body{padding:1.15rem 1.25rem 1.25rem;overflow:auto;flex:1;min-height:0}
.erp-form .fieldgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1rem}
.erp-form-foot{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.1rem;padding-top:.85rem;border-top:1px solid var(--gray-200)}
.dialoghead{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}
.dialoghead h2,.productdialog h2{font-size:var(--text-lg);font-weight:700;margin:0}
.closebtn{border:0;background:var(--gray-100);color:var(--gray-800);width:2.25rem;height:2.25rem;border-radius:var(--radius);font-size:1.25rem;padding:0}
.dialogactions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1rem}
@media(max-width:760px){.erp-form .fieldgrid{grid-template-columns:1fr}.productdialog.erp-dialog,.productdialog.product-edit-dialog{width:calc(100% - .75rem);max-height:96dvh}}
.productresults{max-height:50vh;overflow:auto;margin-top:.5rem}
.productrow{width:100%;border:0;border-bottom:1px solid var(--gray-200);border-radius:0;text-align:left;background:#fff!important;color:var(--gray-800)!important;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem .5rem;font-size:var(--text-sm)}
.productrow:hover{background:var(--emerald-50)!important}
.productrow small{display:block;color:var(--gray-500);font-size:var(--text-xs)}
.productrow-main{display:flex;align-items:center;gap:.75rem;min-width:0}
.product-thumb{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--gray-200);border-radius:.35rem;overflow:hidden;background:var(--gray-100);cursor:zoom-in;line-height:0}
.product-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.product-thumb-empty{width:72px;height:72px;border:1px dashed var(--gray-300);border-radius:.35rem;background:var(--gray-50)}
.product-image-edit{margin:0 0 1rem}
.product-image-edit .field-label{display:block;font-size:var(--text-xs);font-weight:600;color:var(--gray-600);margin-bottom:.35rem}
.product-image-row{display:flex;align-items:center;gap:.85rem}
.product-image-acts{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem}
.product-image-acts .muted{width:100%;margin:0;font-size:var(--text-xs)}
.thumb-cell{width:2.75rem;vertical-align:middle}
.itemname-row{display:flex;align-items:center;gap:.75rem;margin:.25rem 0 .5rem}
.itemname-row .itemname{margin:0}
.image-lightbox{border:0;padding:0;max-width:min(96vw,1100px);max-height:96dvh;background:transparent}
.image-lightbox::backdrop{background:rgb(15 23 42 / .78)}
.image-lightbox img{display:block;max-width:96vw;max-height:90dvh;margin:auto;border-radius:.5rem;box-shadow:0 20px 50px rgb(0 0 0 / .45)}
.image-lightbox .closebtn{position:fixed;top:1rem;right:1rem;z-index:2;background:#fff}
.variantbutton{text-align:left;background:#fff}
.variantbutton::after{content:"⌄";float:right;color:var(--emerald-600)}
.record{background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius-lg);margin:.5rem 0}
.record summary{padding:.75rem 1rem;cursor:pointer;display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;font-size:var(--text-sm)}
.record summary:before{content:"+";color:var(--emerald-600);font-weight:700}
.record[open] summary:before{content:"−"}
.record em{margin-left:auto;font-style:normal;font-size:var(--text-xs);font-weight:600;padding:.2rem .55rem;border-radius:.25rem;background:var(--emerald-50);color:var(--emerald-700)}
.record .detail{padding:0 1rem 1rem}
.check{display:flex;align-items:center;gap:.5rem;font-size:var(--text-sm);margin:.4rem 0}
.amounts{margin:0;font-size:var(--text-sm)}.amounts div{display:flex;justify-content:space-between;padding:.35rem 0}
.amounts div:last-child{border-top:1px solid var(--gray-200);font-weight:700;color:var(--emerald-700)}

/* Sipariş / teklif formu (dokuman/1) */
.orderform{max-width:none;margin:0}
.compose-page{border:1px solid #e2e8f0;box-shadow:0 8px 28px rgb(15 23 42/.06)}
.compose-head{align-items:center;padding:1rem 1.15rem .85rem;border-bottom:1px solid #e2e8f0;background:linear-gradient(180deg,#fff,#f8fafc)}
.compose-actions{gap:.4rem;flex-wrap:nowrap;justify-content:flex-end;align-items:center}
.compose-kapat{flex:0 0 auto!important;width:auto!important;min-width:0!important;padding:.4rem .7rem!important}
.compose-bar{display:none!important}
.bayi-profile .profile-tabs{margin:0 1rem .25rem}
.bayi-profile .profile-panel{padding:1rem 1.1rem 1.25rem}
.bayi-profile .profile-panel h3{margin:0 0 .75rem;font-size:var(--text-base)}
.bayi-profile .profile-facts{display:grid;grid-template-columns:1fr;gap:0;margin:0 0 .85rem;font-size:var(--text-sm)}
.bayi-profile .profile-facts div{display:grid;grid-template-columns:minmax(6.5rem,38%) 1fr;gap:.5rem .75rem;padding:.55rem 0;border-bottom:1px solid var(--gray-200);align-items:start}
.bayi-profile .profile-facts dt{color:var(--gray-500)}.bayi-profile .profile-facts dd{margin:0;font-weight:600;text-align:left;color:var(--gray-800);word-break:break-word}
.bayi-profile .profile-pwd{grid-template-columns:1fr}
.bayi-profile .profile-actions{display:flex;justify-content:stretch;gap:.45rem;margin-top:1rem;flex-wrap:wrap}
.bayi-profile .profile-actions .btn{flex:1 1 8rem}
@media(min-width:720px){
  .bayi-profile .profile-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.25rem}
  .bayi-profile .profile-pwd{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bayi-profile .profile-actions{justify-content:flex-end}
  .bayi-profile .profile-actions .btn{flex:0 0 auto}
}
.bayi-dash{display:flex;flex-direction:column;gap:.75rem;min-width:0;max-width:100%}
.bayi-head{
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:1rem;
  padding:1rem 1.1rem;border-radius:var(--radius-lg);background:#fff;
  border:1px solid var(--gray-200);box-shadow:0 1px 2px rgb(15 23 42/.04);min-width:0;
}
.bayi-head-copy{min-width:0;flex:1 1 12rem}
.bayi-head-copy h1{margin:.15rem 0 .2rem;font-size:var(--text-lg);font-weight:700;color:var(--gray-900);letter-spacing:-.02em}
.bayi-head-meta{margin:0;font-size:var(--text-xs);color:var(--gray-500);font-weight:500}
.bayi-firm{margin:0;font-size:var(--text-sm);color:var(--gray-600);font-weight:500;max-width:28rem;line-height:1.35;overflow-wrap:anywhere}
.bayi-head-actions{display:flex;flex-wrap:wrap;gap:.45rem}
.bayi-range{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.45rem;min-width:0}
.bayi-range label{display:grid;gap:.2rem;font-size:var(--text-xs);color:var(--gray-500);font-weight:500;min-width:0}
.bayi-range input[type=date]{
  min-height:2.35rem;padding:.35rem .55rem;border:1px solid var(--gray-300);border-radius:var(--radius);
  background:#fff;color:var(--gray-800);font-size:var(--text-sm);max-width:100%;
}
.bayi-head-actions .btn-ghost,.bayi-alert .btn-ghost,.bayi-list-more{
  background:#fff!important;color:var(--gray-700)!important;border:1px solid var(--gray-300)!important;
}
.bayi-head-actions .btn-ghost:hover,.bayi-alert .btn-ghost:hover,.bayi-list-more:hover{background:var(--gray-50)!important;color:var(--gray-900)!important}
.bayi-alert{
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;
  padding:.85rem 1rem;border-radius:var(--radius-lg);border:1px solid #fde68a;background:#fffbeb;
}
.bayi-alert b{display:block;color:#92400e}.bayi-alert p{margin:.15rem 0 0;color:#a16207;font-size:var(--text-sm)}
.bayi-metrics{gap:1rem}
.bayi-metrics button{padding:.95rem 1rem!important;display:flex!important;flex-direction:column;align-items:flex-start;gap:.45rem}
.bayi-metric-label{display:inline-flex!important;align-items:center;gap:.35rem;font-size:var(--text-sm);color:var(--gray-500);margin:0}
.bayi-metrics button small{display:block;margin:0;font-size:var(--text-xs);color:var(--gray-500);font-weight:500}
.bayi-metrics strong{display:block;color:var(--gray-900)!important;font-size:1.35rem;font-variant-numeric:tabular-nums;margin:0;line-height:1.2}
.bayi-charts{display:grid;grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,1fr));gap:.75rem;min-width:0}
.bayi-chart-card{overflow:hidden}
.bayi-chart-card h2{display:flex;align-items:center;gap:.4rem;font-size:var(--text-sm);margin:0 0 .65rem;color:var(--gray-700)}
.bayi-chart{width:100%;height:auto;display:block;max-width:100%}
.bayi-donut-wrap{display:flex;align-items:center;gap:.85rem;flex-wrap:wrap}
.bayi-legend{list-style:none;margin:0;padding:0;display:grid;gap:.35rem;font-size:var(--text-xs);color:var(--gray-600);min-width:0;flex:1}
.bayi-legend li{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:.4rem}
.bayi-legend i{width:.55rem;height:.55rem;border-radius:999px;flex-shrink:0}
.bayi-legend em{font-style:normal;color:var(--gray-400);font-variant-numeric:tabular-nums}
.bayi-legend b{font-variant-numeric:tabular-nums;color:var(--gray-800)}
.bayi-dash .twocards .card>h2{display:flex;align-items:center;gap:.4rem;font-size:var(--text-sm)}
.bayi-list-more{margin-top:.65rem;width:100%}
.bayi-quick{display:grid;grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:.55rem}
.bayi-quick-top{order:-1}
.bayi-quick button{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;
  padding:.85rem .5rem;border:1px solid var(--gray-200)!important;border-radius:var(--radius-lg);
  background:#fff!important;color:var(--gray-700)!important;font-size:var(--text-sm);font-weight:600;
}
.bayi-quick button:hover{border-color:var(--gray-300)!important;color:var(--gray-900)!important;background:var(--gray-50)!important}
.bayi-donut{width:8rem;height:8rem;flex-shrink:0}
.bayi-chart-card{min-height:12rem}
@media(max-width:900px){
  .bayi-charts{grid-template-columns:1fr}
}
@media(max-width:640px){
  .bayi-head{padding:.85rem .9rem}.bayi-head-actions{width:100%}
  .bayi-head-actions .btn{flex:1 1 auto}
  .bayi-quick{grid-template-columns:1fr 1fr;gap:.4rem}
  .bayi-quick button{flex-direction:row;justify-content:flex-start;padding:.75rem .9rem}
  .bayi-profile .page-head{flex-wrap:wrap;gap:.5rem}
  .bayi-profile .profile-tabs{margin:0 .65rem}
  .bayi-profile .profile-panel{padding:.85rem .85rem 1.1rem}
}
.compose-draft-banner{
  margin:0;padding:.55rem 1.15rem;font-size:var(--text-xs);font-weight:600;
  color:#9a3412;background:#fff7ed;border-bottom:1px solid #fed7aa;
}
.compose-pad{padding:.95rem 1.15rem}
.compose-top{display:grid;grid-template-columns:minmax(14rem,.9fr) minmax(18rem,1.4fr) minmax(11rem,.7fr);gap:.85rem;padding:1rem 1.15rem}
.compose-box{
  background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:.9rem 1rem;
  box-shadow:0 1px 2px rgb(15 23 42/.04);
}
.compose-box.grow{min-width:0}
.compose-box h3,.section-label{
  margin:0 0 .65rem;font-size:.8rem;font-weight:700;color:#334155;
  letter-spacing:.04em;text-transform:uppercase;
}
.cari-pick{display:grid;gap:.5rem}
.cari-pick .search-box{cursor:pointer;min-height:2.5rem}
.cari-facts{display:grid;grid-template-columns:1fr 1fr;gap:.2rem .75rem;margin:.15rem 0 0;font-size:var(--text-xs)}
.cari-facts div{display:flex;flex-direction:column;gap:.1rem;padding:.3rem 0;border-bottom:1px solid var(--gray-100)}
.cari-facts div.full{grid-column:1/-1}
.cari-facts dt{color:var(--gray-500);font-weight:500}
.cari-facts dd{margin:0;color:var(--gray-800);font-weight:600;word-break:break-word}
.cari-acts{display:flex;gap:.4rem;flex-wrap:wrap}
.info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 .85rem}
.info-grid.dense{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 .55rem}
.info-grid.dense .field{margin-bottom:.55rem}
.tax-box .kdv-toggle{display:flex;gap:.35rem;margin-bottom:.5rem}
.tax-box .kdv-toggle span{flex:1;text-align:center;padding:.45rem;border-radius:var(--radius);background:var(--gray-100);font-size:var(--text-xs);font-weight:600;color:var(--gray-500)}
.tax-box .kdv-toggle span.on{background:#1e293b;color:#fff}
.search-row.tight{padding:0}
.lookup-drop{margin:.45rem 0 0;border:1px solid var(--gray-200);border-radius:var(--radius);overflow:auto;max-height:14rem;background:#fff;box-shadow:0 8px 20px rgb(15 23 42/.08)}
.erp-table.dark th{background:#1e293b;border-right:1px solid rgba(255,255,255,.12)}
.compose-page .table-wrap{margin:0 1.15rem 0;border:1px solid #e2e8f0;border-radius:12px;overflow:auto}
.compose-page .emptycart{padding:2.5rem 1rem;color:#64748b}
.repeat-box{background:#fff7ed;border:1px solid #fed7aa;border-radius:var(--radius);padding:1rem}
.copy-banner{background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius-lg,1rem);overflow:hidden;box-shadow:0 1px 2px rgb(15 23 42/.04)}
.copy-banner .confirm-banner{display:block}
.copy-banner-head{display:flex;align-items:flex-start;gap:.75rem;padding:.95rem 1rem .35rem}
.copy-banner-head h2{margin:0 0 .2rem;font-size:var(--text-lg);line-height:1.25;color:var(--gray-800)}
.copy-banner-head .muted{margin:0;font-size:var(--text-sm);line-height:1.4}
.copy-banner-meta{margin:.55rem 1rem 1rem}
.copy-banner-issues{padding:0 1rem 1rem;border-top:1px solid var(--gray-200);margin-top:.15rem;padding-top:.75rem}
.copy-banner-issues p{margin:0 0 .45rem;font-size:var(--text-sm);color:#9a3412}
.copy-banner-issues ul{margin:0 0 .65rem;padding-left:1.1rem;font-size:var(--text-sm);color:var(--gray-700)}
.copy-banner-issues li{margin:.15rem 0}
.compose-bottom{display:grid;grid-template-columns:1.2fr .8fr;gap:1rem;padding:1.1rem 1.15rem 1.35rem;border-top:1px solid #e2e8f0;background:linear-gradient(180deg,#f8fafc,#f1f5f9)}
.compose-bottom .notes{margin:0}
.compose-bottom .notes textarea{min-height:7rem;border-radius:12px}
.totals-panel{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:1.05rem 1.1rem;box-shadow:0 1px 2px rgb(15 23 42/.04)}
.totals-panel h3{margin:0 0 .65rem;font-size:.8rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#334155}
.totals-panel .amounts .kdv-line dd{color:#2563eb;font-weight:600}
.totals-panel .amounts .grand{border-top:1px solid var(--gray-200);margin-top:.35rem;padding-top:.45rem;font-weight:700}
.totals-panel .amounts .grand dd{color:#0f172a;font-size:var(--text-lg)}
.totals-panel .btn{margin-top:.75rem}
.row-acts{display:flex;gap:.35rem;white-space:nowrap}
.btn-sm.danger-txt,.danger-txt{color:#dc2626!important;border-color:#fecaca!important}
.btn-sm.green-ico{color:var(--emerald-700)!important;border-color:#a7f3d0!important}
.orderinfo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:0;font-size:var(--text-sm)}
.orderinfo dt{color:var(--gray-500);font-size:var(--text-xs)}.orderinfo dd{margin:2px 0}
.greenaction{background:var(--emerald-600)!important;color:#fff!important;border:0!important;border-radius:var(--radius)!important}

/* Kullanıcı modal (dokuman/3) */
.usermodal{width:min(42rem,calc(100% - 1.5rem));padding:0;border:0;border-radius:var(--radius-lg);overflow:hidden;box-shadow:0 25px 50px -12px rgb(0 0 0/.3)}
.usermodal::backdrop{background:rgba(15,23,42,.55)}
.usermodal-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem 1rem;background:var(--emerald-600);color:#fff}
.usermodal-head h2{margin:0;font-size:var(--text-lg);color:#fff}
.closebtn.light{background:rgba(255,255,255,.18);color:#fff}
.usermodal-tabs{display:flex;gap:.1rem;border-bottom:1px solid var(--gray-200);padding:0 .75rem;background:#fff}
.usermodal-tabs button{background:none!important;border:0!important;border-radius:0!important;color:var(--gray-500)!important;padding:.7rem .85rem;font-size:var(--text-sm);font-weight:500}
.usermodal-tabs button.on{color:var(--emerald-700)!important;font-weight:600;border-bottom:2px solid var(--emerald-500)!important;margin-bottom:-1px}
.usermodal-body{padding:1rem;background:#fff}
.usermodal-foot{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1rem;padding-top:.75rem;border-top:1px solid var(--gray-200)}
.info-box{background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;padding:.65rem .85rem;border-radius:var(--radius);font-size:var(--text-sm);margin:.5rem 0 0}
.perm-grid{border:1px solid var(--gray-200);border-radius:var(--radius);padding:.75rem 1rem;display:grid;gap:.35rem}
.perm-grid legend{padding:0 .35rem;font-size:var(--text-sm);font-weight:600}
.perm-matrix .perm-row{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .65rem;padding:.35rem 0;border-bottom:1px dashed var(--gray-100)}
.perm-matrix .perm-row:last-of-type{border-bottom:0}
.perm-matrix .perm-row>strong{min-width:5.5rem;font-size:var(--text-sm)}
.perm-matrix .muted{margin:0 0 .35rem;font-size:var(--text-xs)}
.active-user{margin-top:1.5rem}
.steptrack{display:flex;gap:4px;margin:1rem 0}.steptrack i{height:3px;background:var(--gray-200);flex:1}.steptrack .filled,.steptrack i:first-child{background:var(--emerald-500)}
.swatches{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.4rem}
.swatches legend{font-size:var(--text-sm);font-weight:500;margin-bottom:.4rem}
.swatches label{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .55rem;border:1px solid var(--gray-200);border-radius:var(--radius);font-size:var(--text-xs);cursor:pointer}
.swatches label.chosen{border-color:var(--emerald-500);background:var(--emerald-50)}
.swatches input{position:absolute;opacity:0}
.printsheet{position:fixed;inset:0;overflow:auto;background:#fff;z-index:100;padding:1rem}
.printsheet.cikti-silent{
  position:fixed!important;left:-12000px!important;top:0;width:210mm;max-width:210mm;
  inset:auto;overflow:visible;opacity:0;pointer-events:none;z-index:-1;background:#fff;padding:0;
}
.cikti-silent-busy{position:fixed;left:50%;bottom:1.25rem;transform:translateX(-50%);z-index:120;
  background:#111827;color:#fff;padding:.55rem .9rem;border-radius:.5rem;font-size:var(--text-sm)}
.printsheet header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid var(--gray-800)}
.printsheet img{height:2.5rem;width:auto}
.printsheet table{width:100%;border-collapse:collapse;font-size:var(--text-xs)}
.printsheet th,.printsheet td{padding:5px;border:1px solid var(--gray-300);vertical-align:top}
.cikti-toolbar{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem;position:sticky;top:0;background:#fff;padding:.5rem 0;z-index:2;border-bottom:1px solid var(--gray-200)}
.cikti-sheet{background:#e8ecef;padding:1rem}
.cikti-page{background:#fff;color:#111;padding:1.1rem 1.25rem;margin:0 auto 1rem;max-width:920px;border:1px solid #c5ccd3;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.cikti-head{display:grid;grid-template-columns:auto 1fr auto;gap:.75rem 1rem;align-items:center;border-bottom:2px solid #0b1f3a;padding-bottom:.65rem;margin-bottom:.75rem}
.cikti-head.compact{border-bottom-width:1px}
.cikti-head img{height:2.6rem;width:auto}
.cikti-title h1{margin:0;font-size:1.05rem;letter-spacing:.02em;color:#0b1f3a;font-weight:800}
.cikti-ver{margin:.15rem 0 0;font-size:.72rem;color:#64748b}
.cikti-meta{display:grid;gap:.25rem;font-size:.78rem;text-align:right}
.cikti-meta span{display:block;color:#64748b;font-size:.65rem;text-transform:uppercase;letter-spacing:.04em}
.cikti-meta b{font-weight:700}
.cikti-party{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.5rem;margin-bottom:.75rem;font-size:.85rem}
.cikti-party span{display:block;color:#64748b;font-size:.68rem;text-transform:uppercase}
.cikti-party-line{margin:0 0 .75rem;font-size:.9rem}
.cikti-party-line.excel-name,.cerceve-cari.excel-name{font-size:1.35rem;margin:.15rem 0 .55rem;color:#0b1f3a}
.cikti-party-card{border:1px solid #94a3b8;margin-bottom:.75rem;background:#f8fafc}
.cikti-party-card .party-head{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;padding:.4rem .6rem;background:#0b1f3a;color:#fff;font-size:.78rem}
.cikti-party-card .party-head span{letter-spacing:.06em;opacity:.85}
.party-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.party-grid>div{padding:.35rem .55rem;border-top:1px solid #cbd5e1;border-right:1px solid #cbd5e1;font-size:.78rem;min-height:2.4rem}
.party-grid>div:nth-child(4n){border-right:0}
.party-grid>div.wide{grid-column:1/-1;border-right:0}
.party-grid span{display:block;color:#64748b;font-size:.62rem;text-transform:uppercase;letter-spacing:.04em}
.party-grid b{font-weight:650;word-break:break-word}
.cerceve-sub{display:grid;grid-template-columns:auto 1fr;gap:.75rem;align-items:start;margin-bottom:.5rem}
.cerceve-sub>span{font-size:.75rem;color:#64748b}
.cikti-cerceve-top{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;border-bottom:2px solid #0b1f3a;padding-bottom:.4rem;margin-bottom:.5rem}
.cikti-cerceve-top h1{margin:0;font-size:1.1rem;color:#0b1f3a}
.cikti-meta.inline{display:flex;flex-wrap:wrap;gap:.35rem .75rem;align-items:center;font-size:.8rem}
.cikti-meta.inline span{color:#64748b}
.cerceve-models{border:1px solid #94a3b8;padding:.35rem;font-size:.72rem;align-self:stretch}
.cerceve-models .kulp-title{font-weight:800;margin-bottom:.25rem;color:#0b1f3a}
.cerceve-models>div{padding:.15rem .25rem;border-bottom:1px dotted #cbd5e1}
.cerceve-models>div.on{background:#ecfdf5;font-weight:700}
.cerceve-parts{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem;font-size:.8rem}
.cerceve-parts>div{border:1px solid #94a3b8;padding:.35rem .5rem;display:flex;justify-content:space-between;gap:.5rem}
.cerceve-parts .amount{grid-column:1/-1;border-width:2px;border-color:#0b1f3a;font-size:.95rem}
.door-banner{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem;margin-bottom:.65rem}
.door-banner>div{border:1px solid #94a3b8;padding:.4rem .55rem;display:flex;justify-content:space-between;gap:.5rem;font-size:.85rem}
.door-banner span{color:#64748b;font-weight:700}
.pad-row td{height:1.35rem}
.empty-row{text-align:center;color:#64748b}
.ok-cell{width:2.2rem;min-width:2.2rem;text-align:center}
.ok-cell::after{content:'';display:inline-block;width:.95rem;height:.95rem;border:1.5px solid #0b1f3a;vertical-align:middle}
.icerik{margin-bottom:.4rem;font-size:.82rem}
.icerik h3{margin:0 0 .25rem;font-size:.78rem;color:#0b1f3a}
@media (max-width:800px){
 .party-grid{grid-template-columns:1fr 1fr}
 .party-grid>div:nth-child(4n){border-right:1px solid #cbd5e1}
 .party-grid>div:nth-child(2n){border-right:0}
 .cerceve-grid,.door-grid,.door-banner,.cerceve-parts{grid-template-columns:1fr}
 .cerceve-sub{grid-template-columns:1fr}
}
.cikti-table{width:100%;border-collapse:collapse;font-size:.78rem;margin-bottom:.75rem}
.cikti-table th,.cikti-table td{border:1px solid #94a3b8;padding:.35rem .4rem;vertical-align:top}
.cikti-table thead th{background:#0b1f3a;color:#fff;font-weight:700;text-align:left}
.cikti-table .num,.cikti-table td.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.cikti-table.dense th,.cikti-table.dense td{padding:.28rem .35rem;font-size:.74rem}
.cikti-foot{display:grid;grid-template-columns:1.4fr .9fr;gap:1rem;align-items:start}
.cikti-ship{font-size:.82rem;line-height:1.45}
.cikti-note{margin-top:.4rem}
.cikti-totals{margin:0;border:1px solid #94a3b8}
.cikti-totals>div{display:flex;justify-content:space-between;gap:1rem;padding:.35rem .55rem;border-bottom:1px solid #cbd5e1;font-size:.82rem}
.cikti-totals>div:last-child{border-bottom:0}
.cikti-totals .grand{background:#ecfdf5;font-weight:800;color:#047857}
.cikti-totals dd{margin:0;font-variant-numeric:tabular-nums}
.cerceve-grid{display:grid;grid-template-columns:1.1fr .75fr .7fr;gap:.55rem;align-items:start}
.cerceve-draw{min-height:220px;border:2px solid #0b1f3a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;background:repeating-linear-gradient(-45deg,#fff,#fff 8px,#f8fafc 8px,#f8fafc 16px)}
.cerceve-draw span{font-weight:800;letter-spacing:.08em;color:#0b1f3a}
.cerceve-draw em{font-style:normal;font-size:.85rem;color:#334155;text-align:center;padding:0 .75rem}
.cerceve-olcu{width:100%;border-collapse:collapse;font-size:.82rem}
.cerceve-olcu th,.cerceve-olcu td{border:1px solid #94a3b8;padding:.4rem .5rem}
.cerceve-olcu th{width:40%;background:#f1f5f9;text-align:left}
.cerceve-notes{grid-column:1/-1;display:grid;gap:.35rem}
.note-row{display:flex;justify-content:space-between;gap:1rem;border:1px solid #cbd5e1;padding:.4rem .55rem;font-size:.82rem}
.cerceve-amount{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:baseline;gap:.75rem;border:2px solid #0b1f3a;padding:.5rem .75rem;font-size:.9rem}
.cerceve-amount.inline{margin-top:.25rem}
.cerceve-amount b{font-size:1.1rem;font-variant-numeric:tabular-nums}
.door-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:.75rem}
.door-block{border:1px solid #94a3b8;padding:.55rem .65rem}
.door-block.full{grid-column:1/-1;border:0;padding:0}
.door-block h3{margin:0 0 .45rem;font-size:.78rem;letter-spacing:.04em;color:#0b1f3a}
.door-block dl{margin:0;display:grid;gap:.3rem}
.door-block dl>div{display:flex;justify-content:space-between;gap:.75rem;font-size:.8rem;border-bottom:1px dotted #cbd5e1;padding-bottom:.2rem}
.door-block dt{color:#64748b}
.door-block dd{margin:0;font-weight:600}
.cikti-ray .cikti-table th{background:#f1f5f9;color:#0b1f3a;width:18%}
@media print{
 body:has(.printsheet)>*:not(.printsheet){display:none!important}
 .printsheet,.cikti-sheet,.printsheet.cikti-silent{
  position:static!important;left:auto!important;top:auto!important;inset:auto;width:auto!important;max-width:none;
  padding:0;background:#fff;box-shadow:none;opacity:1!important;pointer-events:auto;z-index:auto;overflow:visible;
 }
 .printsheet button,.cikti-toolbar,.no-print,.cikti-silent-busy{display:none!important}
 .cikti-page{box-shadow:none;border:0;max-width:none;margin:0;padding:0 0 8mm;page-break-after:always;break-after:page}
 .cikti-page:last-child{page-break-after:auto;break-after:auto}
}

.productdialog[data-editing]{position:fixed;inset:var(--visible-top,0) 0 auto;margin:0 auto;max-height:calc(var(--visible-height,100dvh) - 4px)}
.composer{display:grid;grid-template-columns:minmax(280px,1.5fr) minmax(200px,.85fr);gap:1rem}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin-bottom:1rem}
.metrics button{text-align:left;padding:1rem}.metrics span{display:block;font-size:var(--text-sm);color:var(--gray-500)}.metrics strong{font-size:var(--text-xl);color:var(--emerald-600)}
.valueRow{display:flex;align-items:center;gap:.75rem;padding:.65rem .85rem;border-bottom:1px solid var(--gray-200);background:#fff}
.valueRow label{flex:1;font-size:var(--text-sm);color:var(--gray-700)}
.valueRow input{width:8rem;min-height:2.25rem}
.param-inline{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin:0}
.param-inline input{width:7.5rem;min-height:2rem;padding:.3rem .45rem;border:1px solid var(--gray-200);border-radius:.35rem;font-size:var(--text-sm)}
.param-rows{padding:.35rem 0 .75rem}
.param-rows .section-h{margin:.5rem .85rem .25rem;font-size:var(--text-base)}
.param-rows>.muted{margin:0 .85rem .75rem}
.quote{background:var(--emerald-50);border:1px solid #a7f3d0;border-radius:var(--radius);padding:1rem;margin-top:1rem}
.catalogcard{min-width:0}
.editableproduct{cursor:pointer}.editableproduct:hover{background:var(--emerald-50)}
.stocklookup{display:flex;align-items:stretch;gap:.5rem}
.stocklookup label{flex:1;display:flex;align-items:center;gap:.4rem;padding-left:.6rem;background:var(--emerald-50);border:1px solid #6ee7b7;border-radius:var(--radius);font-size:var(--text-sm);color:#047857}
.stocklookup input{border:0;background:transparent;width:100%;min-height:2.5rem}
.stockactions{display:flex;justify-content:flex-end;gap:.5rem;margin-bottom:.5rem}
.serviceadd{background:#b8560a!important;color:#fff!important;border:0!important}
.emptycart{text-align:center;color:var(--gray-500);padding:1rem;font-size:var(--text-sm)}
.mailsecret{position:relative}.mailsecret .eye{position:absolute;right:.75rem;bottom:.7rem;border:0;background:transparent;color:var(--gray-500);padding:.25rem}
.testmail{display:flex;align-items:end;gap:.5rem}.testmail .field{flex:1}
.finishchip{display:inline-block;width:.9rem;height:.9rem;margin-right:.35rem;border:1px solid var(--gray-300);border-radius:50%;vertical-align:middle}

@media(max-width:1100px){
  .compose-top{grid-template-columns:1fr}
  .sum-row.sum-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .compose-bottom{grid-template-columns:1fr}
}
@media(max-width:960px){
  :root{--top:3.15rem;--foot-h:2.05rem}
  .only-m{display:flex}
  .sidebar{transform:translateX(-105%);transition:transform .25s;width:min(var(--side),86vw)}.sidebar.open{transform:translateX(0)}
  .side-top{display:flex}
  .main,.foot{margin-left:0}
  .main{
    min-height:calc(100dvh - var(--top) - var(--foot-h));
    padding:.4rem .45rem calc(var(--foot-h) + env(safe-area-inset-bottom,0px) + .75rem);
  }
  .foot{
    display:block;position:fixed;left:0;right:0;bottom:0;z-index:45;
    margin:0;padding:.35rem .55rem calc(.35rem + env(safe-area-inset-bottom,0px));
    font-size:.65rem;line-height:1.3;text-align:center;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    background:#fff;border-top:1px solid var(--gray-200);
    box-shadow:0 -2px 10px rgb(15 23 42/.06);
  }
  .wa-fab{bottom:calc(var(--foot-h) + env(safe-area-inset-bottom,0px) + .85rem)}
  .sum-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;padding:0 .55rem .55rem}
  .info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .userinfo,.chev{display:none}
  .logo img{height:2.05rem;max-width:min(8.5rem,42vw)}
  .topbar{padding:0 .55rem;gap:.4rem}
  .avatar{width:1.85rem;height:1.85rem;font-size:.75rem}
  .logout{font-size:var(--text-xs);padding:.25rem .35rem}
  .bayi-charts{grid-template-columns:1fr}
  .bayi-range{width:100%}
  .bayi-range label{flex:1 1 8rem}
  .bayi-range input[type=date]{width:100%}
  .page-card{border-radius:var(--radius)}
  .page-head{padding:.65rem .7rem .45rem;gap:.5rem}
  .page-title{gap:.45rem}
  .page-ico{width:2rem;height:2rem}
  .page-title p{display:none}
  .table-foot{padding:.4rem .65rem;font-size:var(--text-xs)}
}
@media(max-width:760px){
  .fieldgrid,.filters,.composer,.orderinfo,.info-grid,.info-grid.dense,.twocards,.metrics,.apply-form .fieldgrid{grid-template-columns:1fr}
  .filters{grid-template-columns:1fr}
  .main{padding:.35rem .4rem calc(var(--foot-h) + env(safe-area-inset-bottom,0px) + .75rem)}
  .field input,.field select,.field textarea,.search-box input,.bayi-range input[type=date],.search-dates input,.status-sel{font-size:16px}
  .carigrid{grid-template-columns:1fr}
  .erp-table,.data-table{font-size:var(--text-xs)}
  .page-head{flex-direction:column;align-items:stretch}
  .page-actions{width:100%;display:flex;flex-wrap:nowrap;gap:.3rem;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .page-actions .btn{flex:1 1 0;min-width:0;padding:.4rem .35rem;font-size:var(--text-xs);gap:.25rem}
  .page-actions .btn svg{width:14px;height:14px;flex-shrink:0}
  .page-actions .btn-ico{flex:0 0 auto;min-width:2rem;padding:.35rem}
  .row-acts{flex-direction:column}
  .sum-row,.sum-row.sum-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;padding:0 .65rem .65rem}
  .dashmetrics,.bayi-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin-bottom:.55rem}
  .bayi-metrics button{padding:.7rem .75rem!important;gap:.35rem}
  .bayi-metrics strong{font-size:1.05rem!important}
  .bayi-metric-label{font-size:var(--text-xs)!important;gap:.25rem}
  .bayi-metrics button small{font-size:.65rem}
  .bayi-dash{gap:.5rem}
  .bayi-quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem}
  .bayi-quick button{padding:.55rem .6rem;font-size:var(--text-xs);gap:.3rem}
  .bayi-quick button svg{width:15px;height:15px;flex-shrink:0}
  .bayi-head{padding:.65rem .7rem;gap:.55rem;align-items:stretch}
  .bayi-head-copy h1{font-size:var(--text-base);margin:.05rem 0 .1rem}
  .bayi-firm{font-size:var(--text-xs)}
  .bayi-chart-card{min-height:0;padding:.7rem .75rem}
  .bayi-chart-card h2{margin:0 0 .45rem;font-size:var(--text-xs)}
  .bayi-donut{width:6.5rem;height:6.5rem}
  .bayi-donut-wrap{flex-direction:row;align-items:center;gap:.55rem}
  .panel,.card,.datebar,.mailpanel{padding:.75rem .8rem}
  .table-wrap,.tablewrap{max-width:100%;-webkit-overflow-scrolling:touch}
  .toast{left:.75rem;right:.75rem;transform:none;width:auto}
  .search-row:not(.tight){display:grid;grid-template-columns:1fr 1fr;gap:.35rem .4rem;align-items:stretch;padding:.7rem .65rem}
  .search-row:not(.tight)>.search-box{grid-column:1/-1;min-width:0;width:100%}
  .search-row:not(.tight)>.search-dates{grid-column:1/-1;width:100%;display:flex;gap:.3rem}
  .search-row:not(.tight)>.search-dates input{width:0;flex:1;min-width:0}
  .search-row:not(.tight)>.status-sel{grid-column:1/-1;width:100%;min-height:2.4rem}
  .search-row:not(.tight)>.search-acts{grid-column:1/-1;display:flex;width:100%;gap:.35rem}
  .search-row:not(.tight)>.search-acts .btn{flex:1 1 0;min-width:0;width:auto;padding:.42rem .4rem;font-size:var(--text-xs)}
  .search-row:not(.tight)>.search-acts .btn svg{width:13px;height:13px;flex-shrink:0}
  .search-row:not(.tight)>.btn-ara,
  .search-row:not(.tight)>.btn-temizle{width:100%;min-width:0;padding:.42rem .4rem;font-size:var(--text-xs)}
  .search-row:not(.tight)>.btn-ico,
  .search-row:not(.tight)>span.btn-ico{display:none}
  .status-sel{min-height:2.5rem}
  .orderform{padding-bottom:calc(var(--foot-h) + env(safe-area-inset-bottom,0px) + .75rem)}
  .compose-head{
    flex-direction:column;align-items:stretch;gap:.45rem;
    padding:.55rem .7rem .55rem;position:sticky;top:var(--top);z-index:30;
    background:linear-gradient(180deg,#fff,#f8fafc);border-bottom:1px solid #e2e8f0;
  }
  .compose-head .page-ico{display:none}
  .compose-head .compose-actions{
    display:flex!important;width:100%;flex-wrap:nowrap;gap:.3rem;
    overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    justify-content:stretch;padding-bottom:.1rem;
  }
  .compose-head .compose-actions::-webkit-scrollbar{display:none}
  .compose-head .compose-actions .btn{
    flex:1 1 0;min-width:0;padding:.45rem .35rem;font-size:var(--text-xs);gap:.2rem;white-space:nowrap;
  }
  .compose-head .compose-actions .btn svg{width:14px;height:14px;flex-shrink:0}
  .compose-head .compose-actions .compose-kapat{flex:0 0 auto!important;min-width:auto!important;padding:.45rem .55rem!important}
  .compose-head .compose-actions .btn-excel:first-of-type,
  .compose-head .compose-actions .btn-new{flex:1.4 1 0}
  .compose-save-desk{display:none!important}
  .compose-bar{display:none!important}
  .compose-pad{padding:.55rem .7rem}
  .compose-pad,.compose-page .table-wrap{margin-left:.45rem;margin-right:.45rem}
  .compose-top,.compose-bottom{padding:.55rem .7rem .75rem}
  .compose-bottom .notes textarea{min-height:4.5rem}
  .compose-box{padding:.65rem .7rem;border-radius:10px}
  .section-label{margin:0 0 .4rem;font-size:.7rem}
  .cari-facts{font-size:var(--text-xs)}
  .search-row:not(.tight){padding:.5rem .55rem;gap:.3rem .35rem}
  .erp-table.cardable tbody tr{padding:.5rem .55rem .4rem;margin:0 0 .4rem}
  .erp-table.cardable td{padding:.2rem 0}
  .hint-line{margin:.35rem .55rem .4rem;font-size:.65rem}
  .datebar{display:flex;flex-direction:column;align-items:stretch;gap:.5rem}
  .testmail{flex-direction:column;align-items:stretch}
  .usermodal-tabs{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
  .report-fullscreen .page-head{flex-direction:column;align-items:stretch}
  .report-fullscreen .page-actions{width:100%}
  .erp-table.cardable .param-inline{flex-direction:column;align-items:stretch}
  .erp-table.cardable .param-inline input{width:100%}
  .workspace{min-height:100dvh;padding:1rem;box-sizing:border-box}
}
@media(max-width:560px){
  .filters{grid-template-columns:1fr}.login-box{padding:1.25rem}
  .dashmetrics,.bayi-metrics,.sum-row,.sum-row.sum-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bayi-quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem}
  .bayi-quick button{padding:.48rem .5rem;font-size:.7rem}
  .bayi-metrics button{padding:.6rem .55rem!important;gap:.3rem}
  .bayi-metrics strong{font-size:.98rem!important}
  .bayi-metric-label svg{width:13px;height:13px}
  .bayi-range{display:grid;grid-template-columns:1fr 1fr;gap:.3rem;align-items:end;width:100%}
  .bayi-range label{min-width:0}
  .bayi-range .btn{grid-column:1/-1;width:100%;min-width:0;padding:.4rem .35rem;font-size:var(--text-xs)}
  .logo img{height:2.25rem}
  .page-actions{gap:.22rem}
  .page-actions .btn{padding:.38rem .28rem;font-size:.7rem;gap:.15rem}
  .page-actions .btn svg{display:none}
  .bayi-profile .profile-actions{display:flex;flex-wrap:nowrap;gap:.35rem}
  .bayi-profile .profile-actions .btn{flex:1 1 0;min-width:0;padding:.42rem .35rem;font-size:var(--text-xs)}
}

/* —— Teklif raporları —— */
.report-picker{width:min(52rem,calc(100% - 1rem));padding:0;overflow:hidden;display:flex;flex-direction:column;max-height:90dvh;background:#fff}
.report-picker::backdrop{background:rgba(15,23,42,.45)}
.report-picker-head{background:#fff;color:var(--gray-800);padding:1rem 1.15rem .9rem;position:relative;border-bottom:1px solid var(--gray-200)}
.report-picker-head h2{margin:0;color:var(--gray-800);font-size:1.15rem}
.report-picker-head p{margin:.2rem 0 .7rem;color:var(--gray-500);font-size:var(--text-sm)}
.report-x{position:absolute;top:.75rem;right:.75rem;background:transparent;border:0;color:var(--gray-500);padding:.35rem;border-radius:var(--radius);cursor:pointer}
.report-x:hover{background:var(--gray-100);color:var(--gray-800)}
.report-search{display:flex;align-items:center;gap:.5rem;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius);padding:0 .75rem;color:var(--gray-400)}
.report-search input{flex:1;border:0;outline:none;min-height:2.4rem;font-size:var(--text-sm);color:var(--gray-800);background:transparent}
.report-tabs{padding:.35rem 1rem 0;border-bottom:1px solid var(--gray-200);background:linear-gradient(180deg,#fafbfc,#fff)}
.report-picker .tab{color:#64748b!important}
.report-picker .tab.on{color:#0f172a!important}
.report-picker .tab.on::after{background:#0f172a}
.report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem;padding:1.05rem;overflow:auto;background:linear-gradient(180deg,#f8fafc 0%,#fff 40%)}
.report-card{
  --rc:#1e3a5f;--rc-soft:#e8eef6;--rc-ring:rgba(30,58,95,.18);
  display:flex;align-items:flex-start;gap:.85rem;text-align:left;padding:1rem 1.05rem;
  background:#fff!important;border:1px solid #e2e8f0!important;border-radius:14px;cursor:pointer;
  color:#0f172a!important;position:relative;overflow:hidden;
  box-shadow:0 1px 2px rgb(15 23 42/.04);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.report-card::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--rc);opacity:.9;
}
.report-card:hover{
  border-color:color-mix(in srgb,var(--rc) 35%,#e2e8f0)!important;
  box-shadow:0 10px 28px var(--rc-ring),0 2px 6px rgb(15 23 42/.06);
  background:#fff!important;transform:translateY(-2px);
}
.report-card.tone-navy{--rc:#1e3a5f;--rc-soft:#e8eef6;--rc-ring:rgba(30,58,95,.16)}
.report-card.tone-amber{--rc:#b45309;--rc-soft:#fff7ed;--rc-ring:rgba(180,83,9,.14)}
.report-card.tone-indigo{--rc:#4338ca;--rc-soft:#eef2ff;--rc-ring:rgba(67,56,202,.14)}
.report-card.tone-rose{--rc:#be123c;--rc-soft:#fff1f2;--rc-ring:rgba(190,18,60,.12)}
.report-card.tone-sky{--rc:#0369a1;--rc-soft:#e0f2fe;--rc-ring:rgba(3,105,161,.14)}
.report-card.tone-copper{--rc:#9a3412;--rc-soft:#ffedd5;--rc-ring:rgba(154,52,18,.14)}
.report-copy{min-width:0;display:flex;flex-direction:column;gap:.18rem}
.report-copy em{
  font-style:normal;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--rc);opacity:.85;
}
.report-card b{
  display:block;font-size:.92rem;line-height:1.25;color:#0f172a!important;margin:0;
  font-weight:700;letter-spacing:-.01em;
}
.report-card small{display:block;font-size:12px;color:#64748b!important;line-height:1.4}
.report-ico{
  width:2.65rem;height:2.65rem;border-radius:12px;background:var(--rc-soft)!important;color:var(--rc)!important;
  display:grid;place-items:center;flex-shrink:0;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rc) 12%,transparent);
}
.report-ico svg{color:var(--rc)!important;stroke:var(--rc)!important}
.report-picker-head h2{letter-spacing:-.02em;font-weight:700}
.report-picker-foot{
  display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 1rem;
  border-top:1px solid var(--gray-200);background:#fafbfc;font-size:var(--text-xs);color:var(--gray-500);
}
.report-picker-foot span{display:inline-flex;align-items:center;gap:.35rem}
.report-picker-foot .txt{color:#334155!important;font-weight:600}
.report-fullscreen{
  position:fixed;inset:0;z-index:80;background:#f8fafc;display:flex;flex-direction:column;
}
.report-fullscreen-inner{flex:1;min-height:0;display:flex;flex-direction:column;background:#fff;overflow:hidden}
.report-fullscreen .page-head{padding:1rem 1.25rem .65rem;border-bottom:1px solid var(--gray-200)}
.report-fullscreen .page-ico.muted{background:var(--gray-100);color:var(--gray-700)}
.report-fullscreen-body{flex:1;min-height:0;overflow:auto;padding-bottom:1rem}
.report-fullscreen .sum-card{cursor:default}
.report-fullscreen .table-foot.muted{background:var(--gray-50);border-top:1px solid var(--gray-200);color:var(--gray-700)}
.report-fullscreen .table-foot.muted b{color:var(--gray-800)}
.report-fullscreen .erp-table th{background:#334155}
.rep-idle{margin:1.25rem 1.1rem}
.rep-kpi{padding-top:.25rem}
.rep-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;padding:0 1.1rem 1rem}
.rep-panel{background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius-lg);padding:.85rem 1rem}
.rep-panel.wide{grid-column:1/-1}
.rep-panel h3{margin:0 0 .65rem;font-size:var(--text-sm);color:var(--gray-700)}
.rep-chart{width:100%;height:auto;display:block}
.rep-donut-wrap{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.rep-donut{width:8.5rem;height:8.5rem;flex-shrink:0}
.rep-legend{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem;font-size:var(--text-xs);color:var(--gray-600)}
.rep-legend li{display:flex;align-items:center;gap:.4rem}
.rep-legend i{width:.55rem;height:.55rem;border-radius:999px;display:inline-block}
.rep-legend b{margin-left:auto;font-variant-numeric:tabular-nums;color:var(--gray-800)}
.rep-funnel{display:flex;flex-direction:column;gap:.55rem}
.rep-funnel-row{display:grid;grid-template-columns:7.5rem 1fr 2.2rem minmax(4.5rem,auto);gap:.45rem;align-items:center;font-size:var(--text-xs)}
.rep-funnel-row span{color:var(--gray-600)}
.rep-funnel-row b,.rep-funnel-row em{font-style:normal;font-variant-numeric:tabular-nums;text-align:right}
.rep-funnel-track{height:.7rem;background:var(--gray-100);border-radius:999px;overflow:hidden}
.rep-funnel-track>div{height:100%;border-radius:999px}
.rep-table{border-top:1px solid var(--gray-200);max-height:none}
@media(max-width:960px){
  .report-picker{width:calc(100% - .75rem);max-height:92dvh}
  .report-picker-head{padding:.85rem .9rem 0.75rem;padding-right:2.75rem}
  .report-picker-head h2{font-size:1.05rem;line-height:1.25;padding-right:.25rem}
  .report-picker-head p{margin:.15rem 0 .55rem;line-height:1.35}
  .report-tabs{
    display:flex;flex-wrap:nowrap;gap:0;padding:.25rem .55rem 0;
    overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;
  }
  .report-tabs::-webkit-scrollbar{display:none}
  .report-tabs .tab{
    flex:0 0 auto;white-space:nowrap;padding:.5rem .7rem;font-size:var(--text-xs);
  }
  .report-grid{
    grid-template-columns:1fr;gap:.65rem;padding:.75rem .7rem;
  }
  .report-card{
    align-items:flex-start;gap:.65rem;padding:.85rem .8rem;
    overflow:visible;
  }
  .report-copy{flex:1 1 auto;min-width:0;max-width:100%;gap:.25rem}
  .report-copy em{display:block;line-height:1.2}
  .report-card b{
    display:block;font-size:.88rem;line-height:1.35;
    overflow-wrap:anywhere;word-break:break-word;white-space:normal;
  }
  .report-card small{
    display:block;line-height:1.45;margin-top:.05rem;
    overflow-wrap:anywhere;word-break:break-word;white-space:normal;
  }
  .report-ico{width:2.35rem;height:2.35rem;border-radius:10px}
  .report-picker-foot{flex-wrap:wrap;gap:.45rem;padding:.65rem .75rem}
  .rep-charts{grid-template-columns:1fr}
  .rep-funnel-row{grid-template-columns:1fr;gap:.2rem}
  .rep-kpi.sum-row,.sum-row.rep-kpi{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;padding:0 .7rem .65rem;
  }
  .rep-kpi .sum-card span{
    font-size:.65rem;line-height:1.25;white-space:normal;overflow-wrap:anywhere;
  }
  .rep-kpi .sum-card b{
    font-size:.95rem;line-height:1.25;overflow-wrap:anywhere;word-break:break-word;
  }
}
