:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#f5f7fb;background:#0b0e12}
*{box-sizing:border-box}body{margin:0;background:#0b0e12;color:#f5f7fb}a{color:inherit}
header{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;background:#141922;border-bottom:1px solid #2a3340}
header a{text-decoration:none}main{max-width:820px;margin:auto;padding:12px}
section,.login-card,.stats article{background:#151b24;border:1px solid #2a3441;border-radius:18px;padding:16px;margin-bottom:13px}
h1,h2{margin-top:0}.brand{font-weight:950;letter-spacing:.14em;color:#ff861a}.muted,small{color:#9ca7b5}
.login-bg{min-height:100vh;display:grid;place-items:center;padding:16px}.login-card{width:min(430px,100%);padding:24px}
label{display:block;font-weight:700;margin:12px 0}input,select{width:100%;margin-top:6px;padding:13px;border-radius:12px;border:1px solid #3a4554;background:#0e1319;color:#fff;font:inherit}
button,.btnlink{display:inline-block;border:0;border-radius:12px;padding:13px 15px;background:#ff7900;color:#fff;text-decoration:none;font-weight:850}.primary{width:100%}
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.stats article{margin:0}.stats strong{display:block;font-size:1.5rem;margin-top:4px}
.actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:13px 0}.action{padding:18px;border:1px solid #2d3744;border-radius:16px;background:#151b24;text-decoration:none;font-weight:850}.action.hot{background:#ff7900;border-color:#ff7900}
.row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #28313d}.row time{font-size:.8rem;color:#8e99a7}
.toolbar{display:flex;justify-content:flex-end;margin-bottom:10px}.stock{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #28313d}.stock>div:first-child{display:grid;gap:4px}.prices{text-align:right;display:grid;gap:4px;min-width:120px}
.badge{width:max-content;padding:3px 8px;border-radius:999px;font-size:.74rem;font-weight:900}.badge.tr{background:#23402b}.badge.yd{background:#243a58}
.mini-form,.editable-row,.inline{display:grid;grid-template-columns:2fr 1fr auto;gap:7px;margin:8px 0 13px}.mini-form{grid-template-columns:2fr .7fr auto auto}.editable-row.sales,.inline.sales{grid-template-columns:2fr 1fr 1fr auto}
.total{display:flex;justify-content:space-between;align-items:center;background:#0e1319;padding:14px;border-radius:13px;margin-top:15px}.total strong{font-size:1.5rem}.finish{width:100%;padding:19px;background:#168b49;font-size:1.18rem}
.flash{padding:12px 14px;border-radius:12px;margin-bottom:12px}.flash.success{background:#133a22}.flash.error{background:#481a1a}.danger{background:#a93232}
.audit{padding:13px 0;border-bottom:1px solid #29323e}.audit small{display:block;margin-top:4px}.audit pre{white-space:pre-wrap;word-break:break-word;background:#0e1319;padding:9px;border-radius:9px}
.admin-user{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #29323e}.admin-user>div{display:grid;gap:3px}.admin-user>div:last-child{text-align:right}
hr{border:0;border-top:1px solid #2a3340;margin:18px 0}
@media(max-width:620px){main{padding:9px}.stats{grid-template-columns:1fr}.actions{grid-template-columns:1fr 1fr}.mini-form,.editable-row,.inline,.editable-row.sales,.inline.sales{grid-template-columns:1fr 1fr}.mini-form input:first-of-type,.editable-row input:first-of-type,.inline input:first-of-type{grid-column:1/-1}.mini-form button,.editable-row button,.inline button{grid-column:1/-1}.stock{align-items:flex-start}}
.statlink{display:block;text-decoration:none}.statlink article{height:100%}
.stock-split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.big-stock-card{display:grid;gap:8px;padding:24px;border:1px solid #2d3744;border-radius:20px;background:#151b24;text-decoration:none}.big-stock-card span{font-size:2rem}.big-stock-card b{font-size:1.15rem}.big-stock-card strong{font-size:1.5rem}
.budget-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:12px}.budget-grid article{background:#151b24;border:1px solid #2a3441;border-radius:15px;padding:14px}.budget-grid strong{display:block;margin-top:5px;font-size:1.18rem}.budget-grid .remaining{border-color:#2e6947}.secondary{background:#303a48}.toolbar{gap:8px;flex-wrap:wrap}
.drill-list{padding:0}.drill-list a{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:16px;border-bottom:1px solid #29323e;text-decoration:none}.drill-list a:last-child{border-bottom:0}.drill-list em{font-size:1.4rem;color:#9ca7b5;font-style:normal}.notebook{width:100%;max-height:750px;object-fit:contain;border-radius:14px;background:#0d1117}
.cargo-card{padding:15px 0;border-bottom:1px solid #29323e;display:grid;gap:10px}.cargo-card>div:first-child{display:grid;gap:5px}.cargo-actions{display:flex;gap:8px;flex-wrap:wrap}.cargo-actions form{margin:0}.badge.pending{background:#60490f}.badge.received{background:#1e5835}.other-row{margin-top:16px;padding-top:14px;border-top:1px dashed #445061}
@media(max-width:620px){.stock-split{grid-template-columns:1fr}.budget-grid{grid-template-columns:1fr 1fr}.cargo-actions>*{flex:1}.cargo-actions .btnlink,.cargo-actions button{width:100%;text-align:center}}

.flash.info{background:#18304a}.zero{background:#4a2e22}.edit-link{display:inline-block;margin-top:5px;color:#ff9b43;text-decoration:none;font-size:.86rem}.drag-handle{display:none;margin-right:7px;cursor:grab;color:#ff9b43}#stock-list .stock-one[draggable="true"] .drag-handle{display:inline}.inline3{display:grid;grid-template-columns:1.3fr 1fr 1fr auto;gap:8px}.cargo-entry{display:grid;grid-template-columns:1.3fr 2fr 1fr 1fr auto;gap:8px;padding:13px 0;border-bottom:1px solid #29323e}.cargo-entry .new-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;grid-column:1/-1}.sale-choice{display:grid;grid-template-columns:1fr 2fr;gap:8px;margin-bottom:8px}.sale-new{padding:12px 0;border-top:1px dashed #3a4655;border-bottom:1px dashed #3a4655}.yddev{grid-template-columns:2fr .7fr 1fr auto}.notebook{max-width:100%;border-radius:14px}.drill-list a{display:grid;grid-template-columns:1fr auto auto;gap:12px;padding:14px 0;border-bottom:1px solid #29323e;text-decoration:none}.drill-list em{font-style:normal;color:#ff8b22}
@media(max-width:620px){.inline3,.cargo-entry,.sale-choice,.yddev{grid-template-columns:1fr}.cargo-entry .new-fields{grid-template-columns:1fr}.cargo-entry button{grid-column:1/-1}}


/* V3.1.3 — YD product/variant umbrella grouping */
.yd-group-row{align-items:flex-start}
.yd-group-main{display:block;min-width:0;flex:1}
.yd-group-title{display:inline-block;margin-left:4px}
.yd-color-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.yd-color-chip{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #394553;border-radius:999px;background:#10161d;font-size:.83rem;white-space:nowrap}
.yd-color-chip.is-zero{opacity:.65;border-style:dashed}
.yd-color-chip a{color:#ff9a3b;text-decoration:none;font-size:.78rem;font-weight:800;margin-left:3px}
.zero-group{border-bottom:1px solid #28313d}
@media(max-width:620px){
  .yd-group-row{display:block}
  .yd-group-row .prices{text-align:left;margin-top:10px;min-width:0}
  .yd-color-list{gap:5px}
  .yd-color-chip{white-space:normal}
}


/* V3.1.4 — Gün Sonu tarih seçimi + satır silme */
.day-picker{border-color:#3b4655}
.day-picker h2{margin-bottom:5px}
.day-picker-form{margin-top:10px}
.day-picker-form select{margin-top:0}
.saved-sale{grid-template-columns:2fr 1fr .75fr 1fr auto auto!important}
.saved-sale .danger{background:#a93232}
@media(max-width:620px){
  .saved-sale{grid-template-columns:1fr 1fr!important}
  .saved-sale input:first-of-type{grid-column:1/-1}
  .saved-sale button{grid-column:auto!important;width:100%}
}


/* V3.1.5 — Diğerleri yalnız kâr */
.other-profit-row{
  display:grid;grid-template-columns:2fr 1fr auto;gap:9px;align-items:end;
  margin-top:18px;padding-top:16px;border-top:1px dashed #485464
}
.other-profit-label{display:grid;gap:3px;padding:8px 0}
.other-profit-label b{font-size:1.05rem}
.other-profit-row input{margin-top:0}

/* V3.1.5 — YD Borç */
.debt-stat article,.debt-budget article{border-color:#59473a}
.debt-stat em,.budget-card-link em{
  display:block;margin-top:5px;color:#aeb8c4;font-size:.78rem;font-style:normal
}
.budget-card-link{display:block;text-decoration:none}
.budget-card-link article{height:100%;margin:0}
.debt-summary{margin-bottom:13px}
.debt-summary article{
  padding:18px;border:1px solid #59473a;border-radius:18px;
  background:linear-gradient(145deg,#1c1a1a,#151b24)
}
.debt-summary small,.debt-summary span{display:block;color:#aab4c1}
.debt-summary strong{display:block;font-size:2rem;margin:4px 0}
.debt-add-form{display:grid;grid-template-columns:1.4fr 1fr auto;gap:9px;align-items:end}
.debt-add-form label{margin:0}
.debt-list{display:grid;gap:10px}
.debt-row{
  border:1px solid #303a47;border-radius:16px;padding:12px;background:#10161d;
  display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center
}
.debt-edit-form{
  display:grid;grid-template-columns:minmax(210px,1.5fr) minmax(120px,.7fr) auto;
  gap:9px;align-items:center;margin:0
}
.debt-person{display:grid;grid-template-columns:38px 1fr;gap:9px;align-items:center}
.debt-person input,.debt-amount-edit input{margin:0}
.debt-person small{display:block;margin-top:4px}
.debt-avatar{
  width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:#2d3744;font-weight:950
}
.debt-amount-edit{position:relative}
.debt-amount-edit input{padding-right:30px;font-weight:850}
.debt-amount-edit span{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#9ca7b5;font-weight:900}
.debt-paid-form{margin:0}
.debt-paid-form button{background:#187c46}
.paid-debts summary{cursor:pointer;font-weight:850}
.paid-list{margin-top:10px}

/* V3.1.5 — daha kaliteli sıralama */
.sort-toggle{transition:transform .15s ease,background .15s ease,box-shadow .15s ease}
.sort-toggle.active{background:#6b471d;box-shadow:0 0 0 2px rgba(255,145,45,.18)}
.sort-toggle.saved{background:#187c46}
.drag-handle{
  display:none!important;border:1px solid #4a5665!important;background:#222b36!important;
  color:#ff9b43!important;border-radius:11px!important;padding:7px 9px!important;
  margin:0 8px 0 0!important;align-items:center;gap:4px;cursor:grab;
  touch-action:none;user-select:none;-webkit-user-select:none
}
.drag-handle span{font-size:1.35rem;line-height:.8}
.drag-handle small{color:#c3ccd7;font-size:.67rem}
#stock-list.sort-mode .drag-handle{display:inline-flex!important}
#stock-list.sort-mode .stock-one{
  border:1px solid #34404f;border-radius:15px;margin:8px 0;padding:12px;
  background:#131a23;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease,background .12s ease
}
#stock-list.sort-mode .stock-one::after{
  content:"Tut ve sürükle";display:block;color:#697687;font-size:.68rem;align-self:center
}
#stock-list.sort-mode .stock-one.sorting-drag{
  transform:scale(1.018);z-index:30;border-color:#ff8d28;
  box-shadow:0 16px 40px rgba(0,0,0,.42),0 0 0 2px rgba(255,141,40,.16);
  background:#1b222c
}
#stock-list.sort-mode .stock-one.sort-bump{transform:translateY(2px)}
body.sort-page-mode{overscroll-behavior-y:contain}
body.sort-page-mode #stock-list a{pointer-events:none}
body.sort-page-mode #stock-list .drag-handle{pointer-events:auto}
.sorting-active{cursor:grabbing}

/* budget grid 5 cards cleanly */
.budget-grid{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}

@media(max-width:620px){
  .other-profit-row{grid-template-columns:1fr auto}
  .other-profit-label{grid-column:1/-1}
  .debt-add-form{grid-template-columns:1fr}
  .debt-row{grid-template-columns:1fr}
  .debt-edit-form{grid-template-columns:1fr}
  .debt-paid-form button,.debt-edit-form button{width:100%}
  #stock-list.sort-mode .stock-one{padding:11px 10px}
  #stock-list.sort-mode .stock-one::after{content:""}
  .drag-handle{margin-bottom:8px!important}
}


/* V3.1.6 — Borç doğrudan YD kasa hesabında */
.remaining em{
  display:block;margin-top:5px;color:#aeb8c4;font-size:.72rem;font-style:normal;
  line-height:1.25
}
.paid-debt-card article{border-color:#42505f}
.debt-summary-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));
  gap:10px;margin-bottom:13px
}
.debt-summary-grid article{
  padding:16px;border:1px solid #394554;border-radius:17px;background:#111821
}
.debt-summary-grid article small,.debt-summary-grid article span{
  display:block;color:#aab4c1
}
.debt-summary-grid article strong{
  display:block;font-size:1.55rem;margin:5px 0
}
.debt-summary-grid .debt-impact-card{border-color:#72502e}
.debt-pay-all-section{
  display:flex;justify-content:space-between;gap:14px;align-items:center;
  border-color:#68433f
}
.debt-pay-all-section form{margin:0}
.debt-pay-everything{white-space:nowrap;background:#a83c35}
.debt-row-v316{
  display:block;border:1px solid #303a47;border-radius:17px;padding:13px;background:#10161d
}
.debt-row-top{
  display:flex;justify-content:space-between;gap:15px;align-items:center
}
.debt-person-static{
  display:grid;grid-template-columns:40px 1fr;gap:10px;align-items:center;min-width:0
}
.debt-person-static b{display:block;font-size:1rem}
.debt-person-static small{display:block;margin-top:3px}
.debt-outstanding{font-size:1.32rem;white-space:nowrap}
.debt-edit-details{
  margin-top:11px;padding-top:9px;border-top:1px dashed #303a47
}
.debt-edit-details summary{
  cursor:pointer;color:#9eabb9;font-size:.82rem;font-weight:800
}
.debt-edit-details .debt-edit-form{
  margin-top:9px;display:grid;grid-template-columns:1.3fr 1fr auto;align-items:end
}
.debt-edit-details label{margin:0}
.debt-payment-actions{
  display:grid;grid-template-columns:1.3fr 1fr;gap:9px;margin-top:12px
}
.debt-payment-actions form{margin:0}
.debt-payment-actions label{margin:0}
.money-with-button{
  display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:0;
  border:1px solid #374250;border-radius:12px;overflow:hidden;background:#0d131a
}
.money-with-button input{
  border:0!important;border-radius:0!important;margin:0!important;background:transparent!important
}
.money-with-button span{padding:0 9px;color:#aab4c1;font-weight:900}
.money-with-button button{
  height:100%;border-radius:0!important;margin:0!important
}
.debt-full-form{
  display:flex;align-items:end
}
.debt-full-form button{width:100%}
@media(max-width:620px){
  .debt-pay-all-section{display:block}
  .debt-pay-all-section form{margin-top:10px}
  .debt-pay-everything{width:100%;white-space:normal}
  .debt-row-top{align-items:flex-start}
  .debt-outstanding{font-size:1.12rem}
  .debt-edit-details .debt-edit-form{grid-template-columns:1fr}
  .debt-payment-actions{grid-template-columns:1fr}
}


/* V3.1.7 — sade borç ekranı / ana menü navigasyonu */
.debt-summary-simple{grid-template-columns:repeat(2,minmax(170px,1fr))}
.history-hint{border-style:dashed}
.history-hint a{color:#ff9a3b;font-weight:800;text-decoration:none}
header>a:first-child{white-space:nowrap}
@media(max-width:620px){
  .debt-summary-simple{grid-template-columns:1fr}
}


/* ========================================================================
   V3.1.8 — PREMIUM INTERNAL UI + VISUAL HISTORY
   ===================================================================== */

:root{
  --bg:#070a0f;
  --bg2:#0b1017;
  --panel:#111821;
  --panel2:#151e29;
  --panel3:#0d141d;
  --line:#253141;
  --line2:#344257;
  --text:#f5f7fb;
  --muted:#8f9cad;
  --orange:#ff8127;
  --orange2:#ff9f4a;
  --green:#2cbf73;
  --red:#e45e5e;
  --blue:#5b92ff;
  --shadow:0 18px 60px rgba(0,0,0,.28);
  --soft-shadow:0 8px 26px rgba(0,0,0,.18);
}

html{background:var(--bg)}
body{
  min-height:100vh;
  background:
    radial-gradient(900px 460px at 50% -180px,rgba(255,126,30,.11),transparent 68%),
    radial-gradient(620px 380px at 100% 20%,rgba(58,118,255,.055),transparent 68%),
    linear-gradient(180deg,#080b10 0%,#090d13 100%);
  color:var(--text);
}
body::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;
  background-image:linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.45),transparent 70%);
}

header{
  min-height:68px;padding:12px max(16px,calc((100vw - 1080px)/2));
  background:rgba(10,14,20,.82);
  border-bottom:1px solid rgba(104,121,145,.22);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  box-shadow:0 8px 30px rgba(0,0,0,.16);
}
header>b{font-size:.92rem;letter-spacing:.045em}
header>a:first-child{
  color:#dce3ec;font-size:.86rem;font-weight:850;
  padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.055);
}
header>a:first-child:hover{background:rgba(255,129,39,.11);border-color:rgba(255,129,39,.25)}
header>span{font-size:.84rem;color:#b2bdca}

main{max-width:1080px;padding:20px 16px 48px}

section,.login-card,.stats article,.big-stock-card{
  background:
    linear-gradient(145deg,rgba(24,33,45,.96),rgba(14,20,29,.97));
  border:1px solid rgba(85,104,129,.28);
  border-radius:20px;
  box-shadow:var(--soft-shadow);
}
section{padding:19px;margin-bottom:15px}
section:hover{border-color:rgba(92,113,140,.38)}
h1{font-size:clamp(1.7rem,4vw,2.55rem);line-height:1.05;letter-spacing:-.035em}
h2{font-size:1.15rem;letter-spacing:-.015em}
p{line-height:1.55}
.muted,small{color:var(--muted)}
.eyebrow{
  display:inline-block;color:var(--orange2);font-weight:900;
  letter-spacing:.12em;font-size:.68rem;margin-bottom:7px
}

input,select{
  padding:13px 14px;border-radius:13px;
  border:1px solid #303d4f;background:#0b1119;color:#f7f9fc;
  outline:none;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
input:hover,select:hover{border-color:#43546a}
input:focus,select:focus{
  border-color:rgba(255,133,47,.75);
  box-shadow:0 0 0 3px rgba(255,129,39,.11);
  background:#0e151e
}
button,.btnlink{
  border-radius:13px;padding:12px 15px;
  background:linear-gradient(135deg,#ff7a18,#f06a00);
  box-shadow:0 7px 18px rgba(222,93,0,.16);
  cursor:pointer;transition:transform .14s ease,filter .14s ease,box-shadow .14s ease
}
button:hover,.btnlink:hover{filter:brightness(1.07);transform:translateY(-1px);box-shadow:0 9px 24px rgba(222,93,0,.22)}
button:active,.btnlink:active{transform:translateY(0) scale(.99)}
.secondary{background:#273241;box-shadow:none}
.danger{background:linear-gradient(135deg,#b74242,#963232)}
.finish{border-radius:16px;background:linear-gradient(135deg,#23985b,#167b48);box-shadow:0 12px 30px rgba(22,123,72,.19)}

.flash{
  border:1px solid rgba(255,255,255,.07);
  box-shadow:var(--soft-shadow)
}
.flash.success{background:linear-gradient(135deg,rgba(28,120,70,.34),rgba(18,72,47,.42))}
.flash.error{background:linear-gradient(135deg,rgba(145,47,47,.38),rgba(77,27,27,.48))}
.flash.info{background:linear-gradient(135deg,rgba(43,88,137,.34),rgba(24,51,81,.44))}

.section-heading{
  display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:14px
}
.section-heading h2{margin:0}
.text-link{
  color:#ff9d52!important;text-decoration:none;font-weight:850;font-size:.82rem;white-space:nowrap
}

/* header / dashboard */
.dashboard-header{min-height:76px}
.header-brand{display:flex;align-items:center;gap:10px}
.header-brand>div{display:grid;gap:1px}
.header-brand b{letter-spacing:.065em}
.header-brand small{font-size:.69rem}
.brand-mark{
  width:38px;height:38px;border-radius:13px;display:grid;place-items:center;
  background:linear-gradient(145deg,#ff9b46,#ef6900);
  color:white;font-weight:1000;font-size:1.15rem;
  box-shadow:0 8px 22px rgba(255,116,10,.23)
}
.admin-mark{background:linear-gradient(145deg,#6f8fff,#415ee8)}
.user-pill{
  padding:8px 11px;border-radius:999px;background:#121923;border:1px solid #273344;color:#bfc9d5
}
.user-pill a{color:#ff9a4d;text-decoration:none;font-weight:850}

.dashboard-hero{
  position:relative;overflow:hidden;min-height:172px;
  display:flex;justify-content:space-between;align-items:center;gap:20px;
  padding:25px 27px;
  background:
    radial-gradient(460px 220px at 84% 50%,rgba(255,128,32,.18),transparent 68%),
    linear-gradient(145deg,#171f2a,#0e151e)
}
.dashboard-hero::after{
  content:"";position:absolute;width:280px;height:280px;border:1px solid rgba(255,143,61,.08);
  border-radius:50%;right:-120px;top:-130px
}
.dashboard-hero h1{margin:1px 0 8px}
.dashboard-hero p{max-width:590px;margin:0;color:#9faaba}
.hero-orb{
  width:92px;height:92px;min-width:92px;border-radius:30px;display:grid;place-items:center;
  background:linear-gradient(145deg,rgba(255,151,72,.22),rgba(255,104,12,.06));
  border:1px solid rgba(255,145,60,.24);
  transform:rotate(8deg);box-shadow:inset 0 0 30px rgba(255,131,36,.06)
}
.hero-orb span{font-size:1.55rem;font-weight:1000;color:#ffad68;transform:rotate(-8deg)}
.admin-hero{background:radial-gradient(450px 220px at 85% 50%,rgba(85,109,255,.17),transparent 70%),linear-gradient(145deg,#171f2a,#0e151e)}

.admin-mini-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:240px}
.admin-mini-stats article{padding:15px;border-radius:15px;background:#0c131d;border:1px solid #2a3748}
.admin-mini-stats strong{display:block;font-size:1.65rem;margin-top:4px}

.dashboard-stats{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  margin:15px 0;gap:11px
}
.metric-card article{
  position:relative;overflow:hidden;padding:18px;height:100%;min-height:142px;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease
}
.metric-card:hover article{transform:translateY(-3px);border-color:rgba(255,145,59,.3);box-shadow:var(--shadow)}
.metric-card small{font-weight:750}
.metric-card strong{font-size:1.55rem;line-height:1.15;margin-top:9px}
.metric-card em{display:block;margin-top:8px;font-size:.74rem;color:#8e9aaa;font-style:normal}
.metric-icon{
  width:37px;height:37px;border-radius:12px;display:grid;place-items:center;
  margin-bottom:14px;font-weight:950;background:#1f2a37;color:#d9e1ec
}
.profit-card .metric-icon{background:rgba(42,184,104,.12);color:#54d793}
.debt-card .metric-icon{background:rgba(255,135,44,.12);color:#ff9a51}
.tr-card .metric-icon{background:rgba(72,194,119,.12);color:#61d492;font-size:.7rem}
.yd-card .metric-icon{background:rgba(77,132,255,.13);color:#81a9ff;font-size:.7rem}

.quick-section{padding:20px}
.dashboard-actions{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0
}
.dashboard-actions .action{
  display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:11px;
  min-height:80px;padding:13px 15px;
  background:linear-gradient(145deg,#151e29,#101721);
  border:1px solid #283547;border-radius:16px
}
.dashboard-actions .action:hover{
  transform:translateY(-2px);border-color:#47576c;
  box-shadow:0 12px 28px rgba(0,0,0,.17)
}
.dashboard-actions .action.hot{
  background:linear-gradient(145deg,#d96508,#f17c1f);border-color:#f3842c
}
.dashboard-actions .action>div{display:grid;gap:3px}
.dashboard-actions .action small{font-weight:500}
.dashboard-actions .action em{font-size:1.2rem;color:#788698;font-style:normal}
.dashboard-actions .action.hot small,.dashboard-actions .action.hot em{color:rgba(255,255,255,.78)}
.action-icon{
  width:42px;height:42px;border-radius:13px;display:grid;place-items:center;
  background:#0e151e;border:1px solid #293648;color:#ff9b52;font-size:1.1rem
}
.action.hot .action-icon{background:rgba(20,20,20,.17);border-color:rgba(255,255,255,.16);color:white}

/* stock / budget cards */
.stock-split{gap:14px}
.big-stock-card{
  position:relative;overflow:hidden;min-height:190px;padding:24px;
  transition:transform .18s ease,border-color .18s ease
}
.big-stock-card:hover{transform:translateY(-3px);border-color:#47586f}
.big-stock-card span{font-size:2.4rem}
.big-stock-card strong{font-size:1.8rem}
.budget-grid{gap:10px}
.budget-grid article{
  padding:16px;background:linear-gradient(145deg,#141d27,#0f161f);
  border-color:#293647
}
.budget-grid strong{font-size:1.3rem}
.budget-grid .remaining{
  border-color:rgba(45,191,112,.34);
  background:linear-gradient(145deg,rgba(30,86,59,.24),#101820)
}
.stock{
  padding:14px 3px;transition:background .12s ease,border-radius .12s ease
}
.stock:hover{background:rgba(255,255,255,.018)}
.badge{border:1px solid rgba(255,255,255,.055)}
.badge.tr{background:rgba(39,113,63,.31);color:#7bdfa0}
.badge.yd{background:rgba(45,87,145,.31);color:#8fb6ff}
.badge.zero{background:rgba(143,85,49,.3);color:#e9a06f}

/* rows */
.row{padding:13px 2px;border-color:#24303f}
.drill-list a{
  padding:17px 14px;border-radius:13px;border-bottom:0;margin-bottom:7px;
  background:#0d141d;border:1px solid #222e3d
}
.drill-list a:hover{background:#111a25;border-color:#354459}
.cargo-card{padding:16px;border-bottom:0;margin-bottom:10px;border-radius:16px;background:#0d141d;border:1px solid #243143}
.yd-color-chip{background:#0b121a;border-color:#334156}

/* login */
.login-bg{
  position:relative;overflow:hidden;
  background:
    radial-gradient(500px 400px at 15% 15%,rgba(255,123,29,.13),transparent 65%),
    radial-gradient(620px 500px at 90% 90%,rgba(60,104,235,.08),transparent 65%),
    #070a0f
}
.login-card{
  position:relative;z-index:2;width:min(455px,100%);padding:30px;
  border-color:rgba(104,122,148,.3);
  box-shadow:0 30px 100px rgba(0,0,0,.45)
}
.login-mark{
  width:54px;height:54px;display:grid;place-items:center;border-radius:17px;margin-bottom:18px;
  background:linear-gradient(145deg,#ff9b46,#ec6700);font-size:1.5rem;font-weight:1000;
  box-shadow:0 12px 30px rgba(255,113,13,.22)
}
.login-card .brand{margin-top:2px}
.login-card h1{margin:6px 0 5px}
.login-button{display:flex;align-items:center;justify-content:space-between;margin-top:17px}
.login-button span{font-size:1.25rem}
.login-foot{
  margin-top:20px;padding-top:15px;border-top:1px solid #263242;
  color:#778496;font-size:.74rem;text-align:center
}
.login-foot span{color:#35c779}
.login-decoration{
  position:absolute;border-radius:50%;filter:blur(1px);border:1px solid rgba(255,255,255,.025)
}
.deco-one{width:520px;height:520px;left:-280px;top:-240px}
.deco-two{width:650px;height:650px;right:-400px;bottom:-390px}

/* admin */
.admin-user-list{display:grid;gap:8px}
.admin-user{
  display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;
  padding:12px;border:1px solid #263344;background:#0d141d;border-radius:14px
}
.admin-user-avatar{
  width:40px;height:40px;border-radius:13px;display:grid;place-items:center;
  background:#202b39;font-weight:950;color:#c8d3e0
}
.admin-user-main{display:grid;gap:2px}
.admin-user>div:last-child{display:flex;align-items:center;gap:10px}
.status-pill{padding:4px 8px;border-radius:999px;font-size:.7rem;font-weight:900}
.status-pill.is-active{background:rgba(39,170,94,.16);color:#63d88e}
.status-pill.is-inactive{background:rgba(192,63,63,.15);color:#e77e7e}

/* ------------------------------------------------------------------
   HISTORY SYSTEM
   ---------------------------------------------------------------- */
.history-hero{
  padding:24px;display:grid;grid-template-columns:1.2fr .9fr;gap:20px;align-items:center;
  background:
    radial-gradient(470px 230px at 90% 30%,rgba(255,127,31,.12),transparent 70%),
    linear-gradient(145deg,#171f2a,#0e151e)
}
.history-hero h1{margin:0 0 8px}
.history-hero p{margin:0;color:#99a6b6;max-width:590px}
.admin-history-hero{
  background:radial-gradient(470px 230px at 90% 30%,rgba(73,104,255,.14),transparent 70%),linear-gradient(145deg,#171f2a,#0e151e)
}
.history-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.history-summary-grid article{
  min-width:0;padding:14px;border-radius:15px;background:#0b121a;border:1px solid #273445
}
.history-summary-grid small,.history-summary-grid span{display:block}
.history-summary-grid strong{display:block;font-size:1.7rem;margin:4px 0}
.history-summary-grid span{font-size:.68rem;color:#7f8c9e}

.history-tabs{
  display:flex;gap:7px;overflow:auto;padding:4px 0 14px;scrollbar-width:none
}
.history-tabs::-webkit-scrollbar{display:none}
.history-tabs a{
  display:flex;align-items:center;gap:7px;white-space:nowrap;
  padding:9px 12px;border-radius:999px;text-decoration:none;
  border:1px solid #2a3748;background:#0d141d;color:#9ba7b6;font-size:.8rem;font-weight:850
}
.history-tabs a span{color:#ff9b52}
.history-tabs a.active{
  color:white;border-color:rgba(255,137,47,.45);
  background:linear-gradient(135deg,rgba(255,128,32,.22),rgba(255,128,32,.075));
  box-shadow:0 6px 20px rgba(255,112,16,.08)
}
.history-tabs-two{max-width:430px}

.history-panel{padding:20px}
.history-result-count{
  color:#8d99a8;font-size:.75rem;padding:6px 9px;border-radius:999px;background:#0d141d;border:1px solid #263242
}
.history-timeline{display:grid}
.history-event{
  position:relative;display:grid;grid-template-columns:42px 1fr;gap:12px;
  padding:14px 0
}
.history-event:not(:last-child)::after{
  content:"";position:absolute;left:20px;top:53px;bottom:-4px;width:1px;background:#293547
}
.history-icon{
  position:relative;z-index:2;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;
  background:#151e29;border:1px solid #334256;font-size:1rem;font-weight:950
}
.history-tone-green .history-icon{background:rgba(39,174,95,.13);border-color:rgba(58,205,121,.25);color:#62d99b}
.history-tone-orange .history-icon{background:rgba(255,129,39,.12);border-color:rgba(255,145,64,.25);color:#ffa45f}
.history-tone-red .history-icon{background:rgba(203,64,64,.12);border-color:rgba(226,86,86,.23);color:#ea7b7b}
.history-tone-blue .history-icon{background:rgba(71,121,231,.13);border-color:rgba(92,143,255,.24);color:#83a9ff}
.history-tone-muted .history-icon{color:#7d8998}

.history-event-body{
  min-width:0;padding:12px 14px;border-radius:15px;background:#0c131b;border:1px solid #222f3f
}
.history-event-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.history-event-top>div{display:grid;gap:3px}
.history-event-top b{font-size:.92rem}
.history-event time{color:#728094;font-size:.72rem;white-space:nowrap}
.history-category{
  width:max-content;font-size:.62rem;font-weight:950;letter-spacing:.08em;color:#7f8da0
}
.history-event p{margin:7px 0 6px;color:#c6cfda;font-size:.86rem}
.history-meta{display:flex;flex-wrap:wrap;gap:8px 12px;color:#728094;font-size:.69rem}
.history-details{margin-top:10px;border-top:1px dashed #293647;padding-top:9px}
.history-details summary{cursor:pointer;color:#9aa7b7;font-size:.75rem;font-weight:800}
.history-changes{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
.history-change-block{
  padding:9px;border-radius:12px;background:#090f16;border:1px solid #222d3b
}
.history-change-title{display:block;color:#7e8a9c;font-size:.65rem;font-weight:950;letter-spacing:.08em;margin-bottom:7px}
.history-change-grid{display:grid;gap:6px}
.history-change-row{
  display:flex;justify-content:space-between;gap:10px;padding-bottom:5px;border-bottom:1px solid rgba(255,255,255,.035)
}
.history-change-row:last-child{border-bottom:0;padding-bottom:0}
.history-change-row small{font-size:.68rem}
.history-change-row strong{text-align:right;font-size:.72rem;word-break:break-word}
.technical-code{display:block;margin-top:8px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.62rem!important}

.page-history-card{
  margin-top:20px;border-color:rgba(79,97,121,.3);
  background:linear-gradient(145deg,rgba(17,24,33,.9),rgba(11,17,25,.92))
}
.page-history-card .section-heading{margin-bottom:2px}
.compact-timeline .history-event{grid-template-columns:34px 1fr;padding:8px 0}
.compact-timeline .history-event::after{left:16px;top:43px}
.compact-timeline .history-icon{width:32px;height:32px;border-radius:10px;font-size:.8rem}
.compact-timeline .history-event-body{padding:9px 11px;background:rgba(7,12,18,.5)}
.compact-timeline .history-event-top b{font-size:.82rem}
.compact-timeline .history-event p{font-size:.77rem;margin:5px 0}
.compact-timeline .history-category{font-size:.56rem}
.compact-timeline .history-meta{font-size:.63rem}
.compact-timeline .history-event time{font-size:.65rem}

.empty-state{text-align:center;padding:30px 10px;color:#718094}
.empty-state span{
  display:grid;place-items:center;margin:0 auto 8px;width:40px;height:40px;border-radius:50%;background:#121a24;border:1px solid #283548
}
.empty-state p{margin:0;font-size:.84rem}

/* forms / special areas */
.other-profit-row{background:#0d141d;border-radius:14px;padding:12px;border-top:1px solid #354256}
.day-picker{background:linear-gradient(145deg,#151e29,#101720)}
.catalog-row form{margin:0}
.notebook{box-shadow:0 15px 45px rgba(0,0,0,.3)}
.debt-row-v316{background:#0d141d}
.money-with-button{border-color:#354357}
.sort-toggle.active{transform:none}

/* mobile */
@media(max-width:760px){
  main{padding:14px 10px 42px}
  header{padding:10px 11px;min-height:61px}
  header>b{font-size:.78rem}
  header>span{font-size:.72rem}
  .dashboard-header{min-height:67px}
  .header-brand small{display:none}
  .user-pill{font-size:.7rem;padding:7px 9px}
  .dashboard-hero,.history-hero{grid-template-columns:1fr;padding:20px}
  .hero-orb{display:none}
  .admin-mini-stats{min-width:0;width:100%}
  .history-summary-grid{grid-template-columns:repeat(3,1fr)}
  .dashboard-actions{grid-template-columns:1fr}
  .dashboard-actions .action{min-height:72px}
  .history-changes{grid-template-columns:1fr}
  .history-event{grid-template-columns:35px 1fr;gap:9px}
  .history-icon{width:34px;height:34px;border-radius:11px}
  .history-event:not(:last-child)::after{left:17px;top:45px}
  .history-event-body{padding:10px 11px}
  .history-event-top{display:block}
  .history-event time{display:block;margin-top:4px}
  .section-heading{align-items:center}
  section{padding:15px}
}
@media(max-width:480px){
  .history-summary-grid{grid-template-columns:1fr 1fr 1fr;gap:5px}
  .history-summary-grid article{padding:10px}
  .history-summary-grid strong{font-size:1.35rem}
  .history-summary-grid span{display:none}
  .dashboard-stats{grid-template-columns:1fr 1fr}
  .metric-card article{min-height:132px;padding:14px}
  .metric-card strong{font-size:1.18rem}
  .metric-card em{font-size:.66rem}
  .admin-user{grid-template-columns:38px 1fr}
  .admin-user>div:last-child{grid-column:1/-1;justify-content:flex-end}
}


/* ========================================================================
   V3.1.9 — Mobile Login + Notebook Quick Upload + Sale Notes
   ===================================================================== */

/* Mobil giriş: normal durumda kayma yok, kart merkezin biraz üstünde. */
body.login-bg{
  width:100%;
  height:100dvh;
  min-height:100dvh;
  overflow:hidden;
  display:grid;
  place-items:center;
  padding:14px;
}
body.login-bg .login-card{
  margin:0;
  transform:translateY(-4.5vh);
  max-height:calc(100dvh - 28px);
}
body.login-bg .login-card form{margin-bottom:0}

/* Klavye açılmış gibi ekran yüksekliği çok küçülürse erişilebilirlik için scroll geri gelir. */
@media(max-height:650px){
  body.login-bg{
    height:auto;
    min-height:100dvh;
    overflow:auto;
    place-items:start center;
    padding-top:10px;
  }
  body.login-bg .login-card{
    transform:none;
    max-height:none;
  }
}

/* Defter fotoğrafı — tek dokunuş / otomatik upload */
.notebook-section{overflow:hidden}
.notebook-heading{align-items:center}
.notebook-status{
  padding:6px 10px;border-radius:999px;
  background:rgba(44,191,115,.12);
  border:1px solid rgba(66,208,135,.24);
  color:#64da99;font-size:.72rem;font-weight:900;
}
.notebook-current{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(210px,.75fr);
  gap:12px;
}
.notebook-preview-link{
  position:relative;display:block;overflow:hidden;
  min-height:220px;max-height:360px;
  border-radius:17px;border:1px solid #334154;
  background:#080d13;
  text-decoration:none;
}
.notebook-preview-link img{
  width:100%;height:100%;min-height:220px;max-height:360px;
  object-fit:contain;display:block;background:#070b10;
}
.notebook-preview-link>span{
  position:absolute;right:10px;bottom:10px;
  padding:6px 9px;border-radius:999px;
  background:rgba(4,8,12,.8);backdrop-filter:blur(10px);
  color:white;font-size:.69rem;font-weight:850;
  border:1px solid rgba(255,255,255,.1);
}
.notebook-current-actions{
  display:grid;grid-template-rows:1fr 1fr;gap:9px;
}
.notebook-current-actions form{margin:0;display:flex}
.notebook-action{
  width:100%;min-height:92px;padding:14px;
  display:flex;align-items:center;gap:11px;text-align:left;
  border-radius:16px;border:1px solid #344255;
  background:linear-gradient(145deg,#151e29,#0e151e);
  color:white;cursor:pointer;
  box-shadow:none;transition:.15s ease;
}
.notebook-action:hover{border-color:#52647d;transform:translateY(-1px)}
.notebook-action>span{
  width:42px;height:42px;display:grid;place-items:center;min-width:42px;
  border-radius:13px;background:#0b121a;font-size:1.1rem;
}
.notebook-action>div{display:grid;gap:3px}
.notebook-action small{font-weight:500}
.delete-photo{
  background:linear-gradient(145deg,rgba(100,34,34,.28),#11171f);
  border-color:rgba(204,77,77,.28)!important;
}
.delete-photo>span{color:#e67979}
.notebook-empty-picker{
  min-height:170px;display:grid;place-items:center;align-content:center;gap:6px;
  padding:24px;border-radius:18px;
  border:1px dashed #526179;
  background:
    radial-gradient(250px 130px at 50% 45%,rgba(255,130,38,.075),transparent 70%),
    #0b121a;
  cursor:pointer;text-align:center;
  transition:.16s ease;
}
.notebook-empty-picker:hover{
  border-color:#ff9143;background:#0e151e;transform:translateY(-1px)
}
.notebook-camera-icon{
  width:52px;height:52px;display:grid;place-items:center;
  border-radius:16px;background:rgba(255,132,43,.1);
  border:1px solid rgba(255,145,65,.2);font-size:1.35rem;margin-bottom:4px
}
.notebook-empty-picker b{font-size:1rem}
.notebook-empty-picker small{max-width:310px}
.notebook-hidden-form{
  position:absolute!important;width:1px!important;height:1px!important;
  overflow:hidden!important;clip:rect(0 0 0 0)!important;
  opacity:0!important;pointer-events:none!important;
}
.notebook-uploading{
  margin-top:10px;padding:11px 13px;border-radius:14px;
  border:1px solid rgba(255,143,58,.22);
  background:rgba(255,128,34,.065);
  display:flex;align-items:center;gap:10px
}
.notebook-uploading[hidden]{display:none!important}
.notebook-uploading>div{display:grid;gap:2px}
.upload-spinner{
  width:23px;height:23px;border-radius:50%;
  border:2px solid rgba(255,255,255,.14);
  border-top-color:#ff9041;animation:notebookSpin .7s linear infinite
}
@keyframes notebookSpin{to{transform:rotate(360deg)}}
.is-uploading{pointer-events:none!important;opacity:.48!important}

/* Satış notu: buton açtırmaz, satır içinde doğal alan. */
.sale-note-input{
  grid-column:1/-1!important;
  width:100%;
  margin-top:-2px!important;
  min-height:39px!important;
  padding:9px 12px!important;
  border-radius:10px!important;
  border:1px dashed #364456!important;
  background:rgba(7,12,18,.54)!important;
  color:#cbd4df!important;
  font-size:.79rem!important;
}
.sale-note-input::placeholder{color:#687689!important}
.sale-note-input:focus{
  border-style:solid!important;
  border-color:rgba(255,139,54,.5)!important;
  background:#0b121a!important
}
.new-sale-note{margin-top:8px!important}
.report-sale-note{
  display:block!important;margin-top:5px!important;
  color:#9ca9ba!important;font-size:.75rem!important;
}

/* Day End fotoğraf + satış alanını mobilde daha rahat kullan. */
@media(max-width:700px){
  .notebook-current{grid-template-columns:1fr}
  .notebook-current-actions{grid-template-columns:1fr 1fr;grid-template-rows:auto}
  .notebook-action{min-height:70px;padding:10px}
  .notebook-action>span{width:36px;height:36px;min-width:36px}
  .notebook-preview-link,.notebook-preview-link img{
    min-height:190px;max-height:310px
  }
}
@media(max-width:430px){
  body.login-bg{padding:10px}
  body.login-bg .login-card{
    width:100%;
    padding:23px 20px;
    transform:translateY(-3.5vh);
  }
  body.login-bg .login-mark{
    width:46px;height:46px;border-radius:14px;margin-bottom:13px
  }
  body.login-bg .login-card h1{font-size:1.65rem}
  body.login-bg .login-card label{margin-top:11px}
  body.login-bg .login-card input{padding:12px 13px}
  body.login-bg .login-foot{margin-top:14px;padding-top:12px}

  .notebook-current-actions{gap:7px}
  .notebook-action{gap:7px}
  .notebook-action small{font-size:.65rem}
  .notebook-empty-picker{min-height:145px;padding:18px}
}


/* ========================================================================
   V3.2.2 — Stock remove + YD catalog archive/autocomplete
   ===================================================================== */
.stock-row-actions{
  display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:7px
}
.stock-row-actions form,.yd-chip-actions form{margin:0}
.stock-remove-link,.yd-chip-actions button{
  border:0!important;background:transparent!important;box-shadow:none!important;
  padding:3px 5px!important;color:#df7474!important;font-size:.7rem!important;
  font-weight:850!important
}
.stock-remove-link:hover,.yd-chip-actions button:hover{
  transform:none!important;color:#ff8c8c!important;text-decoration:underline
}
.yd-chip-actions{
  display:inline-flex;align-items:center;gap:3px;margin-left:4px
}
.yd-chip-actions a{margin-left:0!important}
.danger-zone{
  display:flex;justify-content:space-between;align-items:center;gap:15px;
  border-color:rgba(199,73,73,.28);
  background:linear-gradient(145deg,rgba(80,28,28,.16),rgba(15,21,30,.96))
}
.danger-zone h2{margin:0 0 5px}
.danger-zone p{margin:0}
.danger-zone form{margin:0;min-width:max-content}

.catalog-smart-form{
  display:grid!important;
  grid-template-columns:1.2fr 1fr .85fr auto!important;
  gap:9px!important;align-items:end!important
}
.catalog-smart-form label{margin:0!important}
.catalog-smart-form label small{
  display:block;margin:0 0 5px 2px;font-weight:800;color:#8997a8
}
.catalog-smart-form input{width:100%}
.catalog-smart-form button{height:47px;white-space:nowrap}
.catalog-row>span{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.catalog-row>span i{color:#586779;font-style:normal}

.catalog-archive-section{padding:0!important;overflow:hidden}
.catalog-archive>summary{
  list-style:none;cursor:pointer;padding:18px 19px;
  display:flex;align-items:center;justify-content:space-between;gap:12px
}
.catalog-archive>summary::-webkit-details-marker{display:none}
.catalog-archive>summary>span{display:grid;gap:3px}
.catalog-archive>summary b{font-size:1rem}
.catalog-archive>summary small{font-weight:600}
.catalog-archive>summary>strong{
  min-width:31px;height:31px;border-radius:999px;display:grid;place-items:center;
  background:#101821;border:1px solid #2c394a;color:#aab5c2;font-size:.75rem
}
.catalog-archive[open]>summary{border-bottom:1px solid #263343}
.catalog-archive-list{padding:9px 16px 16px}
.catalog-archive-row{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:12px 2px;border-bottom:1px solid #222e3d
}
.catalog-archive-row:last-child{border-bottom:0}
.catalog-archive-row>div{display:grid;gap:3px;min-width:0}
.catalog-archive-row b{font-size:.9rem}
.catalog-archive-row small{font-size:.74rem}
.catalog-archive-row time{font-size:.66rem;color:#68778a}
.catalog-archive-row form{margin:0}
.archive-reason{
  width:max-content;padding:3px 7px;border-radius:999px;
  font-size:.59rem;font-weight:950;letter-spacing:.04em
}
.archive-reason.expired{background:rgba(193,115,48,.13);color:#e8a362}
.archive-reason.manual{background:rgba(197,68,68,.12);color:#e57c7c}

@media(max-width:720px){
  .catalog-smart-form{grid-template-columns:1fr!important}
  .catalog-smart-form button{width:100%}
  .danger-zone{display:block}
  .danger-zone form{margin-top:12px}
  .danger-zone button{width:100%}
  .catalog-archive-row{align-items:flex-end}
}


/* ========================================================================
   V3.2.3 — YD Alt Grup + Cargo Receive Check + Cancel
   ===================================================================== */
.catalog-smart-form small em,
.cargo-smart-entry small,
.cargo-edit-entry small{
  font-style:normal;color:#6f7d8e;font-weight:600
}
.catalog-product-tree{display:grid;gap:11px}
.catalog-product-card{
  padding:0!important;overflow:hidden;
  border:1px solid #2a3748;border-radius:17px;
  background:linear-gradient(145deg,#111923,#0c131b)
}
.catalog-product-title{
  display:flex;align-items:center;gap:10px;
  padding:14px 15px;border-bottom:1px solid #263343
}
.catalog-product-icon{
  width:34px;height:34px;border-radius:11px;display:grid;place-items:center;
  background:rgba(74,124,255,.11);border:1px solid rgba(98,145,255,.18);color:#85aaff
}
.catalog-product-title b{font-size:1rem}
.catalog-subgroups{padding:10px;display:grid;gap:8px}
.catalog-subgroup{
  padding:11px;border-radius:13px;background:#0a1119;border:1px solid #222f3f
}
.catalog-subgroup-title{
  display:flex;align-items:center;gap:8px;margin-bottom:8px
}
.catalog-subgroup-title>span{
  padding:3px 6px;border-radius:999px;background:rgba(255,132,43,.1);
  color:#f4a063;font-size:.55rem;font-weight:950;letter-spacing:.08em
}
.catalog-subgroup-title b{font-size:.82rem;color:#cbd5e0}
.catalog-color-list{display:flex;flex-wrap:wrap;gap:6px}
.catalog-color-pill{
  display:inline-flex;align-items:center;gap:5px;
  padding:6px 7px 6px 10px;border-radius:999px;
  background:#111a24;border:1px solid #2c3a4c;color:#d8e0e9;font-size:.75rem
}
.catalog-color-pill form{margin:0;display:flex}
.catalog-color-pill button{
  width:22px;height:22px;padding:0!important;border-radius:50%!important;
  display:grid;place-items:center;background:transparent!important;
  border:0!important;box-shadow:none!important;color:#cf7171!important
}
.catalog-color-pill button:hover{background:rgba(205,77,77,.12)!important;transform:none!important}

.cargo-smart-entry,.cargo-edit-entry{
  padding:15px!important;border-radius:16px!important;
  background:linear-gradient(145deg,#111923,#0b121a)!important;
  border:1px solid #293648!important;margin-bottom:10px!important
}
.cargo-manual-fields{
  grid-template-columns:1.25fr 1fr .9fr!important;gap:8px!important
}
.cargo-edit-fields{
  display:grid;grid-template-columns:1.25fr 1fr .85fr .55fr .8fr;gap:8px;align-items:end
}
.cargo-existing-picker{margin-bottom:10px}
.cargo-edit-entry.catalog-picked{
  border-color:rgba(67,202,127,.48)!important;
  box-shadow:0 0 0 3px rgba(44,191,115,.08)!important
}
.cargo-final-actions{
  display:grid;grid-template-columns:.75fr 1.25fr;gap:9px;margin-bottom:14px
}
.cargo-final-actions button{width:100%;min-height:50px}
.cargo-receive-check{
  background:linear-gradient(135deg,#23985b,#167b48)!important;
  border-color:#2d9c63!important;color:white!important
}
.cargo-cancel-zone{margin-top:18px}
.cargo-actions-v323{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}
.badge.cancelled{
  background:rgba(176,59,59,.18)!important;
  color:#e27b7b!important;border-color:rgba(207,76,76,.22)!important
}
.cargo-status-cancelled{opacity:.76}
.cargo-status-cancelled:hover{opacity:.92}

@media(max-width:760px){
  .cargo-manual-fields,.cargo-edit-fields{grid-template-columns:1fr!important}
  .cargo-final-actions{grid-template-columns:1fr}
  .cargo-actions-v323{width:100%;display:grid;grid-template-columns:1fr 1.35fr}
  .cargo-actions-v323 a{text-align:center}
}


/* ========================================================================
   V3.2.4 — YD catalog cleaner layout
   ===================================================================== */
.catalog-clean-section{padding-top:14px}
.catalog-product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:14px;
}
.catalog-clean-card{
  border:1px solid #273447;
  border-radius:18px;
  background:linear-gradient(155deg,#111a24,#0a1119 75%);
  overflow:hidden;
  box-shadow:0 10px 26px rgba(0,0,0,.18);
}
.catalog-clean-head{
  display:flex;align-items:center;gap:12px;
  padding:16px 16px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,0));
}
.catalog-clean-icon{
  width:38px;height:38px;border-radius:12px;display:grid;place-items:center;
  background:rgba(77,129,255,.11);
  border:1px solid rgba(100,145,255,.19);
  color:#89adff;
  flex:0 0 38px;
}
.catalog-clean-title small{
  display:block;
  color:#8a98aa;
  font-size:.62rem;
  letter-spacing:.08em;
  font-weight:900;
  margin-bottom:3px;
}
.catalog-clean-title h3{
  margin:0;
  font-size:1.05rem;
  line-height:1.25;
  color:#f2f6fb;
}
.catalog-clean-body{
  padding:14px;
  display:grid;
  gap:10px;
}
.catalog-variant-box{
  border:1px solid #243142;
  border-radius:14px;
  background:#0d151e;
  padding:12px;
}
.catalog-variant-head{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:10px;
}
.catalog-variant-label{
  width:max-content;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(255,133,43,.12);
  color:#f2a25f;
  font-size:.6rem;
  font-weight:950;
  letter-spacing:.07em;
}
.catalog-variant-head b{
  color:#dce5ef;
  font-size:.9rem;
  line-height:1.25;
}
.catalog-color-chip-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.catalog-color-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:36px;
  padding:6px 8px 6px 11px;
  border-radius:999px;
  border:1px solid #2b3a4c;
  background:#121b25;
  color:#edf3fa;
  font-size:.78rem;
  font-weight:700;
}
.catalog-color-chip span{
  display:block;
  line-height:1.1;
}
.catalog-color-chip form{
  margin:0;
  display:flex;
  align-items:center;
}
.catalog-color-chip button{
  width:22px;
  height:22px;
  padding:0!important;
  border-radius:50%!important;
  display:grid;
  place-items:center;
  border:0!important;
  background:rgba(255,135,43,.14)!important;
  color:#ff9b49!important;
  box-shadow:none!important;
  font-size:.9rem;
  font-weight:900;
}
.catalog-color-chip button:hover{
  background:rgba(255,135,43,.22)!important;
  color:#ffb06e!important;
  transform:none!important;
}

@media(max-width:720px){
  .catalog-product-grid{grid-template-columns:1fr}
  .catalog-clean-head{padding:14px}
  .catalog-clean-body{padding:12px}
  .catalog-variant-box{padding:10px}
}


/* ========================================================================
   V3.2.5 — MOBILE PRACTICAL PASS + DAY END STOCK SOURCE FIX UI
   ===================================================================== */

/* anchors do not hide behind sticky header */
#day-notebook,#day-tr,#day-yd,#day-sales,#day-finish{
  scroll-margin-top:132px;
}

/* Day-end quick step bar */
.day-quick-nav{
  position:sticky;
  top:69px;
  z-index:8;
  display:flex;
  gap:6px;
  overflow-x:auto;
  margin:0 0 13px;
  padding:7px;
  border:1px solid rgba(74,91,115,.35);
  border-radius:15px;
  background:rgba(10,15,22,.92);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  scrollbar-width:none;
  box-shadow:0 8px 25px rgba(0,0,0,.15);
}
.day-quick-nav::-webkit-scrollbar{display:none}
.day-quick-nav a{
  min-width:max-content;
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius:10px;
  text-decoration:none;
  color:#aeb9c7;
  font-size:.72rem;
  font-weight:850;
}
.day-quick-nav a:hover{background:#151e29;color:white}
.day-quick-nav a span{
  width:20px;height:20px;
  display:grid;place-items:center;
  border-radius:7px;
  background:#1b2532;
  color:#ff9b52;
  font-size:.65rem;
}

/* Day-end source selector — never mix TR/YD DOM options */
.sale-source-box{
  padding:12px;
  border-radius:15px;
  border:1px solid #2b394b;
  background:#0c131c;
  margin-bottom:10px;
}
.sale-source-title{
  display:block;
  margin-bottom:8px;
  color:#8f9daf;
  font-size:.69rem;
  font-weight:900;
  letter-spacing:.04em;
}
.sale-source-segments{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
}
.sale-source-button{
  min-width:0;
  min-height:72px;
  display:grid!important;
  grid-template-columns:35px 1fr!important;
  grid-template-rows:auto auto!important;
  column-gap:8px!important;
  align-items:center!important;
  text-align:left!important;
  padding:10px!important;
  border-radius:13px!important;
  border:1px solid #2e3c4f!important;
  background:#111923!important;
  box-shadow:none!important;
  color:#d8e1eb!important;
}
.sale-source-button>span{
  grid-row:1/3;
  width:35px;height:35px;
  display:grid;place-items:center;
  border-radius:11px;
  background:#0a1119;
  color:#ff9a50;
  font-size:.72rem;
  font-weight:950;
}
.sale-source-button>b{
  align-self:end;
  font-size:.78rem;
  line-height:1.05;
}
.sale-source-button>small{
  align-self:start;
  font-size:.61rem;
  line-height:1.1;
}
.sale-source-button.active{
  border-color:rgba(255,139,54,.52)!important;
  background:linear-gradient(145deg,rgba(255,128,32,.14),#121922)!important;
  box-shadow:0 0 0 2px rgba(255,128,32,.06)!important;
}
.sale-source-button.active>span{
  background:rgba(255,129,39,.13);
}
.sale-stock-picker{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:8px;
  align-items:end;
  padding:11px;
  border-radius:14px;
  border:1px solid #2a3748;
  background:#0a1119;
  margin-bottom:9px;
}
.sale-stock-picker[hidden]{display:none!important}
.sale-stock-picker label{margin:0}
.sale-stock-picker input,
.sale-stock-picker select{margin-top:5px}
.sale-stock-empty{
  grid-column:1/-1;
  padding:9px 10px;
  border-radius:10px;
  background:rgba(177,66,66,.1);
  border:1px solid rgba(211,84,84,.17);
  color:#dc8989;
  font-size:.72rem;
}
.sale-stock-empty[hidden]{display:none!important}

.day-finish-anchor{scroll-margin-top:135px}
.day-finalize-form{margin-top:4px}

/* Mobile bottom navigation */
.mobile-bottom-nav{display:none}
@media(max-width:760px){
  .mobile-bottom-nav{
    position:fixed;
    left:8px;
    right:8px;
    bottom:calc(8px + env(safe-area-inset-bottom));
    z-index:90;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:4px;
    padding:6px;
    border:1px solid rgba(80,98,124,.42);
    border-radius:19px;
    background:rgba(10,15,22,.94);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
    box-shadow:0 18px 55px rgba(0,0,0,.43);
  }
  .mobile-nav-count-3{grid-template-columns:repeat(3,1fr);max-width:360px;margin:auto}
  .mobile-bottom-nav a{
    min-width:0;
    min-height:53px;
    display:grid;
    place-items:center;
    align-content:center;
    gap:2px;
    border-radius:13px;
    text-decoration:none;
    color:#7f8da0;
    -webkit-tap-highlight-color:transparent;
  }
  .mobile-bottom-nav a>span{
    font-size:1rem;
    font-weight:950;
    line-height:1;
  }
  .mobile-bottom-nav a>small{
    color:inherit;
    font-size:.59rem;
    font-weight:850;
    line-height:1;
  }
  .mobile-bottom-nav a.active{
    color:#ff9b52;
    background:rgba(255,129,39,.1);
  }
  .mobile-bottom-nav .mobile-nav-add{
    color:#fff;
    background:linear-gradient(145deg,#ff8d31,#ed6b06);
    box-shadow:0 6px 18px rgba(226,93,2,.21);
  }
  .mobile-bottom-nav .mobile-nav-add.active{
    color:#fff;
    background:linear-gradient(145deg,#ff9a46,#f2700b);
  }
  body.has-mobile-bottom-nav main{
    padding-bottom:calc(92px + env(safe-area-inset-bottom))!important;
  }
}

/* General mobile usability */
@media(max-width:760px){
  html{scroll-behavior:smooth}
  body{
    overscroll-behavior-y:none;
    -webkit-tap-highlight-color:transparent;
  }

  input,select,textarea{
    font-size:16px!important; /* prevents iOS focus zoom */
  }

  button,.btnlink,
  header>a:first-child,
  .text-link{
    touch-action:manipulation;
  }

  button,.btnlink{
    min-height:44px;
  }

  main{
    width:100%;
    max-width:none;
  }

  section{
    border-radius:16px;
  }

  .toolbar{
    justify-content:flex-start;
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:3px;
    scrollbar-width:none;
  }
  .toolbar::-webkit-scrollbar{display:none}
  .toolbar>*{flex:0 0 auto}

  /* no tiny two-column form chaos on phone */
  .inline,
  .inline3,
  .yddev{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  .inline>button,
  .inline3>button,
  .yddev>button{
    width:100%;
    grid-column:1/-1!important;
  }

  /* Saved day-end sale = readable card */
  .saved-sale{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
    padding:12px!important;
    margin:9px 0!important;
    border:1px solid #293749!important;
    border-radius:14px!important;
    background:#0c131b!important;
  }
  .saved-sale>input:first-of-type,
  .saved-sale .sale-note-input{
    grid-column:1/-1!important;
  }
  .saved-sale button{
    grid-column:auto!important;
    width:100%!important;
    min-height:44px!important;
  }

  .sale-new{
    padding:12px!important;
    border:1px solid #2b394b!important;
    border-radius:15px!important;
    background:#0c131b!important;
  }
  .sale-new .inline.sales{
    grid-template-columns:1fr 1fr!important;
  }
  .sale-new .inline.sales input:first-child{
    grid-column:1/-1!important;
  }
  .sale-new .inline.sales button{
    grid-column:1/-1!important;
    width:100%!important;
  }

  .sale-stock-picker{
    grid-template-columns:1fr;
  }

  .other-profit-row{
    padding:12px!important;
    border:1px solid #2b394b!important;
    border-radius:14px!important;
    background:#0c131b!important;
  }

  /* Make financial cards glanceable, not vertically huge */
  .budget-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  .budget-grid article{
    min-width:0;
    padding:12px!important;
  }
  .budget-grid strong{
    font-size:1.08rem!important;
    overflow-wrap:anywhere;
  }

  .row{
    align-items:flex-start;
  }

  /* easier bottom-area actions */
  .cargo-actions-v323,
  .debt-payment-actions{
    gap:7px!important;
  }
}

/* very narrow phones */
@media(max-width:430px){
  .day-quick-nav{
    top:61px;
    margin-left:-1px;
    margin-right:-1px;
  }
  .sale-source-segments{
    gap:5px;
  }
  .sale-source-button{
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto auto!important;
    place-items:center!important;
    text-align:center!important;
    min-height:83px;
    padding:8px 5px!important;
    gap:3px!important;
  }
  .sale-source-button>span{
    grid-row:auto;
    width:31px;height:31px;
  }
  .sale-source-button>b{font-size:.7rem}
  .sale-source-button>small{font-size:.56rem}

  .saved-sale{
    grid-template-columns:1fr!important;
  }
  .saved-sale>*{
    grid-column:1/-1!important;
  }

  .sale-new .inline.sales{
    grid-template-columns:1fr!important;
  }
  .sale-new .inline.sales>*{
    grid-column:1/-1!important;
  }
}


/* ========================================================================
   V3.2.6 — Smart anywhere search + AJAX day-end rows
   ===================================================================== */
.sale-search-results{
  grid-column:1/-1;
  display:grid;
  gap:5px;
  max-height:285px;
  overflow:auto;
  padding:5px;
  border:1px solid #293748;
  border-radius:13px;
  background:#080e15;
}
.sale-search-results[hidden]{display:none!important}
.sale-search-result{
  width:100%;
  min-height:48px;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:9px 11px!important;
  border-radius:10px!important;
  border:1px solid transparent!important;
  background:#0f1720!important;
  box-shadow:none!important;
  color:#e5ecf4!important;
  text-align:left!important;
}
.sale-search-result:hover,
.sale-search-result:focus{
  transform:none!important;
  border-color:#3b4c61!important;
  background:#141e29!important;
}
.sale-search-result span{
  min-width:0;
  font-size:.78rem;
  font-weight:800;
  overflow-wrap:anywhere;
}
.sale-search-result small{
  flex:0 0 auto;
  font-size:.64rem;
  color:#8795a7;
  text-align:right;
}

[data-day-ajax].ajax-saving{
  opacity:.62;
  pointer-events:none;
  transition:opacity .12s ease;
}
[data-day-ajax].ajax-saving::after{
  content:'Kaydediliyor…';
  display:block;
  grid-column:1/-1;
  margin-top:5px;
  color:#ff9b52;
  font-size:.68rem;
  font-weight:850;
}
.day-ajax-toast{
  position:fixed;
  right:14px;
  bottom:18px;
  z-index:150;
  max-width:min(390px,calc(100vw - 28px));
  padding:11px 14px;
  border-radius:13px;
  border:1px solid rgba(67,207,129,.25);
  background:rgba(18,85,55,.95);
  color:#eafff1;
  box-shadow:0 15px 45px rgba(0,0,0,.35);
  font-size:.78rem;
  font-weight:800;
  backdrop-filter:blur(14px);
}
.day-ajax-toast.error{
  border-color:rgba(226,89,89,.28);
  background:rgba(111,35,35,.96);
  color:#ffecec;
}
.day-ajax-toast[hidden]{display:none!important}

@media(max-width:760px){
  .sale-search-results{
    max-height:245px;
  }
  .sale-search-result{
    min-height:52px;
  }
  .day-ajax-toast{
    left:10px;
    right:10px;
    bottom:calc(82px + env(safe-area-inset-bottom));
    max-width:none;
    text-align:center;
  }
}


/* V3.2.7 — YD movement/current stock consistency */
.yd-stock-after{display:inline-flex!important;align-items:center;margin-left:6px;padding:3px 7px;border-radius:999px;background:rgba(44,191,115,.1);border:1px solid rgba(65,211,137,.16);color:#6bd99c!important;font-size:.62rem!important;font-weight:850!important}
@media(max-width:760px){#day-yd .row>span{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.yd-stock-after{margin-left:0}}


/* V3.2.8 — unified YD incoming sources */
.yd-source-badge{
  display:inline-flex!important;
  align-items:center;
  margin-left:5px;
  padding:3px 7px;
  border-radius:999px;
  font-size:.59rem!important;
  font-weight:900!important;
  border:1px solid transparent;
}
.yd-source-badge.cargo{
  background:rgba(80,130,255,.10);
  border-color:rgba(94,143,255,.18);
  color:#8fb2ff!important;
}
.yd-source-badge.stock{
  background:rgba(168,111,255,.09);
  border-color:rgba(173,124,255,.17);
  color:#c1a0ff!important;
}
.yd-source-badge.day{
  background:rgba(255,135,43,.10);
  border-color:rgba(255,146,67,.17);
  color:#f1a462!important;
}
@media(max-width:760px){
  .yd-source-badge{margin-left:0}
}


/* V3.2.9 — confirmed AJAX save feedback */
.ajax-saved-highlight{
  animation:v329SavedFlash 1.8s ease;
  position:relative;
  z-index:1;
}
@keyframes v329SavedFlash{
  0%{
    box-shadow:0 0 0 3px rgba(60,211,132,.35),0 8px 30px rgba(32,167,99,.16);
    border-color:rgba(69,220,143,.55);
    background-color:rgba(44,191,115,.08);
  }
  100%{
    box-shadow:none;
  }
}


/* V3.3.0 — longer actionable AJAX errors */
.day-ajax-toast.error{
  white-space:normal;
  overflow-wrap:anywhere;
}


/* V3.3.2 — endpoint-safe AJAX */
[data-day-ajax][data-last-resolved-action].ajax-saving::after{
  content:'Kaydediliyor…'!important;
}


/* ========================================================================
   V3.3.3 — Basit Sıralı / Defter Stok
   ===================================================================== */
.simple-stock-note{
  max-width:780px;
  margin:0 auto;
  padding:18px;
  border:1px solid #293748;
  border-radius:18px;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(150deg,#111923,#0a1118 72%);
  background-size:100% 38px,auto;
  box-shadow:0 14px 38px rgba(0,0,0,.22);
}
.simple-note-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding-bottom:13px;
  margin-bottom:15px;
  border-bottom:1px solid #2b394b;
}
.simple-note-head h2{margin:3px 0 0}
.simple-note-head>small{color:#758498;font-size:.68rem;font-weight:750}
.simple-stock-group h3{
  margin:0 0 8px;
  font-size:.86rem;
  letter-spacing:.03em;
  color:#e6edf5;
}
.simple-stock-list{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:simple-stock;
}
.simple-stock-list li{
  counter-increment:simple-stock;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-height:38px;
  padding:7px 2px;
  border-bottom:1px dashed rgba(125,144,167,.16);
}
.simple-stock-list li::before{
  content:counter(simple-stock) '.';
  grid-column:1;
  grid-row:1;
  width:27px;
  color:#68778a;
  font-size:.68rem;
  font-weight:800;
}
.simple-stock-list li>span{
  grid-column:1;
  grid-row:1;
  padding-left:29px;
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
}
.simple-stock-list li b{
  color:#dfe7f0;
  font-size:.78rem;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.simple-stock-list li em{
  font-style:normal;
  padding:2px 6px;
  border-radius:999px;
  background:rgba(75,127,255,.1);
  color:#91aff8;
  font-size:.62rem;
  font-weight:900;
}
.simple-stock-list li strong{
  grid-column:2;
  grid-row:1;
  color:#8fd7ad;
  font-size:.7rem;
  font-weight:850;
  white-space:nowrap;
}
.simple-stock-separator{
  margin:16px 0;
  color:#546275;
  letter-spacing:.05em;
  text-align:center;
  overflow:hidden;
}
.simple-empty{
  margin:5px 0 12px;
  color:#667588;
  font-size:.72rem;
}
.simple-stock-open{white-space:nowrap}

@media(max-width:760px){
  .simple-stock-note{
    padding:14px 12px;
    border-radius:16px;
  }
  .simple-note-head{
    align-items:flex-start;
  }
  .simple-stock-list li{
    grid-template-columns:minmax(0,1fr) auto;
    gap:7px;
  }
  .simple-stock-list li b{font-size:.75rem}
  .simple-stock-list li strong{font-size:.65rem}
}


/* ========================================================================
   V3.3.4 — Unified YD custom order + all simple stock
   ===================================================================== */
.all-simple-stock-button{
  display:grid;
  grid-template-columns:45px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  margin:12px 0 16px;
  padding:13px 14px;
  border:1px solid #304056;
  border-radius:16px;
  text-decoration:none;
  background:linear-gradient(145deg,rgba(255,129,39,.08),#0e1620 68%);
  box-shadow:0 9px 26px rgba(0,0,0,.15);
}
.all-simple-stock-button>span{
  width:43px;
  height:43px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:rgba(255,139,54,.11);
  font-size:1.15rem;
}
.all-simple-stock-button>div{
  min-width:0;
  display:grid;
  gap:3px;
}
.all-simple-stock-button b{
  color:#edf3fa;
  font-size:.86rem;
}
.all-simple-stock-button small{
  color:#8290a2;
  font-size:.65rem;
}
.all-simple-stock-button>strong{
  color:#ff9c52;
  font-size:1.3rem;
}
.all-simple-stock-button:hover{
  border-color:#475d78;
  background:linear-gradient(145deg,rgba(255,129,39,.12),#111b27 68%);
}

.simple-stock-master-heading{
  display:flex;
  align-items:center;
  gap:10px;
  margin:3px 0 11px;
  padding:10px 11px;
  border-radius:13px;
  border:1px solid rgba(75,128,255,.18);
  background:rgba(70,116,225,.07);
}
.simple-stock-master-heading.tr{
  border-color:rgba(255,137,48,.17);
  background:rgba(255,131,40,.06);
}
.simple-stock-master-heading>span{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#0a1119;
}
.simple-stock-master-heading small{
  display:block;
  margin-bottom:2px;
  color:#718196;
  font-size:.57rem;
  font-weight:900;
  letter-spacing:.08em;
}
.simple-stock-master-heading h2{
  margin:0;
  color:#edf3fa;
  font-size:.92rem;
}
.simple-stock-major-separator{
  margin:21px 0;
  color:#4c5d72;
  text-align:center;
  overflow:hidden;
  letter-spacing:.1em;
}

@media(max-width:760px){
  .all-simple-stock-button{
    margin-top:10px;
  }
}


/* ========================================================================
   V3.3.5 — YD mobile sort continuous autoscroll + employee cargo
   ===================================================================== */
body.stock-sort-dragging{
  overscroll-behavior:none;
  user-select:none;
  -webkit-user-select:none;
}
body.stock-sort-dragging .mobile-bottom-nav{
  pointer-events:none;
  opacity:.45;
}
.sort-mode .drag-handle{
  touch-action:none!important;
}
.sorting-drag{
  opacity:.68!important;
  transform:scale(1.012);
  box-shadow:0 12px 35px rgba(0,0,0,.32)!important;
  border-color:rgba(255,145,61,.42)!important;
  position:relative;
  z-index:20;
}
@media(max-width:760px){
  .sort-mode .drag-handle{
    min-width:48px!important;
    min-height:48px!important;
    border-radius:14px!important;
  }
  .sort-mode .stock-one{
    touch-action:pan-x;
  }
}

.cargo-employee-note{
  margin:0 0 12px;
  padding:11px 12px;
  border:1px solid rgba(89,139,255,.18);
  border-radius:13px;
  background:rgba(74,120,235,.07);
  color:#94a7c0;
  font-size:.72rem;
  line-height:1.4;
}
.cargo-actions form{
  margin:0;
}
.cargo-actions form .btnlink{
  width:100%;
}
.employee-cargo-receive-box{
  display:grid;
  gap:7px;
  border-color:rgba(59,202,126,.22)!important;
  background:rgba(43,164,101,.05)!important;
}
.employee-cargo-receive-box small{
  color:#8291a3;
}
.employee-cargo-receive-box form{
  margin:4px 0 0;
}
.employee-cargo-receive-box .btnlink{
  width:100%;
}


/* V3.3.6 — Employee cargo review/receive */
.employee-hidden-price{
  min-height:44px;
  display:flex;
  align-items:center;
  padding:0 11px;
  border:1px dashed rgba(125,145,168,.22);
  border-radius:10px;
  background:#0a1119;
  color:#748397;
  font-size:.68rem;
  font-weight:850;
}


/* ========================================================================
   V3.3.7 — Cargo catalog smart search
   ===================================================================== */
.cargo-catalog-search-wrap{
  position:relative;
  margin:5px 0 7px;
}
.cargo-catalog-search{
  width:100%;
}
.cargo-catalog-results{
  position:relative;
  z-index:25;
  display:grid;
  gap:4px;
  max-height:260px;
  overflow:auto;
  margin-top:5px;
  padding:5px;
  border:1px solid #2b394a;
  border-radius:12px;
  background:#080f16;
  box-shadow:0 12px 34px rgba(0,0,0,.28);
}
.cargo-catalog-results[hidden]{
  display:none!important;
}
.cargo-catalog-result{
  width:100%;
  min-height:44px;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:9px 10px!important;
  border:1px solid transparent!important;
  border-radius:9px!important;
  background:#101923!important;
  color:#e0e8f1!important;
  text-align:left!important;
  font-size:.75rem!important;
  font-weight:750!important;
  box-shadow:none!important;
}
.cargo-catalog-result:hover,
.cargo-catalog-result:focus{
  transform:none!important;
  border-color:#40536a!important;
  background:#172230!important;
}
.cargo-catalog-noresult{
  padding:10px;
  color:#7f8da0;
  font-size:.7rem;
  line-height:1.35;
}
@media(max-width:760px){
  .cargo-catalog-results{
    max-height:230px;
  }
  .cargo-catalog-result{
    min-height:48px;
    font-size:.76rem!important;
  }
}


/* ========================================================================
   V3.3.8 — Cargo catalog clean picker (Day-End style)
   ===================================================================== */
.cargo-catalog-search-wrap{
  margin:5px 0 7px;
}
.cargo-catalog-search{
  min-height:46px;
  border-color:#35465c!important;
  background:#0b121b!important;
}
.cargo-catalog-search:focus{
  border-color:#d87b32!important;
  box-shadow:0 0 0 2px rgba(230,119,35,.08)!important;
}

/* Native select remains only as hidden POST/fallback state. */
.cargo-catalog-native-select{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:0!important;
  opacity:0!important;
  pointer-events:none!important;
  overflow:hidden!important;
}

.cargo-catalog-results{
  display:grid;
  gap:4px;
  max-height:285px;
  overflow:auto;
  margin-top:5px;
  padding:5px;
  border:1px solid #293849;
  border-radius:13px;
  background:#080f16;
  box-shadow:0 15px 38px rgba(0,0,0,.34);
}
.cargo-catalog-results[hidden]{
  display:none!important;
}

/*
 * Critical override:
 * old global button rules made every search result a huge orange CTA.
 */
button.cargo-catalog-result.clean-picker-row{
  width:100%!important;
  min-height:48px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto 18px!important;
  align-items:center!important;
  gap:9px!important;
  padding:8px 10px!important;
  margin:0!important;

  border:1px solid transparent!important;
  border-radius:10px!important;

  background:#101923!important;
  background-image:none!important;
  box-shadow:none!important;

  color:#dfe7f0!important;
  text-align:left!important;

  transform:none!important;
}
button.cargo-catalog-result.clean-picker-row:hover,
button.cargo-catalog-result.clean-picker-row:focus{
  background:#15202c!important;
  border-color:#34475c!important;
  box-shadow:none!important;
  transform:none!important;
}
button.cargo-catalog-result.clean-picker-row:active{
  background:#192635!important;
  transform:none!important;
}

.cargo-result-main{
  min-width:0;
  display:block;
}
.cargo-result-main b{
  display:block;
  color:#e7edf4!important;
  font-size:.75rem!important;
  font-weight:800!important;
  line-height:1.25!important;
  overflow-wrap:anywhere;
}
.cargo-result-arrow{
  color:#64758b;
  font-size:1rem;
  font-weight:900;
}

.cargo-stock-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:54px;
  min-height:24px;
  padding:3px 7px;
  border-radius:999px;
  font-size:.59rem!important;
  font-weight:900!important;
  white-space:nowrap;
}
.cargo-stock-badge.positive{
  border:1px solid rgba(60,205,132,.18);
  background:rgba(50,191,117,.09);
  color:#70d99d!important;
}
.cargo-stock-badge.zero{
  border:1px solid rgba(143,158,179,.18);
  background:rgba(124,141,162,.08);
  color:#8391a4!important;
}

/* Chosen option appears as one compact Day-End-like chip/card. */
.cargo-catalog-selected{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 28px;
  align-items:center;
  gap:8px;
  min-height:43px;
  margin-top:6px;
  padding:7px 8px 7px 10px;
  border:1px solid rgba(65,205,136,.18);
  border-radius:11px;
  background:rgba(45,175,109,.055);
}
.cargo-catalog-selected-name{
  min-width:0;
  color:#e0e8f1;
  font-size:.72rem;
  font-weight:800;
  line-height:1.25;
  overflow-wrap:anywhere;
}
button.cargo-catalog-clear{
  width:27px!important;
  min-width:27px!important;
  height:27px!important;
  min-height:27px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  margin:0!important;
  border:1px solid rgba(126,145,166,.18)!important;
  border-radius:8px!important;
  background:#0b121a!important;
  background-image:none!important;
  color:#8494a8!important;
  font-size:.85rem!important;
  box-shadow:none!important;
  transform:none!important;
}

.cargo-catalog-noresult{
  display:grid;
  gap:3px;
  padding:10px;
  color:#7e8da0;
  font-size:.69rem;
}
.cargo-catalog-noresult b{
  color:#a9b5c3;
}
.cargo-catalog-noresult span{
  line-height:1.35;
}

@media(max-width:760px){
  .cargo-catalog-results{
    max-height:255px;
  }
  button.cargo-catalog-result.clean-picker-row{
    min-height:50px!important;
    padding:8px 9px!important;
  }
  .cargo-result-main b{
    font-size:.74rem!important;
  }
}


/* V3.3.9 — Cargo search real binding fix */
.cargo-catalog-search-wrap{
  z-index:35;
}
.cargo-catalog-results{
  z-index:40!important;
}
.cargo-catalog-search[data-picker-error="select-not-found"]{
  border-color:#b74b4b!important;
}


/* ========================================================================
   V3.4.0 — Cargo picker uses Day-End result appearance
   ===================================================================== */
.cargo-catalog-native-select{
  position:absolute!important;
  width:1px!important;height:1px!important;
  padding:0!important;margin:0!important;
  opacity:0!important;pointer-events:none!important;overflow:hidden!important;
}
.cargo-catalog-search-wrap{
  position:relative;
  margin:5px 0 7px;
}
.cargo-catalog-search-wrap .sale-search-results{
  grid-column:auto!important;
  margin-top:6px;
}
.cargo-catalog-search{
  width:100%;
  min-height:46px;
  border-color:#35465c!important;
  background:#0b121b!important;
}
.cargo-catalog-search:focus{
  border-color:#d87b32!important;
  box-shadow:0 0 0 2px rgba(230,119,35,.08)!important;
}
/* Force Day-End visual; kill orange global button look completely */
button.sale-search-result.cargo-catalog-result,
button.sale-search-result.cargo-catalog-result:hover,
button.sale-search-result.cargo-catalog-result:focus,
button.sale-search-result.cargo-catalog-result:active{
  width:100%!important;
  min-height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:9px 11px!important;
  border-radius:10px!important;
  border:1px solid transparent!important;
  background:#0f1720!important;
  background-image:none!important;
  box-shadow:none!important;
  color:#e5ecf4!important;
  text-align:left!important;
  transform:none!important;
}
button.sale-search-result.cargo-catalog-result:hover,
button.sale-search-result.cargo-catalog-result:focus{
  border-color:#3b4c61!important;
  background:#141e29!important;
}
button.sale-search-result.cargo-catalog-result span{
  min-width:0;
  font-size:.78rem!important;
  font-weight:800!important;
  overflow-wrap:anywhere;
  color:#e5ecf4!important;
}
button.sale-search-result.cargo-catalog-result small{
  flex:0 0 auto;
  font-size:.64rem!important;
  color:#8795a7!important;
  text-align:right!important;
}
/* legacy custom row pieces off */
.cargo-result-main,.cargo-result-arrow,.cargo-stock-badge{all:unset}

.cargo-catalog-selected{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 28px;
  align-items:center;
  gap:8px;
  min-height:43px;
  margin-top:6px;
  padding:7px 8px 7px 10px;
  border:1px solid rgba(65,205,136,.18);
  border-radius:11px;
  background:rgba(45,175,109,.055);
}
.cargo-catalog-selected-name{
  min-width:0;
  color:#e0e8f1;
  font-size:.72rem;
  font-weight:800;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.cargo-selected-meta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:54px;
  min-height:24px;
  padding:3px 7px;
  border-radius:999px;
  border:1px solid rgba(124,141,162,.18);
  background:rgba(124,141,162,.08);
  color:#8391a4!important;
  font-size:.59rem!important;
  font-weight:900!important;
  white-space:nowrap;
}
button.cargo-catalog-clear{
  width:27px!important;min-width:27px!important;height:27px!important;min-height:27px!important;
  display:grid!important;place-items:center!important;padding:0!important;margin:0!important;
  border:1px solid rgba(126,145,166,.18)!important;border-radius:8px!important;
  background:#0b121a!important;background-image:none!important;color:#8494a8!important;
  font-size:.85rem!important;box-shadow:none!important;transform:none!important;
}
.cargo-catalog-noresult{
  display:grid;
  gap:3px;
  padding:10px;
  color:#7e8da0;
  font-size:.69rem;
}
.cargo-catalog-noresult b{color:#a9b5c3}
.cargo-catalog-noresult span{line-height:1.35}
@media(max-width:760px){
  .cargo-catalog-search-wrap .sale-search-results{max-height:255px}
}


/* ========================================================================
   V3.4.1 — Cargo add-row + partial receiving
   ===================================================================== */
.cargo-progress-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 12px}
.cargo-progress-summary>div{display:grid;gap:3px;padding:10px 11px;border:1px solid #29394b;border-radius:12px;background:#0d151e}
.cargo-progress-summary small{color:#748398;font-size:.62rem;font-weight:800}.cargo-progress-summary b{color:#e8eef5;font-size:.86rem}
.cargo-line-progress{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:0 0 9px;padding:7px 9px;border-radius:10px;background:#0b131c;border:1px solid #263546}.cargo-line-progress span{font-size:.72rem;font-weight:850;color:#dfe8f1}.cargo-line-progress small{font-size:.61rem;color:#8796a9;white-space:nowrap}
.cargo-locked-note{padding:8px 10px;margin:4px 0 8px;border:1px dashed rgba(120,140,165,.22);border-radius:10px;color:#7f8fa3;background:rgba(112,132,157,.05);font-size:.67rem}
.cargo-receive-qty-label{border-color:rgba(55,204,129,.18)!important;background:rgba(42,177,108,.04);padding:8px!important;border-radius:11px}.cargo-receive-qty-label input{border-color:rgba(55,204,129,.3)!important}.cargo-receive-qty-label small{display:block;margin-top:3px;color:#6fc995!important}
.cargo-add-row-button{width:100%;margin-top:10px}.cargo-new-edit-row{border-color:rgba(75,130,255,.22)!important}.cargo-partial-locked{border-color:rgba(148,133,78,.2)!important}
.badge.partial{background:rgba(224,164,50,.12)!important;color:#e9bb63!important;border-color:rgba(224,164,50,.22)!important}.cargo-status-partial{border-color:rgba(224,164,50,.16)!important}
.cargo-receipt-card{display:grid;gap:7px;padding:10px 11px;margin:7px 0;border:1px solid #29394a;border-radius:12px;background:#0c141d}.cargo-receipt-head{display:flex;justify-content:space-between;gap:10px}.cargo-receipt-head b{font-size:.74rem;color:#e3ebf3}.cargo-receipt-head span{font-size:.61rem;color:#8190a3}.cargo-receipt-line{display:flex;justify-content:space-between;gap:8px;padding-top:6px;border-top:1px dashed rgba(124,143,165,.13)}.cargo-receipt-line span{font-size:.68rem;color:#aebbc9}.cargo-receipt-line b{font-size:.68rem;color:#7fdca7}
@media(max-width:760px){.cargo-progress-summary{grid-template-columns:repeat(3,1fr)}.cargo-progress-summary>div{padding:8px}.cargo-line-progress{align-items:flex-start;flex-direction:column;gap:3px}.cargo-line-progress small{white-space:normal}.cargo-receipt-head{flex-direction:column;gap:2px}}


/* ========================================================================
   V3.4.2 — Cargo edit/receive cleaner layout + stock search
   ===================================================================== */
body.cargo-edit-screen main{max-width:1120px!important}
.cargo-edit-screen .cargo-progress-summary{margin-bottom:14px}
.cargo-edit-screen .cargo-progress-summary>div{min-width:0}
.cargo-edit-screen .cargo-edit-entry{
  display:block!important;
  padding:16px!important;
  border-radius:18px!important;
  background:linear-gradient(165deg,#101924,#0a121b 78%)!important;
  border:1px solid #2a3950!important;
  box-shadow:0 14px 32px rgba(0,0,0,.16);
}
.cargo-edit-screen .cargo-edit-entry>*+*{margin-top:12px}
.cargo-edit-screen .cargo-line-progress{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  background:#0d1722!important;
  border:1px solid #2d3d50!important;
}
.cargo-edit-screen .cargo-line-progress span{font-size:.88rem!important;line-height:1.25!important}
.cargo-edit-screen .cargo-line-progress small{white-space:normal!important;font-size:.7rem!important}
.cargo-edit-screen .cargo-existing-picker{display:grid!important;gap:7px!important;margin:0!important}
.cargo-edit-screen .cargo-existing-picker small{color:#8ea0b6}
.cargo-edit-screen .cargo-catalog-search-wrap{position:relative}
.cargo-edit-screen .cargo-catalog-search{width:100%;min-height:48px}
.cargo-edit-screen .cargo-catalog-results{margin-top:6px}
.cargo-edit-screen .cargo-ref{width:100%}
.cargo-edit-screen .cargo-edit-fields{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:start!important;
}
.cargo-edit-screen .cargo-edit-fields > label,
.cargo-edit-screen .cargo-edit-fields > .cargo-receive-qty-label{display:grid!important;gap:6px!important;min-width:0!important;margin:0!important}
.cargo-edit-screen .cargo-edit-fields input,
.cargo-edit-screen .cargo-edit-fields select{width:100%!important;min-width:0!important}
.cargo-edit-screen .cargo-receive-qty-label{border:1px solid rgba(55,204,129,.18)!important;background:rgba(42,177,108,.06)!important}
.cargo-edit-screen .cargo-inline-remove{width:100%!important;min-height:44px!important}
.cargo-edit-screen .cargo-add-row-button{width:100%!important;min-height:50px!important;margin-top:14px!important}
.cargo-edit-screen .cargo-final-actions{
  position:sticky;
  bottom:10px;
  z-index:18;
  display:grid!important;
  grid-template-columns:1fr 1.25fr!important;
  gap:10px!important;
  padding:10px;
  border:1px solid rgba(47,62,83,.8);
  border-radius:16px;
  background:rgba(7,12,18,.92);
  backdrop-filter:blur(10px);
}
.cargo-edit-screen .cargo-final-actions button{min-height:52px!important}
.cargo-edit-screen .sale-search-results{max-height:255px}
.cargo-edit-screen button.sale-search-result.cargo-catalog-result,
.cargo-edit-screen button.sale-search-result.cargo-catalog-result:hover,
.cargo-edit-screen button.sale-search-result.cargo-catalog-result:focus,
.cargo-edit-screen button.sale-search-result.cargo-catalog-result:active{
  width:100%!important;
  min-height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:10px 12px!important;
  border:1px solid transparent!important;
  border-radius:11px!important;
  background:#0f1822!important;
  background-image:none!important;
  box-shadow:none!important;
  color:#e6edf4!important;
  text-align:left!important;
  transform:none!important;
}
.cargo-edit-screen button.sale-search-result.cargo-catalog-result:hover,
.cargo-edit-screen button.sale-search-result.cargo-catalog-result:focus{background:#152130!important;border-color:#39506a!important}
.cargo-edit-screen button.sale-search-result.cargo-catalog-result span{min-width:0;font-size:.78rem!important;font-weight:800!important;color:#e7edf5!important;overflow-wrap:anywhere}
.cargo-edit-screen button.sale-search-result.cargo-catalog-result small{flex:0 0 auto;font-size:.64rem!important;color:#8c9bae!important}
@media (min-width:1181px){
  .cargo-edit-screen .cargo-edit-fields{grid-template-columns:1.35fr 1fr 1fr .7fr .85fr .85fr!important}
}
@media (max-width:1180px){body.cargo-edit-screen main{max-width:920px!important}}
@media (max-width:860px){
  .cargo-edit-screen .cargo-edit-fields{grid-template-columns:1fr!important}
  .cargo-edit-screen .cargo-final-actions{grid-template-columns:1fr!important;bottom:6px}
}

.stock-screen .stock-search-panel{display:grid;gap:8px;margin:0 0 14px;padding:13px 14px;border:1px solid #29394b;border-radius:16px;background:linear-gradient(160deg,#101924,#0a121b 78%)}
.stock-screen .stock-search-label{display:grid;gap:6px;font-size:.76rem;font-weight:850;color:#dfe8f2}
.stock-screen .stock-search-label input{width:100%;min-height:46px}
.stock-screen .stock-search-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.stock-screen #stock-search-count{font-size:.72rem;color:#8fa0b3;font-weight:700}
.stock-screen .stock-search-clear{min-height:38px!important;padding:8px 12px!important}
.stock-screen .stock-search-item[hidden]{display:none!important}
@media (max-width:760px){
  .stock-screen .stock-search-panel{padding:12px}
  .stock-screen .stock-search-meta{align-items:flex-start}
}


/* V3.4.3 — optional YD subgroup/color */
.cargo-edit-screen .cargo-edit-fields label>small,
.cargo-manual-fields label>small{
  color:#8394a8;
  font-weight:650;
}


/* V3.4.4 — zero stock has no current purchase exposure */
.zero-stock-prices strong{
  opacity:.82;
}


/* ========================================================================
   V3.4.5 — Day End YD default + editable TR purchases
   ===================================================================== */
#day-tr .tr-purchase-row{
  display:grid;
  grid-template-columns:minmax(180px,1.35fr) minmax(150px,1fr) minmax(115px,.65fr) auto;
  gap:8px;
  align-items:center;
  margin:0 0 7px;
  padding:9px;
  border:1px solid #2a394b;
  border-radius:13px;
  background:#0d151f;
}
#day-tr .tr-purchase-row input{
  width:100%;
  min-width:0;
}
#day-tr .tr-purchase-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
}
#day-tr .tr-purchase-actions button{
  min-height:42px!important;
  padding:8px 11px!important;
}
.tr-stock-badge,
.tr-sold-badge{
  min-width:max-content;
  padding:4px 7px;
  border-radius:999px;
  font-size:.59rem;
  font-weight:900;
}
.tr-stock-badge{
  border:1px solid rgba(59,207,132,.18);
  background:rgba(49,187,116,.08);
  color:#6fd89d;
}
.tr-sold-badge{
  border:1px solid rgba(137,153,173,.18);
  background:rgba(119,136,157,.08);
  color:#8795a7;
}
#day-tr .tr-add-row{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed rgba(104,123,147,.2);
}

@media(max-width:860px){
  #day-tr .tr-purchase-row{
    grid-template-columns:1fr 1fr;
  }
  #day-tr .tr-purchase-actions{
    grid-column:1/-1;
    justify-content:stretch;
  }
  #day-tr .tr-purchase-actions button{
    flex:1;
  }
}
@media(max-width:560px){
  #day-tr .tr-purchase-row{
    grid-template-columns:1fr;
  }
  #day-tr .tr-purchase-actions{
    grid-column:auto;
  }
}


/* V3.4.6 — explicit saved feedback */
#day-tr .tr-purchase-row.ajax-saved-highlight{
  border-color:rgba(59,215,137,.55)!important;
}


/* ========================================================================
   V3.4.7 — Alsat submit + YD stock/cargo split
   ===================================================================== */
.yd-stock-split-section{
  border-color:rgba(83,139,255,.2)!important;
  background:linear-gradient(160deg,rgba(67,115,221,.06),#0c141e 76%)!important;
}
.yd-stock-split-head{
  margin-bottom:12px;
}
.yd-stock-split-head h2{
  margin:3px 0 6px;
}
.yd-stock-split-form{
  display:grid;
  grid-template-columns:.7fr 1fr 1fr auto;
  gap:9px;
  align-items:end;
}
.yd-stock-split-form label{
  min-width:0;
}
.yd-stock-split-form button{
  min-height:46px!important;
}

.cargo-split-box{
  display:grid;
  gap:10px;
  margin-top:12px!important;
  padding:11px;
  border:1px dashed rgba(89,139,255,.24);
  border-radius:13px;
  background:rgba(69,112,218,.055);
}
.cargo-split-title{
  display:grid;
  gap:3px;
}
.cargo-split-title b{
  color:#dfe8f4;
  font-size:.78rem;
}
.cargo-split-title small{
  color:#8395aa;
  font-size:.66rem;
  line-height:1.35;
}
.cargo-split-fields{
  display:grid;
  grid-template-columns:.55fr 1fr 1fr auto;
  gap:8px;
  align-items:end;
}
.cargo-split-fields label{
  min-width:0;
}
.cargo-split-fields input{
  width:100%!important;
  min-width:0!important;
}
.cargo-split-button{
  min-height:46px!important;
  white-space:nowrap;
}

@media(max-width:860px){
  .yd-stock-split-form,
  .cargo-split-fields{
    grid-template-columns:1fr 1fr;
  }
  .yd-stock-split-form button,
  .cargo-split-button{
    grid-column:1/-1;
    width:100%!important;
  }
}
@media(max-width:560px){
  .yd-stock-split-form,
  .cargo-split-fields{
    grid-template-columns:1fr;
  }
  .yd-stock-split-form button,
  .cargo-split-button{
    grid-column:auto;
  }
}


/* ========================================================================
   V3.4.8 — Cargo receipt correction
   ===================================================================== */
.cargo-receipt-edit-section{
  scroll-margin-top:90px;
  border-color:rgba(231,159,66,.2)!important;
}
.cargo-receipt-edit-card{
  display:grid;
  gap:8px;
  padding:11px;
  margin:9px 0;
  border:1px solid #2b3a4d;
  border-radius:14px;
  background:#0c151f;
}
.cargo-receipt-edit-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(112,132,158,.14);
}
.cargo-receipt-edit-head>div{
  display:grid;
  gap:3px;
}
.cargo-receipt-edit-head b{
  font-size:.78rem;
  color:#e4ebf3;
}
.cargo-receipt-edit-head small{
  font-size:.63rem;
  color:#8191a5;
}
.cargo-receipt-edit-head strong{
  color:#ffad68;
  font-size:.72rem;
}
.cargo-receipt-correct-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px auto;
  gap:9px;
  align-items:end;
  padding:9px;
  border:1px solid rgba(111,133,160,.13);
  border-radius:11px;
  background:#0a1119;
}
.cargo-receipt-correct-product{
  display:grid;
  gap:3px;
  min-width:0;
}
.cargo-receipt-correct-product b{
  color:#dce6f0;
  font-size:.74rem;
  overflow-wrap:anywhere;
}
.cargo-receipt-correct-product small{
  color:#8393a6;
  font-size:.62rem;
}
.cargo-receipt-correct-row label{
  margin:0!important;
  font-size:.68rem;
}
.cargo-receipt-correct-row input{
  min-height:42px!important;
}
.cargo-receipt-correct-row button{
  min-height:42px!important;
  white-space:nowrap;
}
.cargo-receipt-edit-warning{
  margin-top:10px;
  padding:9px 10px;
  border:1px dashed rgba(231,159,66,.25);
  border-radius:11px;
  background:rgba(192,122,46,.055);
  color:#9dabbc;
  font-size:.68rem;
  line-height:1.4;
}
.cargo-receipt-correct-link{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.cargo-receipt-correct-link>div{
  display:grid;
  gap:3px;
}
.cargo-receipt-correct-link small{
  font-size:.67rem;
  color:#8494a6;
}
.cargo-completed-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.cargo-correct-link{
  color:#ff9d56!important;
}
@media(max-width:760px){
  .cargo-receipt-correct-row{
    grid-template-columns:1fr;
  }
  .cargo-receipt-correct-row button{
    width:100%!important;
  }
  .cargo-receipt-edit-head,
  .cargo-receipt-correct-link{
    flex-direction:column;
    align-items:stretch;
  }
}


/* ========================================================================
   V3.4.9 — Esnaf listesi
   ===================================================================== */
.wholesale-main{max-width:1120px}
.wholesale-config-card{border-color:#304055!important;background:linear-gradient(155deg,#111a25,#0b121b 78%)!important}
.wholesale-heading h1{margin:3px 0 5px}
.wholesale-config-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:start}
.wholesale-config-grid label{min-width:0;margin:0}
.wholesale-config-grid label>small{display:block;margin-top:5px;font-size:.62rem;color:#8494a8;line-height:1.3}
.money-with-suffix{display:flex;align-items:center;overflow:hidden;margin-top:6px;border:1px solid #3a4554;border-radius:12px;background:#0e1319}
.money-with-suffix input{margin:0!important;border:0!important;border-radius:0!important;background:transparent!important}
.money-with-suffix span{padding:0 11px;color:#a8b4c4;font-weight:900}
.wholesale-readonly-value{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;padding:10px 12px;border:1px solid #334256;border-radius:12px;background:#0b121a}
.wholesale-readonly-value strong{color:#e9eff6;font-size:.95rem}
.wholesale-readonly-value small{color:#8090a4;font-size:.61rem}
.wholesale-config-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.wholesale-config-actions button{min-height:42px!important;padding:9px 12px!important;font-size:.72rem!important}
.wholesale-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}
.wholesale-summary-grid article{display:grid;gap:4px;margin:0;padding:11px;border:1px solid #2a394b;border-radius:13px;background:#0b131d}
.wholesale-summary-grid small{color:#8090a3;font-size:.61rem}
.wholesale-summary-grid strong{color:#edf3f9;font-size:.9rem}
.wholesale-summary-grid .negative-profit{color:#df7777!important}
.wholesale-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:12px}
.wholesale-search-row label{margin:0}
.wholesale-search-row span{padding-bottom:13px;color:#8494a8;font-size:.66rem}
.wholesale-products-section{padding-top:14px}
#wholesale-groups{display:grid;gap:10px}
.wholesale-group{border:1px solid #29394b;border-radius:16px;overflow:hidden;background:#0c141e;transition:opacity .15s,border-color .15s}
.wholesale-group.is-unselected{opacity:.62}
.wholesale-group[hidden]{display:none!important}
.wholesale-group-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;border-bottom:1px solid rgba(112,132,158,.12);background:#101923}
.wholesale-master-check{display:grid;place-items:center;margin:0!important}
.wholesale-master-check input,.wholesale-color-check-wrap input{width:20px!important;height:20px!important;margin:0!important;accent-color:#ff8524}
.wholesale-group-title{display:grid;gap:3px;min-width:0}
.wholesale-group-title b{color:#e7edf4;font-size:.82rem;overflow-wrap:anywhere}
.wholesale-group-title small{color:#8292a6;font-size:.62rem}
.wholesale-order-actions{display:flex;gap:5px}
.wholesale-order-btn,.wholesale-row-reset{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border:1px solid #344458!important;border-radius:9px!important;background:#151f2a!important;color:#b7c3d0!important;box-shadow:none!important}
.wholesale-color-list{display:grid}
.wholesale-price-row{display:grid;grid-template-columns:minmax(170px,1.3fr) minmax(115px,.7fr) minmax(130px,.8fr) minmax(110px,.65fr) 36px;gap:9px;align-items:center;padding:10px 12px;border-bottom:1px solid rgba(107,127,151,.11)}
.wholesale-price-row:last-child{border-bottom:0}
.wholesale-price-row.profit-negative{background:rgba(163,55,55,.045)}
.wholesale-color-check-wrap{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;margin:0!important;min-width:0}
.wholesale-color-name{min-width:0;color:#dce6f0;font-size:.74rem;font-weight:800;overflow-wrap:anywhere}
.wholesale-color-check-wrap small{color:#7f8fa3;font-size:.6rem;white-space:nowrap}
.wholesale-cost-box,.wholesale-profit-box{display:grid;gap:2px}
.wholesale-cost-box small,.wholesale-profit-box small{color:#75859a;font-size:.57rem;text-transform:uppercase;letter-spacing:.05em}
.wholesale-cost-box b,.wholesale-profit-box b{color:#dce5ee;font-size:.72rem}
.wholesale-cost-box span,.wholesale-profit-box span{color:#8191a5;font-size:.6rem}
.wholesale-sale-field{display:grid!important;gap:3px;margin:0!important}
.wholesale-sale-field>span{color:#8191a5;font-size:.58rem}
.wholesale-sale-field input{min-height:42px!important;margin:0!important;padding:8px 9px!important;text-align:right;font-weight:900}
.wholesale-row-reset{color:#9caabc!important}
.wholesale-empty{padding:18px;border:1px dashed #35465a;border-radius:14px;color:#8d9bae;text-align:center}
.wholesale-output-section{border-color:rgba(255,137,49,.2)!important}
.wholesale-build-button{width:100%;min-height:52px!important;margin-top:10px}
#wholesale-output-wrap{margin-top:12px}
#wholesale-output{min-height:160px;max-height:560px;overflow:auto;margin:0;padding:15px;border:1px solid #2e3d50;border-radius:14px;background:#081018;color:#e8edf3;font:700 .78rem/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-word}
.wholesale-share-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
.wholesale-share-actions button{width:100%}
.wholesale-dashboard-link .action-icon{font-family:inherit!important}

@media(max-width:900px){
 .wholesale-config-grid{grid-template-columns:1fr 1fr}
 .wholesale-price-row{grid-template-columns:minmax(0,1.2fr) minmax(110px,.7fr) minmax(125px,.8fr)}
 .wholesale-profit-box{grid-column:2}
 .wholesale-row-reset{grid-column:3;justify-self:end}
}
@media(max-width:620px){
 .wholesale-config-grid{grid-template-columns:1fr}
 .wholesale-summary-grid{grid-template-columns:1fr 1fr}
 .wholesale-search-row{grid-template-columns:1fr}
 .wholesale-search-row span{padding-bottom:0}
 .wholesale-price-row{grid-template-columns:minmax(0,1fr) minmax(118px,.65fr);gap:8px}
 .wholesale-color-check-wrap{grid-column:1/-1}
 .wholesale-cost-box{grid-column:1}
 .wholesale-sale-field{grid-column:2}
 .wholesale-profit-box{grid-column:1}
 .wholesale-row-reset{grid-column:2;justify-self:end}
 .wholesale-share-actions{grid-template-columns:1fr}
}


/* ========================================================================
   V3.5.0 — Esnaf listesi premium tut-sürükle sıralama
   ===================================================================== */
.wholesale-products-section .section-heading{
  align-items:center;
}
.wholesale-order-status{
  min-width:112px;
  min-height:27px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  color:#8797aa;
  font-size:.64rem;
  font-weight:800;
  white-space:nowrap;
}
.wholesale-order-status.saving{color:#d6a06e}
.wholesale-order-status.saved{color:#65ce93}
.wholesale-order-status.error{color:#dd7b7b}

.wholesale-order-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:0!important;
}

/* Eski ↑ ↓ görünümü artık yok. Grip buton gibi görünmez. */
button.wholesale-drag-handle{
  width:48px!important;
  min-width:48px!important;
  height:40px!important;
  min-height:40px!important;
  display:grid!important;
  grid-template-columns:auto!important;
  place-items:center!important;
  align-content:center!important;
  gap:1px!important;

  padding:3px 6px!important;
  margin:0!important;

  border:1px solid rgba(115,137,164,.16)!important;
  border-radius:11px!important;

  background:rgba(112,135,162,.055)!important;
  background-image:none!important;
  box-shadow:none!important;

  color:#75869b!important;
  transform:none!important;

  cursor:grab!important;
  touch-action:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  -webkit-tap-highlight-color:transparent!important;
}
button.wholesale-drag-handle:hover,
button.wholesale-drag-handle:focus{
  border-color:rgba(128,153,183,.3)!important;
  background:rgba(119,143,172,.1)!important;
  color:#a7b6c7!important;
  box-shadow:none!important;
  transform:none!important;
}
button.wholesale-drag-handle:active{
  cursor:grabbing!important;
  transform:none!important;
}
.wholesale-drag-handle>span{
  font-size:1rem;
  font-weight:900;
  line-height:1;
  letter-spacing:.06em;
}
.wholesale-drag-handle>small{
  color:inherit!important;
  font-size:.5rem!important;
  font-weight:850!important;
  line-height:1!important;
}

.wholesale-group{
  position:relative;
  transition:
    transform .12s ease,
    border-color .12s ease,
    box-shadow .12s ease,
    opacity .12s ease;
}
.wholesale-group.wholesale-sorting-drag{
  z-index:30;
  border-color:rgba(255,139,57,.55)!important;
  box-shadow:
    0 20px 48px rgba(0,0,0,.4),
    0 0 0 2px rgba(255,133,41,.08)!important;
  background:#101924!important;
  opacity:.96!important;
  transform:scale(.994);
}
.wholesale-group.wholesale-sorting-drag .wholesale-drag-handle{
  cursor:grabbing!important;
  color:#ff9b54!important;
  border-color:rgba(255,145,70,.32)!important;
  background:rgba(255,128,32,.09)!important;
}
.wholesale-group.wholesale-sort-bump{
  border-color:rgba(94,137,190,.36)!important;
}
.wholesale-sorting-active .wholesale-group:not(.wholesale-sorting-drag){
  transition:transform .1s ease,border-color .1s ease;
}
body.wholesale-sort-dragging{
  overscroll-behavior:none;
}
body.wholesale-sort-dragging,
body.wholesale-sort-dragging *{
  cursor:grabbing!important;
}
body.wholesale-sort-dragging input,
body.wholesale-sort-dragging select{
  pointer-events:none!important;
}

/* V3.4.9'daki ok butonu class'ları varsa görünmesin. */
.wholesale-order-btn.move-up,
.wholesale-order-btn.move-down{
  display:none!important;
}

@media(max-width:620px){
  .wholesale-group-head{
    grid-template-columns:auto minmax(0,1fr) 46px!important;
    gap:8px!important;
  }
  button.wholesale-drag-handle{
    width:44px!important;
    min-width:44px!important;
    height:39px!important;
    min-height:39px!important;
    border-radius:10px!important;
  }
  .wholesale-order-status{
    min-width:0;
    justify-content:flex-start;
    margin-top:5px;
  }
  .wholesale-products-section .section-heading{
    display:block!important;
  }
}


/* ========================================================================
   V3.5.1 — Esnaf listesi görünüm temizleme
   ===================================================================== */
.wholesale-page .wholesale-main{max-width:1160px}
.wholesale-products-section .section-heading{
  display:flex!important;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  margin-bottom:10px;
}
.wholesale-products-section .section-heading p{
  max-width:760px;
  line-height:1.45;
}

#wholesale-groups{
  display:grid!important;
  gap:14px!important;
}

.wholesale-group{
  border:1px solid #243446!important;
  border-radius:20px!important;
  overflow:hidden!important;
  background:
    linear-gradient(180deg,rgba(17,28,40,.96),rgba(10,17,25,.98))!important;
  box-shadow:0 10px 28px rgba(0,0,0,.16);
}

.wholesale-group-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:14px 16px!important;
  background:linear-gradient(180deg,#111b28,#0e1823)!important;
  border-bottom:1px solid rgba(114,138,167,.12)!important;
}

.wholesale-group-head-left{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
  flex:1 1 auto;
}

.wholesale-master-check{
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:40px;
  min-width:40px;
  height:40px;
  border:1px solid #2d4157;
  border-radius:12px;
  background:#0b141f;
}
.wholesale-master-check input{
  width:18px!important;
  height:18px!important;
  margin:0!important;
}
.wholesale-master-ui{display:none!important}

.wholesale-group-title{
  min-width:0;
  display:grid!important;
  gap:6px!important;
}
.wholesale-group-title b{
  display:block;
  color:#eef4fb!important;
  font-size:1.02rem!important;
  line-height:1.25!important;
}
.wholesale-group-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.wholesale-stock-pill{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 10px;
  border-radius:999px;
  background:#172739;
  color:#cdd9e6;
  font-size:.74rem;
  font-weight:800;
  border:1px solid #26394d;
}
.wholesale-selected-note{
  color:#7f91a7;
  font-size:.67rem;
  font-weight:700;
}

.wholesale-order-actions{
  flex:0 0 auto;
}
button.wholesale-drag-handle{
  width:54px!important;
  min-width:54px!important;
  height:44px!important;
  min-height:44px!important;
  border:1px solid #31465c!important;
  border-radius:13px!important;
  background:#121d29!important;
  color:#97a8bb!important;
}
button.wholesale-drag-handle:hover,
button.wholesale-drag-handle:focus{
  border-color:#46617e!important;
  background:#172433!important;
  color:#d1dae4!important;
}
.wholesale-drag-handle>small{
  font-size:.53rem!important;
  letter-spacing:.01em;
}

.wholesale-color-list{
  display:grid!important;
  gap:0!important;
}

.wholesale-price-row{
  display:grid!important;
  gap:10px!important;
  padding:14px 16px!important;
  border-bottom:1px solid rgba(104,125,150,.10)!important;
  background:transparent!important;
  grid-template-columns:1fr!important;
}
.wholesale-price-row:last-child{
  border-bottom:0!important;
}
.wholesale-price-row.profit-negative{
  background:rgba(158,51,51,.06)!important;
}
.wholesale-row-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(160px,220px);
  gap:12px;
  align-items:center;
}
.wholesale-row-bottom{
  display:grid;
  grid-template-columns:minmax(210px,1.25fr) minmax(130px,.8fr) 42px;
  gap:10px;
  align-items:end;
}

.wholesale-color-check-wrap{
  margin:0!important;
  min-width:0;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px 12px;
  border:1px solid #24384b;
  border-radius:14px;
  background:#0b141f;
}
.wholesale-color-check-wrap input{
  flex:0 0 auto;
  width:18px!important;
  height:18px!important;
}
.wholesale-color-meta{
  min-width:0;
  display:grid;
  gap:3px;
}
.wholesale-color-name{
  display:block;
  color:#edf3fb!important;
  font-size:.91rem!important;
  font-weight:850!important;
  line-height:1.2!important;
}
.wholesale-color-meta small{
  color:#8295aa!important;
  font-size:.71rem!important;
  font-weight:700;
  white-space:normal!important;
}

.wholesale-cost-box,
.wholesale-profit-box{
  min-width:0;
  display:grid!important;
  gap:3px!important;
  padding:10px 12px;
  border:1px solid #24384b;
  border-radius:14px;
  background:#0b141f;
}
.wholesale-cost-box small,
.wholesale-profit-box small{
  color:#758aa0!important;
  font-size:.61rem!important;
  font-weight:800;
  text-transform:uppercase;
}
.wholesale-cost-box b,
.wholesale-profit-box b{
  color:#edf3fb!important;
  font-size:.9rem!important;
  line-height:1.15;
}
.wholesale-cost-box span,
.wholesale-profit-box span{
  color:#8ca0b5!important;
  font-size:.68rem!important;
  line-height:1.2;
}

.wholesale-sale-field{
  margin:0!important;
  display:grid!important;
  gap:5px!important;
}
.wholesale-sale-field > span{
  color:#8ca0b5!important;
  font-size:.66rem!important;
  font-weight:800;
}
.wholesale-sale-field input{
  width:100%;
  min-height:46px!important;
  margin:0!important;
  padding:11px 12px!important;
  border:1px solid #294158!important;
  border-radius:14px!important;
  background:#09121b!important;
  color:#fff!important;
  text-align:right;
  font-size:.95rem;
  font-weight:900;
}

.wholesale-row-reset{
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  border:1px solid #2b4055!important;
  border-radius:13px!important;
  background:#121d29!important;
  color:#b0becc!important;
  align-self:end;
}
.wholesale-row-reset:hover,
.wholesale-row-reset:focus{
  background:#172433!important;
  border-color:#43617d!important;
  color:#fff!important;
}

.wholesale-order-status{
  min-width:130px;
  justify-content:flex-end;
  align-self:center;
}

@media (max-width:900px){
  .wholesale-row-top{
    grid-template-columns:1fr;
  }
  .wholesale-row-bottom{
    grid-template-columns:1fr 1fr 42px;
  }
}

@media (max-width:620px){
  .wholesale-products-section .section-heading{
    display:block!important;
  }
  .wholesale-group-head{
    padding:12px 12px!important;
  }
  .wholesale-group-head-left{
    gap:10px;
    align-items:flex-start;
  }
  .wholesale-master-check{
    width:36px;
    min-width:36px;
    height:36px;
    border-radius:11px;
  }
  .wholesale-group-title b{
    font-size:.94rem!important;
  }
  .wholesale-group-meta{
    gap:6px;
  }
  button.wholesale-drag-handle{
    width:48px!important;
    min-width:48px!important;
    height:40px!important;
    min-height:40px!important;
  }
  .wholesale-price-row{
    padding:12px!important;
  }
  .wholesale-row-bottom{
    grid-template-columns:1fr;
  }
  .wholesale-row-reset{
    justify-self:end;
  }
  .wholesale-order-status{
    margin-top:8px;
    justify-content:flex-start;
  }
}


/* ========================================================================
   V3.5.3 — Admin System Settings
   ===================================================================== */
.admin-system-mini-stats{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.admin-system-mini-stats article{
  min-width:0;
}
.admin-system-mini-stats strong{
  overflow-wrap:anywhere;
}
.admin-main-actions{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}

.admin-settings-page main{
  max-width:1040px;
}
.admin-settings-hero{
  padding:18px!important;
  border-color:#304155!important;
  background:linear-gradient(155deg,#121c29,#0c141e 76%)!important;
}
.admin-settings-hero h1{
  margin:4px 0 7px;
}
.admin-settings-hero p{
  margin:0;
  max-width:760px;
  color:#91a1b4;
  line-height:1.45;
}

.admin-settings-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin:0 0 13px;
}
.admin-settings-summary article{
  display:grid;
  gap:4px;
  min-width:0;
  padding:13px;
  border:1px solid #2b3b4f;
  border-radius:14px;
  background:#101822;
}
.admin-settings-summary small{
  color:#8191a4;
  font-size:.61rem;
}
.admin-settings-summary strong{
  color:#edf3f9;
  font-size:.91rem;
  overflow-wrap:anywhere;
}
.admin-settings-summary span{
  color:#7f90a3;
  font-size:.61rem;
}

.admin-settings-card{
  padding:17px!important;
}
.admin-settings-card .section-heading{
  margin-bottom:12px;
}
.admin-settings-card .section-heading h2{
  margin-bottom:4px;
}
.admin-settings-card .section-heading p{
  margin:0;
  line-height:1.4;
}

.admin-settings-form{
  display:grid;
  gap:10px;
}
.admin-settings-form.two-col{
  grid-template-columns:1fr 1fr;
}
.admin-settings-form.three-col{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.admin-settings-form > label{
  min-width:0;
  margin:0;
  padding:11px;
  border:1px solid #293a4d;
  border-radius:13px;
  background:#0c151e;
  color:#dde6ef;
  font-size:.75rem;
}
.admin-settings-form label > small{
  display:block;
  margin-top:5px;
  color:#8192a6;
  font-size:.61rem;
  line-height:1.35;
}
.admin-settings-form input,
.admin-settings-form select{
  min-height:45px;
}
.admin-settings-form > button{
  grid-column:1/-1;
  min-height:49px!important;
  margin-top:2px;
}

.admin-setting-with-unit{
  display:flex;
  align-items:center;
  overflow:hidden;
  margin-top:6px;
  border:1px solid #3a4554;
  border-radius:12px;
  background:#0e1319;
}
.admin-setting-with-unit input{
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.admin-setting-with-unit span{
  flex:0 0 auto;
  padding:0 11px;
  color:#9cacbd;
  font-size:.7rem;
  font-weight:850;
}

.admin-settings-info{
  border-color:rgba(84,150,229,.18)!important;
  background:rgba(50,104,171,.055)!important;
}
.admin-settings-info b{
  display:block;
  margin-bottom:4px;
}
.admin-settings-info p{
  margin:0;
  color:#8999ac;
  font-size:.72rem;
  line-height:1.45;
}

@media(max-width:800px){
  .admin-system-mini-stats{
    grid-template-columns:1fr 1fr!important;
  }
  .admin-main-actions{
    grid-template-columns:1fr!important;
  }
  .admin-settings-summary{
    grid-template-columns:1fr 1fr;
  }
  .admin-settings-form.three-col{
    grid-template-columns:1fr;
  }
}

@media(max-width:620px){
  .admin-settings-summary{
    grid-template-columns:1fr 1fr;
  }
  .admin-settings-form.two-col{
    grid-template-columns:1fr;
  }
}
