/* ==========================================================
   MODIS ERP V4 - CLEAN THEME SYSTEM
   Sıfırdan yazıldı: layout + sidebar + subnav + light/dark UI
   Header her zaman aydınlık kalır.
   ========================================================== */

:root{
  --font: Inter, Segoe UI, Arial, sans-serif;
  --radius-xs:10px; --radius-sm:14px; --radius:18px; --radius-lg:24px;
  --shadow-sm:0 8px 22px rgba(15,23,42,.06);
  --shadow:0 18px 42px rgba(15,23,42,.10);
  --brand:#2563eb; --danger:#dc2626; --ok:#16a34a; --warn:#f59e0b;

  --bg:#f4f7fb; --surface:#ffffff; --surface-2:#f8fafc; --surface-3:#eef4fb;
  --text:#0f172a; --text-2:#334155; --muted:#64748b; --line:#dbe5f0;
  --input:#f8fafc; --thead:#f1f5f9;

  --side-bg:#0f172a; --side-bg-2:#111827; --side-text:#dbeafe; --side-muted:#93a4bd;
  --header-bg:#ffffff; --header-text:#0f172a; --header-muted:#64748b; --header-line:#e2e8f0;
}
html[data-theme="dark"]{
  --bg:#101827; --surface:#182235; --surface-2:#202c40; --surface-3:#243246;
  --text:#f8fafc; --text-2:#e2e8f0; --muted:#b6c2d2; --line:#344258;
  --input:#202c40; --thead:#223047;
  --shadow-sm:0 8px 22px rgba(0,0,0,.20);
  --shadow:0 18px 42px rgba(0,0,0,.26);
}
*{box-sizing:border-box}
html{min-height:100%}
body{margin:0;min-height:100vh;font-family:var(--font);background:var(--bg);color:var(--text);font-size:14px;line-height:1.45;transition:background .18s ease,color .18s ease}
a{color:inherit;text-decoration:none}
img{max-width:100%}
button,input,select,textarea{font:inherit}

/* App shell */
.app{min-height:100vh;background:var(--bg)}
.clean-sidebar-shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:calc(100vh - 68px);transition:grid-template-columns .18s ease}
body.sidebar-collapsed .clean-sidebar-shell{grid-template-columns:76px minmax(0,1fr)}
.workspace{min-width:0;background:var(--bg);padding:0 0 34px}
.content{max-width:1520px;margin:0 auto;padding:18px 24px 46px;min-width:0}

/* Header: always light, never affected by dark mode */
.site-header,.fixed-light-header{height:68px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 24px;background:var(--header-bg)!important;color:var(--header-text)!important;border-bottom:1px solid var(--header-line)!important;box-shadow:0 8px 22px rgba(15,23,42,.05);position:sticky;top:0;z-index:80}
.site-header *{color:inherit}
.header-left,.site-brand{display:flex;align-items:center;gap:12px}
.site-logo{display:flex;align-items:center;justify-content:flex-start;height:50px;min-width:42px;color:#1d4ed8;font-size:24px;font-weight:950;overflow:visible;background:transparent;border:0;box-shadow:none;border-radius:0;padding:0}
.site-logo img{display:block;width:auto;height:auto;max-height:50px;max-width:184px;object-fit:contain;background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
.site-header nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.site-header nav a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border-radius:999px;background:#f8fafc!important;border:1px solid #e2e8f0!important;color:#334155!important;font-weight:850;font-size:12.5px}
.site-header nav a:hover,.site-header nav a.active{background:#eff6ff!important;border-color:#bfdbfe!important;color:#1d4ed8!important}

/* Sidebar clean rebuild */
.modis-sidebar-v2{position:sticky;top:68px;height:calc(100vh - 68px);display:flex;flex-direction:column;gap:14px;padding:16px 12px;background:linear-gradient(180deg,#101a2c,#0b1020);color:var(--side-text);border-right:1px solid rgba(148,163,184,.16);box-shadow:8px 0 28px rgba(15,23,42,.18);z-index:70;overflow:visible}
.sidebar-head{display:flex;align-items:center;gap:10px;min-height:38px;padding:0 4px 6px;border-bottom:1px solid rgba(148,163,184,.12)}
.sidebar-toggle{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:12px;background:rgba(255,255,255,.06);color:#e2e8f0;font-size:18px;cursor:pointer;box-shadow:none;transition:background .15s ease,color .15s ease,transform .15s ease}
.sidebar-toggle:hover{background:rgba(255,255,255,.12);transform:translateY(-1px)}
.sidebar-title{font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.12em;color:#8fa3bd;white-space:nowrap}
.sidebar-list{display:flex;flex-direction:column;gap:5px;min-width:0}
.menu-row{--menu-color:#3d68ff;position:relative;display:flex;align-items:center;gap:13px;height:42px;padding:0 12px;border-radius:14px;color:#cbd5e1;background:transparent;border:0;box-shadow:none;overflow:visible;transition:background .15s ease,color .15s ease,transform .15s ease}
.menu-row i{width:24px;min-width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;color:var(--menu-color);font-size:20px;font-style:normal;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;line-height:1}
.menu-row span{font-size:13px;font-weight:900;letter-spacing:-.01em;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.menu-row:hover{background:color-mix(in srgb,var(--menu-color) 20%,transparent);color:#fff;transform:translateX(2px)}
.menu-row.active{background:var(--menu-color);color:#000;box-shadow:0 10px 22px color-mix(in srgb,var(--menu-color) 26%,transparent)}
.menu-row.active i,.menu-row.active span{color:#000!important}
.sidebar-footer{margin-top:auto;padding-top:12px;border-top:1px solid rgba(148,163,184,.12)}
.theme-toggle{width:100%;height:42px;border:0;border-radius:14px;background:rgba(255,255,255,.07);color:#e2e8f0;display:flex;align-items:center;gap:13px;padding:0 12px;cursor:pointer;font-weight:900;box-shadow:none}
.theme-toggle:hover{background:rgba(255,255,255,.13)}
.theme-icon{width:24px;min-width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;color:#fbbf24;font-size:19px;font-style:normal}
.theme-text{font-size:13px;white-space:nowrap}
body.sidebar-collapsed .modis-sidebar-v2{align-items:center;padding:16px 10px}
body.sidebar-collapsed .sidebar-title,body.sidebar-collapsed .menu-row span,body.sidebar-collapsed .theme-text{display:none!important}
body.sidebar-collapsed .sidebar-head{justify-content:center;width:100%;padding-inline:0}
body.sidebar-collapsed .sidebar-list,body.sidebar-collapsed .sidebar-footer{width:100%}
body.sidebar-collapsed .menu-row,body.sidebar-collapsed .theme-toggle{width:48px;height:42px;margin-inline:auto;padding:0;justify-content:center;gap:0}
body.sidebar-collapsed .menu-row:hover{transform:none}
body.sidebar-collapsed .menu-row::after,body.sidebar-collapsed .theme-toggle::after{content:attr(data-menu-label);position:absolute;left:calc(100% + 13px);top:50%;transform:translateY(-50%) translateX(-6px);opacity:0;pointer-events:none;white-space:nowrap;min-height:32px;display:flex;align-items:center;padding:0 12px;border-radius:11px;background:#1f2937;color:#f8fafc;border:1px solid rgba(148,163,184,.25);box-shadow:0 14px 30px rgba(0,0,0,.24);font-size:12px;font-weight:900;z-index:200;transition:opacity .14s ease,transform .14s ease}
body.sidebar-collapsed .menu-row:hover::after,body.sidebar-collapsed .theme-toggle:hover::after{opacity:1;transform:translateY(-50%) translateX(0)}
body.sidebar-collapsed .menu-row.active:hover::after{background:var(--menu-color);color:#000;border-color:transparent}

/* Product sub menu - clean pill system */
.product-tabs,.subnav.product-tabs{--submenu-accent:var(--page-accent,#3d68ff);display:flex;align-items:center;gap:8px;margin:14px 24px 0;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-sm);overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.product-tab{position:relative;display:flex!important;align-items:center;justify-content:center;min-height:38px;flex:0 0 auto;padding:8px 13px;border-radius:13px;border:1px solid transparent!important;background:transparent!important;color:var(--text-2)!important;font-weight:950;box-shadow:none!important;transition:background .15s ease,color .15s ease,transform .15s ease,border-color .15s ease;white-space:nowrap}
.product-tab span{color:inherit!important;font-size:13px;line-height:1}
.product-tab small{display:none!important}
.product-tab:hover{background:color-mix(in srgb,var(--submenu-accent) 16%,transparent)!important;border-color:color-mix(in srgb,var(--submenu-accent) 28%,transparent)!important;color:var(--text)!important;transform:translateY(-1px)}
.product-tab.active{background:var(--submenu-accent)!important;border-color:transparent!important;color:#000!important;box-shadow:0 10px 22px color-mix(in srgb,var(--submenu-accent) 22%,transparent)!important}
.product-tab.active span{color:#000!important}
html[data-theme="dark"] .product-tabs{background:var(--surface)!important;border-color:var(--line)!important}
html[data-theme="dark"] .product-tab{color:#d9e2ee!important}
html[data-theme="dark"] .product-tab:hover{background:color-mix(in srgb,var(--submenu-accent) 22%,var(--surface))!important;color:#fff!important}
html[data-theme="dark"] .product-tab.active{color:#000!important}
html[data-theme="dark"] .product-tab.active span{color:#000!important}

/* Generic panels */
.panel,.card,.cb-card,.dash-card,.stock-card,.usage-card,.asset-card,.order,.record-list-wrap{background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:var(--radius-lg)!important;box-shadow:var(--shadow-sm)!important}
.panel{padding:20px;margin-bottom:18px}.card{padding:18px}.panel h1,.panel h2,.panel h3,.card h1,.card h2,.card h3{margin-top:0;color:var(--text)!important;letter-spacing:-.02em}.panel h1{font-size:24px}.panel h2{font-size:18px}.muted,small,.card span{color:var(--muted)!important}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-bottom:16px}.card b{display:block;margin-top:6px;font-size:30px;color:var(--text)!important}
.notice{padding:13px 15px;border-radius:var(--radius);margin-bottom:14px;font-weight:900;background:#dcfce7;color:#166534;border:1px solid #bbf7d0}.notice.err{background:#fee2e2;color:#991b1b;border-color:#fecaca}
html[data-theme="dark"] .notice{background:#123725;color:#bbf7d0;border-color:#246546}html[data-theme="dark"] .notice.err{background:#3a1721;color:#fecaca;border-color:#7f1d1d}

/* Forms */
.form-grid,.measure-form{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:13px;align-items:end}.form-grid.small{grid-template-columns:repeat(4,minmax(130px,1fr))}.form-grid .wide{grid-column:span 2}.form-grid label,.measure-form label,label{font-weight:850;font-size:12.5px;color:var(--text-2);display:grid;gap:6px}
input,select,textarea{width:100%;min-width:0;border:1px solid var(--line)!important;border-radius:13px!important;background:var(--input)!important;color:var(--text)!important;padding:10px 11px!important;outline:none;box-shadow:none!important;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;color-scheme:light}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{color-scheme:dark;background:#202c40!important;color:#f8fafc!important;border-color:#3b4a60!important}
input:focus,select:focus,textarea:focus{border-color:var(--brand)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 18%,transparent)!important}.cell{width:92px}.mini-input{max-width:96px;padding:7px 8px!important}.mini-input.wide{max-width:160px}.check{display:inline-flex!important;align-items:center!important;gap:8px;background:var(--surface-2)!important;border:1px solid var(--line)!important;border-radius:13px!important;padding:9px 10px!important;color:var(--text-2)!important}.check input{width:auto!important;min-width:auto!important}.painted{display:none}.invalidField{border-color:var(--danger)!important;box-shadow:0 0 0 3px rgba(220,38,38,.16)!important}

/* Buttons */
button,.btn,.mini{border:0;border-radius:13px;padding:10px 14px;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff!important;font-weight:950;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none!important;box-shadow:0 10px 22px rgba(37,99,235,.18);transition:transform .15s ease,filter .15s ease,background .15s ease}
button:hover,.btn:hover,.mini:hover{transform:translateY(-1px);filter:brightness(.98)}.btn.ghost,.ghost{background:var(--surface-2)!important;color:#1d4ed8!important;border:1px solid #bfdbfe!important;box-shadow:none!important}.btn.danger,.mini.danger,.danger{background:#fee2e2!important;color:#991b1b!important;border:1px solid #fecaca!important;box-shadow:none!important}.green{background:#16a34a!important}.orange{background:#f59e0b!important}.red{background:#dc2626!important}.mini{padding:6px 9px;border-radius:10px;font-size:12px;margin:2px;box-shadow:none;background:#e0f2fe!important;color:#075985!important;border:1px solid #bae6fd!important}
html[data-theme="dark"] .btn.ghost,html[data-theme="dark"] .ghost{background:#223047!important;color:#dbeafe!important;border-color:#3b4a60!important}html[data-theme="dark"] .btn.danger,html[data-theme="dark"] .mini.danger{background:#4a1d27!important;color:#fecaca!important;border-color:#7f1d1d!important}html[data-theme="dark"] .mini{background:#223047!important;color:#dbeafe!important;border-color:#3b4a60!important}

/* Tables and lists */
.table-wrap{overflow:auto;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface)}
table{width:100%;border-collapse:separate;border-spacing:0;background:var(--surface)!important;color:var(--text)!important}th,td{border-bottom:1px solid var(--line);padding:10px 11px;text-align:left;white-space:nowrap;color:var(--text)!important;background:var(--surface)}th{background:var(--thead)!important;color:var(--muted)!important;font-size:11px;font-weight:950;text-transform:none;letter-spacing:.02em}td small{display:block;margin-top:2px}tr:hover td{background:var(--surface-2)!important}.small-table th,.small-table td{padding:7px 6px;font-size:12px}
.order{margin:9px 0;overflow:hidden;border-radius:16px!important}.order summary{cursor:pointer;display:grid;grid-template-columns:1.1fr 1.3fr auto;gap:10px;align-items:center;padding:10px 13px;background:var(--surface-2)!important}.order summary b{font-size:13px}.order summary span{font-size:12px;color:var(--muted)!important}.order summary em{justify-self:end;font-style:normal;font-weight:950;color:#1d4ed8;background:#dbeafe;border-radius:999px;padding:5px 9px;font-size:11px}.actions{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex-wrap:wrap;padding:10px 0 0}.bulk-bar,.bulkbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:9px 10px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);margin:8px 0 10px}.record-actions{display:flex;gap:5px;justify-content:flex-end;flex-wrap:wrap}.record-badge,.stock-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:950;background:#e0f2fe;color:#075985}.stock-badge.danger,.record-badge.danger{background:#fee2e2;color:#991b1b}.stock-badge.ok{background:#dcfce7;color:#166534}.low-stock-row td{background:color-mix(in srgb,#f59e0b 10%,var(--surface))!important}

/* Dashboard */
.dashboard-v2 .dash-hero,.dash-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.dash-hero h1{margin:0 0 4px;font-size:24px}.dash-hero p{margin:0;color:var(--muted);font-weight:750}.dash-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:8px 0 16px}.dash-stat{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:16px;padding:12px 14px;box-shadow:var(--shadow-sm)}.dash-stat span{display:block;color:var(--muted)!important;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}.dash-stat b{display:block;margin-top:4px;font-size:24px;line-height:1;color:var(--text)!important}.dash-subtitle{font-size:16px;margin:8px 0 10px;color:var(--text)!important}.dash-flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}.dash-flow a,.dash-flow-card{background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:12px;color:var(--text)}

/* Company/settings/assets */
.company-grid,.form-usage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:14px 0 20px}.asset-card{padding:14px}.asset-preview{height:120px;border:1px dashed var(--line);border-radius:16px;background:var(--surface-2);display:grid;place-items:center;overflow:hidden}.asset-preview img{max-height:100%;object-fit:contain}.chips{display:flex;gap:9px;flex-wrap:wrap}.chips span{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;padding:7px 11px;font-weight:850;background:var(--surface-2)}.chips i{width:17px;height:17px;border-radius:50%;background:var(--c);border:1px solid #94a3b8}

/* Cam Balkon UI */
.cb-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:14px;align-items:start}.cb-card{overflow:hidden}.cb-card h2{margin:0;padding:13px 15px;border-bottom:1px solid var(--line);font-size:16px}.cb-card-body{padding:14px}.cb-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cb-form-grid .full{grid-column:1/-1}.cb-main{min-width:0}.cb-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.cb-svg-box{height:520px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,var(--surface-2),var(--surface-3));position:relative;overflow:hidden}.cb-svg-box svg{width:100%;height:100%;display:block}.cb-svg-grid{stroke:color-mix(in srgb,var(--line) 74%,transparent);stroke-width:1}.cb-svg-seg{stroke:var(--text);stroke-width:7;stroke-linecap:round}.cb-svg-joint,.cb-svg-pane{fill:#16a34a;stroke:var(--surface);stroke-width:2}.cb-svg-name,.cb-svg-text,.cb-svg-k,.cb-svg-dir{font-size:12px;font-weight:950;fill:var(--text);paint-order:stroke;stroke:var(--surface);stroke-width:4px}.cb-tip{position:absolute;left:12px;right:12px;bottom:12px;background:color-mix(in srgb,var(--surface) 90%,transparent);border:1px solid var(--line);border-radius:13px;padding:8px 10px;color:var(--muted);font-size:12px}.cb-bottom-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:14px;margin-top:14px}.cb-measure-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.cb-shape-buttons,.shapeBtns{display:flex;gap:8px;flex-wrap:wrap}.cb-shape-buttons button,.shapeBtn{background:var(--surface-2)!important;color:var(--text)!important;border:1px solid var(--line)!important;box-shadow:none!important}.cb-shape-buttons button.active,.shapeBtn.active{background:var(--brand)!important;color:#fff!important;border-color:var(--brand)!important}

/* Print */
body.print{background:#e5e7eb;color:#111827}.sheet{width:210mm;min-height:297mm;background:#fff;color:#111827;margin:18px auto;padding:14mm;box-shadow:var(--shadow)}.print-head{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid #111827;padding-bottom:12px;margin-bottom:16px}.print-logo{max-height:52px;max-width:160px;object-fit:contain}.ph-right{text-align:right}.group-title{display:flex;justify-content:space-between;gap:14px;background:#f1f5f9;border:1px solid #cbd5e1;padding:9px 11px;margin:10px 0;font-weight:950}.print-bottom{display:grid;grid-template-columns:1fr 260px;gap:18px;margin-top:16px}.notes,.totals{border:1px solid #cbd5e1;padding:12px}.production-sheet{padding:9mm}.production-table{font-size:9px}.production-table th,.production-table td{padding:3px;border:1px solid #d1d5db;text-align:center}.profile-box{border:1px solid #111827;margin:8px 0;padding:7px;break-inside:avoid}.profile-bar{height:24px;border:2px solid #111827;display:flex;overflow:hidden;background:#fff}.profile-bar span,.profile-bar em{display:flex;align-items:center;justify-content:center;width:var(--w);min-width:22px;border-right:1px solid #111827;font-size:8.5px;font-style:normal}.print-actions{position:fixed;right:24px;bottom:24px;display:flex;gap:8px;z-index:200}

/* Mobile: tables stay tables, horizontal scroll */
@media(max-width:1100px){.clean-sidebar-shell{grid-template-columns:76px minmax(0,1fr)}body:not(.sidebar-collapsed) .clean-sidebar-shell{grid-template-columns:76px minmax(0,1fr)}body:not(.sidebar-collapsed) .sidebar-title,body:not(.sidebar-collapsed) .menu-row span,body:not(.sidebar-collapsed) .theme-text{display:none!important}body:not(.sidebar-collapsed) .menu-row,body:not(.sidebar-collapsed) .theme-toggle{width:48px;justify-content:center;padding:0}.cb-layout{grid-template-columns:1fr}.cb-bottom-grid{grid-template-columns:1fr}.form-grid,.form-grid.small,.measure-form{grid-template-columns:1fr 1fr}.content{padding:16px}.product-tabs{margin-inline:16px}.cb-svg-box{height:430px}}
@media(max-width:680px){.site-header{height:auto;min-height:62px;padding:10px 12px;align-items:flex-start}.site-header nav{gap:6px}.site-header nav a{font-size:11.5px;padding:6px 9px}.clean-sidebar-shell{grid-template-columns:64px minmax(0,1fr);min-height:calc(100vh - 62px)}.modis-sidebar-v2{top:62px;height:calc(100vh - 62px);padding:12px 7px}.menu-row,.theme-toggle{width:44px!important;height:40px!important}.content{padding:12px}.panel{padding:14px;border-radius:18px!important}.cards,.dash-stat-grid{grid-template-columns:1fr}.form-grid,.form-grid.small,.measure-form,.cb-form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.product-tabs{margin:10px 10px 0;padding:6px;border-radius:15px}.product-tab{min-height:34px;padding:7px 11px}.table-wrap{overflow-x:auto}.order summary{grid-template-columns:1fr auto}.order summary span{grid-column:1/-1}.actions .btn{flex:1 1 auto}.cb-svg-box{height:340px}.sheet{width:auto;min-height:auto;margin:0;padding:8mm}.print-actions{display:none}}

@media print{.site-header,.modis-sidebar-v2,.product-tabs,.print-actions{display:none!important}.clean-sidebar-shell{display:block}.workspace,.content{padding:0;margin:0;max-width:none;background:#fff}.panel,.card{box-shadow:none!important}body.print{background:#fff}.sheet{margin:0;width:auto;min-height:auto;box-shadow:none;padding:8mm}a[href]::after{content:""}}

/* ==========================================================
   MODIS Dashboard + stable subnav after clean theme rebuild
   ========================================================== */
.modis-tablet-dashboard{display:block!important;width:100%}
.tablet-hero{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin:0 0 18px!important;padding:20px!important;background:linear-gradient(135deg,color-mix(in srgb,var(--page-accent,#3d68ff) 18%,var(--surface)),var(--surface))!important;border:1px solid var(--line)!important;border-radius:26px!important;box-shadow:var(--shadow-sm)!important;color:var(--text)!important}
.tablet-hero small{display:block;margin-bottom:8px;color:var(--page-accent,#3d68ff)!important;font-size:12px;font-weight:950;letter-spacing:.12em;text-transform:uppercase}.tablet-hero h1{margin:0!important;color:var(--text)!important;font-size:30px!important;line-height:1.05;font-weight:950}.tablet-hero p{margin:8px 0 0!important;color:var(--muted)!important;max-width:660px;font-weight:750}.tablet-hero-actions{display:flex!important;gap:9px!important;flex-wrap:wrap;justify-content:flex-end}.dashboard-widget-picker{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;padding:12px 14px;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:18px!important;box-shadow:var(--shadow-sm)!important}.dashboard-widget-picker>div{display:flex;flex-wrap:wrap;gap:8px}.dashboard-widget-picker label{display:inline-flex;align-items:center;gap:6px;margin:0;padding:7px 10px;border-radius:999px;background:var(--surface-2)!important;border:1px solid var(--line)!important;color:var(--text)!important;font-size:12px;font-weight:900}.tablet-dashboard-grid{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:14px!important;align-items:stretch!important}.tablet-card{grid-column:span 6;position:relative;overflow:hidden;background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:24px!important;padding:18px!important;box-shadow:var(--shadow-sm)!important;min-height:170px}.tablet-card::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--page-accent,#3d68ff),transparent);opacity:.95}.dashboard-overview,.stock-chart-widget,.offer-chart-widget{grid-column:span 6}.flow-widget,.latest-widget{grid-column:span 7}.production-widget,.radial-widget,.record-widget{grid-column:span 5}.shortcuts-widget,.products-widget{grid-column:span 6}.tablet-card-title{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin-bottom:14px!important}.tablet-card-title h2{margin:0!important;font-size:17px!important;font-weight:950!important;color:var(--text)!important}.tablet-card-title span,.tablet-card-title a{color:var(--muted)!important;font-size:12px!important;font-weight:900}.smart-stat-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}.smart-stat-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))!important}.smart-stat-grid a{display:grid!important;gap:6px!important;padding:14px!important;border-radius:18px!important;background:linear-gradient(180deg,var(--surface-2),var(--surface-3))!important;border:1px solid var(--line)!important;color:var(--text)!important;min-height:122px;align-content:center;transition:transform .15s ease,border-color .15s ease,background .15s ease}.smart-stat-grid a:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--page-accent,#3d68ff) 42%,var(--line))!important}.smart-stat-grid i{width:36px;height:36px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:var(--page-accent,#3d68ff)!important;color:#000!important;font-style:normal;font-weight:950}.smart-stat-grid b{display:block;font-size:28px;line-height:1;color:var(--text)!important}.smart-stat-grid span{display:block;color:var(--muted)!important;font-size:12px!important;font-weight:900}.smart-flow{display:grid;gap:9px}.smart-flow a{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-radius:16px;background:var(--surface-2)!important;border:1px solid var(--line)!important;overflow:hidden;color:var(--text)!important}.smart-flow a em{position:absolute;left:0;bottom:0;height:4px;width:var(--flow,10%);background:var(--page-accent,#3d68ff);border-radius:0 999px 999px 0}.smart-flow span{display:flex;align-items:center;gap:10px;color:var(--text)!important;font-weight:900}.smart-flow i{width:25px;height:25px;border-radius:9px;background:var(--page-accent,#3d68ff);color:#000;display:inline-flex;align-items:center;justify-content:center;font-style:normal;font-weight:950}.smart-flow b{font-size:20px;color:var(--text)!important}.stock-bars{display:grid;gap:9px}.stock-bar{display:grid;grid-template-columns:110px 54px 1fr;gap:10px;align-items:center;color:var(--text)!important}.stock-bar span,.stock-bar b{font-weight:900;color:var(--text)!important}.stock-bar em{height:12px;border-radius:999px;background:linear-gradient(90deg,var(--page-accent,#3d68ff) var(--bar,10%),var(--surface-3) var(--bar,10%));border:1px solid var(--line)}.stock-mini-stats{display:flex;gap:10px;margin-top:12px}.stock-mini-stats span{flex:1;padding:10px;border-radius:16px;background:var(--surface-2);border:1px solid var(--line);color:var(--muted)!important;font-size:12px;font-weight:900}.stock-mini-stats b{display:block;color:var(--text)!important;font-size:22px}.offer-bars{display:flex;align-items:end;gap:10px;min-height:170px;padding:10px 2px}.offer-bars span{flex:1;min-width:34px;display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--muted)!important;font-size:11px;font-weight:900}.offer-bars i{width:100%;height:var(--bar,20%);min-height:20px;border-radius:12px 12px 6px 6px;background:linear-gradient(180deg,var(--page-accent,#3d68ff),color-mix(in srgb,var(--page-accent,#3d68ff) 55%,var(--surface-3)))}.offer-bars em{font-style:normal;color:var(--text)!important;font-size:10px;white-space:nowrap}.radial-meter{width:154px;height:154px;margin:12px auto 0;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--page-accent,#3d68ff) var(--value,0%),var(--surface-3) 0);position:relative}.radial-meter::after{content:"";position:absolute;inset:14px;border-radius:50%;background:var(--surface)}.radial-meter b,.radial-meter span{position:relative;z-index:1}.radial-meter b{font-size:36px;color:var(--text)!important}.radial-meter span{display:block;color:var(--muted)!important;font-weight:900}.smart-shortcuts,.device-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.smart-shortcuts a,.device-grid a{display:flex;align-items:center;gap:10px;padding:12px;border-radius:16px;background:var(--surface-2)!important;border:1px solid var(--line)!important;color:var(--text)!important}.smart-shortcuts i,.device-grid i{width:34px;height:34px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:var(--page-accent,#3d68ff);color:#000;font-style:normal;font-weight:950}.smart-shortcuts span,.device-grid span{font-weight:900;color:var(--text)!important}.smart-shortcuts b,.device-grid b{margin-left:auto;color:var(--muted)!important}.smart-list{display:grid;gap:8px}.smart-list a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border-radius:15px;background:var(--surface-2)!important;border:1px solid var(--line)!important;color:var(--text)!important}.smart-list b{color:var(--text)!important}.smart-list small{display:block;color:var(--muted)!important}.smart-list em{font-style:normal;color:#000;background:var(--page-accent,#3d68ff);border-radius:999px;padding:5px 8px;font-size:11px;font-weight:950;white-space:nowrap}
html[data-theme="dark"] .tablet-hero{background:linear-gradient(135deg,color-mix(in srgb,var(--page-accent,#3d68ff) 22%,var(--surface)),var(--surface))!important}html[data-theme="dark"] .smart-stat-grid a,html[data-theme="dark"] .smart-flow a,html[data-theme="dark"] .smart-shortcuts a,html[data-theme="dark"] .device-grid a,html[data-theme="dark"] .smart-list a{background:var(--surface-2)!important}
@media(max-width:1100px){.tablet-dashboard-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}.tablet-card,.dashboard-overview,.stock-chart-widget,.offer-chart-widget,.flow-widget,.latest-widget,.radial-widget,.record-widget,.shortcuts-widget,.products-widget{grid-column:span 6!important}.smart-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:680px){.tablet-hero{display:block!important;padding:16px!important}.tablet-hero-actions{justify-content:flex-start!important;margin-top:12px}.dashboard-widget-picker{display:block}.dashboard-widget-picker>div{margin:10px 0}.smart-stat-grid,.smart-stat-grid.two,.smart-shortcuts,.device-grid{grid-template-columns:1fr!important}.stock-bar{grid-template-columns:80px 48px 1fr}.tablet-card{padding:15px!important;border-radius:20px!important}}

/* MODIS PJAX: header ve sidebar asla geçiş efektine girmez; sadece içerik yumuşak değişir. */
.site-header,.fixed-light-header,.modis-sidebar-v2{
  opacity:1!important;
  transform:none!important;
  filter:none!important;
  animation:none!important;
  transition:none!important;
  will-change:auto!important;
}
.workspace.content-loading .content{
  opacity:.72;
  transform:translateY(3px);
  transition:opacity .10s ease,transform .10s ease;
  pointer-events:none;
}
.workspace:not(.content-loading) .content{
  opacity:1;
  transform:none;
  transition:opacity .10s ease,transform .10s ease;
}

/* ==========================================================
   Dashboard compact editor + timeline/progress fix
   ========================================================== */
.dashboard-editor{
  margin:0 0 12px!important;
  border:1px solid var(--line)!important;
  border-radius:18px!important;
  background:var(--surface)!important;
  box-shadow:var(--shadow-sm)!important;
  overflow:hidden!important;
}
.dashboard-editor>summary{
  list-style:none!important;
  cursor:pointer!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:11px 13px!important;
  color:var(--text)!important;
}
.dashboard-editor>summary::-webkit-details-marker{display:none!important}
.dashboard-editor>summary b{display:block!important;color:var(--text)!important;font-size:13px!important;font-weight:950!important}
.dashboard-editor>summary small{display:block!important;color:var(--muted)!important;font-size:11px!important;font-weight:800!important;margin-top:2px!important}
.dashboard-editor>summary em{font-style:normal!important;border-radius:999px!important;background:color-mix(in srgb,var(--page-accent,#3d68ff) 16%,var(--surface-2))!important;color:var(--text)!important;border:1px solid color-mix(in srgb,var(--page-accent,#3d68ff) 30%,var(--line))!important;padding:7px 10px!important;font-size:12px!important;font-weight:950!important}
.dashboard-editor[open]>summary{border-bottom:1px solid var(--line)!important}
.dashboard-editor .dashboard-widget-picker{display:block!important;margin:0!important;padding:12px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.dashboard-widget-list{display:flex!important;flex-wrap:wrap!important;gap:7px!important;margin-bottom:11px!important}
.dashboard-widget-list label{display:inline-flex!important;align-items:center!important;gap:6px!important;margin:0!important;padding:7px 10px!important;border-radius:999px!important;background:var(--surface-2)!important;border:1px solid var(--line)!important;color:var(--text)!important;font-size:12px!important;font-weight:900!important}
.dashboard-widget-list label:has(input:checked){background:color-mix(in srgb,var(--page-accent,#3d68ff) 22%,var(--surface-2))!important;border-color:color-mix(in srgb,var(--page-accent,#3d68ff) 45%,var(--line))!important}
.dashboard-widget-list input{width:auto!important;accent-color:var(--page-accent,#3d68ff)!important}
.dashboard-editor-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important}

/* Dashboard boxes were too large after theme rebuild; keep them compact and readable. */
.modis-tablet-dashboard .tablet-hero{padding:15px!important;border-radius:20px!important;margin-bottom:12px!important}
.modis-tablet-dashboard .tablet-hero h1{font-size:24px!important}
.modis-tablet-dashboard .tablet-hero p{font-size:13px!important;margin-top:5px!important}
.modis-tablet-dashboard .tablet-dashboard-grid{gap:10px!important}
.modis-tablet-dashboard .tablet-card{padding:12px!important;border-radius:18px!important;min-height:118px!important}
.modis-tablet-dashboard .tablet-card-title{margin-bottom:9px!important}
.modis-tablet-dashboard .tablet-card-title h2{font-size:15px!important}
.modis-tablet-dashboard .smart-stat-grid{gap:7px!important}
.modis-tablet-dashboard .smart-stat-grid a{min-height:78px!important;padding:9px 10px!important;border-radius:14px!important;gap:4px!important}
.modis-tablet-dashboard .smart-stat-grid i{width:28px!important;height:28px!important;border-radius:10px!important;font-size:13px!important}
.modis-tablet-dashboard .smart-stat-grid b{font-size:22px!important}
.modis-tablet-dashboard .smart-stat-grid span{font-size:11px!important}
.modis-tablet-dashboard .smart-flow{gap:7px!important}
.modis-tablet-dashboard .smart-flow a{padding:9px 10px!important;border-radius:13px!important}
.modis-tablet-dashboard .smart-flow i{width:22px!important;height:22px!important;border-radius:8px!important;font-size:11px!important}
.modis-tablet-dashboard .smart-flow b{font-size:17px!important}
.modis-tablet-dashboard .stock-bar{grid-template-columns:95px 44px 1fr!important;gap:8px!important;font-size:12px!important}
.modis-tablet-dashboard .stock-bar em{height:9px!important}
.modis-tablet-dashboard .stock-mini-stats{gap:7px!important;margin-top:8px!important}
.modis-tablet-dashboard .stock-mini-stats span{padding:7px 8px!important;border-radius:12px!important;font-size:11px!important}
.modis-tablet-dashboard .stock-mini-stats b{font-size:18px!important}
.modis-tablet-dashboard .offer-bars{min-height:115px!important;gap:7px!important;padding:5px 0!important}
.modis-tablet-dashboard .offer-bars i{min-height:14px!important;border-radius:9px 9px 5px 5px!important}
.modis-tablet-dashboard .radial-meter{width:118px!important;height:118px!important;margin-top:4px!important}
.modis-tablet-dashboard .radial-meter::after{inset:11px!important}
.modis-tablet-dashboard .radial-meter b{font-size:28px!important}
.modis-tablet-dashboard .smart-shortcuts,.modis-tablet-dashboard .device-grid{gap:7px!important}
.modis-tablet-dashboard .smart-shortcuts a,.modis-tablet-dashboard .device-grid a{padding:9px!important;border-radius:13px!important}
.modis-tablet-dashboard .smart-shortcuts i,.modis-tablet-dashboard .device-grid i{width:28px!important;height:28px!important;border-radius:10px!important;font-size:12px!important}
.modis-tablet-dashboard .smart-list{gap:6px!important}
.modis-tablet-dashboard .smart-list a{padding:8px 9px!important;border-radius:12px!important}
.modis-tablet-dashboard .smart-list em{padding:4px 7px!important;font-size:10px!important}

/* Listing row progress/timeline bar fix. */
.order-timeline{
  position:relative!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(72px,1fr))!important;
  gap:0!important;
  align-items:start!important;
  width:100%!important;
  margin-top:10px!important;
  padding:4px 2px 0!important;
  min-width:340px!important;
  --track-bg:var(--surface-3)!important;
  --track-fill:var(--page-accent,#3d68ff)!important;
}
.order-timeline-track{
  position:absolute!important;
  left:9%!important;
  right:9%!important;
  top:15px!important;
  height:6px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,var(--track-fill) var(--progress,0%),var(--track-bg) var(--progress,0%))!important;
  border:1px solid var(--line)!important;
  z-index:0!important;
}
.order-step{
  position:relative!important;
  z-index:1!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:4px!important;
  color:var(--muted)!important;
  font-size:10px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
.order-step i{
  display:block!important;
  width:18px!important;
  height:18px!important;
  border-radius:999px!important;
  background:var(--surface-2)!important;
  border:2px solid var(--line)!important;
  box-shadow:0 0 0 3px var(--surface)!important;
}
.order-step.done{color:var(--text)!important}
.order-step.done i{background:var(--track-fill)!important;border-color:var(--track-fill)!important}
.order-step.done i::after{content:'✓';display:block;text-align:center;line-height:14px;color:#000;font-size:10px;font-weight:1000}
.order-step b{color:inherit!important;font-size:10px!important;font-weight:900!important}
html[data-theme="dark"] .order-step i{box-shadow:0 0 0 3px var(--surface)!important}
@media(max-width:680px){
  .modis-tablet-dashboard .tablet-card{min-height:auto!important}
  .order-timeline{overflow-x:auto!important;padding-bottom:5px!important}
}

/* ==========================================================
   Compact listing progress fix
   Progress bar satırı büyütmesin; her sipariş ana satırı tek satır kalır.
   ========================================================== */
.order.compact-order{margin:6px 0!important;border-radius:14px!important}
.order.compact-order>summary{
  display:grid!important;
  grid-template-columns:auto minmax(120px,1fr) minmax(150px,1.15fr) auto minmax(170px,230px)!important;
  align-items:center!important;
  gap:8px!important;
  min-height:42px!important;
  padding:7px 10px!important;
  line-height:1.1!important;
}
.order.compact-order.no-select>summary{
  grid-template-columns:minmax(130px,1fr) minmax(150px,1.15fr) auto minmax(170px,230px)!important;
}
.order.compact-order>summary b,
.order.compact-order>summary span,
.order.compact-order>summary em{min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important}
.order.compact-order>summary b{font-size:12.5px!important;font-weight:950!important}
.order.compact-order>summary span{font-size:11.5px!important;color:var(--muted)!important}
.order.compact-order>summary em{justify-self:end!important;padding:4px 8px!important;font-size:10.5px!important;line-height:1!important}
.order.compact-order .select-pill{height:26px!important;padding:4px 8px!important;font-size:10.5px!important;white-space:nowrap!important;margin:0!important}
.order.compact-order .order-timeline{
  align-self:center!important;
  width:100%!important;
  min-width:0!important;
  height:24px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  display:grid!important;
  grid-template-columns:repeat(4,1fr)!important;
  align-items:center!important;
}
.order.compact-order .order-timeline-track{
  left:8%!important;
  right:8%!important;
  top:10px!important;
  height:4px!important;
  border-width:0!important;
}
.order.compact-order .order-step{height:24px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;font-size:0!important;line-height:1!important}
.order.compact-order .order-step i{width:14px!important;height:14px!important;border-width:2px!important;box-shadow:0 0 0 2px var(--surface)!important}
.order.compact-order .order-step.done i::after{font-size:8px!important;line-height:10px!important}
.order.compact-order .order-step b{display:none!important}
@media(max-width:900px){
  .order.compact-order>summary,
  .order.compact-order.no-select>summary{
    grid-template-columns:auto minmax(130px,1fr) auto minmax(150px,210px)!important;
    overflow-x:auto!important;
  }
  .order.compact-order.no-select>summary{grid-template-columns:minmax(130px,1fr) auto minmax(150px,210px)!important}
  .order.compact-order>summary span{display:none!important}
}
@media(max-width:560px){
  .order.compact-order>summary,
  .order.compact-order.no-select>summary{min-width:520px!important}
}

/* ==========================================================
   2026-06-15 Liste / Progress / Stok / Dashboard widget UI fix
   ========================================================== */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Sipariş aşaması açıklamalı compact progress */
.order.compact-order>summary{
  grid-template-columns:auto minmax(150px,1fr) minmax(150px,1fr) auto minmax(260px,340px)!important;
  min-height:42px!important;
  padding:7px 10px!important;
}
.order.compact-order.no-select>summary{
  grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) auto minmax(260px,340px)!important;
}
.order.compact-order .order-timeline{
  display:grid!important;
  grid-template-columns:112px 1fr!important;
  align-items:center!important;
  gap:9px!important;
  height:28px!important;
  min-width:260px!important;
  margin:0!important;
  padding:0!important;
  position:relative!important;
}
.order-status-current{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:24px!important;
  padding:0 9px!important;
  border-radius:999px!important;
  color:var(--text)!important;
  background:color-mix(in srgb,var(--page-accent,#3d68ff) 16%,var(--surface-2))!important;
  border:1px solid color-mix(in srgb,var(--page-accent,#3d68ff) 35%,var(--line))!important;
  font-size:10.5px!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
.order.compact-order .order-timeline-track{
  position:absolute!important;
  left:calc(112px + 9px + 7%)!important;
  right:7%!important;
  top:12px!important;
  height:4px!important;
  background:linear-gradient(90deg,var(--track-fill) var(--progress,0%),var(--track-bg) var(--progress,0%))!important;
  z-index:0!important;
}
.order.compact-order .order-step{
  grid-row:1!important;
  z-index:1!important;
  height:28px!important;
  justify-content:center!important;
}
.order.compact-order .order-step:nth-of-type(2){grid-column:2!important}
.order.compact-order .order-step:nth-of-type(3){grid-column:2!important;transform:translateX(33%)!important}
.order.compact-order .order-step:nth-of-type(4){grid-column:2!important;transform:translateX(66%)!important}
.order.compact-order .order-step:nth-of-type(5){grid-column:2!important;transform:translateX(99%)!important}
.order.compact-order .order-step i{width:14px!important;height:14px!important;box-shadow:0 0 0 2px var(--surface)!important}
.order.compact-order .order-step b{display:none!important}
.order.compact-order .select-pill{
  width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;margin:0!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border-radius:12px!important;background:var(--surface-2)!important;border:1px solid var(--line)!important;
}
.order.compact-order .select-pill input,
.row-check,
.mirror-check,
.stock-check,
[data-check-all],
[data-stock-check-all]{width:20px!important;height:20px!important;accent-color:var(--page-accent,#3d68ff)!important;cursor:pointer!important}
.order.compact-order .select-pill:hover{background:color-mix(in srgb,var(--page-accent,#3d68ff) 14%,var(--surface-2))!important;border-color:color-mix(in srgb,var(--page-accent,#3d68ff) 35%,var(--line))!important}
@media(max-width:980px){
  .order.compact-order>summary,.order.compact-order.no-select>summary{min-width:720px!important;grid-template-columns:auto 160px 170px auto 300px!important;overflow-x:auto!important}
  .order.compact-order.no-select>summary{grid-template-columns:170px 170px auto 300px!important}
}

/* Ay listeleme butonları */
.month-tabs{
  display:flex!important;align-items:center!important;gap:8px!important;overflow-x:auto!important;
  padding:8px!important;margin:12px 0!important;border-radius:18px!important;
  background:var(--surface)!important;border:1px solid var(--line)!important;box-shadow:var(--shadow-sm)!important;
}
.month-tab{
  display:inline-flex!important;align-items:center!important;gap:7px!important;flex:0 0 auto!important;
  min-height:34px!important;padding:0 11px!important;border-radius:999px!important;
  background:var(--surface-2)!important;border:1px solid var(--line)!important;color:var(--text)!important;
  font-size:12px!important;font-weight:950!important;text-decoration:none!important;
  transition:background .16s ease, transform .16s ease, border-color .16s ease!important;
}
.month-tab small{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:22px!important;height:22px!important;padding:0 6px!important;border-radius:999px!important;background:var(--surface)!important;color:var(--muted)!important;font-size:11px!important;font-weight:1000!important}
.month-tab:hover{transform:translateY(-1px)!important;background:color-mix(in srgb,var(--page-accent,#3d68ff) 14%,var(--surface-2))!important;border-color:color-mix(in srgb,var(--page-accent,#3d68ff) 35%,var(--line))!important}
.month-tab.active{background:var(--page-accent,#3d68ff)!important;border-color:var(--page-accent,#3d68ff)!important;color:#111827!important;box-shadow:0 8px 22px color-mix(in srgb,var(--page-accent,#3d68ff) 28%,transparent)!important}
.month-tab.active small{background:rgba(255,255,255,.42)!important;color:#111827!important}
html[data-theme="dark"] .month-tab.active{color:#05070a!important}

/* Toplu işlem satırı tek sıra */
.bulk-bar,.visible-bulk,.bulkbar{
  display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;
  width:100%!important;overflow-x:auto!important;padding:8px!important;border-radius:16px!important;
  background:var(--surface)!important;border:1px solid var(--line)!important;margin:10px 0!important;
}
.bulk-bar .check,.bulk-check,.select-all{display:inline-flex!important;align-items:center!important;gap:8px!important;white-space:nowrap!important;margin:0!important;min-height:34px!important;color:var(--text)!important;font-weight:900!important}
.bulk-bar select{min-width:230px!important;height:34px!important;padding:0 10px!important;flex:0 0 auto!important}
.bulk-bar .btn,.bulkbar .btn{height:34px!important;padding:0 12px!important;white-space:nowrap!important;flex:0 0 auto!important}
.bulk-bar .selected-count,.bulkbar .stock-selected-count{margin-left:auto!important;white-space:nowrap!important;color:var(--muted)!important;font-size:12px!important;font-weight:900!important;flex:0 0 auto!important}

/* Stok yönetimi üst kartları ve giriş alanı */
.stock-alert-row{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:12px 0 14px!important;
}
.stock-alert-row article{
  position:relative!important;overflow:hidden!important;border:1px solid var(--line)!important;border-radius:18px!important;
  padding:14px 15px!important;background:linear-gradient(135deg,color-mix(in srgb,var(--page-accent,#3d68ff) 13%,var(--surface)),var(--surface-2))!important;
  box-shadow:var(--shadow-sm)!important;min-height:78px!important;
}
.stock-alert-row article::after{content:'';position:absolute;right:-18px;top:-18px;width:70px;height:70px;border-radius:999px;background:color-mix(in srgb,var(--page-accent,#3d68ff) 18%,transparent)!important}
.stock-alert-row article b{display:block!important;font-size:28px!important;line-height:1!important;color:var(--text)!important;font-weight:1000!important}
.stock-alert-row article span{display:block!important;margin-top:7px!important;color:var(--muted)!important;font-size:12px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.03em!important}
.stock-alert-row article.danger{background:linear-gradient(135deg,color-mix(in srgb,#ef4444 17%,var(--surface)),var(--surface-2))!important;border-color:color-mix(in srgb,#ef4444 38%,var(--line))!important}
.stock-entry,.stock-page .form-grid.small{
  display:grid!important;grid-template-columns:repeat(4,minmax(145px,1fr)) auto!important;gap:8px!important;align-items:end!important;
  padding:10px!important;border-radius:18px!important;background:var(--surface)!important;border:1px solid var(--line)!important;box-shadow:var(--shadow-sm)!important;
}
.stock-entry label,.stock-page .form-grid.small label{margin:0!important;color:var(--muted)!important;font-size:11px!important;font-weight:900!important}
.stock-entry input,.stock-entry select,.stock-page .form-grid.small input,.stock-page .form-grid.small select{height:34px!important;border-radius:11px!important;font-size:12px!important}
.stock-entry button,.stock-page .form-grid.small button{height:34px!important;padding:0 12px!important;white-space:nowrap!important;border-radius:11px!important}
@media(max-width:980px){
  .stock-alert-row{grid-template-columns:1fr!important}
  .stock-entry,.stock-page .form-grid.small{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important}
  .stock-entry label,.stock-page .form-grid.small label{min-width:150px!important;flex:0 0 auto!important}
}

/* Dashboard widget tasarımı: gönderilen kart/infografik stiline yakın */
.modis-tablet-dashboard .smart-stat-grid a{
  position:relative!important;overflow:hidden!important;isolation:isolate!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--page-accent,#3d68ff) 16%,var(--surface)),var(--surface-2))!important;
  border:1px solid color-mix(in srgb,var(--page-accent,#3d68ff) 26%,var(--line))!important;
  border-radius:22px!important;box-shadow:0 14px 30px rgba(15,23,42,.10)!important;
  min-height:94px!important;padding:14px 15px!important;
  display:grid!important;grid-template-columns:46px 1fr!important;grid-template-rows:auto auto!important;column-gap:12px!important;row-gap:2px!important;
}
.modis-tablet-dashboard .smart-stat-grid a::before{content:'';position:absolute;right:-28px;top:-34px;width:112px;height:112px;border-radius:999px;background:color-mix(in srgb,var(--page-accent,#3d68ff) 20%,transparent)!important;z-index:-1!important}
.modis-tablet-dashboard .smart-stat-grid a::after{content:'';position:absolute;right:24px;bottom:14px;width:42px;height:6px;border-radius:999px;background:color-mix(in srgb,var(--page-accent,#3d68ff) 28%,transparent)!important}
.modis-tablet-dashboard .smart-stat-grid a i{grid-row:1/3!important;width:46px!important;height:46px!important;border-radius:17px!important;background:var(--page-accent,#3d68ff)!important;color:#111827!important;box-shadow:0 10px 22px color-mix(in srgb,var(--page-accent,#3d68ff) 25%,transparent)!important;font-size:18px!important}
.modis-tablet-dashboard .smart-stat-grid a b{font-size:27px!important;line-height:1!important;color:var(--text)!important;align-self:end!important}
.modis-tablet-dashboard .smart-stat-grid a span{font-size:12px!important;font-weight:900!important;color:var(--muted)!important;align-self:start!important}
.modis-tablet-dashboard .smart-stat-grid a:nth-child(1){--page-accent:#7c3aed!important}
.modis-tablet-dashboard .smart-stat-grid a:nth-child(2){--page-accent:#0ea5e9!important}
.modis-tablet-dashboard .smart-stat-grid a:nth-child(3){--page-accent:#22c55e!important}
.modis-tablet-dashboard .smart-stat-grid a:nth-child(4){--page-accent:#f59e0b!important}
.modis-tablet-dashboard .tablet-card{box-shadow:0 14px 34px rgba(15,23,42,.09)!important}
html[data-theme="dark"] .modis-tablet-dashboard .smart-stat-grid a{box-shadow:0 14px 34px rgba(0,0,0,.22)!important}

/* ==========================================================
   2026-06-15 FINAL DASHBOARD LAYOUT REBUILD
   Screenshot-inspired, balanced dashboard widgets.
   This overrides previous oversized/scattered dashboard rules only.
   ========================================================== */
.modis-tablet-dashboard{
  --dash-gap:14px;
  --dash-blue:#4f7df5;
  --dash-pink:#ff5b8f;
  --dash-soft:#eef4ff;
  width:100%!important;
}
.modis-tablet-dashboard .tablet-hero{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:14px 16px!important;
  margin-bottom:14px!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--page-accent,#4f7df5) 12%,var(--surface)),var(--surface))!important;
  border:1px solid var(--line)!important;
  box-shadow:var(--shadow-sm)!important;
}
.modis-tablet-dashboard .tablet-hero h1{font-size:23px!important;line-height:1.08!important;margin:0!important}
.modis-tablet-dashboard .tablet-hero p{font-size:12.5px!important;margin:5px 0 0!important;color:var(--muted)!important}
.modis-tablet-dashboard .tablet-dashboard-grid{
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  grid-auto-flow:dense!important;
  gap:var(--dash-gap)!important;
  align-items:stretch!important;
}
.modis-tablet-dashboard .tablet-card{
  position:relative!important;
  overflow:hidden!important;
  min-height:0!important;
  padding:14px!important;
  border-radius:22px!important;
  background:var(--surface)!important;
  border:1px solid var(--line)!important;
  box-shadow:0 12px 28px rgba(15,23,42,.07)!important;
  color:var(--text)!important;
}
.modis-tablet-dashboard .tablet-card::before{display:none!important}
html[data-theme="dark"] .modis-tablet-dashboard .tablet-card{box-shadow:0 14px 32px rgba(0,0,0,.22)!important}
.modis-tablet-dashboard .tablet-card-title{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-bottom:11px!important;
}
.modis-tablet-dashboard .tablet-card-title h2{font-size:14px!important;line-height:1!important;margin:0!important;color:var(--page-accent,#4f7df5)!important;font-weight:1000!important}
.modis-tablet-dashboard .tablet-card-title span,.modis-tablet-dashboard .tablet-card-title a{font-size:11px!important;color:var(--muted)!important;font-weight:900!important}

/* Balanced positions like the reference: large left area + stacked right area */
.modis-tablet-dashboard .dashboard-overview{grid-column:span 8!important;grid-row:span 1!important}
.modis-tablet-dashboard .flow-widget{grid-column:span 8!important;grid-row:span 1!important}
.modis-tablet-dashboard .radial-widget{grid-column:span 4!important;grid-row:span 2!important}
.modis-tablet-dashboard .shortcuts-widget{grid-column:span 4!important;grid-row:span 1!important}
.modis-tablet-dashboard .products-widget{grid-column:span 4!important;grid-row:span 1!important}
.modis-tablet-dashboard .stock-chart-widget{grid-column:span 4!important;grid-row:span 1!important}
.modis-tablet-dashboard .offer-chart-widget{grid-column:span 4!important;grid-row:span 1!important}
.modis-tablet-dashboard .record-widget{grid-column:span 4!important;grid-row:span 1!important}
.modis-tablet-dashboard .latest-widget{grid-column:span 8!important;grid-row:span 1!important}

/* Overview: three/four clean white panels in one row, not scattered blocks */
.modis-tablet-dashboard .dashboard-overview .smart-stat-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:0!important;
  border-radius:16px!important;
  overflow:hidden!important;
  border:1px solid var(--line)!important;
  background:var(--surface-2)!important;
}
.modis-tablet-dashboard .dashboard-overview .smart-stat-grid a{
  min-height:82px!important;
  padding:12px 10px!important;
  border:0!important;
  border-right:1px solid var(--line)!important;
  border-radius:0!important;
  background:var(--surface)!important;
  box-shadow:none!important;
  display:grid!important;
  grid-template-columns:34px 1fr!important;
  grid-template-rows:1fr auto!important;
  column-gap:8px!important;
  align-items:center!important;
}
.modis-tablet-dashboard .dashboard-overview .smart-stat-grid a:last-child{border-right:0!important}
.modis-tablet-dashboard .dashboard-overview .smart-stat-grid a::before,.modis-tablet-dashboard .dashboard-overview .smart-stat-grid a::after{display:none!important}
.modis-tablet-dashboard .dashboard-overview .smart-stat-grid i{
  grid-row:1/3!important;
  width:31px!important;height:31px!important;border-radius:999px!important;background:transparent!important;color:var(--page-accent,#4f7df5)!important;
  border:2px solid currentColor!important;box-shadow:none!important;font-size:14px!important;
}
.modis-tablet-dashboard .dashboard-overview .smart-stat-grid b{font-size:25px!important;color:var(--page-accent,#4f7df5)!important;line-height:1!important;align-self:end!important}
.modis-tablet-dashboard .dashboard-overview .smart-stat-grid span{font-size:10.5px!important;color:#ff5b8f!important;font-weight:950!important;align-self:start!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* Flow cards: compact colored tiles in a tidy row */
.modis-tablet-dashboard .smart-flow{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}
.modis-tablet-dashboard .smart-flow a{
  min-height:86px!important;
  display:grid!important;align-content:center!important;justify-items:center!important;text-align:center!important;gap:6px!important;
  padding:11px!important;border-radius:18px!important;border:0!important;background:var(--page-accent,#4f7df5)!important;color:#fff!important;
  box-shadow:0 12px 24px color-mix(in srgb,var(--page-accent,#4f7df5) 25%,transparent)!important;
}
.modis-tablet-dashboard .smart-flow a:nth-child(even){background:#ff5b8f!important;box-shadow:0 12px 24px rgba(255,91,143,.23)!important}
.modis-tablet-dashboard .smart-flow a span{display:grid!important;gap:6px!important;color:#fff!important;font-size:11px!important;font-weight:950!important;justify-items:center!important}
.modis-tablet-dashboard .smart-flow a i{width:34px!important;height:34px!important;border-radius:12px!important;background:rgba(255,255,255,.22)!important;color:#fff!important;font-size:13px!important}
.modis-tablet-dashboard .smart-flow a b{font-size:20px!important;color:#fff!important}
.modis-tablet-dashboard .smart-flow a em{display:none!important}

/* Radial/temp style widget: large, centered, balanced */
.modis-tablet-dashboard .radial-widget{display:grid!important;align-content:center!important;justify-items:center!important;background:linear-gradient(135deg,#4f7df5,#5d8cff)!important;color:#fff!important}
.modis-tablet-dashboard .radial-widget .tablet-card-title{width:100%!important}.modis-tablet-dashboard .radial-widget h2,.modis-tablet-dashboard .radial-widget span{color:#fff!important}
.modis-tablet-dashboard .radial-meter{width:156px!important;height:156px!important;margin:4px auto!important;background:conic-gradient(#fff var(--value,0%),rgba(255,255,255,.22) 0)!important;box-shadow:inset 0 0 0 12px rgba(255,255,255,.16),0 10px 28px rgba(0,0,0,.12)!important}
.modis-tablet-dashboard .radial-meter::after{inset:19px!important;background:#fff!important}.modis-tablet-dashboard .radial-meter b{font-size:35px!important;color:#4f7df5!important}.modis-tablet-dashboard .radial-meter span{color:#ff5b8f!important;font-size:11px!important}

/* Right column widgets */
.modis-tablet-dashboard .smart-shortcuts,.modis-tablet-dashboard .device-grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;
}
.modis-tablet-dashboard .smart-shortcuts a,.modis-tablet-dashboard .device-grid a{
  min-height:70px!important;padding:10px!important;border-radius:15px!important;background:var(--page-accent,#4f7df5)!important;border:0!important;color:#fff!important;
  display:grid!important;justify-items:center!important;align-content:center!important;text-align:center!important;gap:5px!important;
}
.modis-tablet-dashboard .smart-shortcuts a:nth-child(even),.modis-tablet-dashboard .device-grid a:nth-child(even){background:#ff5b8f!important}
.modis-tablet-dashboard .smart-shortcuts i,.modis-tablet-dashboard .device-grid i{width:30px!important;height:30px!important;border-radius:10px!important;background:rgba(255,255,255,.2)!important;color:#fff!important;font-size:13px!important}
.modis-tablet-dashboard .smart-shortcuts span,.modis-tablet-dashboard .device-grid span{font-size:11px!important;color:#fff!important;font-weight:950!important}.modis-tablet-dashboard .smart-shortcuts b,.modis-tablet-dashboard .device-grid b{display:none!important}

/* Charts and lists made compact */
.modis-tablet-dashboard .stock-bar{grid-template-columns:78px 42px 1fr!important;gap:8px!important;font-size:11px!important}.modis-tablet-dashboard .stock-bar em{height:8px!important}.modis-tablet-dashboard .stock-mini-stats span{padding:7px!important;font-size:10.5px!important}.modis-tablet-dashboard .stock-mini-stats b{font-size:18px!important}
.modis-tablet-dashboard .offer-bars{min-height:118px!important}.modis-tablet-dashboard .smart-list a{padding:8px 10px!important;border-radius:13px!important}.modis-tablet-dashboard .smart-list b{font-size:12px!important}.modis-tablet-dashboard .smart-list small{font-size:10.5px!important}.modis-tablet-dashboard .smart-list em{font-size:10px!important;padding:4px 7px!important}

html[data-theme="dark"] .modis-tablet-dashboard .dashboard-overview .smart-stat-grid span{color:#ff83aa!important}
html[data-theme="dark"] .modis-tablet-dashboard .radial-meter::after{background:#f8fbff!important}

@media(max-width:1200px){
  .modis-tablet-dashboard .dashboard-overview,.modis-tablet-dashboard .flow-widget,.modis-tablet-dashboard .latest-widget{grid-column:span 12!important}
  .modis-tablet-dashboard .radial-widget,.modis-tablet-dashboard .shortcuts-widget,.modis-tablet-dashboard .products-widget,.modis-tablet-dashboard .stock-chart-widget,.modis-tablet-dashboard .offer-chart-widget,.modis-tablet-dashboard .record-widget{grid-column:span 6!important}
}
@media(max-width:760px){
  .modis-tablet-dashboard .tablet-hero{display:block!important}.modis-tablet-dashboard .tablet-hero-actions{justify-content:flex-start!important;margin-top:10px!important}
  .modis-tablet-dashboard .tablet-dashboard-grid{grid-template-columns:1fr!important}
  .modis-tablet-dashboard .tablet-card,.modis-tablet-dashboard .dashboard-overview,.modis-tablet-dashboard .flow-widget,.modis-tablet-dashboard .latest-widget,.modis-tablet-dashboard .radial-widget,.modis-tablet-dashboard .shortcuts-widget,.modis-tablet-dashboard .products-widget,.modis-tablet-dashboard .stock-chart-widget,.modis-tablet-dashboard .offer-chart-widget,.modis-tablet-dashboard .record-widget{grid-column:1!important}
  .modis-tablet-dashboard .dashboard-overview .smart-stat-grid,.modis-tablet-dashboard .smart-flow,.modis-tablet-dashboard .smart-shortcuts,.modis-tablet-dashboard .device-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ==========================================================
   Dashboard Builder 2.1 - weather, members, admin widgets
   ========================================================== */
.dashboard-editor-fields{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(120px,1fr))!important;
  gap:8px!important;
  margin:0 0 12px!important;
}
.dashboard-editor-fields label{
  display:grid!important;
  gap:5px!important;
  font-size:11px!important;
  font-weight:900!important;
  color:var(--muted)!important;
}
.dashboard-editor-fields input{
  height:34px!important;
  border-radius:12px!important;
  padding:6px 9px!important;
}
.weather-widget{grid-column:span 8!important;min-height:180px!important;background:linear-gradient(135deg,color-mix(in srgb,var(--page-accent,#3d68ff) 18%,var(--surface)),var(--surface))!important;overflow:hidden!important;position:relative!important}
.weather-widget:after{content:"";position:absolute;right:-34px;top:-34px;width:150px;height:150px;border-radius:50%;background:color-mix(in srgb,var(--page-accent,#3d68ff) 18%,transparent);pointer-events:none}.weather-now{display:flex;align-items:center;gap:14px;margin:8px 0 12px;position:relative;z-index:1}.weather-now i{width:58px;height:58px;border-radius:20px;display:flex;align-items:center;justify-content:center;background:var(--page-accent,#3d68ff);color:#000;font-size:29px;font-style:normal;font-weight:950;box-shadow:0 12px 24px rgba(0,0,0,.12)}.weather-now b{display:block;font-size:34px;line-height:1;color:var(--text)!important}.weather-now small{display:block;margin-top:5px;color:var(--muted)!important;font-weight:900}.weather-days{display:grid;grid-template-columns:repeat(7,minmax(58px,1fr));gap:7px;position:relative;z-index:1}.weather-days span{display:grid;gap:4px;place-items:center;min-height:62px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)!important;color:var(--text)!important;font-size:11px;font-weight:900}.weather-days b{font-size:15px;color:var(--text)!important}.weather-days em{font-style:normal;color:var(--muted)!important;font-size:10px}.members-widget{grid-column:span 4!important}.member-row{display:flex;align-items:flex-start;gap:9px;flex-wrap:wrap;padding-top:4px}.member-avatar{display:grid;gap:5px;justify-items:center;text-align:center;color:var(--text)!important;min-width:54px}.member-avatar i{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--member,#4f83ff);color:#000;font-style:normal;font-weight:1000;border:3px solid color-mix(in srgb,var(--member,#4f83ff) 18%,var(--surface));box-shadow:0 8px 18px rgba(0,0,0,.10)}.member-avatar span{font-size:11px;font-weight:900;color:var(--text)!important}.critical-stock-widget{grid-column:span 4!important}.quick-actions-widget{grid-column:span 4!important}.dashboard-switch-list{display:grid;gap:9px}.dashboard-switch-list a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border-radius:15px;background:var(--surface-2)!important;border:1px solid var(--line)!important;color:var(--text)!important;font-weight:900}.dashboard-switch-list b{font-size:10px;color:#000;background:var(--page-accent,#3d68ff);border-radius:999px;padding:5px 10px;min-width:44px;text-align:center}.dashboard-switch-list b:after{content:"";display:inline-block;width:6px;height:6px;margin-left:6px;border-radius:50%;background:#000;opacity:.38}html[data-theme="dark"] .weather-widget{background:linear-gradient(135deg,color-mix(in srgb,var(--page-accent,#3d68ff) 16%,#182333),#121b28)!important}html[data-theme="dark"] .weather-days span,html[data-theme="dark"] .dashboard-switch-list a{background:#1b2635!important;border-color:#2b3a4d!important}@media(max-width:1100px){.weather-widget,.members-widget,.critical-stock-widget,.quick-actions-widget{grid-column:span 6!important}.weather-days{grid-template-columns:repeat(4,minmax(58px,1fr))}}@media(max-width:680px){.dashboard-editor-fields{grid-template-columns:1fr!important}.weather-widget,.members-widget,.critical-stock-widget,.quick-actions-widget{grid-column:span 6!important}.weather-days{grid-template-columns:repeat(2,minmax(58px,1fr))}}

/* ==========================================================
   2026-06-15 Landing / Auth / Pricing rebuild
   ========================================================== */
.features-page,.pricing-page,.auth-page{
  width:100%;
  color:var(--text);
}
.features-hero,.pricing-hero{
  border:1px solid var(--line)!important;
  border-radius:28px!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--page-accent,#3d68ff) 14%,var(--surface)),var(--surface))!important;
  padding:26px!important;
  margin-bottom:18px!important;
  box-shadow:var(--shadow-sm)!important;
}
.features-hero small,.pricing-hero small,.auth-visual small,.pricing-admin-head small{
  display:inline-flex;align-items:center;gap:8px;
  color:var(--page-accent,#3d68ff)!important;
  font-size:12px;font-weight:1000;letter-spacing:.05em;text-transform:uppercase;
}
.features-hero h1,.pricing-hero h1,.auth-visual h1{
  max-width:820px;margin:9px 0 8px!important;font-size:clamp(28px,4vw,48px)!important;line-height:1.02!important;color:var(--text)!important;
}
.features-hero p,.pricing-hero p,.auth-visual p{max-width:720px;margin:0!important;color:var(--muted)!important;font-weight:750!important;line-height:1.55!important}
.features-grid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;
}
.feature-card{
  min-height:172px;border:1px solid var(--line);border-radius:24px;background:var(--surface);padding:18px;box-shadow:var(--shadow-sm);position:relative;overflow:hidden;
}
.feature-card:after{content:"";position:absolute;right:-38px;top:-38px;width:110px;height:110px;border-radius:999px;background:color-mix(in srgb,var(--page-accent,#3d68ff) 14%,transparent)}
.feature-card i{width:46px;height:46px;border-radius:16px;background:var(--page-accent,#3d68ff);color:#111827;display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:1000;margin-bottom:15px;box-shadow:0 10px 22px color-mix(in srgb,var(--page-accent,#3d68ff) 24%,transparent)}
.feature-card h2{position:relative;margin:0 0 7px!important;font-size:16px!important;color:var(--text)!important}
.feature-card p{position:relative;margin:0!important;color:var(--muted)!important;font-size:13px!important;line-height:1.5!important;font-weight:750!important}
.pricing-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;margin-bottom:18px!important}
.pricing-card{
  border:1px solid var(--line)!important;border-radius:28px!important;background:var(--surface)!important;padding:20px!important;box-shadow:var(--shadow-sm)!important;display:flex!important;flex-direction:column!important;gap:12px!important;min-height:420px!important;position:relative;overflow:hidden!important;
}
.pricing-card:before{content:"";position:absolute;inset:auto -45px -55px auto;width:170px;height:170px;border-radius:999px;background:color-mix(in srgb,var(--page-accent,#3d68ff) 14%,transparent);pointer-events:none}
.pricing-card.featured{border-color:color-mix(in srgb,var(--page-accent,#3d68ff) 55%,var(--line))!important;box-shadow:0 18px 45px color-mix(in srgb,var(--page-accent,#3d68ff) 16%,transparent)!important;transform:translateY(-4px)}
.pricing-card>span{align-self:flex-start;border-radius:999px;background:color-mix(in srgb,var(--page-accent,#3d68ff) 14%,var(--surface-2));color:var(--page-accent,#3d68ff);border:1px solid color-mix(in srgb,var(--page-accent,#3d68ff) 24%,var(--line));padding:7px 11px;font-size:11px;font-weight:1000}
.pricing-card h2{font-size:25px!important;margin:0!important;color:var(--text)!important}.pricing-card p{margin:0!important;color:var(--muted)!important;font-size:13px!important;font-weight:800!important}.pricing-card strong{font-size:38px!important;line-height:1!important;color:var(--text)!important}.pricing-card strong small{font-size:13px!important;color:var(--muted)!important;margin-left:4px}.pricing-card ul{list-style:none!important;padding:0!important;margin:2px 0 8px!important;display:grid!important;gap:9px!important;flex:1}.pricing-card li{display:flex!important;align-items:center!important;gap:9px!important;color:var(--text)!important;font-size:13px!important;font-weight:850!important}.pricing-card li b{width:18px;height:18px;border-radius:999px;background:var(--page-accent,#3d68ff);display:inline-flex;flex:0 0 auto;position:relative}.pricing-card li b:after{content:"";position:absolute;left:6px;top:4px;width:5px;height:8px;border:solid #111827;border-width:0 2px 2px 0;transform:rotate(45deg)}.pricing-card .btn{position:relative;z-index:1;justify-content:center!important}
.pricing-admin-panel{border:1px solid var(--line);border-radius:28px;background:var(--surface);padding:18px;box-shadow:var(--shadow-sm);margin-top:18px}.pricing-admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.pricing-admin-head h2{margin:5px 0!important;color:var(--text)!important}.pricing-admin-head p{margin:0!important;color:var(--muted)!important;font-weight:750!important}.pricing-admin-form h3{margin:18px 0 10px!important;color:var(--text)!important;font-size:15px!important}.pricing-feature-admin-list{display:grid;gap:8px}.feature-admin-row{display:grid;grid-template-columns:96px 220px 1fr 55px 70px;gap:8px;align-items:center;border:1px solid var(--line);background:var(--surface-2);border-radius:16px;padding:8px}.feature-admin-row input[type=text],.feature-admin-row input:not([type]){height:36px;border-radius:11px}.feature-check,.delete-check,.checkline{display:flex!important;align-items:center!important;gap:7px!important;font-size:12px!important;font-weight:900!important;color:var(--text)!important}.feature-admin-row em{font-style:normal;color:var(--muted);font-size:11px;font-weight:900}.new-feature-row{display:grid;grid-template-columns:220px 1fr auto;gap:8px}.pricing-plan-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.plan-admin-card{border:1px solid var(--line);border-radius:22px;background:var(--surface-2);padding:12px;display:grid;gap:8px}.plan-admin-card label{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:900}.plan-admin-card input{height:34px;border-radius:11px}.plan-feature-picks{max-height:210px;overflow:auto;display:grid;gap:6px;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:8px}.plan-feature-picks label{display:flex!important;align-items:center!important;gap:6px!important;color:var(--text)!important;font-size:12px!important}
.auth-page{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;align-items:stretch}.auth-visual,.auth-card{border:1px solid var(--line);border-radius:30px;background:var(--surface);box-shadow:var(--shadow-sm);padding:28px}.auth-visual{background:linear-gradient(135deg,color-mix(in srgb,var(--page-accent,#3d68ff) 18%,var(--surface)),var(--surface));display:flex;flex-direction:column;justify-content:center;min-height:430px}.auth-checks{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.auth-checks span{border:1px solid color-mix(in srgb,var(--page-accent,#3d68ff) 25%,var(--line));background:color-mix(in srgb,var(--page-accent,#3d68ff) 12%,var(--surface-2));color:var(--text);border-radius:999px;padding:8px 11px;font-size:12px;font-weight:1000}.auth-card{display:grid;gap:12px;align-content:center}.auth-card h2{margin:0 0 8px!important;color:var(--text)!important;font-size:27px!important}.auth-card label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:1000}.auth-card input{height:44px;border-radius:14px}.auth-card .btn{height:46px;justify-content:center}.auth-switch{margin:0!important;text-align:center;color:var(--muted)!important;font-weight:850}.auth-switch a{color:var(--page-accent,#3d68ff)!important;font-weight:1000}
html[data-theme="dark"] .pricing-card,html[data-theme="dark"] .pricing-admin-panel,html[data-theme="dark"] .auth-card,html[data-theme="dark"] .feature-card{background:#172231!important;border-color:#2b3a4d!important}html[data-theme="dark"] .features-hero,html[data-theme="dark"] .pricing-hero,html[data-theme="dark"] .auth-visual{background:linear-gradient(135deg,color-mix(in srgb,var(--page-accent,#3d68ff) 14%,#1b2635),#121b28)!important;border-color:#2b3a4d!important}.pricing-admin-panel input,.auth-card input{background:var(--input-bg,var(--surface-2))!important;color:var(--text)!important;border:1px solid var(--line)!important}
@media(max-width:1100px){.features-grid,.pricing-grid,.pricing-plan-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.auth-page{grid-template-columns:1fr}.feature-admin-row{grid-template-columns:90px 1fr}.feature-admin-row em,.delete-check{justify-self:start}.new-feature-row{grid-template-columns:1fr}}
@media(max-width:680px){.features-grid,.pricing-grid,.pricing-plan-admin-grid{grid-template-columns:1fr!important}.features-hero,.pricing-hero,.auth-visual,.auth-card{padding:20px!important;border-radius:22px!important}.feature-admin-row{grid-template-columns:1fr}.pricing-admin-head{display:block}.new-feature-row{grid-template-columns:1fr}.pricing-card.featured{transform:none}}

/* MODIS V4 - Ayrı Admin Paneli */
.modern-auth-page{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:24px;align-items:stretch}.admin-login-card{display:flex;align-items:center;gap:14px;margin-top:18px;padding:16px 18px;border-radius:22px;background:linear-gradient(135deg,#111827,#253247);color:#fff;text-decoration:none;box-shadow:0 18px 38px rgba(15,23,42,.18)}.admin-login-card b{display:block;font-size:15px}.admin-login-card small{display:block;color:#cbd5e1;margin-top:3px}.admin-login-card i{margin-left:auto;font-style:normal;font-size:20px}.admin-login-page{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.75fr);gap:26px;align-items:stretch;min-height:calc(100vh - 170px)}.admin-login-visual,.admin-login-card-form{border-radius:30px;padding:30px;background:#fff;box-shadow:0 18px 50px rgba(15,23,42,.08);border:1px solid rgba(148,163,184,.22)}.admin-login-visual{background:radial-gradient(circle at top left,#dbeafe,#fff 46%),linear-gradient(135deg,#f8fafc,#eef6ff)}.admin-mark{display:inline-flex;align-items:center;justify-content:center;width:78px;height:34px;border-radius:999px;background:#0f172a;color:#fff;font-weight:1000;letter-spacing:.12em}.admin-login-visual h1{font-size:44px;margin:18px 0 10px}.admin-login-visual p{max-width:620px;color:#64748b;font-size:16px}.admin-login-info{display:grid;gap:7px;max-width:430px;margin-top:24px;padding:18px;border-radius:22px;background:rgba(255,255,255,.74);border:1px solid #dbeafe}.admin-login-info b{color:#0f172a}.admin-login-info span{font-weight:800;color:#334155}.admin-login-info small{color:#64748b}.admin-login-card-form{display:grid;align-content:center;gap:14px}.admin-login-card-form label{display:grid;gap:6px;font-weight:900;color:#334155}.admin-login-card-form input{height:46px;border-radius:14px;border:1px solid #dbe4f0;padding:0 14px;background:#f8fbff}.auth-back{font-weight:900;color:#64748b;text-decoration:none;text-align:center}.admin-shell-v2{display:grid;grid-template-columns:292px minmax(0,1fr);gap:20px;min-height:calc(100vh - 130px)}.admin-side{position:sticky;top:86px;align-self:start;height:calc(100vh - 108px);border-radius:28px;background:linear-gradient(180deg,#101827,#172235);box-shadow:0 22px 46px rgba(15,23,42,.18);padding:18px;display:flex;flex-direction:column;gap:18px;color:#fff}.admin-brand{display:grid;gap:2px;padding:10px 10px 14px;border-bottom:1px solid rgba(255,255,255,.09)}.admin-brand b{font-size:22px;letter-spacing:.12em}.admin-brand span{color:#9fb1ca;font-size:12px;font-weight:900}.admin-side nav{display:grid;gap:8px}.admin-side nav a{display:flex;gap:12px;align-items:center;text-decoration:none;color:#aab8cc;padding:12px;border-radius:18px;transition:.16s}.admin-side nav a i{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:14px;background:rgba(255,255,255,.08);font-style:normal;color:#56d6ff}.admin-side nav a b{display:block;color:inherit}.admin-side nav a small{display:block;color:#778aa6;font-size:11px;margin-top:2px}.admin-side nav a:hover,.admin-side nav a.active{background:#5b8cff;color:#06111f;transform:translateX(2px)}.admin-side nav a:hover i,.admin-side nav a.active i{background:rgba(0,0,0,.14);color:#06111f}.admin-side nav a:hover small,.admin-side nav a.active small{color:#13243d}.admin-exit{margin-top:auto;text-align:center;border-radius:16px;padding:12px;background:rgba(255,255,255,.08);color:#fff;text-decoration:none;font-weight:900}.admin-main{display:grid;gap:18px;align-content:start}.admin-top{display:flex;align-items:center;justify-content:space-between;gap:18px;border-radius:28px;background:linear-gradient(135deg,#fff,#f2f7ff);border:1px solid #dbeafe;box-shadow:0 14px 36px rgba(15,23,42,.07);padding:22px 24px}.admin-top small{font-weight:1000;color:#5b8cff}.admin-top h1{margin:2px 0 4px;font-size:30px}.admin-top p{margin:0;color:#64748b}.admin-user-chip{display:grid;gap:2px;min-width:220px;padding:13px 16px;border-radius:18px;background:#fff;border:1px solid #e5edf8}.admin-user-chip span{font-size:12px;color:#64748b;font-weight:800}.admin-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.admin-stat-grid article{border-radius:24px;background:#fff;border:1px solid #e5edf8;box-shadow:0 12px 30px rgba(15,23,42,.06);padding:18px}.admin-stat-grid span{display:block;color:#64748b;font-weight:900;font-size:12px}.admin-stat-grid b{font-size:34px;color:#0f172a}.admin-control-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.admin-control-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-control-grid a{display:flex;gap:14px;align-items:center;text-decoration:none;border-radius:24px;background:#fff;border:1px solid #e5edf8;padding:18px;color:#0f172a;box-shadow:0 12px 30px rgba(15,23,42,.06);transition:.16s}.admin-control-grid a:hover{transform:translateY(-2px);border-color:#bfdbfe}.admin-control-grid i{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:17px;background:#5b8cff;color:#fff;font-style:normal;font-size:20px}.admin-control-grid b{display:block}.admin-control-grid span{display:block;color:#64748b;font-size:12px;margin-top:2px}.admin-card,.pricing-admin-panel{border-radius:28px;background:#fff;border:1px solid #e5edf8;box-shadow:0 14px 36px rgba(15,23,42,.07);padding:22px}.admin-card h2,.pricing-admin-panel h2{margin-top:0}.admin-product-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.admin-product-list article{display:grid;gap:5px;padding:15px;border-radius:18px;background:#f8fbff;border:1px solid #e5edf8}.admin-product-list i{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:14px;background:var(--p);color:#fff;font-style:normal}.admin-product-list span{color:#64748b;font-size:12px}.admin-product-list em{font-style:normal;font-weight:900;color:#16a34a}.admin-create-user,.admin-create-product,.admin-create-feature{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:end}.admin-create-feature{grid-template-columns:1fr 2fr auto}.admin-create-user input,.admin-create-user select,.admin-create-product input,.admin-create-feature input{height:42px;border-radius:14px;border:1px solid #dbe4f0;padding:0 12px;background:#f8fbff}.admin-create-user .btn,.admin-create-product .btn,.admin-create-feature .btn{height:42px}.admin-users table small{display:block;color:#64748b}.pricing-admin-panel{margin:0}.pricing-admin-panel .pricing-admin-head{margin-bottom:16px}.pricing-admin-form h3{margin:18px 0 10px}.pricing-feature-admin-list,.pricing-plan-admin-grid{display:grid;gap:10px}.feature-admin-row{display:grid;grid-template-columns:90px 1fr 1.5fr 70px;gap:8px;align-items:center;padding:10px;border-radius:16px;background:#f8fbff;border:1px solid #e5edf8}.feature-admin-row input[type=text],.feature-admin-row input:not([type]){height:38px;border-radius:12px;border:1px solid #dbe4f0;padding:0 10px}.new-feature-row{display:grid;grid-template-columns:1fr 1.5fr auto;gap:8px}.new-feature-row input{height:40px;border-radius:12px;border:1px solid #dbe4f0;padding:0 10px}.pricing-plan-admin-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.plan-admin-card{display:grid;gap:9px;padding:14px;border-radius:20px;background:#f8fbff;border:1px solid #e5edf8}.plan-admin-card label{display:grid;gap:5px;font-weight:900;font-size:12px;color:#475569}.plan-admin-card input{height:36px;border-radius:11px;border:1px solid #dbe4f0;padding:0 9px}.plan-feature-picks{display:grid;gap:4px;max-height:210px;overflow:auto;padding:8px;border-radius:14px;background:#fff;border:1px solid #e5edf8}.page-admin .product-tabs{display:none}.modis-dark .admin-top,.modis-dark .admin-card,.modis-dark .pricing-admin-panel,.modis-dark .admin-stat-grid article,.modis-dark .admin-control-grid a,.modis-dark .admin-user-chip{background:#1c2736;border-color:#334155;color:#e5eefb}.modis-dark .admin-top p,.modis-dark .admin-control-grid span,.modis-dark .admin-product-list span{color:#a8b6c9}.modis-dark .admin-stat-grid b,.modis-dark .admin-control-grid a,.modis-dark .admin-top h1{color:#eef6ff}.modis-dark .feature-admin-row,.modis-dark .plan-admin-card,.modis-dark .admin-product-list article{background:#111827;border-color:#334155}.modis-dark .admin-create-user input,.modis-dark .admin-create-user select,.modis-dark .admin-create-product input,.modis-dark .admin-create-feature input,.modis-dark .feature-admin-row input,.modis-dark .new-feature-row input,.modis-dark .plan-admin-card input{background:#0f172a;border-color:#334155;color:#eef6ff}@media(max-width:1050px){.modern-auth-page,.admin-login-page,.admin-shell-v2{grid-template-columns:1fr}.admin-side{position:relative;top:0;height:auto}.admin-stat-grid,.admin-control-grid,.admin-control-grid.compact,.pricing-plan-admin-grid{grid-template-columns:1fr 1fr}.admin-create-user,.admin-create-product{grid-template-columns:1fr 1fr}.feature-admin-row{grid-template-columns:1fr}.new-feature-row,.admin-create-feature{grid-template-columns:1fr}}@media(max-width:640px){.admin-stat-grid,.admin-control-grid,.admin-control-grid.compact,.pricing-plan-admin-grid,.admin-create-user,.admin-create-product{grid-template-columns:1fr}.admin-top{display:grid}.admin-user-chip{min-width:0}.admin-shell-v2{gap:12px}.admin-side,.admin-top,.admin-card,.pricing-admin-panel{border-radius:20px}}

/* Admin Panel V2 - Rol/Pricing/Demo/Lisans yönetimi */
.admin-stat-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.feature-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin:8px 0}.feature-check-grid.wide{grid-column:1/-1}.feature-check-grid label{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:14px;padding:9px 10px;background:var(--card-soft);font-size:12px;font-weight:800}.feature-check-grid input{width:auto;accent-color:var(--primary)}
.role-matrix-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}.admin-card-inner{border:1px solid var(--line);border-radius:20px;background:var(--card-soft);padding:14px}.admin-card-inner h3{margin:0}.admin-card-inner small{color:var(--muted);font-weight:800}.admin-matrix-form{margin:0}.admin-create-product select,.admin-create-user select{min-width:160px}.admin-users small,td small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.role-pill.super_admin,.role-pill.admin{background:#e0edff;color:#123d8a}.role-pill.user{background:#eef2ff;color:#4338ca}
[data-theme="dark"] .feature-check-grid label,[data-theme="dark"] .admin-card-inner{background:#202b3a;border-color:#34445c;color:#edf4ff}[data-theme="dark"] .role-pill.admin,[data-theme="dark"] .role-pill.super_admin{background:#1d3558;color:#dbeafe}

/* MODIS Admin Standalone Isolation */
body.modis-admin-only{margin:0;min-height:100vh;background:#eef3fb;color:#172033;font-family:Inter,Segoe UI,Arial,sans-serif;overflow-x:hidden}
body.modis-admin-only .site-header,body.modis-admin-only .modis-sidebar-v2,body.modis-admin-only .subnav,body.modis-admin-only .workspace>.content:empty{display:none!important}
.admin-standalone-root{min-height:100vh;width:100%;background:radial-gradient(circle at top left,rgba(61,104,255,.10),transparent 32%),linear-gradient(135deg,#f7faff 0%,#eef3fb 45%,#e9eff8 100%);padding:0}
.admin-standalone-root .admin-shell-v2{min-height:100vh;display:grid;grid-template-columns:280px minmax(0,1fr);gap:0;background:transparent;border:0;border-radius:0;box-shadow:none;margin:0}
.admin-standalone-root .admin-side{position:sticky;top:0;height:100vh;background:#111827;color:#fff;border-right:1px solid rgba(255,255,255,.08);padding:18px 14px;display:flex;flex-direction:column;gap:18px;overflow:auto}
.admin-standalone-root .admin-brand{padding:12px 12px 18px;border-bottom:1px solid rgba(255,255,255,.10)}
.admin-standalone-root .admin-brand b{display:block;font-size:23px;letter-spacing:.08em}.admin-standalone-root .admin-brand span{color:#aeb8c7;font-size:12px;font-weight:800}
.admin-standalone-root .admin-side nav{display:grid;gap:7px}.admin-standalone-root .admin-side nav a{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:center;padding:10px;border-radius:16px;color:#dbe4f0;text-decoration:none;transition:.16s ease;background:transparent}
.admin-standalone-root .admin-side nav a i{width:38px;height:38px;display:grid;place-items:center;border-radius:14px;background:rgba(255,255,255,.08);font-style:normal;color:#fff;font-weight:1000}.admin-standalone-root .admin-side nav a b{display:block;font-size:13px}.admin-standalone-root .admin-side nav a small{display:block;color:#9aa7b8;font-size:11px;line-height:1.2}.admin-standalone-root .admin-side nav a:hover,.admin-standalone-root .admin-side nav a.active{background:#ffffff;color:#111827}.admin-standalone-root .admin-side nav a:hover i,.admin-standalone-root .admin-side nav a.active i{background:#3d68ff;color:#000}.admin-standalone-root .admin-side nav a:hover small,.admin-standalone-root .admin-side nav a.active small{color:#4b5563}
.admin-standalone-root .admin-exit{margin-top:auto;color:#111827;background:#fff;text-decoration:none;border-radius:14px;padding:11px 12px;text-align:center;font-weight:900}
.admin-standalone-root .admin-main{padding:22px;min-width:0}.admin-standalone-root .admin-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px;background:#fff;border:1px solid #dbe4f0;border-radius:24px;padding:17px 19px;box-shadow:0 18px 45px rgba(31,41,55,.08)}
.admin-standalone-root .admin-top small{font-weight:1000;color:#3d68ff;text-transform:uppercase;letter-spacing:.08em}.admin-standalone-root .admin-top h1{margin:2px 0;font-size:24px}.admin-standalone-root .admin-top p{margin:0;color:#64748b}.admin-standalone-root .admin-user-chip{display:grid;gap:2px;text-align:right}.admin-standalone-root .admin-user-chip span{font-size:12px;color:#64748b}
.admin-standalone-root .admin-card,.admin-standalone-root .pricing-admin-panel{background:#fff;border:1px solid #dbe4f0;border-radius:24px;padding:18px;box-shadow:0 18px 45px rgba(31,41,55,.08);margin-bottom:16px}.admin-standalone-root .admin-card h2{margin:0 0 8px}.admin-standalone-root .admin-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin-bottom:16px}.admin-standalone-root .admin-stat-grid article{background:#fff;border:1px solid #dbe4f0;border-radius:22px;padding:16px;box-shadow:0 12px 34px rgba(31,41,55,.07)}.admin-standalone-root .admin-stat-grid span{display:block;font-size:12px;color:#64748b;font-weight:900}.admin-standalone-root .admin-stat-grid b{font-size:28px;color:#111827}
.admin-roadmap-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:14px}.admin-roadmap-group{border:1px solid #dbe4f0;border-radius:22px;background:linear-gradient(180deg,#fff,#f7faff);padding:14px}.admin-roadmap-group h3{margin:0 0 10px}.admin-roadmap-task{display:grid;grid-template-columns:36px 1fr;gap:10px;align-items:start;padding:10px 0;border-top:1px solid #e5edf7}.admin-roadmap-task:first-of-type{border-top:0}.admin-roadmap-task span{width:30px;height:30px;border-radius:10px;background:#e8efff;color:#3d68ff;display:grid;place-items:center;font-weight:1000;font-size:11px}.admin-roadmap-task b{display:block;font-size:13px}.admin-roadmap-task small{display:block;color:#64748b;line-height:1.35;margin-top:2px}
.admin-standalone-root .admin-login-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:24px;align-items:center;max-width:1080px;margin:0 auto;padding:28px}.admin-standalone-root .admin-login-visual,.admin-standalone-root .admin-login-card-form{background:#fff;border:1px solid #dbe4f0;border-radius:28px;padding:28px;box-shadow:0 18px 45px rgba(31,41,55,.10)}.admin-standalone-root .admin-login-visual{background:linear-gradient(135deg,#111827,#1f2a44);color:#fff}.admin-standalone-root .admin-login-visual p,.admin-standalone-root .admin-login-info{color:#dbe4f0}.admin-standalone-root .admin-login-card-form label{display:block;margin:12px 0;font-weight:900}.admin-standalone-root .admin-login-card-form input{width:100%;box-sizing:border-box;border:1px solid #dbe4f0;border-radius:14px;padding:12px;margin-top:6px;background:#f8fbff;color:#111827}.admin-standalone-root .admin-login-card-form .btn{width:100%;margin-top:8px}
.admin-standalone-notice{position:fixed;right:18px;top:18px;z-index:30;max-width:420px}
@media(max-width:900px){.admin-standalone-root .admin-shell-v2{grid-template-columns:1fr}.admin-standalone-root .admin-side{position:relative;height:auto}.admin-standalone-root .admin-main{padding:14px}.admin-standalone-root .admin-login-page{grid-template-columns:1fr;padding:14px}.admin-standalone-root .admin-top{display:block}.admin-standalone-root .admin-user-chip{text-align:left;margin-top:10px}}

/* ==========================================================
   Sprint: Listeleme & Üretim UI Revizyonu
   Timeline dot, ana satır aksiyonları, stok formu ve bulk bar düzeltmeleri
   ========================================================== */
.order.compact-order>summary{
  grid-template-columns:auto minmax(130px,.9fr) minmax(130px,.9fr) auto minmax(360px,1.45fr) minmax(210px,.9fr)!important;
  min-height:56px!important;
  padding:8px 10px!important;
  gap:8px!important;
  overflow:hidden!important;
}
.order.compact-order.no-select>summary{
  grid-template-columns:minmax(130px,.9fr) minmax(130px,.9fr) auto minmax(360px,1.45fr) minmax(210px,.9fr)!important;
}
.order.compact-order .order-timeline{
  display:grid!important;
  grid-template-columns:94px minmax(250px,1fr)!important;
  gap:8px!important;
  align-items:center!important;
  height:40px!important;
  min-width:350px!important;
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
}
.order-status-current{
  height:24px!important;
  padding:0 8px!important;
  font-size:10px!important;
  line-height:1!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--page-accent,#3d68ff) 12%,var(--surface-2))!important;
  color:var(--text)!important;
  border:1px solid color-mix(in srgb,var(--page-accent,#3d68ff) 28%,var(--line))!important;
  white-space:nowrap!important;
}
.order-timeline-steps{
  position:relative!important;
  display:grid!important;
  grid-template-columns:repeat(4,1fr)!important;
  align-items:start!important;
  height:40px!important;
  min-width:250px!important;
}
.order.compact-order .order-timeline-track,
.order-timeline-track{
  position:absolute!important;
  left:8%!important;
  right:8%!important;
  top:10px!important;
  height:5px!important;
  border:0!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#ef4444 0%,#f97316 33%,#facc15 66%,#22c55e 100%)!important;
  opacity:.35!important;
  z-index:0!important;
}
.order-timeline-steps::after{
  content:"";
  position:absolute;
  left:8%;right:8%;top:10px;height:5px;border-radius:999px;
  width:calc(var(--progress,0%) * .84);
  background:linear-gradient(90deg,#ef4444 0%,#f97316 33%,#facc15 66%,#22c55e 100%);
  z-index:1;
}
.order.compact-order .order-step,
.order-step{
  position:relative!important;
  z-index:2!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:2px!important;
  height:40px!important;
  min-width:0!important;
  transform:none!important;
  color:var(--muted)!important;
}
.order.compact-order .order-step i,
.order-step i{
  width:17px!important;
  height:17px!important;
  border-radius:999px!important;
  background:var(--surface)!important;
  border:2px solid var(--line)!important;
  box-shadow:0 0 0 3px var(--surface)!important;
}
.order-step.red.done i{background:#ef4444!important;border-color:#ef4444!important}
.order-step.orange.done i{background:#f97316!important;border-color:#f97316!important}
.order-step.yellow.done i{background:#facc15!important;border-color:#facc15!important}
.order-step.green.done i{background:#22c55e!important;border-color:#22c55e!important}
.order-step.current i{box-shadow:0 0 0 4px color-mix(in srgb,var(--page-accent,#3d68ff) 18%,var(--surface))!important}
.order-step.done i::after{content:""!important;display:none!important}
.order.compact-order .order-step b,
.order-step b{
  display:block!important;
  font-size:9px!important;
  font-weight:950!important;
  line-height:1!important;
  color:var(--text)!important;
  margin-top:1px!important;
  white-space:nowrap!important;
}
.order.compact-order .order-step small,
.order-step small{
  display:block!important;
  font-size:8px!important;
  line-height:1!important;
  color:var(--muted)!important;
  max-width:62px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.row-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  flex-wrap:wrap!important;
  min-width:0!important;
}
.action-chip{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:25px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  border:1px solid var(--line)!important;
  background:var(--surface-2)!important;
  color:var(--text)!important;
  font-size:10px!important;
  font-weight:950!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
.action-chip:hover{background:color-mix(in srgb,var(--page-accent,#3d68ff) 13%,var(--surface-2))!important;border-color:color-mix(in srgb,var(--page-accent,#3d68ff) 35%,var(--line))!important}
.action-chip.primary{background:color-mix(in srgb,var(--page-accent,#3d68ff) 82%,#fff)!important;color:#07111f!important;border-color:transparent!important}
.compact-detail-actions{justify-content:space-between!important;min-height:36px!important;padding:8px 10px!important}
.bulk-bar,.visible-bulk,.bulkbar{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:8px!important;
  overflow:hidden!important;
}
.bulk-bar .check,.bulk-check,.select-all{flex:0 0 auto!important;max-width:150px!important;padding:7px 9px!important;font-size:11px!important;overflow:hidden!important;text-overflow:ellipsis!important}
.bulk-bar select{min-width:190px!important;max-width:280px!important;flex:1 1 190px!important}
.bulk-bar .btn,.bulkbar .btn{flex:0 0 auto!important}
.bulk-bar .selected-count,.bulkbar .stock-selected-count{flex:0 0 auto!important;margin-left:0!important}
.stock-entry,.stock-page .form-grid.small{
  display:grid!important;
  grid-template-columns:minmax(120px,.8fr) minmax(160px,1.3fr) minmax(100px,.8fr) minmax(92px,.65fr) minmax(100px,.75fr) minmax(100px,.75fr) minmax(110px,.8fr) minmax(140px,1fr) auto!important;
  align-items:end!important;
  gap:8px!important;
}
.stock-entry select[name="unit"]{min-width:84px!important;width:100%!important;padding-right:26px!important;text-overflow:clip!important}
.stock-entry input,.stock-entry select,.stock-page .form-grid.small input,.stock-page .form-grid.small select{height:38px!important;line-height:38px!important;padding:0 10px!important;min-width:0!important}
@media(max-width:1180px){
  .order.compact-order>summary,.order.compact-order.no-select>summary{min-width:920px!important;overflow-x:auto!important}
  .stock-entry,.stock-page .form-grid.small{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important}.stock-entry label,.stock-page .form-grid.small label{min-width:135px!important;flex:0 0 auto!important}
}

/* Print/order focus and optimization label fixes */
.order-separator.focus-order td,
.measurement-row.focus-order td{
  background:#f1f3f6!important;
}
.profile-line.focus-order-line{
  background:#f3f4f6!important;
  border-radius:6px!important;
  padding:4px!important;
}
.profile-bar span.focus-cut{
  background:#d1d5db!important;
  color:#111827!important;
  box-shadow:inset 0 0 0 2px #9ca3af!important;
}
.profile-bar span.focus-cut i{font-weight:900!important;color:#111827!important}
.profile-bar span i small{display:none!important}

/* MODIS V5 Sprint: step timeline + product dashboard + widget builder */
.order.compact-order summary{display:grid!important;grid-template-columns:minmax(34px,auto) minmax(140px,1.2fr) minmax(130px,1fr) minmax(72px,.45fr) minmax(360px,1.8fr) minmax(300px,auto)!important;gap:10px!important;align-items:center!important;min-height:54px!important;padding:10px 12px!important}
.order.compact-order.no-select summary{grid-template-columns:minmax(140px,1.2fr) minmax(130px,1fr) minmax(72px,.45fr) minmax(360px,1.8fr) minmax(300px,auto)!important}
.row-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:nowrap!important;white-space:nowrap!important;min-width:max-content!important}
.row-actions .action-chip{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:28px!important;padding:0 10px!important;border-radius:999px!important;font-size:11px!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important;margin:0!important}
.order-stepper{position:relative!important;display:grid!important;gap:4px!important;min-width:350px!important;max-width:520px!important;padding:0 4px!important;overflow:visible!important}
.order-status-current{display:block!important;text-align:center!important;font-size:11px!important;font-weight:1000!important;color:var(--text-muted)!important;line-height:1.1!important;margin-bottom:1px!important;white-space:nowrap!important}
.stepper-steps{position:relative!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;align-items:start!important;gap:0!important;min-height:46px!important;z-index:2!important}
.stepper-line{position:absolute!important;left:calc(12.5% + 10px)!important;right:calc(12.5% + 10px)!important;top:23px!important;height:7px!important;border-radius:999px!important;background:linear-gradient(90deg,#ef4444 0%,#f97316 34%,#facc15 67%,#22c55e 100%)!important;box-shadow:inset 0 0 0 1px rgba(15,23,42,.08)!important;opacity:.95!important;z-index:1!important}
.stepper-line::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,rgba(255,255,255,.18),rgba(255,255,255,.45));clip-path:inset(0 calc(100% - (var(--done,0) / 4 * 100%)) 0 0)}
.stepper-step{position:relative!important;display:grid!important;justify-items:center!important;text-align:center!important;gap:2px!important;min-width:0!important;color:var(--text-muted)!important;z-index:3!important}
.stepper-step i{width:20px!important;height:20px!important;border-radius:50%!important;background:var(--surface)!important;border:3px solid currentColor!important;box-shadow:0 0 0 4px var(--surface),0 4px 10px rgba(15,23,42,.12)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:10px!important;font-style:normal!important;font-weight:1000!important;color:#111827!important;line-height:1!important;transition:.18s ease!important}
.stepper-step b{font-size:10px!important;font-weight:1000!important;line-height:1.05!important;white-space:nowrap!important;display:block!important;margin-top:2px!important;transform:translateX(0)!important;color:var(--text)!important}
.stepper-step small{font-size:9px!important;font-weight:800!important;line-height:1.05!important;white-space:nowrap!important;color:var(--text-muted)!important;display:block!important}
.stepper-step.red{color:#ef4444!important}.stepper-step.orange{color:#f97316!important}.stepper-step.yellow{color:#eab308!important}.stepper-step.green{color:#22c55e!important}
.stepper-step.done i,.stepper-step.current i{background:currentColor!important;color:#111827!important;border-color:currentColor!important;transform:scale(1.04)!important}
.stepper-step.current i{box-shadow:0 0 0 4px color-mix(in srgb,currentColor 18%,transparent),0 6px 14px rgba(15,23,42,.18)!important}
html[data-theme="dark"] .stepper-step i{background:#1f2b3a!important;box-shadow:0 0 0 4px #111827,0 4px 10px rgba(0,0,0,.28)!important}
html[data-theme="dark"] .stepper-step.done i,html[data-theme="dark"] .stepper-step.current i{background:currentColor!important;color:#0b1220!important}
html[data-theme="dark"] .stepper-line{opacity:.9!important;background:linear-gradient(90deg,#f05252 0%,#fb923c 34%,#fde047 67%,#4ade80 100%)!important}
.records-tabs{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;overflow-x:auto!important;padding:8px!important;background:var(--surface-soft)!important;border:1px solid var(--line)!important;border-radius:18px!important;scrollbar-width:thin!important}.record-tab{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:36px!important;padding:0 14px!important;border-radius:999px!important;text-decoration:none!important;font-weight:950!important;color:var(--text-muted)!important;white-space:nowrap!important}.record-tab:hover{background:color-mix(in srgb,var(--page-accent,#3d68ff) 13%,transparent)!important;color:var(--text)!important}.record-tab.active{background:var(--page-accent,#3d68ff)!important;color:#fff!important}.record-tab small{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:22px!important;height:22px!important;border-radius:999px!important;background:rgba(255,255,255,.25)!important;font-size:11px!important}
.product-dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;border-radius:24px;background:linear-gradient(135deg,color-mix(in srgb,var(--product,#3d68ff) 18%,var(--surface)),var(--surface));border:1px solid var(--line);box-shadow:var(--shadow-sm);margin-bottom:16px}.product-dashboard-hero small{color:var(--product,#3d68ff);font-weight:1000}.product-dashboard-hero h1{margin:2px 0 4px}.product-dashboard-hero p{margin:0;color:var(--text-muted)}.product-dash-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.product-widget-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:12px}.product-widget{grid-column:span 4;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px;box-shadow:var(--shadow-sm);min-height:112px}.product-widget.kpi{grid-column:span 3;min-height:96px}.product-widget.kpi span{color:var(--text-muted);font-size:12px;font-weight:900}.product-widget.kpi b{display:block;font-size:30px;line-height:1.1}.product-widget h2{margin:0 0 10px;font-size:15px}.product-widget.shortcuts,.product-widget.pipeline{grid-column:span 6}.product-widget.list{grid-column:span 6}.product-widget.stock{grid-column:span 4}.product-widget.shortcuts div{display:flex;flex-wrap:wrap;gap:8px}.product-widget.shortcuts a{display:inline-flex;border-radius:999px;padding:8px 11px;background:var(--surface-soft);border:1px solid var(--line);text-decoration:none;color:var(--text);font-weight:900}.product-pipeline{display:grid;gap:8px}.product-pipeline span{display:grid;grid-template-columns:86px 1fr 28px;align-items:center;gap:8px}.product-pipeline span::before{content:"";height:9px;width:var(--w);min-width:18px;border-radius:999px;background:var(--c);grid-column:2}.product-pipeline b{font-size:12px}.product-pipeline i{font-style:normal;font-weight:1000}.admin-product-widget-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}.admin-widget-builder .dashboard-widget-list{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important}
@media(max-width:1150px){.order.compact-order summary,.order.compact-order.no-select summary{grid-template-columns:34px minmax(120px,1fr) minmax(110px,1fr) minmax(60px,.35fr) minmax(320px,1.6fr) minmax(250px,auto)!important;overflow-x:auto!important}.order.compact-order.no-select summary{grid-template-columns:minmax(120px,1fr) minmax(110px,1fr) minmax(60px,.35fr) minmax(320px,1.6fr) minmax(250px,auto)!important}.product-widget,.product-widget.shortcuts,.product-widget.pipeline,.product-widget.list,.product-widget.stock{grid-column:span 6}.product-widget.kpi{grid-column:span 3}}
@media(max-width:760px){.product-dashboard-hero{display:grid}.product-dash-actions{justify-content:flex-start}.product-widget,.product-widget.shortcuts,.product-widget.pipeline,.product-widget.list,.product-widget.stock,.product-widget.kpi{grid-column:1/-1}.order.compact-order summary,.order.compact-order.no-select summary{min-width:980px!important}.order.compact-order{overflow-x:auto!important}}

/* ==========================================================
   MODIS V5 UI Hotfix - Clean gradient timeline + one-line list rows
   Reference: compact dot timeline, labels centered under dots.
   ========================================================== */
.order.compact-order,
.order.compact-order *{box-sizing:border-box!important}
.order.compact-order{overflow:hidden!important;margin:6px 0!important;border-radius:16px!important}
.order.compact-order>summary{
  display:grid!important;
  grid-template-columns:minmax(34px,auto) minmax(150px,1.05fr) minmax(150px,1.05fr) minmax(70px,.42fr) minmax(270px,1.35fr) minmax(300px,auto)!important;
  align-items:center!important;
  gap:10px!important;
  min-height:50px!important;
  max-height:50px!important;
  padding:8px 12px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}
.order.compact-order.no-select>summary{
  grid-template-columns:minmax(150px,1.05fr) minmax(150px,1.05fr) minmax(70px,.42fr) minmax(270px,1.35fr) minmax(300px,auto)!important;
}
.order.compact-order>summary b,
.order.compact-order>summary span,
.order.compact-order>summary em{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  margin:0!important;
}
.order.compact-order>summary b{font-size:13px!important;line-height:1!important;font-weight:1000!important;color:var(--text)!important}
.order.compact-order>summary>span:not(.row-actions){font-size:12px!important;line-height:1!important;color:var(--text-muted,var(--muted))!important;font-weight:850!important}
.order.compact-order>summary em{justify-self:start!important;font-style:normal!important;font-size:11px!important;line-height:1!important;padding:5px 8px!important;border-radius:999px!important;background:var(--surface-soft,var(--surface-2))!important;color:var(--text)!important;border:1px solid var(--line)!important;font-weight:950!important}
.order.compact-order .select-pill{height:28px!important;min-width:28px!important;padding:0 8px!important;margin:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important}
.order.compact-order .order-stepper{
  position:relative!important;
  display:grid!important;
  align-items:center!important;
  min-width:260px!important;
  max-width:360px!important;
  height:34px!important;
  padding:0 6px!important;
  margin:0!important;
  overflow:visible!important;
}
.order.compact-order .order-status-current{display:none!important}
.order.compact-order .stepper-steps{
  position:relative!important;
  display:grid!important;
  grid-template-columns:repeat(4,1fr)!important;
  align-items:start!important;
  gap:0!important;
  min-height:34px!important;
  height:34px!important;
  z-index:2!important;
}
.order.compact-order .stepper-line{
  position:absolute!important;
  left:calc(12.5% + 8px)!important;
  right:calc(12.5% + 8px)!important;
  top:8px!important;
  height:5px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#ef4444 0%,#f97316 34%,#facc15 67%,#22c55e 100%)!important;
  box-shadow:none!important;
  opacity:1!important;
  z-index:1!important;
}
.order.compact-order .stepper-line::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  border-radius:inherit!important;
  background:var(--line)!important;
  clip-path:inset(0 0 0 calc(var(--done,0) / 4 * 100%))!important;
}
.order.compact-order .stepper-line::after{display:none!important}
.order.compact-order .stepper-step{
  display:grid!important;
  justify-items:center!important;
  align-items:start!important;
  gap:3px!important;
  min-width:0!important;
  text-align:center!important;
  z-index:3!important;
  color:var(--text-muted,var(--muted))!important;
}
.order.compact-order .stepper-step i{
  width:18px!important;
  height:18px!important;
  border-radius:50%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:var(--surface)!important;
  border:3px solid currentColor!important;
  box-shadow:0 0 0 3px var(--surface)!important;
  font-size:0!important;
  line-height:1!important;
  color:transparent!important;
}
.order.compact-order .stepper-step.done i,
.order.compact-order .stepper-step.current i{background:var(--surface)!important;color:transparent!important;transform:none!important}
.order.compact-order .stepper-step.red{color:#ef4444!important}
.order.compact-order .stepper-step.orange{color:#f97316!important}
.order.compact-order .stepper-step.yellow{color:#eab308!important}
.order.compact-order .stepper-step.green{color:#22c55e!important}
.order.compact-order .stepper-step.waiting{color:#d1d5db!important}
.order.compact-order .stepper-step b{
  display:block!important;
  width:100%!important;
  max-width:70px!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:1000!important;
  letter-spacing:.01em!important;
  color:var(--text)!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  text-align:center!important;
  margin:0!important;
  transform:none!important;
}
.order.compact-order .stepper-step small{display:none!important}
.order.compact-order .row-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
  min-width:0!important;
  overflow:hidden!important;
}
.order.compact-order .row-actions .action-chip{
  flex:0 0 auto!important;
  height:28px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  font-size:11px!important;
  line-height:1!important;
  margin:0!important;
  white-space:nowrap!important;
}
.order.compact-order[open]>summary{border-bottom:1px solid var(--line)!important}
@media(max-width:1180px){
  .order.compact-order>summary,
  .order.compact-order.no-select>summary{min-width:920px!important;overflow-x:auto!important;max-height:50px!important}
  .order.compact-order{overflow-x:auto!important}
}
@media(max-width:760px){
  .order.compact-order>summary,
  .order.compact-order.no-select>summary{min-width:980px!important;max-height:50px!important}
}

/* Admin V2 sprint timeline uses the same clean component language. */
.admin-card .timeline{
  position:relative!important;
  display:grid!important;
  grid-template-columns:repeat(6,1fr)!important;
  gap:0!important;
  min-height:58px!important;
  padding:8px 8px 0!important;
  overflow:hidden!important;
}
.admin-card .timeline::before{
  content:""!important;
  position:absolute!important;
  left:calc(100% / 12 + 8px)!important;
  right:calc(100% / 12 + 8px)!important;
  top:17px!important;
  height:5px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#ef4444,#f97316,#facc15,#84cc16,#22c55e)!important;
  opacity:.95!important;
}
.admin-card .timeline b{
  position:relative!important;
  display:grid!important;
  justify-items:center!important;
  gap:7px!important;
  padding:0!important;
  background:transparent!important;
  color:var(--text)!important;
  font-size:10px!important;
  line-height:1!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.admin-card .timeline b::before{
  content:""!important;
  width:18px!important;
  height:18px!important;
  border-radius:50%!important;
  background:var(--panel)!important;
  border:3px solid currentColor!important;
  box-shadow:0 0 0 3px var(--panel)!important;
  z-index:2!important;
}
.admin-card .timeline b:nth-child(1){color:#ef4444!important}.admin-card .timeline b:nth-child(2){color:#f97316!important}.admin-card .timeline b:nth-child(3){color:#eab308!important}.admin-card .timeline b:nth-child(4){color:#84cc16!important}.admin-card .timeline b:nth-child(5),.admin-card .timeline b:nth-child(6){color:#22c55e!important}

/* ==========================================================
   MODIS V5 Final Timeline Rebuild - 15.06.2026
   Goal: reference-style thin line + small dots + centered labels.
   No colored blocks, no oversized markers, no broken track.
   ========================================================== */
.order.compact-order .order-stepper{
  --tl-red:#ef4444;
  --tl-orange:#f59e0b;
  --tl-yellow:#eab308;
  --tl-green:#16a34a;
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:250px!important;
  max-width:360px!important;
  height:34px!important;
  padding:0 4px!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.order.compact-order .order-stepper .order-status-current{display:none!important}
.order.compact-order .stepper-steps{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:start!important;
  gap:0!important;
  height:34px!important;
  min-height:34px!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.order.compact-order .stepper-line{
  position:absolute!important;
  z-index:1!important;
  left:calc(12.5% + 8px)!important;
  right:calc(12.5% + 8px)!important;
  top:8px!important;
  height:5px!important;
  border-radius:999px!important;
  background:var(--line,#d9dde5)!important;
  overflow:hidden!important;
  box-shadow:none!important;
  border:0!important;
  opacity:1!important;
}
.order.compact-order .stepper-line::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  border-radius:inherit!important;
  background:linear-gradient(90deg,var(--tl-red) 0%,var(--tl-orange) 33%,var(--tl-yellow) 66%,var(--tl-green) 100%)!important;
  clip-path:inset(0 calc(100% - (var(--done,0) / 4 * 100%)) 0 0)!important;
  display:block!important;
}
.order.compact-order .stepper-line::after{display:none!important;content:none!important}
.order.compact-order .stepper-step{
  position:relative!important;
  z-index:3!important;
  display:grid!important;
  grid-template-rows:18px 12px!important;
  justify-items:center!important;
  align-items:start!important;
  gap:3px!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  text-align:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  transform:none!important;
  overflow:visible!important;
}
.order.compact-order .stepper-step::before,
.order.compact-order .stepper-step::after{display:none!important;content:none!important}
.order.compact-order .stepper-step i{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  border-radius:50%!important;
  display:block!important;
  padding:0!important;
  margin:0 auto!important;
  background:var(--surface,#fff)!important;
  border:3px solid currentColor!important;
  outline:3px solid var(--surface,#fff)!important;
  box-shadow:none!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  transform:none!important;
}
.order.compact-order .stepper-step.done i,
.order.compact-order .stepper-step.current i,
.order.compact-order .stepper-step.waiting i{
  background:var(--surface,#fff)!important;
  color:transparent!important;
  border-color:currentColor!important;
  transform:none!important;
}
.order.compact-order .stepper-step.red{color:var(--tl-red)!important}
.order.compact-order .stepper-step.orange{color:var(--tl-orange)!important}
.order.compact-order .stepper-step.yellow{color:var(--tl-yellow)!important}
.order.compact-order .stepper-step.green{color:var(--tl-green)!important}
.order.compact-order .stepper-step.waiting{color:#d1d5db!important}
.order.compact-order .stepper-step b{
  display:block!important;
  width:100%!important;
  max-width:72px!important;
  padding:0!important;
  margin:0 auto!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:var(--text,#111827)!important;
  font-size:9px!important;
  font-weight:1000!important;
  line-height:1.05!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  transform:none!important;
}
.order.compact-order .stepper-step small{display:none!important}
html[data-theme="dark"] .order.compact-order .stepper-step i{
  background:#111827!important;
  outline-color:#111827!important;
}
html[data-theme="dark"] .order.compact-order .stepper-line{background:#374151!important}

/* MODIS V5 Timeline Update - colored border / filled completed dots + completed order menu */
.order.compact-order .order-stepper{min-width:330px!important;max-width:440px!important;height:38px!important;padding:0 8px!important;}
.order.compact-order .stepper-steps{grid-template-columns:repeat(5,1fr)!important;min-height:38px!important;height:38px!important;}
.order.compact-order .stepper-line{left:calc(10% + 8px)!important;right:calc(10% + 8px)!important;top:8px!important;background:linear-gradient(90deg,#ef4444 0%,#f97316 25%,#facc15 50%,#84cc16 75%,#22c55e 100%)!important;}
.order.compact-order .stepper-line::before{clip-path:inset(0 0 0 calc(var(--done,0) / 5 * 100%))!important;}
.order.compact-order .stepper-step i{background:var(--surface)!important;border-color:currentColor!important;color:transparent!important;}
.order.compact-order .stepper-step.done i{background:currentColor!important;border-color:currentColor!important;color:transparent!important;}
.order.compact-order .stepper-step.current i{background:var(--surface)!important;border-color:currentColor!important;color:transparent!important;}
.order.compact-order .stepper-step.waiting i{background:var(--surface)!important;border-color:#d1d5db!important;color:transparent!important;}
.order.compact-order .stepper-step.lime{color:#84cc16!important;}
.order.compact-order .stepper-step.green{color:#16a34a!important;}
.order.compact-order .stepper-step b{max-width:78px!important;font-size:8.5px!important;}
.order-subnav{display:flex;gap:8px;align-items:center;margin:14px 0 10px;flex-wrap:wrap}.order-subnav a{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);text-decoration:none;font-weight:900;font-size:12px}.order-subnav a.active{background:var(--page-accent,#3d68ff);border-color:var(--page-accent,#3d68ff);color:#fff}.completed-orders-list{display:grid;gap:8px;margin-top:10px}.completed-order-row{display:grid;grid-template-columns:32px minmax(140px,1.2fr) minmax(140px,1fr) 78px 112px minmax(170px,auto);gap:10px;align-items:center;min-height:46px;padding:8px 12px;border:1px solid var(--line);border-radius:15px;background:var(--surface);box-shadow:0 8px 24px rgba(15,23,42,.04);overflow:hidden}.completed-order-row>b,.completed-order-row>span,.completed-order-row>em{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.completed-order-row em{font-style:normal;font-size:11px;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);font-weight:900}.completed-order-row strong{justify-self:start;color:#16a34a;background:#dcfce7;border:1px solid #bbf7d0;border-radius:999px;padding:5px 10px;font-size:11px}.done-mark{width:24px;height:24px;border-radius:999px;background:#16a34a;color:#fff;display:grid;place-items:center;font-weight:1000}.completed-actions{display:flex;justify-content:flex-end;gap:6px;white-space:nowrap}.completed-actions .mini{height:28px;border-radius:999px;font-size:11px;padding:0 10px}@media(max-width:900px){.completed-order-row{min-width:780px}.completed-orders-list{overflow-x:auto}.order.compact-order .order-stepper{min-width:380px!important}}

/* ==========================================================
   MODIS V5 Sprint 1.2 - Timeline Component Final Reset
   Purpose: reference-style single-line timeline. No boxes, no pill,
   dots centered on the track; completed dots are filled with their tone.
   ========================================================== */
.order.compact-order .order-stepper,
.order.compact-order.no-select .order-stepper{
  --tl-red:#ef4444;
  --tl-orange:#f59e0b;
  --tl-yellow:#eab308;
  --tl-lime:#65a30d;
  --tl-green:#16a34a;
  position:relative!important;
  display:block!important;
  align-self:center!important;
  width:100%!important;
  min-width:340px!important;
  max-width:470px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0 10px!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.order.compact-order .order-stepper .order-status-current,
.order.compact-order.no-select .order-stepper .order-status-current{
  display:none!important;
}
.order.compact-order .order-stepper .stepper-line,
.order.compact-order.no-select .order-stepper .stepper-line{
  position:absolute!important;
  z-index:1!important;
  left:calc(10% + 10px)!important;
  right:calc(10% + 10px)!important;
  top:10px!important;
  width:auto!important;
  height:5px!important;
  min-height:5px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:999px!important;
  background:#dfe3ea!important;
  box-shadow:none!important;
  overflow:hidden!important;
  opacity:1!important;
}
.order.compact-order .order-stepper .stepper-line::before,
.order.compact-order.no-select .order-stepper .stepper-line::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  display:block!important;
  border-radius:inherit!important;
  background:linear-gradient(90deg,var(--tl-red) 0%,var(--tl-orange) 25%,var(--tl-yellow) 50%,var(--tl-lime) 75%,var(--tl-green) 100%)!important;
  width:calc((var(--done,0) / 5) * 100%)!important;
  min-width:0!important;
  max-width:100%!important;
  clip-path:none!important;
}
.order.compact-order .order-stepper .stepper-line::after,
.order.compact-order.no-select .order-stepper .stepper-line::after{
  content:none!important;
  display:none!important;
}
.order.compact-order .order-stepper .stepper-steps,
.order.compact-order.no-select .order-stepper .stepper-steps{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:start!important;
  gap:0!important;
  width:100%!important;
  height:42px!important;
  min-height:42px!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.order.compact-order .order-stepper .stepper-step,
.order.compact-order.no-select .order-stepper .stepper-step{
  position:relative!important;
  z-index:3!important;
  display:grid!important;
  grid-template-rows:22px 13px!important;
  justify-items:center!important;
  align-items:start!important;
  gap:3px!important;
  min-width:0!important;
  height:42px!important;
  min-height:42px!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  text-align:center!important;
  transform:none!important;
  overflow:visible!important;
}
.order.compact-order .order-stepper .stepper-step::before,
.order.compact-order .order-stepper .stepper-step::after,
.order.compact-order.no-select .order-stepper .stepper-step::before,
.order.compact-order.no-select .order-stepper .stepper-step::after{
  content:none!important;
  display:none!important;
}
.order.compact-order .order-stepper .stepper-step.red,
.order.compact-order.no-select .order-stepper .stepper-step.red{--dot-color:var(--tl-red)!important;color:var(--tl-red)!important;}
.order.compact-order .order-stepper .stepper-step.orange,
.order.compact-order.no-select .order-stepper .stepper-step.orange{--dot-color:var(--tl-orange)!important;color:var(--tl-orange)!important;}
.order.compact-order .order-stepper .stepper-step.yellow,
.order.compact-order.no-select .order-stepper .stepper-step.yellow{--dot-color:var(--tl-yellow)!important;color:var(--tl-yellow)!important;}
.order.compact-order .order-stepper .stepper-step.lime,
.order.compact-order.no-select .order-stepper .stepper-step.lime{--dot-color:var(--tl-lime)!important;color:var(--tl-lime)!important;}
.order.compact-order .order-stepper .stepper-step.green,
.order.compact-order.no-select .order-stepper .stepper-step.green{--dot-color:var(--tl-green)!important;color:var(--tl-green)!important;}
.order.compact-order .order-stepper .stepper-step.waiting,
.order.compact-order.no-select .order-stepper .stepper-step.waiting{--dot-color:#cfd5df!important;color:#cfd5df!important;}
.order.compact-order .order-stepper .stepper-step i,
.order.compact-order.no-select .order-stepper .stepper-step i{
  position:relative!important;
  z-index:4!important;
  display:block!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  max-width:22px!important;
  max-height:22px!important;
  padding:0!important;
  margin:0 auto!important;
  border-radius:999px!important;
  border:3px solid var(--dot-color)!important;
  outline:4px solid var(--surface,#fff)!important;
  background:var(--surface,#fff)!important;
  box-shadow:none!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  text-indent:-9999px!important;
  transform:none!important;
}
.order.compact-order .order-stepper .stepper-step.done i,
.order.compact-order.no-select .order-stepper .stepper-step.done i{
  background:var(--dot-color)!important;
  border-color:var(--dot-color)!important;
  color:transparent!important;
}
.order.compact-order .order-stepper .stepper-step.current i,
.order.compact-order.no-select .order-stepper .stepper-step.current i{
  background:var(--surface,#fff)!important;
  border-color:var(--dot-color)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--dot-color) 20%,transparent)!important;
}
.order.compact-order .order-stepper .stepper-step.waiting i,
.order.compact-order.no-select .order-stepper .stepper-step.waiting i{
  background:var(--surface,#fff)!important;
  border-color:#cfd5df!important;
  box-shadow:none!important;
}
.order.compact-order .order-stepper .stepper-step b,
.order.compact-order.no-select .order-stepper .stepper-step b{
  display:block!important;
  width:100%!important;
  max-width:86px!important;
  min-width:0!important;
  padding:0!important;
  margin:0 auto!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:var(--text,#111827)!important;
  font-size:10px!important;
  font-weight:1000!important;
  line-height:1.05!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  transform:none!important;
}
.order.compact-order .order-stepper .stepper-step small,
.order.compact-order.no-select .order-stepper .stepper-step small{
  display:none!important;
}
html[data-theme="dark"] .order.compact-order .order-stepper .stepper-line,
html[data-theme="dark"] .order.compact-order.no-select .order-stepper .stepper-line{background:#374151!important;}
html[data-theme="dark"] .order.compact-order .order-stepper .stepper-step i,
html[data-theme="dark"] .order.compact-order.no-select .order-stepper .stepper-step i{outline-color:var(--surface,#111827)!important;}
@media(max-width:980px){
  .order.compact-order .order-stepper,
  .order.compact-order.no-select .order-stepper{min-width:390px!important;}
}

/* ==========================================================
   MODIS V5 order row action/timeline separation fix
   - no popup on complete action
   - five-step timeline, filled completed dots
   - action buttons never overlap timeline
   ========================================================== */
.order.compact-order>summary{
  grid-template-columns:minmax(34px,auto) minmax(150px,1fr) minmax(140px,.9fr) minmax(70px,.35fr) minmax(410px,1.45fr) minmax(420px,auto)!important;
  column-gap:14px!important;
  overflow:hidden!important;
}
.order.compact-order.no-select>summary{
  grid-template-columns:minmax(150px,1fr) minmax(140px,.9fr) minmax(70px,.35fr) minmax(410px,1.45fr) minmax(420px,auto)!important;
}
.order.compact-order .order-stepper{
  min-width:400px!important;
  max-width:460px!important;
  width:100%!important;
  justify-self:stretch!important;
  padding:0 10px!important;
}
.order.compact-order .stepper-steps{grid-template-columns:repeat(5,1fr)!important}
.order.compact-order .stepper-line{
  left:calc(10% + 8px)!important;
  right:calc(10% + 8px)!important;
  top:8px!important;
}
.order.compact-order .stepper-line::before{clip-path:inset(0 0 0 calc(var(--done,0) / 5 * 100%))!important}
.order.compact-order .stepper-step.done i{
  background:currentColor!important;
  border-color:currentColor!important;
  box-shadow:0 0 0 3px var(--surface)!important;
}
.order.compact-order .stepper-step.current i{
  background:var(--surface)!important;
  border-color:currentColor!important;
}
.order.compact-order .stepper-step.lime{color:#84cc16!important}
.order.compact-order .stepper-step.green{color:#22c55e!important}
.order.compact-order .row-actions{
  justify-self:end!important;
  min-width:max-content!important;
  overflow:visible!important;
  padding-left:10px!important;
  background:var(--surface)!important;
}
.order.compact-order .row-actions .action-chip{height:27px!important;padding:0 9px!important;font-size:10.5px!important}
.completed-order-row{grid-template-columns:28px minmax(150px,1fr) minmax(140px,1fr) 80px 110px minmax(420px,auto)!important}
.completed-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:nowrap!important;white-space:nowrap!important;overflow:visible!important}.completed-actions .mini{height:28px!important;padding:0 9px!important;border-radius:999px!important;font-size:10.5px!important;white-space:nowrap!important}
@media(max-width:1280px){.order.compact-order>summary,.order.compact-order.no-select>summary{min-width:1220px!important;overflow-x:auto!important}.order.compact-order{overflow-x:auto!important}.completed-order-row{min-width:980px!important;overflow-x:auto!important}}


/* MODIS V5 Notification Engine + Dealer Inbox */
.header-notifications{position:relative;display:inline-flex;align-items:center;margin-left:6px;z-index:50}.notify-trigger{height:34px;min-width:38px;border:1px solid rgba(15,23,42,.10);background:rgba(255,255,255,.86);border-radius:999px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;position:relative}.notify-trigger b{position:absolute;right:-5px;top:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center}.notify-menu{position:absolute;right:0;top:42px;width:320px;max-width:calc(100vw - 24px);background:var(--surface,#fff);border:1px solid rgba(15,23,42,.10);border-radius:18px;box-shadow:0 20px 60px rgba(15,23,42,.18);padding:12px;display:none}.header-notifications:hover .notify-menu,.header-notifications:focus-within .notify-menu{display:block}.notify-menu strong{display:block;margin:4px 6px 10px}.notify-item{display:block;padding:10px;border-radius:12px;text-decoration:none;color:inherit;border:1px solid transparent}.notify-item:hover{background:rgba(61,104,255,.08)}.notify-item.unread{background:rgba(239,68,68,.07);border-color:rgba(239,68,68,.12)}.notify-item span{display:block;font-weight:800;font-size:13px}.notify-item small{display:block;margin-top:3px;color:var(--muted,#64748b);line-height:1.3}.notify-all{display:flex;justify-content:center;margin-top:8px;padding:9px;border-radius:999px;background:rgba(61,104,255,.10);font-weight:800;text-decoration:none}.dealer-inbox{grid-column:span 6;min-width:0}.widget-title-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.widget-title-line span{background:#ef4444;color:#fff;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:900}.dealer-inbox-list{display:grid;gap:9px;margin:10px 0}.dealer-inbox-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border:1px solid rgba(15,23,42,.08);border-radius:14px;background:rgba(248,250,252,.72)}.dealer-inbox-row b,.dealer-inbox-row span,.dealer-inbox-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dealer-inbox-row span{font-weight:700}.dealer-inbox-row small{color:var(--muted,#64748b)}.dealer-inbox-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}.notification-page-list{display:grid;gap:10px}.notification-page-item{display:grid;gap:4px;text-decoration:none;color:inherit;padding:14px;border:1px solid rgba(15,23,42,.08);border-radius:16px;background:var(--surface,#fff)}.notification-page-item.unread{border-color:rgba(239,68,68,.20);background:rgba(239,68,68,.06)}.notification-page-item span{color:var(--muted,#64748b)}@media(max-width:900px){.dealer-inbox{grid-column:span 12}.dealer-inbox-row{grid-template-columns:1fr}.dealer-inbox-actions{justify-content:flex-start}.notify-menu{right:-80px}}

/* Sprint 1.4 Print Hotfix: Optimization print layout */
body.print .optimization-profile-section.modern-opt-section{break-inside:avoid;margin:10px 0 14px!important;border:1px solid #d1d5db!important;border-radius:14px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 4px 14px rgba(15,23,42,.06)!important}
body.print .optimization-profile-section .opt-section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:9px 11px!important;background:linear-gradient(90deg,#111827,#374151)!important;color:#fff!important}
body.print .optimization-profile-section .opt-section-head h2{margin:0!important;font-size:13px!important;line-height:1.1!important;color:#fff!important;font-weight:950!important;letter-spacing:.01em!important}
body.print .optimization-profile-section .opt-badges{display:flex!important;gap:6px!important;align-items:center!important;flex-wrap:wrap!important}
body.print .optimization-profile-section .opt-badges span,body.print .modern-profile-heading span{display:inline-flex!important;align-items:center!important;gap:5px!important;padding:5px 8px!important;border-radius:999px!important;background:#f8fafc!important;border:1px solid #dbe2ea!important;color:#334155!important;font-size:10px!important;font-weight:850!important;white-space:nowrap!important}
body.print .optimization-profile-section .opt-badges b,body.print .modern-profile-heading strong{color:#111827!important;font-weight:950!important}
body.print .profile-box.modern-profile-box{border:0!important;margin:0!important;padding:9px 10px 10px!important;background:#fff!important;break-inside:avoid!important}
body.print .modern-profile-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:7px 8px!important;margin:0 0 8px!important;border:1px solid #e2e8f0!important;border-radius:11px!important;background:#f8fafc!important}
body.print .modern-profile-heading b{display:inline-flex!important;align-items:center!important;gap:6px!important;margin:0!important;color:#111827!important;font-size:11px!important;font-weight:950!important;white-space:nowrap!important}
body.print .modern-profile-heading b:before{content:"";width:9px;height:9px;border-radius:50%;background:#2563eb;display:inline-block;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
body.print .profile-line.modern-profile-line{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:8px!important;align-items:stretch!important;margin:7px 0!important;break-inside:avoid!important}
body.print .profile-line .profile-code{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;min-height:28px!important;border:1px solid #111827!important;border-radius:9px!important;background:#111827!important;color:#fff!important;font-size:11px!important;font-weight:950!important;line-height:1!important;letter-spacing:.02em!important;text-align:center!important}
body.print .profile-line.stock-line .profile-code{background:#0f766e!important;border-color:#0f766e!important}
body.print .profile-line .profile-code small{display:block!important;margin-top:3px!important;color:#d1fae5!important;font-size:7px!important;font-weight:850!important}
body.print .profile-bar{height:30px!important;border:1px solid #111827!important;border-radius:9px!important;display:flex!important;overflow:hidden!important;background:#f8fafc!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)!important}
body.print .profile-bar span,body.print .profile-bar em{display:flex!important;align-items:center!important;justify-content:center!important;width:var(--w)!important;min-width:32px!important;border-right:1px solid rgba(17,24,39,.34)!important;font-size:8.7px!important;font-style:normal!important;line-height:1!important;white-space:nowrap!important;color:#111827!important;background:#dbeafe!important;font-weight:850!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.print .profile-bar span:nth-child(2n){background:#bfdbfe!important}
body.print .profile-bar em{background:#fee2e2!important;color:#991b1b!important;border-right:0!important;font-weight:950!important}
body.print .profile-bar span i,body.print .profile-bar em i{font-style:normal!important;display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;padding:0 3px!important}
body.print .profile-bar span.focus-cut{background:#fde68a!important;box-shadow:inset 0 0 0 2px #f59e0b!important}
body.print .profile-line.focus-order-line .profile-code{background:#f59e0b!important;border-color:#f59e0b!important;color:#111827!important}
@media print{body.print .optimization-profile-section.modern-opt-section{box-shadow:none!important}body.print .profile-line.modern-profile-line{page-break-inside:avoid!important}}

/* V5 Sprint 1.4 - User adjustable optimization print layout */
.optimization-print-settings .optimization-print-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));align-items:end}
.optimization-print-settings label{display:flex;flex-direction:column;gap:6px;font-weight:850;color:#334155}
.optimization-print-settings input,.optimization-print-settings select{width:100%;border:1px solid #dbe2ea;border-radius:12px;padding:9px 10px;background:#fff;color:#111827;font-weight:800}
.opt-preset-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}
body.print .optimization-profile-section.modern-opt-section{margin:var(--opt-section-margin)!important;border-radius:var(--opt-section-radius)!important}
body.print .optimization-profile-section .opt-section-head{padding:var(--opt-cell-padding)!important}
body.print .optimization-profile-section .opt-section-head h2{font-size:var(--opt-head-font)!important}
body.print .optimization-profile-section .opt-badges span,body.print .modern-profile-heading span{font-size:var(--opt-profile-badge-font)!important;padding:calc(var(--opt-profile-badge-font) * .35) calc(var(--opt-profile-badge-font) * .7)!important}
body.print .profile-box.modern-profile-box{padding:var(--opt-profile-card-padding)!important}
body.print .modern-profile-heading{padding:var(--opt-profile-header-padding)!important;margin:0 0 calc(var(--opt-profile-code-height) * .22)!important;border-radius:var(--opt-section-radius)!important}
body.print .modern-profile-heading b{font-size:var(--opt-profile-header-font)!important}
body.print .profile-line.modern-profile-line{grid-template-columns:var(--opt-profile-code-width) minmax(0,1fr)!important;gap:calc(var(--opt-profile-code-width) * .18)!important;margin:calc(var(--opt-profile-code-height) * .18) 0!important;min-height:var(--opt-row-height)!important}
body.print .profile-line .profile-code{min-height:var(--opt-profile-code-height)!important;border-radius:calc(var(--opt-section-radius) * .75)!important;font-size:var(--opt-profile-code-font)!important}
body.print .profile-bar{height:var(--opt-bar-height)!important;border-radius:calc(var(--opt-section-radius) * .75)!important}
body.print .profile-bar span,body.print .profile-bar em{min-width:var(--opt-cut-min-width)!important;font-size:var(--opt-cut-font)!important}
body.print .profile-bar span i,body.print .profile-bar em i{padding:0 2px!important}
@media print{body.print .optimization-sheet{padding:8mm!important}body.print .print-actions{display:none!important}}


/* V5 Print Template Scope Fix - Formlar ayarları sadece şablon içeriğine işler */
body.print .production-sheet .print-head,
body.print .production-sheet .print-actions,
body.print .optimization-sheet .print-head,
body.print .optimization-sheet .print-actions{font-size:initial!important;line-height:normal!important}
body.print .production-sheet .production-table{font-size:var(--prod-body-font)!important;line-height:var(--prod-line-height)!important}
body.print .production-sheet .production-table th{font-size:var(--prod-head-font)!important;padding:var(--prod-cell-padding)!important;height:var(--prod-row-height)!important;line-height:var(--prod-line-height)!important}
body.print .production-sheet .production-table td{font-size:var(--prod-body-font)!important;padding:var(--prod-cell-padding)!important;height:var(--prod-row-height)!important;line-height:var(--prod-line-height)!important}
body.print .optimization-sheet .modern-opt-section{font-size:var(--opt-body-font)!important;line-height:var(--opt-line-height)!important}
body.print .optimization-sheet .print-head,
body.print .optimization-sheet .print-head *,
body.print .optimization-sheet .print-actions,
body.print .optimization-sheet .print-actions *{font-size:revert!important;line-height:normal!important;min-height:auto!important}
body.print .profile-bar span i,
body.print .profile-bar em{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;color:inherit!important;font-size:inherit!important;line-height:inherit!important;visibility:visible!important;opacity:1!important}

/* Sprint 1.5 Formula Engine UI */
.formula-help{display:grid;gap:6px;margin:12px 0 14px;padding:14px 16px;border:1px solid rgba(59,130,246,.18);border-radius:18px;background:linear-gradient(135deg,rgba(59,130,246,.08),rgba(34,197,94,.06));color:var(--text)}
.formula-help b{font-size:15px}.formula-help span,.formula-help small{color:var(--muted);font-weight:700}.formula-help code,.formula-examples code{display:inline-block;padding:2px 6px;border-radius:8px;background:rgba(15,23,42,.08);font-weight:900;color:var(--text)}
.formula-rule-table td:first-child small{display:block;margin-top:3px;color:var(--muted);font-size:11px;white-space:nowrap}.formula-cell{min-width:92px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px!important}.formula-examples{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 14px}.formula-examples span{padding:8px 10px;border-radius:14px;background:var(--panel-2);border:1px solid var(--line);font-size:12px;color:var(--muted);font-weight:800}.formula-table-wrap table th{white-space:nowrap}
@media(max-width:900px){.formula-examples{display:grid}.formula-cell{min-width:130px}}

/* Sprint 1.5 - Form Designer V2 */
.form-designer-panel{overflow:hidden!important}
.form-system-designer{border:1px solid var(--line)!important;border-radius:20px!important;background:var(--surface)!important;margin:14px 0!important;padding:14px!important;box-shadow:var(--shadow-sm)!important}
.form-system-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin-bottom:12px!important}
.form-system-head h3{margin:2px 0 0!important;font-size:18px!important;letter-spacing:-.02em!important}
.form-system-head small{color:var(--muted)!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.08em!important}
.form-system-head span{color:var(--muted)!important;font-size:12px!important;font-weight:800!important;background:var(--surface-2)!important;border:1px solid var(--line)!important;border-radius:999px!important;padding:7px 10px!important;white-space:nowrap!important}
.designer-table th,.designer-table td{vertical-align:middle!important;white-space:nowrap!important}
.designer-table .formula-cell{min-width:230px!important;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important}
.designer-table .mini-cell{max-width:86px!important;min-width:72px!important}
.new-column-row td{background:color-mix(in srgb,var(--page-accent,#3d68ff) 7%,var(--surface))!important;border-top:2px solid color-mix(in srgb,var(--page-accent,#3d68ff) 22%,var(--line))!important}
@media(max-width:900px){.form-system-head{display:grid!important}.form-system-head span{white-space:normal!important}.designer-table .formula-cell{min-width:180px!important}}

/* Sprint 1.5 - Formlar Accordion UI */
.forms-accordion-page{overflow:hidden!important}
.form-accordion-toolbar{display:flex!important;gap:10px!important;margin:14px 0 16px!important}
.form-accordion-toolbar input{width:100%!important;border:1px solid var(--line)!important;border-radius:16px!important;background:var(--surface)!important;color:var(--text)!important;padding:12px 14px!important;font-weight:800!important;outline:none!important}
.forms-accordion{display:grid!important;gap:12px!important}
.forms-acc{border:1px solid var(--line)!important;border-radius:20px!important;background:var(--surface)!important;box-shadow:var(--shadow-sm)!important;overflow:hidden!important}
.forms-acc[hidden]{display:none!important}
.forms-acc>summary{list-style:none!important;cursor:pointer!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding:15px 17px!important;background:linear-gradient(135deg,color-mix(in srgb,var(--page-accent,#3d68ff) 7%,var(--surface)),var(--surface))!important;border-bottom:1px solid transparent!important}
.forms-acc>summary::-webkit-details-marker{display:none!important}
.forms-acc>summary:before{content:'▶';display:grid;place-items:center;width:26px;height:26px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);font-size:11px;font-weight:900;transition:.18s ease;flex:0 0 auto}
.forms-acc[open]>summary:before{content:'▼';background:color-mix(in srgb,var(--page-accent,#3d68ff) 12%,var(--surface));border-color:color-mix(in srgb,var(--page-accent,#3d68ff) 28%,var(--line))}
.forms-acc[open]>summary{border-bottom-color:var(--line)!important}
.forms-acc>summary span{font-size:15px!important;font-weight:950!important;color:var(--text)!important;margin-right:auto!important}
.forms-acc>summary small{font-size:12px!important;color:var(--muted)!important;font-weight:800!important;text-align:right!important}
.forms-acc-body{padding:16px!important;background:var(--surface)!important}
.forms-acc-body>h2{margin-top:0!important}
.forms-acc-body .table-wrap{max-height:62vh;overflow:auto!important;border-radius:16px!important}
@media(max-width:800px){.forms-acc>summary{align-items:flex-start!important}.forms-acc>summary small{text-align:left!important}.forms-acc-body{padding:12px!important}}

/* Sprint 1.5 Hotfix - Form Designer Accordion Premium UI */
.forms-accordion-page{
  background:linear-gradient(180deg,color-mix(in srgb,var(--page-accent,#3d68ff) 5%,var(--surface)),var(--surface))!important;
  border:1px solid color-mix(in srgb,var(--page-accent,#3d68ff) 13%,var(--line))!important;
}
.forms-accordion-page>h2{
  display:flex!important;align-items:center!important;gap:10px!important;margin-bottom:6px!important;
  font-size:22px!important;font-weight:950!important;letter-spacing:-.03em!important;
}
.forms-accordion-page>h2:before{content:'⚙';display:grid!important;place-items:center!important;width:36px!important;height:36px!important;border-radius:14px!important;background:color-mix(in srgb,var(--page-accent,#3d68ff) 13%,var(--surface))!important;border:1px solid color-mix(in srgb,var(--page-accent,#3d68ff) 18%,var(--line))!important;box-shadow:0 10px 24px rgba(20,35,70,.08)!important}
.form-accordion-toolbar input{box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 10px 22px rgba(20,35,70,.05)!important;transition:.16s ease!important}
.form-accordion-toolbar input:focus{border-color:color-mix(in srgb,var(--page-accent,#3d68ff) 45%,var(--line))!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--page-accent,#3d68ff) 11%,transparent)!important}
.forms-accordion{gap:14px!important}
.forms-acc{border-radius:22px!important;background:rgba(255,255,255,.78)!important;backdrop-filter:blur(10px)!important;box-shadow:0 14px 36px rgba(22,34,55,.08)!important;border-color:rgba(130,148,178,.24)!important}
.forms-acc>summary{min-height:66px!important;padding:15px 18px!important;background:linear-gradient(135deg,rgba(255,255,255,.86),color-mix(in srgb,var(--page-accent,#3d68ff) 7%,#fff))!important;position:relative!important}
.forms-acc>summary:after{content:'';position:absolute;left:60px;right:18px;bottom:0;height:1px;background:linear-gradient(90deg,color-mix(in srgb,var(--page-accent,#3d68ff) 22%,transparent),transparent);opacity:0;transition:.16s ease}
.forms-acc[open]>summary:after{opacity:1}
.forms-acc>summary:before{content:'›'!important;width:34px!important;height:34px!important;border-radius:14px!important;background:#fff!important;color:var(--page-accent,#3d68ff)!important;border:1px solid color-mix(in srgb,var(--page-accent,#3d68ff) 20%,var(--line))!important;font-size:24px!important;line-height:1!important;box-shadow:0 10px 20px rgba(22,34,55,.08)!important;transform:rotate(0deg)!important}
.forms-acc[open]>summary:before{content:'›'!important;transform:rotate(90deg)!important;background:color-mix(in srgb,var(--page-accent,#3d68ff) 12%,#fff)!important}
.forms-acc>summary span{font-size:16px!important;letter-spacing:-.02em!important;display:flex!important;align-items:center!important;gap:9px!important}
.forms-acc:nth-child(1)>summary span:before{content:'🎨'}
.forms-acc:nth-child(2)>summary span:before{content:'✂️'}
.forms-acc:nth-child(3)>summary span:before{content:'📋'}
.forms-acc>summary small{background:rgba(255,255,255,.64)!important;border:1px solid rgba(130,148,178,.22)!important;border-radius:999px!important;padding:5px 9px!important;color:#64748b!important}
.forms-acc-body{padding:18px!important;background:linear-gradient(180deg,#fff,rgba(248,250,252,.86))!important}
.forms-acc-body h2{font-size:18px!important;font-weight:950!important;letter-spacing:-.02em!important}
.optimization-print-grid label{background:#fff!important;border:1px solid rgba(130,148,178,.22)!important;border-radius:16px!important;padding:10px!important;box-shadow:0 8px 18px rgba(22,34,55,.04)!important;font-weight:850!important;color:#334155!important}
.optimization-print-grid input,.optimization-print-grid select{margin-top:7px!important;border-radius:12px!important;border:1px solid rgba(130,148,178,.32)!important;background:#f8fafc!important}
.opt-preset-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-top:14px!important;padding:12px!important;border-radius:16px!important;background:color-mix(in srgb,var(--page-accent,#3d68ff) 6%,#fff)!important;border:1px solid color-mix(in srgb,var(--page-accent,#3d68ff) 14%,var(--line))!important}
@media(max-width:800px){.forms-acc>summary small{border-radius:12px!important}.opt-preset-row{display:grid!important}.forms-acc>summary{display:grid!important;grid-template-columns:auto 1fr!important}.forms-acc>summary small{grid-column:2!important;text-align:left!important}}

/* Sprint 1.5 Hotfix - Form Tasarımcısı ana accordion başlıkları kesin tasarım */
.forms-accordion-page .forms-accordion{
  display:grid!important;
  gap:16px!important;
}
.forms-accordion-page .forms-acc{
  border:1px solid #dbe4f0!important;
  border-radius:24px!important;
  background:#ffffff!important;
  box-shadow:0 18px 42px rgba(15,23,42,.09)!important;
  overflow:hidden!important;
}
.forms-accordion-page .forms-acc>summary{
  min-height:78px!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  padding:16px 20px!important;
  background:linear-gradient(135deg,#ffffff 0%,#f6f9ff 48%,#eef4ff 100%)!important;
  border-bottom:1px solid transparent!important;
  cursor:pointer!important;
  list-style:none!important;
  position:relative!important;
}
.forms-accordion-page .forms-acc>summary::-webkit-details-marker{display:none!important}
.forms-accordion-page .forms-acc[open]>summary{border-bottom-color:#e2e8f0!important}
.forms-accordion-page .forms-acc>summary:before{
  content:'›'!important;
  width:44px!important;
  height:44px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:16px!important;
  background:#ffffff!important;
  color:#2563eb!important;
  border:1px solid #c7d7fe!important;
  box-shadow:0 10px 24px rgba(37,99,235,.14)!important;
  font-size:32px!important;
  font-weight:900!important;
  line-height:1!important;
  transform:rotate(0deg)!important;
  transition:transform .18s ease, background .18s ease!important;
}
.forms-accordion-page .forms-acc[open]>summary:before{
  transform:rotate(90deg)!important;
  background:#eff6ff!important;
}
.forms-accordion-page .forms-acc>summary:after{
  content:''!important;
  position:absolute!important;
  left:84px!important;
  right:20px!important;
  bottom:0!important;
  height:1px!important;
  background:linear-gradient(90deg,#93c5fd,transparent)!important;
  opacity:0!important;
}
.forms-accordion-page .forms-acc[open]>summary:after{opacity:1!important}
.forms-accordion-page .forms-acc>summary span{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  color:#0f172a!important;
  font-size:17px!important;
  font-weight:950!important;
  letter-spacing:-.025em!important;
  margin:0!important;
}
.forms-accordion-page .forms-acc>summary small{
  justify-self:end!important;
  max-width:360px!important;
  padding:7px 11px!important;
  border-radius:999px!important;
  background:#f8fafc!important;
  border:1px solid #e2e8f0!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:850!important;
  text-align:right!important;
  white-space:normal!important;
}
.forms-accordion-page .forms-acc:nth-child(1)>summary span:before,
.forms-accordion-page .forms-acc:nth-child(2)>summary span:before,
.forms-accordion-page .forms-acc:nth-child(3)>summary span:before{
  display:grid!important;
  place-items:center!important;
  width:30px!important;
  height:30px!important;
  border-radius:12px!important;
  background:#eef4ff!important;
  border:1px solid #dbeafe!important;
  font-size:15px!important;
  flex:0 0 auto!important;
}
.forms-accordion-page .forms-acc:nth-child(1)>summary span:before{content:'🎨'!important}
.forms-accordion-page .forms-acc:nth-child(2)>summary span:before{content:'✂️'!important}
.forms-accordion-page .forms-acc:nth-child(3)>summary span:before{content:'📋'!important}
.forms-accordion-page .forms-acc-body{
  padding:18px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;
}
@media(max-width:800px){
  .forms-accordion-page .forms-acc>summary{grid-template-columns:44px minmax(0,1fr)!important;min-height:auto!important}
  .forms-accordion-page .forms-acc>summary small{grid-column:2!important;justify-self:start!important;text-align:left!important;border-radius:12px!important;max-width:100%!important}
}


/* V5 Sprint 1.5 - Optimization ProfileCard spacing component reset */
body.print .optimization-sheet .modern-profile-box{
  display:grid!important;
  row-gap:var(--opt-profile-line-gap,4px)!important;
}
body.print .optimization-sheet .profile-line.modern-profile-line{
  margin:0!important;
  align-items:stretch!important;
}
body.print .optimization-sheet .profile-line.modern-profile-line + .profile-line.modern-profile-line{
  margin-top:0!important;
}
body.print .optimization-sheet .profile-heading.modern-profile-heading{
  margin:0!important;
}
body.print .optimization-sheet .optimization-profile-section.modern-opt-section > .modern-profile-box + .modern-profile-box{
  border-top:1px dashed rgba(148,163,184,.55)!important;
}

/* Sprint 1.5 - Component eşleşmeli Form Designer + canlı önizleme */
.forms-accordion-page{background:linear-gradient(180deg,#ffffff,#f8fafc);border:1px solid #e2e8f0;border-radius:22px;box-shadow:0 18px 45px rgba(15,23,42,.08)}
.forms-accordion{display:grid;gap:12px;margin-top:14px}.forms-acc{border:1px solid #e2e8f0;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 10px 28px rgba(15,23,42,.06)}
.forms-acc>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;background:linear-gradient(135deg,#f8fafc,#eef2ff);border-bottom:1px solid transparent;color:#0f172a;font-weight:950}
.forms-acc[open]>summary{border-bottom-color:#e2e8f0;background:linear-gradient(135deg,#eef2ff,#f8fafc)}
.forms-acc>summary::-webkit-details-marker{display:none}.forms-acc>summary:after{content:'+';width:30px;height:30px;border-radius:10px;background:#fff;border:1px solid #cbd5e1;display:grid;place-items:center;font-size:18px;color:#334155;box-shadow:0 6px 16px rgba(15,23,42,.08)}
.forms-acc[open]>summary:after{content:'−';background:#111827;color:#fff;border-color:#111827}.forms-acc>summary span{display:block;font-size:15px}.forms-acc>summary small{display:block;font-weight:750;color:#64748b;margin-top:3px}.forms-acc-body{padding:18px}.form-accordion-toolbar input{width:100%;border:1px solid #cbd5e1;border-radius:14px;padding:12px 14px;background:#fff;font-weight:700}
.component-preview-shell{margin:16px 0;padding:16px;border:1px solid #dbe2ea;border-radius:18px;background:linear-gradient(135deg,#f8fafc,#fff);display:grid;grid-template-columns:minmax(220px,.75fr) minmax(320px,1.25fr);gap:16px;align-items:start}
.optimization-live-preview{border:1px solid #dbe2ea;border-radius:16px;background:#fff;padding:12px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.6);display:grid;gap:var(--line-gap)}
.preview-profile-heading{min-height:var(--phead-height);padding:var(--phead-pad);gap:var(--phead-gap);display:flex;align-items:center;justify-content:space-between;border:1px solid var(--phead-border);border-radius:12px;background:var(--phead-bg);color:var(--phead-color)}
.preview-profile-heading b{font-size:var(--phead-font);font-weight:950;color:var(--phead-color)}.preview-profile-heading span{display:inline-flex;align-items:center;gap:5px;padding:var(--badge-pad);min-height:var(--badge-height);border-radius:var(--badge-radius);font-size:var(--badge-font);font-weight:900;background:var(--badge-bg);border:1px solid var(--badge-border);color:var(--badge-color)}
.preview-profile-line{display:grid;grid-template-columns:var(--pcode-w) minmax(0,1fr);gap:8px;align-items:center}.preview-profile-line>strong{min-height:var(--pcode-h);display:grid;place-items:center;background:#111827;color:#fff;border-radius:10px;font-size:var(--pcode-font);font-weight:950}.preview-bar{height:var(--bar-h);border:1px solid #111827;border-radius:10px;overflow:hidden;display:flex;background:#f8fafc}.preview-bar span,.preview-bar em{display:flex;align-items:center;justify-content:center;min-width:28px;border-right:1px solid rgba(17,24,39,.3);background:#dbeafe;font-size:var(--cut-font);font-weight:850;font-style:normal}.preview-bar em{flex:1;background:#fee2e2;color:#991b1b;border-right:0}.form-component-map{margin:12px 0;padding:14px;border:1px dashed #cbd5e1;border-radius:16px;background:#f8fafc;display:grid;gap:10px}.form-component-map>div{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;background:#fff;border:1px solid #e2e8f0;border-radius:12px}.form-component-map b{color:#0f172a}.form-component-map span{color:#64748b;font-weight:700}.production-live-preview table{width:100%;border-collapse:collapse;background:#fff}.production-live-preview th,.production-live-preview td{border:1px solid #cbd5e1;padding:7px;text-align:center;font-size:12px}.production-live-preview th{background:#111827;color:#fff}.optimization-print-grid label{position:relative}.optimization-print-grid label:before{content:'Component';display:block;font-size:10px;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}
@media(max-width:900px){.component-preview-shell{grid-template-columns:1fr}.forms-acc>summary{align-items:flex-start}}

/* Sprint 1.5 - Teklif Formu Visual Template Designer */
.form-template-cards{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;gap:14px!important;align-items:stretch!important}.form-template-card{display:grid!important;gap:12px!important;align-content:space-between!important}.template-card-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;align-items:center!important}.template-card-actions .btn{min-width:92px!important;text-align:center!important}.offer-designer-body{display:grid!important;gap:16px!important}.offer-designer-layout{display:grid!important;grid-template-columns:minmax(280px,.72fr) minmax(420px,1.28fr)!important;gap:18px!important;align-items:start!important}.offer-controls{border:1px solid var(--line,#e2e8f0)!important;border-radius:18px!important;background:linear-gradient(180deg,#fff,#f8fafc)!important;padding:14px!important;box-shadow:var(--shadow-sm,0 10px 30px rgba(15,23,42,.06))!important}.designer-tool-row{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin-bottom:12px!important}.offer-control-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important}.designer-help{display:grid!important;gap:5px!important;margin-top:12px!important;padding:12px!important;border:1px dashed #cbd5e1!important;border-radius:14px!important;background:#f8fafc!important;color:#475569!important}.designer-help b{color:#0f172a!important}.offer-template-editor{border:1px solid #cbd5e1!important;border-radius:20px!important;background:#eef2f7!important;padding:14px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),var(--shadow-sm,0 10px 30px rgba(15,23,42,.06))!important;overflow:auto!important}.designer-toolbar{display:flex!important;justify-content:space-between!important;gap:10px!important;align-items:center!important;margin-bottom:10px!important}.designer-toolbar span{background:#111827!important;color:#fff!important;border-radius:999px!important;padding:5px 10px!important;font-size:12px!important;font-weight:800!important}.offer-a4-canvas{width:min(100%,620px)!important;min-height:780px!important;margin:0 auto!important;background:white!important;border:1px solid #dbe2ea!important;border-radius:16px!important;padding:18px!important;display:grid!important;align-content:start!important;gap:var(--offer-block-gap,10px)!important;box-shadow:0 18px 60px rgba(15,23,42,.14)!important}.design-component{position:relative!important;border:1px solid #dbe2ea!important;background:#fff!important;border-radius:var(--offer-card-radius,14px)!important;resize:vertical!important;overflow:auto!important;cursor:grab!important;transition:border-color .15s,box-shadow .15s,transform .15s!important}.design-component:hover{border-color:#3d68ff!important;box-shadow:0 10px 26px rgba(61,104,255,.12)!important}.design-component.is-selected{border-color:#2563eb!important;box-shadow:0 0 0 3px rgba(37,99,235,.16),0 16px 32px rgba(37,99,235,.12)!important}.design-component:after{content:attr(data-component);position:absolute;right:8px;top:6px;background:#0f172a;color:#fff;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:900;opacity:.82}.offer-preview-header{min-height:var(--offer-header-height,86px)!important;padding:var(--offer-header-padding,12px 14px)!important;font-size:var(--offer-header-font,12px)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important}.offer-preview-header .preview-logo{width:var(--offer-logo-width,150px)!important;height:42px!important;border-radius:10px!important;background:#111827!important;color:#fff!important;display:grid!important;place-items:center!important;font-weight:950!important}.offer-preview-header small{display:block!important;color:#64748b!important;margin-top:3px!important}.offer-preview-hero{min-height:var(--offer-hero-height,76px)!important;padding:var(--offer-hero-padding,14px)!important;background:linear-gradient(135deg,#eff6ff,#fff)!important;display:grid!important;align-content:center!important;gap:6px!important}.offer-preview-hero b{font-size:18px!important}.offer-preview-hero span{color:#64748b!important;font-weight:700!important}.offer-preview-table{font-size:var(--offer-table-font,10.5px)!important}.offer-preview-table table{width:100%!important;border-collapse:collapse!important}.offer-preview-table th,.offer-preview-table td{border:1px solid #dbe2ea!important;padding:var(--offer-table-padding,6px 7px)!important;height:var(--offer-table-row-height,24px)!important;text-align:center!important}.offer-preview-table th{background:#111827!important;color:#fff!important}.offer-preview-total{min-height:var(--offer-total-height,54px)!important;font-size:var(--offer-total-font,12px)!important;padding:12px!important;display:flex!important;justify-content:space-between!important;align-items:center!important;background:#f8fafc!important}.offer-preview-total b{font-size:1.15em!important}.offer-preview-notes{min-height:var(--offer-notes-height,92px)!important;padding:12px!important;background:#fff!important}.offer-preview-notes p{margin:6px 0 0!important;color:#64748b!important;line-height:1.35!important}@media(max-width:980px){.offer-designer-layout{grid-template-columns:1fr!important}.offer-a4-canvas{min-height:640px!important}}

/* Sprint 1.5 hotfix - Offer template designer stable opener + sample canvas */
.form-template-cards{align-items:stretch!important}
.form-template-card{min-height:132px!important;padding:18px!important;border-radius:20px!important;border:1px solid rgba(15,23,42,.08)!important;background:linear-gradient(180deg,#fff,#f8fafc)!important;box-shadow:0 12px 32px rgba(15,23,42,.07)!important}
.form-template-card>span{font-size:18px!important;font-weight:950!important;color:#0f172a!important}
.form-template-card>small{display:block!important;color:#64748b!important;font-weight:700!important;line-height:1.35!important;min-height:36px!important}
.template-card-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin-top:12px!important}
.template-card-actions .btn,.template-card-actions button.btn{width:100%!important;min-width:0!important;white-space:nowrap!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important}
.offer-template-editor{position:relative!important}
.offer-a4-canvas{position:relative!important;user-select:none!important}
.design-component{resize:both!important;min-height:34px!important;min-width:120px!important;box-sizing:border-box!important;touch-action:none!important}
.design-component.is-selected:before{content:'Seçili';position:absolute;left:8px;top:6px;background:#2563eb;color:#fff;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:950;z-index:4;pointer-events:none}
.design-component.is-selected{z-index:5!important}
.designer-tool-row{display:grid!important;grid-template-columns:1fr 1fr 1fr!important;gap:10px!important}
.designer-tool-row .btn{width:100%!important;justify-content:center!important;white-space:nowrap!important}
@media(max-width:900px){.template-card-actions,.designer-tool-row{grid-template-columns:1fr!important}.offer-a4-canvas{width:100%!important}}

/* V5 Sprint 1.5.1 - Kesim Optimizasyonu Form Designer gerçek bağlama düzeltmesi
   Formlar > Optimizasyon ayarları sadece canlı önizlemede değil gerçek P1/P2 kartında da çalışır. */
.optimization-sheet .optimization-profile-section.modern-opt-section,
body.print .optimization-sheet .optimization-profile-section.modern-opt-section{
  margin:var(--opt-section-margin,8px 0 10px)!important;
  border-radius:var(--opt-section-radius,10px)!important;
  font-size:var(--opt-body-font,10.2px)!important;
  line-height:var(--opt-line-height,1)!important;
}
.optimization-sheet .optimization-profile-section .opt-section-head,
body.print .optimization-sheet .optimization-profile-section .opt-section-head{
  padding:var(--opt-cell-padding,4px 5px)!important;
}
.optimization-sheet .optimization-profile-section .opt-section-head h2,
body.print .optimization-sheet .optimization-profile-section .opt-section-head h2{
  font-size:var(--opt-head-font,11px)!important;
  line-height:var(--opt-line-height,1)!important;
}
.optimization-sheet .modern-profile-box,
body.print .optimization-sheet .modern-profile-box{
  display:grid!important;
  padding:var(--opt-profile-card-padding,7px 8px 8px)!important;
  row-gap:var(--opt-profile-line-gap,4px)!important;
}
.optimization-sheet .modern-profile-heading,
body.print .optimization-sheet .modern-profile-heading{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  min-height:var(--opt-profile-header-height,28px)!important;
  height:var(--opt-profile-header-height,28px)!important;
  gap:var(--opt-profile-header-gap,8px)!important;
  padding:var(--opt-profile-header-padding,5px 7px)!important;
  border-radius:var(--opt-section-radius,10px)!important;
  background:var(--opt-profile-heading-bg,#f8fafc)!important;
  border-color:var(--opt-profile-heading-border,#e2e8f0)!important;
  color:var(--opt-profile-heading-color,#111827)!important;
  margin:0!important;
}
.optimization-sheet .modern-profile-heading b,
body.print .optimization-sheet .modern-profile-heading b{
  font-size:var(--opt-profile-header-font,10px)!important;
  color:var(--opt-profile-heading-color,#111827)!important;
  line-height:var(--opt-line-height,1)!important;
}
.optimization-sheet .modern-profile-heading span,
.optimization-sheet .opt-badges span,
body.print .optimization-sheet .modern-profile-heading span,
body.print .optimization-sheet .opt-badges span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  padding:var(--opt-profile-badge-padding,3px 7px)!important;
  min-height:var(--opt-profile-badge-height,22px)!important;
  height:var(--opt-profile-badge-height,22px)!important;
  border-radius:var(--opt-profile-badge-radius,999px)!important;
  background:var(--opt-profile-badge-bg,#fff)!important;
  border:1px solid var(--opt-profile-badge-border,#dbe2ea)!important;
  color:var(--opt-profile-badge-color,#334155)!important;
  font-size:var(--opt-profile-badge-font,9px)!important;
  line-height:var(--opt-line-height,1)!important;
}
.optimization-sheet .profile-line.modern-profile-line,
body.print .optimization-sheet .profile-line.modern-profile-line{
  display:grid!important;
  grid-template-columns:var(--opt-profile-code-width,36px) minmax(0,1fr)!important;
  gap:calc(var(--opt-profile-code-width,36px) * .18)!important;
  align-items:stretch!important;
  min-height:var(--opt-row-height,18px)!important;
  margin:0!important;
}
.optimization-sheet .profile-code,
body.print .optimization-sheet .profile-code{
  min-height:var(--opt-profile-code-height,24px)!important;
  height:var(--opt-profile-code-height,24px)!important;
  font-size:var(--opt-profile-code-font,10px)!important;
  line-height:var(--opt-line-height,1)!important;
}
.optimization-sheet .profile-bar,
body.print .optimization-sheet .profile-bar{
  height:var(--opt-bar-height,24px)!important;
  min-height:var(--opt-bar-height,24px)!important;
  border-radius:calc(var(--opt-section-radius,10px) * .75)!important;
}
.optimization-sheet .profile-bar span,
.optimization-sheet .profile-bar em,
body.print .optimization-sheet .profile-bar span,
body.print .optimization-sheet .profile-bar em{
  min-width:var(--opt-cut-min-width,24px)!important;
  font-size:var(--opt-cut-font,7.8px)!important;
  padding:var(--opt-cell-padding,3px 4px)!important;
  line-height:var(--opt-line-height,1)!important;
}
.optimization-sheet .profile-bar span i,
.optimization-sheet .profile-bar em,
body.print .optimization-sheet .profile-bar span i,
body.print .optimization-sheet .profile-bar em{
  font-size:var(--opt-cut-font,7.8px)!important;
  line-height:var(--opt-line-height,1)!important;
}

/* V5 - Modern compact Formlar + İmalat/Kesim visual template editors */
.forms-visual-designer{border:1px solid #e2e8f0;border-radius:22px;background:linear-gradient(180deg,#ffffff,#f8fafc);box-shadow:0 18px 45px rgba(15,23,42,.08)}
.forms-accordion-page .form-grid.optimization-print-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;gap:10px!important}
.forms-accordion-page .optimization-print-grid label,.forms-accordion-page .offer-control-grid label{border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:8px 10px;font-size:12px;font-weight:900;color:#334155;box-shadow:0 6px 16px rgba(15,23,42,.035)}
.forms-accordion-page .optimization-print-grid input,.forms-accordion-page .optimization-print-grid select,.forms-accordion-page .offer-control-grid input{min-height:34px!important;border-radius:10px!important;margin-top:5px!important;font-size:12px!important;padding:7px 9px!important}
.visual-designer-layout{display:grid;grid-template-columns:minmax(270px,.72fr) minmax(430px,1.28fr);gap:18px;align-items:start}.modis-template-editor{border:1px solid #cbd5e1;border-radius:20px;background:#eef2f7;padding:14px;overflow:auto;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 10px 30px rgba(15,23,42,.06)}
.visual-a4-canvas{width:min(100%,620px);min-height:520px;margin:0 auto;background:#fff;border:1px solid #dbe2ea;border-radius:16px;padding:18px;display:grid;align-content:start;gap:var(--prod-block-gap,10px);box-shadow:0 18px 60px rgba(15,23,42,.14);user-select:none}.visual-a4-canvas .design-component{resize:both;min-height:28px;min-width:120px;box-sizing:border-box;position:relative;border:1px solid #dbe2ea;border-radius:12px;background:#fff;overflow:auto;cursor:grab}.visual-a4-canvas .design-component:hover{border-color:#2563eb;box-shadow:0 10px 26px rgba(37,99,235,.12)}.visual-a4-canvas .design-component.is-selected{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.16),0 16px 32px rgba(37,99,235,.12);z-index:5}.visual-a4-canvas .design-component:after{content:attr(data-component);position:absolute;right:8px;top:6px;background:#0f172a;color:#fff;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:900;opacity:.82;pointer-events:none}
.prod-preview-head{padding:12px 14px;background:linear-gradient(135deg,#f8fafc,#fff);display:flex;justify-content:space-between;align-items:center}.prod-preview-head b{font-size:var(--prod-head-font,8.8px)}.prod-preview-head small{color:#64748b;font-weight:800}.prod-preview-table{font-size:var(--prod-body-font,10.4px);line-height:var(--prod-line-height,1.08)}.prod-preview-table table{width:100%;border-collapse:collapse}.prod-preview-table th{font-size:var(--prod-head-font,8.8px);background:#111827;color:#fff}.prod-preview-table th,.prod-preview-table td{border:1px solid #dbe2ea;padding:var(--prod-cell-padding,3px 2px);height:var(--prod-row-height,18px);text-align:center}
.optimization-canvas{gap:7px}.opt-preview-section-title{font-size:var(--opt-section-title-font,11px);min-height:var(--opt-section-title-height,22px);padding:var(--opt-section-title-padding,4px 5px);background:var(--opt-section-title-bg,#fff);color:var(--opt-section-title-color,#475569);border-color:var(--opt-section-title-border,#e2e8f0);font-weight:950;display:flex;align-items:center}.opt-preview-profile-head{min-height:var(--opt-profile-header-height,28px);font-size:var(--opt-profile-header-font,10px);display:flex;align-items:center;justify-content:space-between;padding:5px 7px;background:#f8fafc}.opt-preview-profile-head span{font-size:var(--opt-profile-badge-font,9px);border:1px solid #dbe2ea;border-radius:999px;padding:3px 7px;background:#fff}.opt-preview-line{display:grid;grid-template-columns:42px 1fr;gap:8px;align-items:center}.opt-preview-line>strong{font-size:var(--opt-profile-code-font,10px);min-height:var(--opt-profile-code-height,24px);display:grid;place-items:center;border-radius:999px;background:#111827;color:#fff}.opt-preview-line>div{height:var(--opt-bar-height,24px);border:1px solid #1f2937;border-radius:999px;display:flex;overflow:hidden;background:#fee2e2}.opt-preview-line span,.opt-preview-line em{display:grid;place-items:center;min-width:72px;padding:0 8px;font-size:var(--opt-cut-font,7.8px);font-style:normal;font-weight:950;border-right:1px solid rgba(15,23,42,.25);background:#dbeafe}.opt-preview-line em{background:#fee2e2;color:#991b1b;flex:1;border-right:0}.optimization-sheet .optimization-profile-section .opt-section-head h2,body.print .optimization-sheet .optimization-profile-section .opt-section-head h2{font-size:var(--opt-section-title-font,var(--opt-head-font,11px))!important;color:var(--opt-section-title-color,#475569)!important;line-height:var(--opt-line-height,1)!important}.optimization-sheet .optimization-profile-section .opt-section-head,body.print .optimization-sheet .optimization-profile-section .opt-section-head{min-height:var(--opt-section-title-height,22px)!important;padding:var(--opt-section-title-padding,var(--opt-cell-padding,4px 5px))!important;background:var(--opt-section-title-bg,#fff)!important;border-color:var(--opt-section-title-border,#e2e8f0)!important}
@media(max-width:980px){.visual-designer-layout{grid-template-columns:1fr}.visual-a4-canvas{width:100%;min-height:420px}.forms-accordion-page .form-grid.optimization-print-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))!important}}
/* 2026-06-16 Stabilization pass: compact lists, action chips, form accordion */
.order.compact-order>summary,
.order.compact-order.no-select>summary{
  align-items:center!important;
  contain:layout paint!important;
}
.order.compact-order>summary>b,
.order.compact-order>summary>span,
.order.compact-order>summary>em{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.order.compact-order .row-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}
.order.compact-order .row-actions .mini,
.order.compact-order .row-actions .action-chip{
  flex:0 1 auto!important;
  min-width:0!important;
  max-width:112px!important;
  height:28px!important;
  padding:0 9px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.order.compact-order .order-timeline,
.order.compact-order .order-stepper{
  min-width:320px!important;
  max-width:100%!important;
}
.forms-accordion-page .forms-acc>summary{
  grid-template-columns:44px minmax(0,1fr) minmax(160px,auto)!important;
  display:grid!important;
}
.forms-accordion-page .forms-acc>summary span,
.forms-accordion-page .forms-acc>summary small{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.forms-accordion-page .forms-acc>summary span{white-space:nowrap!important}
.forms-accordion-page .forms-acc>summary small{
  justify-self:end!important;
  max-width:min(420px,38vw)!important;
}
.designer-tool-row .btn,
.template-card-actions .btn{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
@media(max-width:900px){
  .order.compact-order,
  .completed-orders-list,
  .forms-accordion-page .table-wrap{
    overflow-x:auto!important;
  }
  .forms-accordion-page .forms-acc>summary{
    grid-template-columns:40px minmax(0,1fr)!important;
  }
  .forms-accordion-page .forms-acc>summary small{
    grid-column:2!important;
    justify-self:start!important;
    max-width:100%!important;
    white-space:normal!important;
  }
}

/* MODIS V5 - Cari Ekstre */
.page-head-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.current-account-page h2{margin:0 0 12px;font-size:18px}.current-account-page h3{margin:0 0 10px;font-size:15px}.current-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 18px}.current-summary-grid article{border:1px solid rgba(148,163,184,.24);background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(248,250,252,.78));border-radius:18px;padding:16px;box-shadow:0 12px 30px rgba(15,23,42,.06)}.current-summary-grid span{display:block;color:#64748b;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.current-summary-grid b{display:block;margin-top:6px;font-size:23px;color:#0f172a}.current-summary-grid .balance b{color:#0f766e}.current-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}.current-list,.current-side,.current-detail{border:1px solid rgba(148,163,184,.22);border-radius:20px;background:rgba(255,255,255,.82);box-shadow:0 14px 34px rgba(15,23,42,.06);padding:16px}.current-table-wrap{overflow:auto}.current-table{width:100%;border-collapse:separate;border-spacing:0 8px}.current-table th{font-size:12px;color:#64748b;text-align:left;padding:6px 10px}.current-table td{background:#f8fafc;padding:10px;border-top:1px solid rgba(148,163,184,.18);border-bottom:1px solid rgba(148,163,184,.18);vertical-align:middle}.current-table td:first-child{border-left:1px solid rgba(148,163,184,.18);border-radius:14px 0 0 14px}.current-table td:last-child{border-right:1px solid rgba(148,163,184,.18);border-radius:0 14px 14px 0}.current-table tr.selected td{background:#ecfeff;border-color:rgba(20,184,166,.35)}.current-table small{display:block;color:#64748b;margin-top:2px}.current-table .debt{color:#b91c1c}.current-table .ok{color:#047857}.current-form{display:grid;gap:10px}.current-form label{display:grid;gap:6px;font-weight:800;color:#334155;font-size:13px}.current-form input,.current-form select{width:100%;border:1px solid rgba(148,163,184,.36);border-radius:13px;padding:10px 11px;background:#fff;color:#0f172a}.current-detail{margin-top:16px}.current-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.current-detail table{width:100%;border-collapse:collapse}.current-detail th,.current-detail td{border-bottom:1px solid rgba(148,163,184,.18);padding:9px 8px;text-align:left;font-size:13px}.mini.danger{color:#b91c1c;border-color:rgba(185,28,28,.25)}
.current-summary-grid.detail-totals{margin:0 0 14px}.current-total-row td{background:#f8fafc!important;font-weight:900;border-top:2px solid rgba(15,23,42,.12)}.current-total-row .debt{color:#b91c1c}.current-total-row .ok{color:#047857}
@media(max-width:980px){.current-layout,.current-detail-grid,.current-summary-grid{grid-template-columns:1fr}.page-head-actions{display:block}.current-side{order:-1}.current-table{min-width:720px}}

/* MODIS V5 - Girilen Ölçüler düzenleme paneli kompakt fix */
.edit-row{display:none!important}.edit-row.show{display:table-row!important}
.compact-edit-row>td{padding:10px 12px!important;background:linear-gradient(180deg,#f8fafc,#fff)!important;border-top:1px solid var(--line,#e2e8f0)!important;border-bottom:1px solid var(--line,#e2e8f0)!important}
.measurement-edit-form{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(112px,1fr))!important;gap:8px!important;align-items:end!important;max-width:100%!important;margin:0!important;padding:10px!important;border:1px solid var(--line,#e2e8f0)!important;border-radius:14px!important;background:var(--surface,#fff)!important;box-shadow:0 8px 22px rgba(15,23,42,.06)!important;overflow:visible!important}
.measurement-edit-form select,.measurement-edit-form input{width:100%!important;min-width:0!important;height:34px!important;padding:6px 8px!important;border-radius:10px!important;font-size:12px!important;line-height:1.1!important}
.measurement-edit-form .edit-check{height:34px!important;display:flex!important;align-items:center!important;gap:6px!important;padding:6px 8px!important;border:1px solid var(--line,#e2e8f0)!important;border-radius:10px!important;background:var(--surface-2,#f8fafc)!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important}
.measurement-edit-form .edit-check input{width:auto!important;height:auto!important}
.measurement-edit-form .edit-actions{display:flex!important;gap:6px!important;align-items:center!important;justify-content:flex-end!important;grid-column:span 2!important}
.measurement-edit-form .edit-actions .mini{height:34px!important;padding:6px 10px!important;white-space:nowrap!important}
@media(max-width:760px){.measurement-edit-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}.measurement-edit-form .edit-actions{grid-column:1/-1!important;justify-content:stretch!important}.measurement-edit-form .edit-actions .mini{flex:1!important}}

/* MODIS V5 - Ölçü düzenleme paneli gerçek kompakt düzeltme */
.table-wrap .compact-edit-row,
.table-wrap .compact-edit-row:hover{
  background:transparent!important;
}
.table-wrap .compact-edit-row>td{
  white-space:normal!important;
  overflow:hidden!important;
  max-width:0!important;
  padding:8px 10px!important;
}
.table-wrap .compact-edit-row .measurement-edit-form{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(92px,132px))!important;
  justify-content:start!important;
  align-items:end!important;
  width:fit-content!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  gap:7px!important;
  margin:0!important;
  padding:9px!important;
  overflow:hidden!important;
}
.table-wrap .compact-edit-row .measurement-edit-form select,
.table-wrap .compact-edit-row .measurement-edit-form input{
  width:100%!important;
  max-width:132px!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.table-wrap .compact-edit-row .measurement-edit-form input[type="checkbox"]{
  width:14px!important;
  height:14px!important;
  max-width:14px!important;
  flex:0 0 auto!important;
}
.table-wrap .compact-edit-row .measurement-edit-form .edit-check{
  width:118px!important;
  max-width:118px!important;
  box-sizing:border-box!important;
}
.table-wrap .compact-edit-row .measurement-edit-form .edit-actions{
  grid-column:auto!important;
  justify-content:flex-start!important;
  width:max-content!important;
  max-width:190px!important;
}
.table-wrap .compact-edit-row .measurement-edit-form .edit-actions .mini{
  flex:0 0 auto!important;
}
@media(max-width:1100px){
  .table-wrap .compact-edit-row .measurement-edit-form{
    grid-template-columns:repeat(4,minmax(92px,132px))!important;
  }
}
@media(max-width:760px){
  .table-wrap .compact-edit-row .measurement-edit-form{
    width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .table-wrap .compact-edit-row .measurement-edit-form select,
  .table-wrap .compact-edit-row .measurement-edit-form input,
  .table-wrap .compact-edit-row .measurement-edit-form .edit-check{
    max-width:none!important;
    width:100%!important;
  }
  .table-wrap .compact-edit-row .measurement-edit-form .edit-actions{
    grid-column:1/-1!important;
    width:100%!important;
    max-width:none!important;
  }
}

/* MODIS V5 - Cari Ekstre sipariş/PDF düzeni */
.current-head-buttons{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.current-detail-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}.current-detail-head h2{margin-bottom:4px}.current-ledger-table{overflow:auto;border:1px solid rgba(148,163,184,.22);border-radius:16px;background:#fff}.current-ledger-table table{width:100%;border-collapse:collapse;min-width:760px}.current-ledger-table th{background:#f1f5f9;color:#475569;font-size:12px;text-align:left;padding:10px;border-bottom:1px solid rgba(148,163,184,.22)}.current-ledger-table td{padding:10px;border-bottom:1px solid rgba(148,163,184,.16);font-size:13px}.current-ledger-table tr:last-child td{border-bottom:0}.current-ledger-table td:nth-child(4),.current-ledger-table td:nth-child(5),.current-ledger-table td:nth-child(6){text-align:right;white-space:nowrap}.current-ledger-table .debt{color:#b91c1c;font-weight:900}.current-ledger-table .ok{color:#047857;font-weight:900}@media(max-width:760px){.current-detail-head{display:block}.current-detail-head .btn{margin-top:10px;width:100%}.current-head-buttons{width:100%}.current-head-buttons .btn{flex:1}}


/* MODIS V5 - Ölçü düzenleme açılmama + detay sütunu kaldırma düzeltmesi */
.edit-row{display:none!important;}
.edit-row.show{display:table-row!important;}
.edit-row.show .measurement-edit-form{display:grid!important;}
.table-wrap .compact-edit-row>td{max-width:none!important;width:auto!important;overflow:visible!important;}
.table-wrap table{table-layout:auto!important;}
.table-wrap .compact-edit-row .measurement-edit-form{width:auto!important;max-width:760px!important;grid-template-columns:repeat(auto-fit,minmax(105px,128px))!important;}
.table-wrap .compact-edit-row .measurement-edit-form select,
.table-wrap .compact-edit-row .measurement-edit-form input{max-width:128px!important;}


/* MODIS V5 - Inline ölçü düzenleme tek satır ve cari toplam görünümü fix */
.edit-row{display:none!important;}
.edit-row.show{display:table-row!important;}
.table-wrap .compact-edit-row,
.table-wrap .compact-edit-row:hover{background:transparent!important;}
.table-wrap .compact-edit-row>td{
  padding:8px 10px!important;
  background:#f8fbff!important;
  border-top:1px solid var(--line,#dbe6f2)!important;
  border-bottom:1px solid var(--line,#dbe6f2)!important;
  overflow:visible!important;
  max-width:none!important;
  width:auto!important;
  white-space:normal!important;
}
.table-wrap .compact-edit-row .measurement-edit-form{
  display:grid!important;
  grid-template-columns:150px 150px 150px 82px 120px 120px 92px 142px!important;
  gap:7px!important;
  align-items:center!important;
  justify-content:start!important;
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:8px!important;
  border:1px solid rgba(147,197,253,.45)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(15,23,42,.05)!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.table-wrap .compact-edit-row .measurement-edit-form select,
.table-wrap .compact-edit-row .measurement-edit-form input:not([type="checkbox"]){
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:34px!important;
  padding:6px 10px!important;
  border-radius:10px!important;
  box-sizing:border-box!important;
  font-size:13px!important;
}
.table-wrap .compact-edit-row .measurement-edit-form .edit-check{
  height:34px!important;
  width:auto!important;
  max-width:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  padding:6px 9px!important;
  border:1px solid var(--line,#dbe6f2)!important;
  border-radius:10px!important;
  background:#f8fafc!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
.table-wrap .compact-edit-row .measurement-edit-form .edit-check input{width:14px!important;height:14px!important;margin:0!important;}
.table-wrap .compact-edit-row .measurement-edit-form .edit-actions{
  display:flex!important;
  gap:6px!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:auto!important;
  max-width:none!important;
  grid-column:auto!important;
}
.table-wrap .compact-edit-row .measurement-edit-form .edit-actions .mini{height:34px!important;padding:6px 10px!important;white-space:nowrap!important;}
@media(max-width:1280px){.table-wrap .compact-edit-row .measurement-edit-form{grid-template-columns:140px 140px 130px 76px 110px 110px 86px 132px!important;}}
@media(max-width:1040px){.table-wrap .compact-edit-row .measurement-edit-form{grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important}.table-wrap .compact-edit-row .measurement-edit-form .edit-actions{grid-column:3/5!important;}}
@media(max-width:680px){.table-wrap .compact-edit-row .measurement-edit-form{grid-template-columns:1fr 1fr!important}.table-wrap .compact-edit-row .measurement-edit-form .edit-actions{grid-column:1/-1!important}.table-wrap .compact-edit-row .measurement-edit-form .edit-actions .mini{flex:1!important}}
.current-summary-grid{align-items:stretch!important;}
.current-summary-grid article{display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:8px!important;min-height:92px!important;}
.current-summary-grid article+article{position:relative!important;}
.current-summary-grid article+article:before{content:"";position:absolute;left:-7px;top:12px;bottom:12px;width:1px;background:rgba(148,163,184,.22);}
.current-summary-grid.detail-totals{grid-template-columns:1fr 1fr 1.25fr!important;}
.current-summary-grid .balance{border-color:rgba(20,184,166,.45)!important;background:linear-gradient(180deg,#ecfeff,#fff)!important;}
.current-summary-grid .balance b{font-size:30px!important;line-height:1.05!important;color:#0f766e!important;}
.current-summary-grid.detail-totals .balance b{font-size:34px!important;}
.ledger-summary-print{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:10px;margin:12px 0 14px;}
.ledger-summary-print article{border:1px solid #dbe6f2;border-radius:14px;padding:11px 12px;background:#fff;}
.ledger-summary-print article span{display:block;font-size:11px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.04em;}
.ledger-summary-print article b{display:block;margin-top:5px;font-size:18px;color:#0f172a;}
.ledger-summary-print article:last-child{background:#ecfeff;border-color:#99f6e4;}
.ledger-summary-print article:last-child b{font-size:25px;color:#0f766e;}
.ledger-total-row td{font-weight:900!important;background:#f8fafc!important;border-top:2px solid #dbe6f2!important;}
.ledger-total-row td:last-child{font-size:17px!important;color:#0f766e!important;}

/* MODIS V5 - kesin fix: Sineklik inline ölçü düzenleme tek satır + cari +/- bakiye */
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form{
  display:grid!important;
  grid-template-columns:160px 160px 150px 80px 120px 120px 88px 132px!important;
  width:max-content!important;
  max-width:calc(100vw - 120px)!important;
  min-width:1010px!important;
  gap:8px!important;
  align-items:center!important;
  justify-content:start!important;
  white-space:nowrap!important;
}
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form select,
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form input:not([type="checkbox"]),
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-check,
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-actions{
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
}
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-actions{
  grid-column:auto!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
}
.current-summary-grid .balance.debt{border-color:rgba(239,68,68,.38)!important;background:linear-gradient(180deg,#fff5f5,#fff)!important;}
.current-summary-grid .balance.debt b,.current-table .debt,.current-ledger-table .debt{color:#b91c1c!important;}
.current-summary-grid .balance.ok{border-color:rgba(34,197,94,.38)!important;background:linear-gradient(180deg,#f0fdf4,#fff)!important;}
.current-summary-grid .balance.ok b,.current-table .ok,.current-ledger-table .ok{color:#047857!important;}
.current-summary-grid .balance.zero b{color:#334155!important;}
@media(max-width:1120px){
  .table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    white-space:normal!important;
  }
  .table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-actions{grid-column:3/5!important;}
}

/* Sineklik esnek hesaplama tablosu */
.formula-rule-table-wide th,
.formula-rule-table-wide td{white-space:nowrap;}
.formula-rule-table-wide select.formula-cell{min-width:115px;}
.formula-rule-table-wide input.formula-cell{min-width:92px;}

/* MODIS V5 merkezi sipariş durumu: imalata alınmamış sipariş uyarısı */
.order.compact-order.awaiting-production{
  border:2px solid #ef4444!important;
  box-shadow:0 0 0 1px rgba(239,68,68,.10),0 12px 32px rgba(239,68,68,.10)!important;
  position:relative;
}
.order.compact-order.awaiting-production>summary{
  border-left:5px solid #ef4444!important;
  background:linear-gradient(90deg,rgba(239,68,68,.10),transparent 45%)!important;
}
.order.compact-order.awaiting-production>summary::after{
  content:"İmalata alınmadı";
  margin-left:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(239,68,68,.35);
  color:#ef4444;
  background:rgba(239,68,68,.08);
  font-size:11px;
  font-weight:950;
  white-space:nowrap;
}


/* MODIS V5 - Login password manager + Sineklik inline edit final fix */
.table-wrap .compact-edit-row > td{
  padding:8px 10px!important;
  overflow:visible!important;
}
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form{
  display:grid!important;
  grid-template-columns:108px 108px 82px 54px 78px 78px 64px 116px!important;
  gap:7px!important;
  align-items:center!important;
  justify-content:start!important;
  width:fit-content!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:nowrap!important;
  padding:8px!important;
  overflow:visible!important;
}
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form select,
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form input:not([type="checkbox"]){
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:32px!important;
  padding:5px 7px!important;
  font-size:12px!important;
}
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-check{
  height:32px!important;
  width:64px!important;
  min-width:64px!important;
  max-width:64px!important;
  padding:5px 6px!important;
  font-size:12px!important;
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  white-space:nowrap!important;
}
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-actions{
  grid-column:auto!important;
  width:116px!important;
  min-width:116px!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:5px!important;
  justify-content:flex-start!important;
}
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-actions .mini{
  height:32px!important;
  padding:5px 8px!important;
  font-size:12px!important;
  white-space:nowrap!important;
}
@media (min-width:769px){
  .table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form{
    grid-template-columns:108px 108px 82px 54px 78px 78px 64px 116px!important;
    width:fit-content!important;
    min-width:0!important;
    max-width:100%!important;
    white-space:nowrap!important;
  }
  .table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-actions{grid-column:auto!important;}
}
@media (max-width:768px){
  .table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
    white-space:normal!important;
  }
  .table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-check{width:auto!important;max-width:none!important;}
  .table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-actions{grid-column:1/-1!important;width:100%!important;}
  .table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-actions .mini{flex:1!important;}
}

/* MODIS V5 - Durum/toplu seçim + tek kaynak inline edit final düzeltme */
.modern-bulk-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;padding:10px 12px!important;border:1px solid var(--line,#dbe6f2)!important;border-radius:16px!important;background:var(--surface,#fff)!important;box-shadow:0 8px 20px rgba(15,23,42,.04)!important}
.modern-bulk-actions .bulk-check{margin-right:4px!important;white-space:nowrap!important}
.modern-bulk-actions .btn{height:36px!important;padding:0 12px!important;border-radius:12px!important;display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important}
.modern-bulk-actions .bulk-action-count{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:22px!important;height:22px!important;border-radius:999px!important;background:rgba(15,23,42,.10)!important;font-weight:950!important;font-size:12px!important}
.modern-bulk-actions .selected-count{margin-left:auto!important;font-weight:900!important;color:var(--muted,#64748b)!important;white-space:nowrap!important}

.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:8px!important;
  width:max-content!important;
  max-width:none!important;
  min-width:0!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form select{flex:0 0 150px!important;width:150px!important;max-width:150px!important;min-width:150px!important}
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form input[name="painted_code"]{flex:0 0 135px!important;width:135px!important;max-width:135px!important;min-width:135px!important}
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form input[name="qty"]{flex:0 0 72px!important;width:72px!important;max-width:72px!important;min-width:72px!important}
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form input[name="height_cm"],
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form input[name="width_cm"]{flex:0 0 112px!important;width:112px!important;max-width:112px!important;min-width:112px!important}
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-check{flex:0 0 86px!important;width:86px!important;max-width:86px!important;min-width:86px!important}
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-actions{flex:0 0 auto!important;display:flex!important;flex-wrap:nowrap!important;grid-column:auto!important;width:auto!important;min-width:0!important;max-width:none!important}
.table-wrap .compact-edit-row>td{overflow-x:auto!important;overflow-y:visible!important;max-width:none!important;width:auto!important}
@media(max-width:760px){.modern-bulk-actions .selected-count{width:100%;margin-left:0!important}.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form{min-width:920px!important}}

/* MODIS V5 - Sipariş tamamlandı animasyonu */
.order.complete-slide-out{
  transform:translateX(105%);
  opacity:0;
  max-height:0!important;
  margin-top:0!important;
  margin-bottom:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
  border-width:0!important;
  overflow:hidden!important;
  transition:transform .42s ease, opacity .32s ease, max-height .42s ease, margin .42s ease, padding .42s ease, border-width .42s ease!important;
}
.modis-toast{
  position:fixed;right:22px;bottom:22px;z-index:99999;background:#16a34a;color:white;border-radius:14px;padding:12px 16px;font-weight:900;box-shadow:0 16px 40px rgba(15,23,42,.22);opacity:0;transform:translateY(12px);transition:.25s ease;
}
.modis-toast.show{opacity:1;transform:translateY(0)}

/* MODIS V5 - Girilen Ölçüler TEK KAYNAK inline edit kesin düzeltme
   Amaç: listedeki ilk ürün dahil tüm düzenle panelleri aynı tek satır tasarımla açılsın. */
.edit-row{display:none!important;}
.edit-row.show{display:table-row!important;}
.table-wrap .edit-row.compact-edit-row,
.table-wrap .edit-row.compact-edit-row:hover{background:transparent!important;}
.table-wrap .edit-row.compact-edit-row > td{
  padding:8px 10px!important;
  background:linear-gradient(180deg,#f8fafc,#ffffff)!important;
  border-top:1px solid var(--line,#e2e8f0)!important;
  border-bottom:1px solid var(--line,#e2e8f0)!important;
  max-width:none!important;
  width:auto!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  white-space:nowrap!important;
}
.table-wrap .edit-row.compact-edit-row .measurement-edit-form,
.table-wrap .edit-row.compact-edit-row .measurement-edit-form.sineklik-edit-form{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:max-content!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:8px!important;
  border:1px solid var(--line,#e2e8f0)!important;
  border-radius:14px!important;
  background:var(--surface,#fff)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.06)!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
.table-wrap .edit-row.compact-edit-row .measurement-edit-form > select,
.table-wrap .edit-row.compact-edit-row .measurement-edit-form.sineklik-edit-form > select{
  flex:0 0 145px!important;
  width:145px!important;
  min-width:145px!important;
  max-width:145px!important;
}
.table-wrap .edit-row.compact-edit-row .measurement-edit-form > input[name="painted_code"],
.table-wrap .edit-row.compact-edit-row .measurement-edit-form.sineklik-edit-form > input[name="painted_code"]{
  flex:0 0 130px!important;
  width:130px!important;
  min-width:130px!important;
  max-width:130px!important;
}
.table-wrap .edit-row.compact-edit-row .measurement-edit-form > input[name="qty"],
.table-wrap .edit-row.compact-edit-row .measurement-edit-form.sineklik-edit-form > input[name="qty"]{
  flex:0 0 66px!important;
  width:66px!important;
  min-width:66px!important;
  max-width:66px!important;
}
.table-wrap .edit-row.compact-edit-row .measurement-edit-form > input[name="height_cm"],
.table-wrap .edit-row.compact-edit-row .measurement-edit-form > input[name="width_cm"],
.table-wrap .edit-row.compact-edit-row .measurement-edit-form.sineklik-edit-form > input[name="height_cm"],
.table-wrap .edit-row.compact-edit-row .measurement-edit-form.sineklik-edit-form > input[name="width_cm"]{
  flex:0 0 105px!important;
  width:105px!important;
  min-width:105px!important;
  max-width:105px!important;
}
.table-wrap .edit-row.compact-edit-row .measurement-edit-form > select,
.table-wrap .edit-row.compact-edit-row .measurement-edit-form > input:not([type="checkbox"]){
  height:32px!important;
  padding:5px 7px!important;
  border-radius:10px!important;
  font-size:12px!important;
  line-height:1.1!important;
  box-sizing:border-box!important;
}
.table-wrap .edit-row.compact-edit-row .measurement-edit-form .edit-check{
  flex:0 0 78px!important;
  width:78px!important;
  min-width:78px!important;
  max-width:78px!important;
  height:32px!important;
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  padding:5px 6px!important;
  border:1px solid var(--line,#e2e8f0)!important;
  border-radius:10px!important;
  background:var(--surface-2,#f8fafc)!important;
  font-size:12px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
.table-wrap .edit-row.compact-edit-row .measurement-edit-form .edit-check input{
  flex:0 0 14px!important;
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  max-width:14px!important;
  margin:0!important;
}
.table-wrap .edit-row.compact-edit-row .measurement-edit-form .edit-actions{
  flex:0 0 auto!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  grid-column:auto!important;
}
.table-wrap .edit-row.compact-edit-row .measurement-edit-form .edit-actions .mini{
  height:32px!important;
  padding:5px 8px!important;
  font-size:12px!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}
@media(max-width:760px){
  .table-wrap .edit-row.compact-edit-row > td{overflow-x:auto!important;}
  .table-wrap .edit-row.compact-edit-row .measurement-edit-form,
  .table-wrap .edit-row.compact-edit-row .measurement-edit-form.sineklik-edit-form{min-width:870px!important;}
}

/* MODIS V5 - Girilen Ölçüler kompakt inline edit kesin final
   Tek satır kalır, ama tabloyu taşırıp yatay scroll üretmez. */
.table-wrap .edit-row.compact-edit-row > td,
.table-wrap .compact-edit-row > td{
  overflow-x:hidden!important;
  overflow-y:visible!important;
  padding:6px 8px!important;
  white-space:normal!important;
  max-width:100%!important;
}
.table-wrap .edit-row.compact-edit-row .measurement-edit-form.sineklik-edit-form,
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form{
  display:grid!important;
  grid-template-columns:minmax(92px,1.18fr) minmax(86px,1fr) minmax(70px,.72fr) 48px 68px 68px 58px 104px!important;
  column-gap:5px!important;
  row-gap:0!important;
  align-items:center!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:7px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  white-space:normal!important;
}
.table-wrap .edit-row.compact-edit-row .measurement-edit-form.sineklik-edit-form > select,
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form > select,
.table-wrap .edit-row.compact-edit-row .measurement-edit-form.sineklik-edit-form > input:not([type="checkbox"]),
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form > input:not([type="checkbox"]){
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:30px!important;
  padding:4px 6px!important;
  font-size:11px!important;
  border-radius:9px!important;
  box-sizing:border-box!important;
}
.table-wrap .edit-row.compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-check,
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-check{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:30px!important;
  padding:4px 5px!important;
  font-size:11px!important;
  border-radius:9px!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  overflow:hidden!important;
}
.table-wrap .edit-row.compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-actions,
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-actions{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  grid-column:auto!important;
}
.table-wrap .edit-row.compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-actions .mini,
.table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form .edit-actions .mini{
  flex:1 1 0!important;
  min-width:0!important;
  height:30px!important;
  padding:4px 5px!important;
  font-size:11px!important;
  border-radius:9px!important;
}
@media(max-width:900px){
  .table-wrap .edit-row.compact-edit-row > td,
  .table-wrap .compact-edit-row > td{overflow-x:auto!important;}
  .table-wrap .edit-row.compact-edit-row .measurement-edit-form.sineklik-edit-form,
  .table-wrap .compact-edit-row .measurement-edit-form.sineklik-edit-form{
    min-width:720px!important;
  }
}


/* MODIS V5 - Girilen Ölçüler TEK ŞABLON / eski farklı düzenleme tasarımını iptal
   İlk satır dahil tüm Sineklik ölçü düzenleme formları aynı kompakt tek satırdan gelir. */
.edit-row{display:none!important;}
.edit-row.show{display:table-row!important;}
.table-wrap .edit-row.compact-edit-row,
.table-wrap .edit-row.compact-edit-row:hover{background:transparent!important;}
.table-wrap .edit-row.compact-edit-row>td{
  padding:6px 8px!important;
  background:linear-gradient(180deg,#f8fafc,#fff)!important;
  border-top:1px solid var(--line,#e2e8f0)!important;
  border-bottom:1px solid var(--line,#e2e8f0)!important;
  overflow:hidden!important;
  white-space:normal!important;
  max-width:100%!important;
  width:auto!important;
}
.table-wrap .edit-row.compact-edit-row form.measurement-edit-form.sineklik-edit-form,
.table-wrap .edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form){
  display:grid!important;
  grid-template-columns:minmax(90px,1.16fr) minmax(84px,1fr) minmax(68px,.72fr) 46px 66px 66px 56px 104px!important;
  gap:5px!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:7px!important;
  box-sizing:border-box!important;
  border:1px solid var(--line,#e2e8f0)!important;
  border-radius:14px!important;
  background:var(--surface,#fff)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.06)!important;
  overflow:hidden!important;
  white-space:normal!important;
}
.table-wrap .edit-row.compact-edit-row form.measurement-edit-form.sineklik-edit-form>select,
.table-wrap .edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form)>select,
.table-wrap .edit-row.compact-edit-row form.measurement-edit-form.sineklik-edit-form>input:not([type="checkbox"]),
.table-wrap .edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form)>input:not([type="checkbox"]){
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:30px!important;
  padding:4px 6px!important;
  font-size:11px!important;
  line-height:1.1!important;
  border-radius:9px!important;
  box-sizing:border-box!important;
  grid-column:auto!important;
}
.table-wrap .edit-row.compact-edit-row form.measurement-edit-form.sineklik-edit-form .edit-check,
.table-wrap .edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) .edit-check{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:30px!important;
  padding:4px 5px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  font-size:11px!important;
  font-weight:800!important;
  border-radius:9px!important;
  box-sizing:border-box!important;
  grid-column:auto!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}
.table-wrap .edit-row.compact-edit-row form.measurement-edit-form.sineklik-edit-form .edit-check input,
.table-wrap .edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) .edit-check input{
  width:13px!important;height:13px!important;min-width:13px!important;max-width:13px!important;margin:0!important;flex:0 0 13px!important;
}
.table-wrap .edit-row.compact-edit-row form.measurement-edit-form.sineklik-edit-form .edit-actions,
.table-wrap .edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) .edit-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  grid-column:auto!important;
}
.table-wrap .edit-row.compact-edit-row form.measurement-edit-form.sineklik-edit-form .edit-actions .mini,
.table-wrap .edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) .edit-actions .mini{
  flex:1 1 0!important;
  min-width:0!important;
  height:30px!important;
  padding:4px 5px!important;
  font-size:11px!important;
  border-radius:9px!important;
  white-space:nowrap!important;
}
@media(max-width:900px){
  .table-wrap .edit-row.compact-edit-row>td{overflow-x:auto!important;}
  .table-wrap .edit-row.compact-edit-row form.measurement-edit-form.sineklik-edit-form,
  .table-wrap .edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form){min-width:700px!important;}
}


/* MODIS V5 - Girilen Ölçüler ilk satır eski tasarım kesin iptal
   Bu blok dosyanın en sonunda durur ve tüm eski inline-edit tanımlarını ezer. */
.table-wrap tr.edit-row.compact-edit-row,
.table-wrap tr.edit-row.compact-edit-row.show{background:transparent!important;}
.table-wrap tr.edit-row.compact-edit-row:not(.show){display:none!important;}
.table-wrap tr.edit-row.compact-edit-row.show{display:table-row!important;}
.table-wrap tr.edit-row.compact-edit-row>td{
  padding:6px 8px!important;
  overflow:hidden!important;
  white-space:normal!important;
  width:auto!important;
  max-width:100%!important;
  background:linear-gradient(180deg,#f8fafc,#fff)!important;
  border-top:1px solid var(--line,#e2e8f0)!important;
  border-bottom:1px solid var(--line,#e2e8f0)!important;
}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form,
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form.sineklik-edit-form,
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]{
  display:grid!important;
  grid-template-columns:minmax(86px,1.1fr) minmax(78px,.95fr) minmax(62px,.65fr) 44px 62px 62px 54px 96px!important;
  gap:4px!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:6px!important;
  box-sizing:border-box!important;
  border:1px solid var(--line,#e2e8f0)!important;
  border-radius:12px!important;
  background:var(--surface,#fff)!important;
  box-shadow:0 6px 18px rgba(15,23,42,.055)!important;
  overflow:hidden!important;
  white-space:normal!important;
}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form>select,
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form>input:not([type="checkbox"]),
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]>select,
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]>input:not([type="checkbox"]){
  display:block!important;
  grid-column:auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:28px!important;
  min-height:28px!important;
  padding:3px 5px!important;
  font-size:10.5px!important;
  line-height:1.05!important;
  border-radius:8px!important;
  box-sizing:border-box!important;
}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form>.edit-check,
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]>.edit-check{
  display:flex!important;
  grid-column:auto!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:28px!important;
  min-height:28px!important;
  padding:3px 4px!important;
  font-size:10.5px!important;
  font-weight:800!important;
  border-radius:8px!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form>.edit-check input,
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]>.edit-check input{
  width:12px!important;height:12px!important;min-width:12px!important;max-width:12px!important;margin:0!important;flex:0 0 12px!important;
}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form>.edit-actions,
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]>.edit-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:3px!important;
  grid-column:auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form>.edit-actions .mini,
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]>.edit-actions .mini{
  flex:1 1 0!important;
  min-width:0!important;
  height:28px!important;
  min-height:28px!important;
  padding:3px 4px!important;
  font-size:10.5px!important;
  border-radius:8px!important;
  white-space:nowrap!important;
}
@media(max-width:900px){
  .table-wrap tr.edit-row.compact-edit-row>td{overflow-x:auto!important;}
  .table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form,
  .table-wrap tr.edit-row.compact-edit-row form[data-edit-form]{min-width:660px!important;}
}

/* MODIS V5 - GIRILEN ÖLÇÜLER İLK SATIR DAHİL KESİN TEK SATIR FIX
   Eski grid/auto-fit/ilk-satır kaynaklarını tamamen ezer. Sineklik edit paneli artık flex toolbar'dır. */
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form),
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form.sineklik-edit-form,
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]:not(.cam-edit-form){
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:4px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  padding:6px!important;
  margin:0!important;
  white-space:nowrap!important;
}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) > input[type="hidden"],
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]:not(.cam-edit-form) > input[type="hidden"]{display:none!important;}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) > select,
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]:not(.cam-edit-form) > select,
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) > input:not([type="hidden"]):not([type="checkbox"]),
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]:not(.cam-edit-form) > input:not([type="hidden"]):not([type="checkbox"]){
  display:block!important;
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  min-width:0!important;
  max-width:none!important;
  padding:3px 5px!important;
  font-size:10.5px!important;
  line-height:1!important;
  box-sizing:border-box!important;
  grid-column:auto!important;
}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) > select[name="system_id"],
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]:not(.cam-edit-form) > select[name="system_id"]{flex:1 1 112px!important;width:112px!important;}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) > select[name="color_id"],
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]:not(.cam-edit-form) > select[name="color_id"]{flex:0 1 96px!important;width:96px!important;}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) > input[name="painted_code"],
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]:not(.cam-edit-form) > input[name="painted_code"]{flex:0 0 70px!important;width:70px!important;}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) > input[name="qty"],
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]:not(.cam-edit-form) > input[name="qty"]{flex:0 0 48px!important;width:48px!important;}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) > input[name="height_cm"],
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) > input[name="width_cm"],
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]:not(.cam-edit-form) > input[name="height_cm"],
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]:not(.cam-edit-form) > input[name="width_cm"]{flex:0 0 68px!important;width:68px!important;}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) > .edit-check,
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]:not(.cam-edit-form) > .edit-check{
  display:flex!important;
  flex:0 0 62px!important;
  width:62px!important;
  min-width:62px!important;
  height:28px!important;
  min-height:28px!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  padding:3px!important;
  font-size:10.5px!important;
  line-height:1!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
  grid-column:auto!important;
  overflow:hidden!important;
}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) > .edit-check input,
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]:not(.cam-edit-form) > .edit-check input{flex:0 0 12px!important;width:12px!important;height:12px!important;min-width:12px!important;margin:0!important;}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) > .edit-actions,
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]:not(.cam-edit-form) > .edit-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  gap:3px!important;
  align-items:center!important;
  flex:0 0 112px!important;
  width:112px!important;
  min-width:112px!important;
  max-width:112px!important;
  height:28px!important;
  grid-column:auto!important;
}
.table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form) > .edit-actions .mini,
.table-wrap tr.edit-row.compact-edit-row form[data-edit-form]:not(.cam-edit-form) > .edit-actions .mini{height:28px!important;min-height:28px!important;flex:1 1 0!important;min-width:0!important;padding:3px 5px!important;font-size:10.5px!important;white-space:nowrap!important;}
.table-wrap tr.edit-row.compact-edit-row > td{overflow:hidden!important;max-width:100%!important;}
@media(max-width:760px){
  .table-wrap tr.edit-row.compact-edit-row > td{overflow-x:auto!important;}
  .table-wrap tr.edit-row.compact-edit-row form.measurement-edit-form:not(.cam-edit-form),
  .table-wrap tr.edit-row.compact-edit-row form[data-edit-form]:not(.cam-edit-form){min-width:650px!important;}
}

/* MODIS V5 - Form Editörü seçili blok gelişmiş stil paneli */
.block-style-inspector{margin:10px 0 12px;border:1px solid #dbe4f0;border-radius:18px;background:linear-gradient(180deg,#ffffff,#f8fbff);padding:12px;box-shadow:0 10px 28px rgba(15,23,42,.06)}
.block-style-inspector>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.block-style-inspector b{font-size:13px;color:#111827}.block-style-inspector span{font-size:12px;color:#64748b;font-weight:800}
.block-style-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.block-style-grid label{display:grid;gap:4px;font-size:11px;font-weight:900;color:#475569}.block-style-grid input,.block-style-grid select{min-width:0;height:32px;border:1px solid #dbe4f0;border-radius:10px;background:#fff;color:#111827;padding:5px 8px;font-weight:800;box-sizing:border-box}.block-style-grid input[type=color]{padding:2px 4px}
.print-editor-canvas .print-block{position:absolute!important;box-sizing:border-box;cursor:grab;user-select:none;resize:both;overflow:auto}.print-editor-canvas .print-block.is-selected{outline:2px solid #2563eb!important;outline-offset:2px;box-shadow:0 0 0 4px rgba(37,99,235,.14),0 14px 34px rgba(15,23,42,.12)!important}.print-editor-canvas .print-block.is-selected:after{content:"";position:absolute;right:2px;bottom:2px;width:10px;height:10px;border-radius:3px;background:#2563eb;box-shadow:0 0 0 2px #fff}
@media(max-width:1100px){.block-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.print-editor-canvas .print-block *{font-family:inherit;color:inherit}.print-editor-canvas .print-block table{font-size:inherit}.print-editor-canvas .print-block th,.print-editor-canvas .print-block td{font-size:inherit}.print-editor-canvas .block-totals strong{font-size:inherit}.print-editor-canvas .print-block[style*="text-align: center"] table,.print-editor-canvas .print-block[style*="text-align:center"] table{text-align:center}

/* MODIS V5 - Cari Ekstre dark mode visibility fix */
html[data-theme="dark"] .current-account-page,
html[data-theme="dark"] .current-account-page .panel{
  color:var(--text)!important;
}
html[data-theme="dark"] .current-account-page .muted,
html[data-theme="dark"] .current-account-page small,
html[data-theme="dark"] .current-account-page p{
  color:var(--muted)!important;
}
html[data-theme="dark"] .current-list,
html[data-theme="dark"] .current-side,
html[data-theme="dark"] .current-detail,
html[data-theme="dark"] .current-summary-grid article{
  background:linear-gradient(180deg,var(--surface),var(--surface-2))!important;
  border-color:var(--line)!important;
  box-shadow:var(--shadow-sm)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .current-account-page h1,
html[data-theme="dark"] .current-account-page h2,
html[data-theme="dark"] .current-account-page h3,
html[data-theme="dark"] .current-summary-grid b,
html[data-theme="dark"] .current-table b,
html[data-theme="dark"] .current-detail b{
  color:var(--text)!important;
}
html[data-theme="dark"] .current-summary-grid span,
html[data-theme="dark"] .current-table th,
html[data-theme="dark"] .current-ledger-table th{
  color:var(--muted)!important;
}
html[data-theme="dark"] .current-table td,
html[data-theme="dark"] .current-total-row td{
  background:var(--surface-2)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .current-table tr.selected td{
  background:color-mix(in srgb,#14b8a6 18%,var(--surface-2))!important;
  border-color:color-mix(in srgb,#14b8a6 45%,var(--line))!important;
}
html[data-theme="dark"] .current-table tbody tr:hover td{
  background:color-mix(in srgb,var(--brand) 12%,var(--surface-2))!important;
}
html[data-theme="dark"] .current-form label{
  color:var(--text-2)!important;
}
html[data-theme="dark"] .current-form input,
html[data-theme="dark"] .current-form select,
html[data-theme="dark"] .current-form textarea{
  background:var(--input)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .current-form input::placeholder,
html[data-theme="dark"] .current-form textarea::placeholder{
  color:#94a3b8!important;
}
html[data-theme="dark"] .current-ledger-table{
  background:var(--surface)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .current-ledger-table th{
  background:var(--thead)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .current-ledger-table td{
  background:var(--surface)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .current-ledger-table tbody tr:hover td{
  background:var(--surface-2)!important;
}
html[data-theme="dark"] .current-table .debt,
html[data-theme="dark"] .current-ledger-table .debt{
  color:#fca5a5!important;
}
html[data-theme="dark"] .current-table .ok,
html[data-theme="dark"] .current-ledger-table .ok,
html[data-theme="dark"] .current-summary-grid .balance b{
  color:#86efac!important;
}
html[data-theme="dark"] .current-head-buttons .btn,
html[data-theme="dark"] .current-detail-head .btn{
  color:#fff!important;
}

/* MODIS V5 - Form Editörü seçili blok sil/gizle/kopyala */
.block-style-inspector .inspector-actions{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 8px}
.block-style-inspector .inspector-actions button{border:1px solid var(--line,#dbe2ea);background:var(--panel-2,#f8fafc);color:var(--text,#111827);border-radius:9px;padding:6px 8px;font-size:11px;font-weight:900;cursor:pointer}
.block-style-inspector .inspector-actions [data-delete-selected-block]{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.print-block.is-hidden,.print-block[data-deleted="1"]{display:none!important}

/* MODIS V5 - Cari Ekstre Genel Toplam Bakiye dark background fix */
html[data-theme="dark"] .current-summary-grid article.balance,
html[data-theme="dark"] .current-summary-grid.detail-totals article.balance,
html[data-theme="dark"] .current-account-page .current-summary-grid article.balance,
html[data-theme="dark"] .current-account-page .detail-totals article.balance{
  background:linear-gradient(135deg,rgba(20,184,166,.20),rgba(15,23,42,.92))!important;
  border-color:rgba(45,212,191,.38)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.26)!important;
  color:var(--text,#e5eef9)!important;
}
html[data-theme="dark"] .current-summary-grid article.balance span,
html[data-theme="dark"] .current-summary-grid.detail-totals article.balance span{
  color:#99f6e4!important;
}
html[data-theme="dark"] .current-summary-grid article.balance b,
html[data-theme="dark"] .current-summary-grid.detail-totals article.balance b{
  color:#5eead4!important;
}
html[data-theme="dark"] .current-total-row td,
html[data-theme="dark"] .ledger-total-row td{
  background:linear-gradient(180deg,var(--surface-2,#111827),var(--surface,#0f172a))!important;
  color:var(--text,#e5eef9)!important;
  border-color:var(--line,#334155)!important;
}
/* modis-selection-fix */
.block-style-inspector.compact{position:relative}
.block-style-inspector.compact .inspector-head span{display:inline-flex;align-items:center;min-height:22px;padding:3px 7px;border-radius:999px;background:#eef2ff;color:#1d4ed8;font-size:11px;white-space:nowrap}
.block-style-inspector.compact[data-has-selection="1"]{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(37,99,235,.10),0 12px 28px rgba(15,23,42,.07)}
.block-style-inspector.compact[data-has-selection="0"] .inspector-actions,
.block-style-inspector.compact[data-has-selection="0"] .mini-tabs,
.block-style-inspector.compact[data-has-selection="0"] .block-style-grid{opacity:.45}
.block-style-inspector.compact .mini-tabs{display:flex;gap:5px;margin:6px 0 8px}
.block-style-inspector.compact .mini-tabs button{border:1px solid var(--line,#dbe2ea);background:var(--panel-2,#f8fafc);color:var(--text,#111827);border-radius:999px;padding:5px 8px;font-size:11px;font-weight:900;cursor:pointer}
.block-style-inspector.compact .mini-tabs button.active{background:#2563eb;color:#fff;border-color:#2563eb}
.print-editor-canvas .print-block.is-selected{outline:2px solid #2563eb!important;outline-offset:2px!important;z-index:20!important}

/* Cari ekstre müşteri bazlı hızlı işlem formu */
.current-inline-entry{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px;align-items:end;margin:14px 0;padding:12px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}
.current-inline-entry label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#475569}
.current-inline-entry input,.current-inline-entry select{min-height:38px;border:1px solid #cbd5e1;border-radius:10px;padding:7px 9px;background:white}
@media(max-width:900px){.current-inline-entry{grid-template-columns:1fr 1fr}.current-inline-entry button{grid-column:1/-1}}

/* MODIS fix: Kesim/Optimizasyon kayıtlı şablon yazdırma ölçü hücreleri editör önizlemesiyle aynı border yapısını kullanır. */
body.print .tpl-optimization .tpl-opt-line span,
.template-layout-active .tpl-optimization .tpl-opt-line span{
  display:flex!important;gap:0!important;align-items:stretch!important;
  background:#f8fafc!important;border:1px solid #111827!important;
  border-radius:calc(var(--opt-section-radius,10px) * .75)!important;
  padding:0!important;height:var(--opt-bar-height,24px)!important;min-height:var(--opt-bar-height,24px)!important;
  overflow:hidden!important;
}
body.print .tpl-optimization .tpl-opt-line em,
body.print .tpl-optimization .tpl-opt-line i,
.template-layout-active .tpl-optimization .tpl-opt-line em,
.template-layout-active .tpl-optimization .tpl-opt-line i{
  display:flex!important;align-items:center!important;justify-content:center!important;
  font-style:normal!important;border-radius:0!important;
  padding:var(--opt-cell-padding,4px 5px)!important;
  font-size:var(--opt-cut-font,7.8px)!important;line-height:var(--opt-line-height,1)!important;
  min-width:var(--opt-cut-min-width,24px)!important;white-space:nowrap!important;
  border-right:1px solid rgba(17,24,39,.34)!important;background:#dbeafe!important;color:#111827!important;font-weight:850!important;
}
body.print .tpl-optimization .tpl-opt-line em:nth-of-type(2n),
.template-layout-active .tpl-optimization .tpl-opt-line em:nth-of-type(2n){background:#bfdbfe!important;}
body.print .tpl-optimization .tpl-opt-line i,
.template-layout-active .tpl-optimization .tpl-opt-line i{background:#fee2e2!important;color:#991b1b!important;border-right:0!important;flex:1 1 auto!important;font-weight:950!important;}
body.print .optimization-sheet .profile-bar,
.template-layout-active .optimization-sheet .profile-bar{border:1px solid #111827!important;}
body.print .optimization-sheet .profile-bar span,
body.print .optimization-sheet .profile-bar em,
.template-layout-active .optimization-sheet .profile-bar span,
.template-layout-active .optimization-sheet .profile-bar em{border-right:1px solid rgba(17,24,39,.34)!important;}
body.print .optimization-sheet .profile-bar em,
.template-layout-active .optimization-sheet .profile-bar em{border-right:0!important;}

/* MODIS fix: Kesim/Optimizasyon kayıtlı yazdırmada Profil Rengi / Adet başlığı, önizleme ile aynı componenttir. */
body.print .tpl-optimization .tpl-opt-profile-head,
.template-layout-active .tpl-optimization .tpl-opt-profile-head{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:var(--opt-profile-header-gap,8px)!important;
  min-height:var(--opt-profile-header-height,28px)!important;height:var(--opt-profile-header-height,28px)!important;
  padding:var(--opt-profile-header-padding,5px 7px)!important;
  background:var(--opt-profile-heading-bg,#f8fafc)!important;border:1px solid var(--opt-profile-heading-border,#e2e8f0)!important;
  border-radius:var(--opt-section-radius,10px)!important;color:var(--opt-profile-heading-color,#111827)!important;
  margin:5px 0!important;box-sizing:border-box!important;
}
body.print .tpl-optimization .tpl-opt-profile-head b,
.template-layout-active .tpl-optimization .tpl-opt-profile-head b{font-size:var(--opt-profile-header-font,10px)!important;color:var(--opt-profile-heading-color,#111827)!important;line-height:var(--opt-line-height,1)!important;}
body.print .tpl-optimization .tpl-opt-profile-head span,
.template-layout-active .tpl-optimization .tpl-opt-profile-head span{
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-height:var(--opt-profile-badge-height,22px)!important;height:var(--opt-profile-badge-height,22px)!important;
  padding:var(--opt-profile-badge-padding,3px 7px)!important;border-radius:var(--opt-profile-badge-radius,999px)!important;
  background:var(--opt-profile-badge-bg,#fff)!important;border:1px solid var(--opt-profile-badge-border,#dbe2ea)!important;color:var(--opt-profile-badge-color,#334155)!important;
  font-size:var(--opt-profile-badge-font,9px)!important;line-height:var(--opt-line-height,1)!important;box-sizing:border-box!important;
}
body.print .tpl-optimization .tpl-opt-section h3,
.template-layout-active .tpl-optimization .tpl-opt-section h3{
  min-height:var(--opt-section-title-height,22px)!important;padding:var(--opt-section-title-padding,4px 5px)!important;
  background:var(--opt-section-title-bg,#fff)!important;color:var(--opt-section-title-color,#475569)!important;border:1px solid var(--opt-section-title-border,#e2e8f0)!important;
  border-radius:calc(var(--opt-section-radius,10px) * .65)!important;display:flex!important;align-items:center!important;box-sizing:border-box!important;
}

/* MODIS V5 - müşteri bazlı cari ekstre görünür kart listesi */
.customer-ledger-strip{margin:16px 0 18px;padding:14px;border:1px solid #dbe6f2;border-radius:18px;background:linear-gradient(180deg,#f8fafc,#fff)}
.customer-ledger-strip h2{margin:0 0 4px;font-size:20px}.customer-ledger-strip p{margin:0 0 12px}
.customer-ledger-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.customer-ledger-card{display:flex;flex-direction:column;gap:5px;text-decoration:none;color:#0f172a;border:1px solid #dbe6f2;border-radius:16px;background:#fff;padding:12px;box-shadow:0 8px 24px rgba(15,23,42,.05);transition:.16s ease}
.customer-ledger-card:hover{transform:translateY(-1px);border-color:#14b8a6;box-shadow:0 14px 34px rgba(20,184,166,.14)}
.customer-ledger-card.active{border:2px solid #14b8a6;background:linear-gradient(180deg,#ecfeff,#fff)}
.customer-ledger-card strong{font-size:15px}.customer-ledger-card small{color:#64748b}.customer-ledger-card b{font-size:20px}.customer-ledger-card span{align-self:flex-start;border-radius:999px;background:#0f172a;color:#fff;font-size:11px;font-weight:800;padding:5px 9px}
.current-detail{scroll-margin-top:18px;border:2px solid rgba(20,184,166,.28)!important}
.current-detail-head h2:before{content:'Müşteri Ekstresi · ';color:#14b8a6;font-size:14px;display:block;margin-bottom:4px;letter-spacing:.02em}

/* MODIS V5 gerçek alt öğe seçim motoru */
.print-editor-canvas .print-block.has-element-selected{outline:1px dashed rgba(37,99,235,.35)!important;outline-offset:2px;z-index:18!important}
.print-editor-canvas [data-edit-target]{cursor:pointer;position:relative}
.print-editor-canvas [data-edit-target]:hover{box-shadow:inset 0 0 0 1px rgba(37,99,235,.45)!important}
.print-editor-canvas .is-element-selected{outline:2px solid #f97316!important;outline-offset:1px!important;box-shadow:0 0 0 4px rgba(249,115,22,.15)!important;z-index:30!important}
.block-style-inspector[data-selection-mode="element"] [data-tab-panel="pos"] label:nth-child(1),
.block-style-inspector[data-selection-mode="element"] [data-tab-panel="pos"] label:nth-child(2){opacity:.45;pointer-events:none}
.block-style-inspector[data-selection-mode="element"] .element-pick-hint{color:#ea580c;font-weight:700}


/* MODIS V5 - Form editor tema kalıcılığı / dark mode reset fix */
html[data-theme="dark"] body.page-forms,
html[data-theme="dark"] .forms-accordion-page{
  background:linear-gradient(180deg,var(--surface),var(--surface-2))!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .forms-accordion-page>h2,
html[data-theme="dark"] .forms-accordion-page h2,
html[data-theme="dark"] .forms-accordion-page h3,
html[data-theme="dark"] .forms-accordion-page b,
html[data-theme="dark"] .forms-accordion-page strong{
  color:var(--text)!important;
}
html[data-theme="dark"] .forms-accordion-page .muted,
html[data-theme="dark"] .forms-accordion-page small,
html[data-theme="dark"] .forms-accordion-page p{
  color:var(--muted)!important;
}
html[data-theme="dark"] .forms-accordion-page .forms-acc,
html[data-theme="dark"] .forms-accordion-page .forms-acc-body,
html[data-theme="dark"] .forms-accordion-page .panel,
html[data-theme="dark"] .forms-accordion-page .card,
html[data-theme="dark"] .block-style-inspector,
html[data-theme="dark"] .visual-designer-layout,
html[data-theme="dark"] .editor-left,
html[data-theme="dark"] .editor-preview-wrap{
  background:linear-gradient(180deg,var(--surface),var(--surface-2))!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
  box-shadow:var(--shadow-sm)!important;
}
html[data-theme="dark"] .forms-accordion-page .forms-acc>summary{
  background:linear-gradient(180deg,var(--surface-2),var(--surface))!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .forms-accordion-page .forms-acc[open]>summary{border-bottom-color:var(--line)!important;}
html[data-theme="dark"] .forms-accordion-page label,
html[data-theme="dark"] .forms-accordion-page .optimization-print-grid label,
html[data-theme="dark"] .forms-accordion-page .offer-control-grid label,
html[data-theme="dark"] .block-style-grid label{
  background:var(--surface-2)!important;
  border-color:var(--line)!important;
  color:var(--text-2)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .forms-accordion-page input,
html[data-theme="dark"] .forms-accordion-page select,
html[data-theme="dark"] .forms-accordion-page textarea,
html[data-theme="dark"] .block-style-grid input,
html[data-theme="dark"] .block-style-grid select,
html[data-theme="dark"] .block-style-grid textarea{
  background:var(--input)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .visual-a4-canvas,
html[data-theme="dark"] .print-editor-canvas{
  background:#fff!important;
  color:#111827!important;
  border-color:#dbe2ea!important;
}
html[data-theme="dark"] .visual-a4-canvas .design-component,
html[data-theme="dark"] .print-editor-canvas .print-block{
  background:#fff!important;
  color:#111827!important;
  border-color:#dbe2ea!important;
}
html[data-theme="dark"] .print-editor-canvas .print-block *{color:inherit;}
html[data-theme="dark"] .mini-tabs button,
html[data-theme="dark"] .block-palette button,
html[data-theme="dark"] .editor-preview-toolbar button{
  background:var(--surface-2)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .mini-tabs button.active{background:var(--brand)!important;color:#fff!important;border-color:var(--brand)!important;}

/* MODIS V5 müşteri/cari/stok dashboard hotfix */
.current-search{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:16px 0;padding:14px;border:1px solid rgba(120,130,160,.18);border-radius:18px;background:rgba(255,255,255,.72)}
.current-search label{flex:1;min-width:260px;font-weight:700;color:var(--text,#111827)}
.current-search input{margin-top:6px;width:100%;border-radius:12px;border:1px solid rgba(120,130,160,.28);padding:11px 12px;background:var(--input-bg,#fff);color:var(--text,#111827)}
.customers-layout{display:grid;grid-template-columns:minmax(240px,320px) 1fr;gap:18px;margin-top:18px;align-items:start}.customer-list-panel,.customer-detail-panel{border:1px solid rgba(120,130,160,.18);border-radius:22px;background:rgba(255,255,255,.72);padding:16px}.customer-list-panel{position:sticky;top:16px;max-height:calc(100vh - 120px);overflow:auto}.customer-select-card{display:block;text-decoration:none;color:inherit;border:1px solid rgba(120,130,160,.14);border-radius:16px;padding:12px;margin:8px 0;background:rgba(255,255,255,.76);transition:.18s}.customer-select-card:hover,.customer-select-card.active{transform:translateY(-1px);border-color:rgba(61,104,255,.42);box-shadow:0 12px 30px rgba(31,41,55,.09)}.customer-select-card b,.customer-select-card span,.customer-select-card small{display:block}.customer-select-card small{color:var(--muted,#64748b);margin-top:4px}.customer-detail-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.stock-mini-chart{display:grid;gap:10px;margin:10px 0}.stock-bar-row{display:grid;grid-template-columns:1fr minmax(90px,160px) auto;gap:10px;align-items:center;font-size:12px}.stock-bar-row i{height:9px;border-radius:999px;background:rgba(120,130,160,.2);overflow:hidden}.stock-bar-row i b{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#ef4444,#f59e0b,#22c55e)}.stock-bar-row em{font-style:normal;color:var(--muted,#64748b);white-space:nowrap}.offers-page h2,.customers-page h3{margin-top:18px}.dark .current-search,.dark .customer-list-panel,.dark .customer-detail-panel,.dark .customer-select-card{background:rgba(15,23,42,.66);border-color:rgba(148,163,184,.2)}
@media(max-width:900px){.customers-layout{grid-template-columns:1fr}.customer-list-panel{position:static;max-height:none}.stock-bar-row{grid-template-columns:1fr}.current-search{align-items:stretch}}

/* MODIS V5 - müşteri autocomplete düzeltmesi */
.suggest-wrap{position:relative;overflow:visible!important}
.suggest-box{display:none;position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:60;background:#fff;border:1px solid rgba(100,116,139,.22);border-radius:16px;box-shadow:0 18px 45px rgba(15,23,42,.14);padding:8px;max-height:260px;overflow:auto}
.suggest-box.show{display:grid;gap:6px}
.suggest-box:empty{display:none!important}
.customer-suggest-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;border-radius:12px;background:transparent;color:inherit;text-align:left;padding:10px 11px;cursor:pointer;font:inherit}
.customer-suggest-item:hover,.customer-suggest-item.active{background:rgba(61,104,255,.09)}
.customer-suggest-item span{display:flex;align-items:center;gap:6px;min-width:0}.customer-suggest-item b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-suggest-item small{color:var(--muted,#64748b);white-space:nowrap}.customer-suggest-item.new-customer{border:1px dashed rgba(20,184,166,.42);background:rgba(20,184,166,.07)}
.dark .suggest-box,[data-theme="dark"] .suggest-box{background:#0f172a;border-color:rgba(148,163,184,.24);box-shadow:0 18px 45px rgba(0,0,0,.35)}
.dark .customer-suggest-item:hover,.dark .customer-suggest-item.active,[data-theme="dark"] .customer-suggest-item:hover,[data-theme="dark"] .customer-suggest-item.active{background:rgba(61,104,255,.18)}

/* MODIS V5 customer menu polish */
.customers-page .customer-add-form{margin-top:18px;padding:14px;border:1px solid rgba(120,130,160,.16);border-radius:18px;background:rgba(255,255,255,.58)}
.customers-layout{display:grid;grid-template-columns:minmax(280px,360px) 1fr;gap:18px;margin-top:18px;align-items:start}.customer-list-panel,.customer-detail-panel{border:1px solid rgba(120,130,160,.18);border-radius:22px;background:rgba(255,255,255,.76);box-shadow:0 14px 36px rgba(15,23,42,.06);padding:16px}.customer-list-panel{position:sticky;top:16px}.customer-list-head{display:grid;gap:10px;margin-bottom:12px}.customer-list-head h2{margin:0;font-size:18px}.customer-page-search{width:100%;height:42px;border:1px solid rgba(120,130,160,.24);border-radius:14px;padding:0 14px;background:rgba(255,255,255,.9);outline:none}.customer-page-search:focus{border-color:rgba(61,104,255,.55);box-shadow:0 0 0 4px rgba(61,104,255,.11)}.customer-scroll-list{max-height:760px;overflow-y:auto;padding-right:6px}.customer-scroll-list::-webkit-scrollbar{width:8px}.customer-scroll-list::-webkit-scrollbar-thumb{border-radius:99px;background:rgba(100,116,139,.28)}.customer-select-card{display:grid!important;grid-template-columns:1fr;gap:4px;text-decoration:none!important;color:inherit!important;border:1px solid rgba(120,130,160,.14);border-radius:16px;padding:12px 13px;margin:8px 0;background:rgba(255,255,255,.82);transition:.18s;line-height:1.25}.customer-select-card strong{font-size:14px;color:var(--text,#0f172a)}.customer-select-card span{font-size:12px;color:var(--muted,#64748b)}.customer-select-card small{font-size:12px;color:var(--muted,#64748b)}.customer-select-card:hover,.customer-select-card.active{transform:translateY(-1px);border-color:rgba(61,104,255,.48);box-shadow:0 12px 30px rgba(31,41,55,.09);background:rgba(255,255,255,.96)}.customer-detail-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid rgba(120,130,160,.14)}.customer-detail-head h2{margin:0}.customer-orders-collapsed details.order{margin:10px 0;border:1px solid rgba(120,130,160,.16);border-radius:18px;background:rgba(255,255,255,.7);overflow:hidden}.customer-orders-collapsed details.order:not([open]) .table-wrap,.customer-orders-collapsed details.order:not([open]) .compact-detail-actions{display:none}.customer-orders-collapsed details.order summary{cursor:pointer;display:grid!important;grid-template-columns:auto minmax(140px,1.2fr) minmax(120px,1fr) auto minmax(160px,1fr) auto;gap:10px;align-items:center;padding:12px 14px;list-style:none}.customer-orders-collapsed details.order summary::-webkit-details-marker{display:none}.customer-orders-collapsed details.order summary b,.customer-orders-collapsed details.order summary span,.customer-orders-collapsed details.order summary em{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-orders-collapsed .row-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.dark .customer-add-form,.dark .customer-list-panel,.dark .customer-detail-panel,.dark .customer-select-card,.dark .customer-orders-collapsed details.order{background:rgba(15,23,42,.68);border-color:rgba(148,163,184,.2)}.dark .customer-page-search{background:rgba(15,23,42,.72);color:#e5e7eb;border-color:rgba(148,163,184,.22)}.dark .customer-select-card strong{color:#e5e7eb}@media(max-width:900px){.customers-layout{grid-template-columns:1fr}.customer-list-panel{position:static}.customer-scroll-list{max-height:520px}.customer-orders-collapsed details.order summary{grid-template-columns:auto 1fr;align-items:start}.customer-orders-collapsed .row-actions{grid-column:1/-1;justify-content:flex-start}}

/* MODIS V5 müşteri listeleme gerçek liste görünümü */
.customers-page-v2 .customer-add-form{margin-bottom:18px}
.customers-page-v2 .customer-list-block{border:1px solid rgba(120,130,160,.18);border-radius:22px;background:rgba(255,255,255,.78);box-shadow:0 14px 36px rgba(15,23,42,.06);padding:16px;margin-top:16px}
.customers-page-v2 .customer-list-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:12px}
.customers-page-v2 .customer-list-head h2{margin:0;font-size:18px}
.customers-page-v2 .customer-page-search{width:min(100%,360px);height:42px;border:1px solid rgba(120,130,160,.26);border-radius:14px;padding:0 14px;background:rgba(255,255,255,.95);outline:none}
.customers-page-v2 .customer-row-scroll{max-height:560px;overflow-y:auto;padding-right:6px;display:grid;gap:8px}
.customers-page-v2 .customer-row-scroll::-webkit-scrollbar,.current-table-wrap::-webkit-scrollbar{width:8px;height:8px}
.customers-page-v2 .customer-row-scroll::-webkit-scrollbar-thumb,.current-table-wrap::-webkit-scrollbar-thumb{border-radius:99px;background:rgba(100,116,139,.30)}
.customers-page-v2 .customer-line-row{display:grid;grid-template-columns:minmax(220px,1fr) 110px 110px auto;gap:12px;align-items:center;text-decoration:none;color:inherit;border:1px solid rgba(120,130,160,.16);border-radius:16px;background:rgba(248,250,252,.84);padding:11px 13px;line-height:1.25}
.customers-page-v2 .customer-line-row:hover,.customers-page-v2 .customer-line-row.active{border-color:rgba(37,99,235,.44);background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.08)}
.customers-page-v2 .customer-main b{display:block;font-size:14px;color:var(--text,#0f172a)}
.customers-page-v2 .customer-main small,.customers-page-v2 .customer-stat small{display:block;color:var(--muted,#64748b);font-size:12px;margin-top:2px}
.customers-page-v2 .customer-stat b{font-size:15px;color:var(--text,#0f172a)}
.customers-page-v2 .customer-action{justify-self:end;border:1px solid rgba(37,99,235,.24);border-radius:999px;padding:7px 10px;font-weight:800;font-size:12px;color:#1d4ed8;background:rgba(37,99,235,.06)}
.customers-page-v2 .customer-detail-under{margin-top:18px;border:1px solid rgba(120,130,160,.18);border-radius:22px;background:rgba(255,255,255,.78);box-shadow:0 14px 36px rgba(15,23,42,.06);padding:16px}
.customers-page-v2 .customer-orders-collapsed details.order:not([open]) .table-wrap,.customers-page-v2 .customer-orders-collapsed details.order:not([open]) .compact-detail-actions{display:none!important}
.current-table-wrap{max-height:620px;overflow-y:auto;overflow-x:auto;padding-right:6px}
.dark .customers-page-v2 .customer-list-block,.dark .customers-page-v2 .customer-detail-under,.dark .customers-page-v2 .customer-line-row{background:rgba(15,23,42,.68);border-color:rgba(148,163,184,.2)}
.dark .customers-page-v2 .customer-line-row:hover,.dark .customers-page-v2 .customer-line-row.active{background:rgba(30,41,59,.86)}
.dark .customers-page-v2 .customer-main b,.dark .customers-page-v2 .customer-stat b{color:#e5e7eb}
@media(max-width:900px){.customers-page-v2 .customer-list-head{display:grid;align-items:start}.customers-page-v2 .customer-page-search{width:100%}.customers-page-v2 .customer-line-row{grid-template-columns:1fr 72px 72px}.customers-page-v2 .customer-action{grid-column:1/-1;justify-self:start}.customers-page-v2 .customer-row-scroll{max-height:520px}}

/* MODIS V5 customer ledger balance badge */
.customers-page-v2 .customer-line-row{grid-template-columns:minmax(220px,1fr) 96px 96px 160px auto}
.customers-page-v2 .customer-balance{display:block;text-align:right;border-radius:14px;padding:7px 10px;background:rgba(100,116,139,.08);border:1px solid rgba(100,116,139,.14)}
.customers-page-v2 .customer-balance b{display:block;font-size:15px;font-weight:900;white-space:nowrap}
.customers-page-v2 .customer-balance small{display:block;font-size:11px;color:var(--muted,#64748b);margin-top:2px;white-space:nowrap}
.customers-page-v2 .customer-balance.pos{background:rgba(16,185,129,.10);border-color:rgba(16,185,129,.25)}
.customers-page-v2 .customer-balance.pos b{color:#047857}
.customers-page-v2 .customer-balance.neg{background:rgba(239,68,68,.09);border-color:rgba(239,68,68,.24)}
.customers-page-v2 .customer-balance.neg b{color:#b91c1c}
.customers-page-v2 .customer-balance.zero b{color:#64748b}
@media(max-width:900px){.customers-page-v2 .customer-line-row{grid-template-columns:1fr 72px 72px}.customers-page-v2 .customer-balance{grid-column:1/-1;text-align:left}.customers-page-v2 .customer-action{grid-column:1/-1}}

/* MODIS V5 safe customer/offers hotfix */
.saved-offers-box{margin-top:16px;border:1px solid rgba(120,130,160,.18);border-radius:20px;background:rgba(255,255,255,.76);padding:14px;box-shadow:0 14px 36px rgba(15,23,42,.06)}
.saved-offers-box>summary{display:inline-flex;list-style:none;cursor:pointer;user-select:none}
.saved-offers-box>summary::-webkit-details-marker{display:none}
.saved-offers-content{margin-top:14px}
.dark .saved-offers-box,[data-theme="dark"] .saved-offers-box{background:rgba(15,23,42,.68);border-color:rgba(148,163,184,.2)}
.current-table-wrap{max-height:560px;overflow-y:auto;overflow-x:auto;padding-right:6px}
.customers-page-v2 .customer-row-scroll{max-height:560px;overflow-y:auto;padding-right:6px;display:grid;gap:8px}

/* MODIS V5 - Müşteriler sayfası dark mode ve modern liste kesin düzeltme */
.customers-page-v2{color:var(--text)}
.customers-page-v2 .customer-top-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 18px}
.customers-page-v2 .customer-top-summary article{border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,var(--surface),var(--surface-2));padding:15px 16px;box-shadow:var(--shadow-sm)}
.customers-page-v2 .customer-top-summary span{display:block;color:var(--muted);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.customers-page-v2 .customer-top-summary b{display:block;margin-top:5px;color:var(--text);font-size:24px;font-weight:950}
.customers-page-v2 .customer-top-summary .debt b{color:#ef4444}
.customers-page-v2 .customer-top-summary .ok b{color:#22c55e}
.customers-page-v2 .customer-add-form,
.customers-page-v2 .customer-list-block,
.customers-page-v2 .customer-detail-under{background:linear-gradient(180deg,var(--surface),var(--surface-2))!important;border-color:var(--line)!important;color:var(--text)!important;box-shadow:var(--shadow-sm)!important}
.customers-page-v2 .customer-add-form label{color:var(--text-2)!important}
.customers-page-v2 input,
.customers-page-v2 select,
.customers-page-v2 textarea,
.customers-page-v2 .customer-page-search{background:var(--input)!important;color:var(--text)!important;border-color:var(--line)!important}
.customers-page-v2 input::placeholder{color:var(--muted)!important}
.customers-page-v2 .customer-list-head h2,
.customers-page-v2 .customer-detail-head h2,
.customers-page-v2 h3{color:var(--text)!important}
.customers-page-v2 .customer-row-scroll{max-height:560px;overflow-y:auto;overflow-x:hidden;padding-right:6px;display:grid;gap:8px}
.customers-page-v2 .customer-line-row{grid-template-columns:minmax(230px,1fr) 100px 100px 170px auto!important;background:var(--surface-2)!important;border-color:var(--line)!important;color:var(--text)!important}
.customers-page-v2 .customer-line-row:hover,
.customers-page-v2 .customer-line-row.active{background:var(--surface)!important;border-color:rgba(37,99,235,.48)!important;box-shadow:0 10px 24px rgba(37,99,235,.12)!important}
.customers-page-v2 .customer-main b,
.customers-page-v2 .customer-stat b{color:var(--text)!important}
.customers-page-v2 .customer-main small,
.customers-page-v2 .customer-stat small,
.customers-page-v2 .customer-balance small{color:var(--muted)!important}
.customers-page-v2 .customer-balance{background:rgba(100,116,139,.10)!important;border-color:var(--line)!important}
.customers-page-v2 .customer-balance.debt{background:rgba(239,68,68,.12)!important;border-color:rgba(239,68,68,.28)!important}
.customers-page-v2 .customer-balance.debt b{color:#ef4444!important}
.customers-page-v2 .customer-balance.ok{background:rgba(34,197,94,.12)!important;border-color:rgba(34,197,94,.28)!important}
.customers-page-v2 .customer-balance.ok b{color:#22c55e!important}
.customers-page-v2 .customer-balance.zero b{color:var(--muted)!important}
.customers-page-v2 .customer-action{background:rgba(37,99,235,.10)!important;border-color:rgba(37,99,235,.28)!important;color:#60a5fa!important}
.customers-page-v2 .customer-orders-collapsed details.order:not([open]) .table-wrap,
.customers-page-v2 .customer-orders-collapsed details.order:not([open]) .compact-detail-actions{display:none!important}
.customers-page-v2 .customer-orders-collapsed details.order{background:var(--surface-2)!important;border-color:var(--line)!important;color:var(--text)!important}
.customers-page-v2 .customer-orders-collapsed details.order summary{color:var(--text)!important}
.customers-page-v2 .customer-orders-collapsed details.order summary small,
.customers-page-v2 .customer-orders-collapsed details.order summary em{color:var(--muted)!important}
.current-account-page .current-table-wrap{max-height:560px;overflow-y:auto;overflow-x:auto;padding-right:6px}
.current-account-page .current-list{min-width:0}
html[data-theme="dark"] .current-account-page .current-table td,
html[data-theme="dark"] .current-account-page .current-table th,
html[data-theme="dark"] .current-account-page .current-detail td,
html[data-theme="dark"] .current-account-page .current-detail th{color:var(--text)!important;border-color:var(--line)!important}
html[data-theme="dark"] .current-account-page .current-table td{background:var(--surface-2)!important}
html[data-theme="dark"] .current-account-page .current-table tr.selected td{background:#12333d!important;border-color:rgba(20,184,166,.42)!important}
@media(max-width:900px){
  .customers-page-v2 .customer-top-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .customers-page-v2 .customer-line-row{grid-template-columns:1fr 72px 72px!important}
  .customers-page-v2 .customer-balance{grid-column:1/-1;text-align:left!important}
  .customers-page-v2 .customer-action{grid-column:1/-1;justify-self:start!important}
}

/* MODIS V5 - Cari Ekstre arama/form dark mode kesin düzeltme */
html[data-theme="dark"] .current-search,
html[data-theme="dark"] .current-account-page .current-search,
body.dark .current-search,
.dark .current-search{
  background:linear-gradient(180deg,var(--surface,#111827),var(--surface-2,#0f172a))!important;
  border-color:var(--line,rgba(148,163,184,.22))!important;
  box-shadow:var(--shadow-sm,0 14px 34px rgba(0,0,0,.26))!important;
  color:var(--text,#e5eef9)!important;
}
html[data-theme="dark"] .current-search label,
html[data-theme="dark"] .current-account-page .current-search label,
body.dark .current-search label,
.dark .current-search label{
  color:var(--text,#e5eef9)!important;
}
html[data-theme="dark"] .current-search input,
html[data-theme="dark"] .current-search select,
html[data-theme="dark"] .current-search textarea,
html[data-theme="dark"] .current-account-page .current-search input,
body.dark .current-search input,
body.dark .current-search select,
body.dark .current-search textarea,
.dark .current-search input,
.dark .current-search select,
.dark .current-search textarea{
  background:var(--input,#0b1220)!important;
  color:var(--text,#e5eef9)!important;
  border-color:var(--line,rgba(148,163,184,.28))!important;
  box-shadow:none!important;
  caret-color:var(--brand,#3b82f6)!important;
}
html[data-theme="dark"] .current-search input::placeholder,
html[data-theme="dark"] .current-search textarea::placeholder,
body.dark .current-search input::placeholder,
body.dark .current-search textarea::placeholder,
.dark .current-search input::placeholder,
.dark .current-search textarea::placeholder{
  color:var(--muted,#94a3b8)!important;
  opacity:1!important;
}
html[data-theme="dark"] .current-search input:focus,
html[data-theme="dark"] .current-search select:focus,
html[data-theme="dark"] .current-search textarea:focus,
body.dark .current-search input:focus,
body.dark .current-search select:focus,
body.dark .current-search textarea:focus,
.dark .current-search input:focus,
.dark .current-search select:focus,
.dark .current-search textarea:focus,
html[data-theme="dark"] .current-form input:focus,
html[data-theme="dark"] .current-form select:focus,
html[data-theme="dark"] .current-form textarea:focus,
body.dark .current-form input:focus,
body.dark .current-form select:focus,
body.dark .current-form textarea:focus,
.dark .current-form input:focus,
.dark .current-form select:focus,
.dark .current-form textarea:focus{
  outline:none!important;
  border-color:var(--brand,#3b82f6)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--brand,#3b82f6) 24%,transparent)!important;
}
html[data-theme="dark"] .current-detail .current-inline-entry,
body.dark .current-detail .current-inline-entry,
.dark .current-detail .current-inline-entry,
html[data-theme="dark"] .current-side .current-form,
body.dark .current-side .current-form,
.dark .current-side .current-form{
  background:rgba(15,23,42,.35)!important;
  border:1px solid var(--line,rgba(148,163,184,.22))!important;
  border-radius:16px!important;
  padding:12px!important;
}
html[data-theme="dark"] .current-form label,
body.dark .current-form label,
.dark .current-form label{
  color:var(--text,#e5eef9)!important;
}
html[data-theme="dark"] .current-form input,
html[data-theme="dark"] .current-form select,
html[data-theme="dark"] .current-form textarea,
body.dark .current-form input,
body.dark .current-form select,
body.dark .current-form textarea,
.dark .current-form input,
.dark .current-form select,
.dark .current-form textarea{
  background:var(--input,#0b1220)!important;
  color:var(--text,#e5eef9)!important;
  border-color:var(--line,rgba(148,163,184,.28))!important;
}
html[data-theme="dark"] .current-form input::placeholder,
html[data-theme="dark"] .current-form textarea::placeholder,
body.dark .current-form input::placeholder,
body.dark .current-form textarea::placeholder,
.dark .current-form input::placeholder,
.dark .current-form textarea::placeholder{
  color:var(--muted,#94a3b8)!important;
  opacity:1!important;
}
/* V6 Stable core hardening */
.safe-error-card,.unauthorized-card{background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:18px!important;box-shadow:var(--shadow-sm)!important;padding:22px!important}
.safe-error-card h1,.unauthorized-card h1{color:var(--text)!important;margin-top:0!important}
.safe-error-card details,.unauthorized-card details{color:var(--text-2)!important}
.current-account-page .current-search,.current-account-page .current-form,.current-account-page .current-detail,.current-account-page .current-list,.stock-page .table-wrap,.customers-page-v2 .customer-list-block,.customers-page-v2 .customer-detail-under{background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important}
.current-account-page input,.current-account-page select,.current-account-page textarea,.customers-page-v2 input,.customers-page-v2 select,.customers-page-v2 textarea,.stock-page input,.stock-page select,.stock-page textarea,.admin-card input,.admin-card select,.admin-card textarea{background:var(--input)!important;color:var(--text)!important;border-color:var(--line)!important}
.current-account-page table,.customers-page-v2 table,.stock-page table{background:var(--surface)!important;color:var(--text)!important}
.current-account-page th,.customers-page-v2 th,.stock-page th{background:var(--thead)!important;color:var(--text)!important;border-color:var(--line)!important}
.current-account-page td,.customers-page-v2 td,.stock-page td{background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-theme="dark"] .current-account-page .current-search,html[data-theme="dark"] .current-account-page .current-form,html[data-theme="dark"] .current-account-page .current-detail,html[data-theme="dark"] .current-account-page .current-list,html[data-theme="dark"] .stock-page .table-wrap,html[data-theme="dark"] .customers-page-v2 .customer-list-block,html[data-theme="dark"] .customers-page-v2 .customer-detail-under,html[data-theme="dark"] .admin-card{background:#182235!important;color:#f8fafc!important;border-color:#334155!important}
html[data-theme="dark"] .current-account-page input,html[data-theme="dark"] .current-account-page select,html[data-theme="dark"] .current-account-page textarea,html[data-theme="dark"] .customers-page-v2 input,html[data-theme="dark"] .customers-page-v2 select,html[data-theme="dark"] .customers-page-v2 textarea,html[data-theme="dark"] .stock-page input,html[data-theme="dark"] .stock-page select,html[data-theme="dark"] .stock-page textarea,html[data-theme="dark"] .admin-card input,html[data-theme="dark"] .admin-card select,html[data-theme="dark"] .admin-card textarea{background:#202c40!important;color:#f8fafc!important;border-color:#3b4a60!important}
html[data-theme="dark"] .current-account-page td,html[data-theme="dark"] .customers-page-v2 td,html[data-theme="dark"] .stock-page td{background:#1b2635!important;color:#e5eef9!important;border-color:#334155!important}
html[data-theme="dark"] .current-account-page th,html[data-theme="dark"] .customers-page-v2 th,html[data-theme="dark"] .stock-page th{background:#223047!important;color:#f8fafc!important;border-color:#334155!important}
