/* ============================================================
   Mobil kabuk — TELEFON için ayrı, app-benzeri tasarım.
   Yalnız body.ui-mobile aktifken devreye girer. Masaüstü chrome gizlenir;
   sabit üst başlık + alt sekme çubuğu + FAB. #page tam ekran kaydırılır.
   ============================================================ */
:root { --m-head-h: 54px; --m-tab-h: 62px; }

/* Masaüstü kabuğunu gizle */
body.ui-mobile .app-sidebar,
body.ui-mobile .app-topbar,
body.ui-mobile .app-overlay { display: none !important; }
body.ui-mobile .app-shell { display: block; }

/* İçerik alanı: başlık ile sekme çubuğu arası, tam ekran kaydırılır */
body.ui-mobile { overflow-x: hidden; }
body.ui-mobile #page {
  position: fixed; left: 0; right: 0;
  top: calc(var(--m-head-h) + env(safe-area-inset-top, 0px));
  bottom: calc(var(--m-tab-h) + env(safe-area-inset-bottom, 0px));
  margin: 0; width: auto; max-width: 100vw;
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding: 12px 12px 24px; background: var(--surface-alt, #f4f5f7);
}
/* Sayfa YATAY taşmasın: üst-seviye çocuklar genişliği aşmaz; geniş tablolar
   yalnız KENDİ kapsayıcısında (.table-wrap) yatay kayar, sayfa kaymaz. */
body.ui-mobile #page > * { max-width: 100%; box-sizing: border-box; }
body.ui-mobile #page img,
body.ui-mobile #page table { max-width: 100%; }
body.ui-mobile #page .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Mobil chrome yalnız mobil modda görünür */
.m-shell { display: none; }
body.ui-mobile .m-shell { display: block; }

/* — Üst başlık — */
.m-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: calc(var(--m-head-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 8px 0;
  display: flex; align-items: center; gap: 6px;
  background: var(--brand, #C85A1E); color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.m-head .m-back { width: 38px; height: 38px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: none; color: #fff; border-radius: 50%; }
.m-head .m-back svg { width: 24px; height: 24px; }
.m-title { flex: 1; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-head-act { width: 34px; height: 34px; flex-shrink: 0; border: 2px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(255,255,255,.18) center/cover no-repeat; color: #fff; font-weight: 700; font-size: 15px; }
.m-head-act.has-img { border-color: rgba(255,255,255,.85); }

/* — Alt sekme çubuğu — */
.m-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  height: calc(var(--m-tab-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; align-items: stretch;
  background: var(--surface); border-top: 1px solid var(--border, #e6e8ec);
  box-shadow: 0 -2px 10px rgba(0,0,0,.05);
}
.m-tab, .m-tab-gap { flex: 1; }
.m-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: transparent; border: none; color: var(--text-muted, #8a93a0); font-size: 11px; font-weight: 600; cursor: pointer;
}
.m-tab-ico { width: 23px; height: 23px; }
.m-tab--active { color: var(--brand, #C85A1E); }

/* — FAB (ortada, çubuğun üstüne taşar) — */
.m-fab {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 61;
  bottom: calc(var(--m-tab-h) - 22px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; border: 4px solid var(--surface-alt, #f4f5f7);
  background: var(--brand, #C85A1E); color: #fff; box-shadow: 0 4px 14px rgba(200,90,30,.45);
  display: flex; align-items: center; justify-content: center;
}
.m-fab-ico { width: 28px; height: 28px; transition: transform .25s; }
body.ui-mobile .m-fab { transition: transform .25s; }
body.fab-open .m-fab { transform: translateX(-50%) rotate(135deg); }

/* — FAB speed-dial (ekle menüsü) — */
.m-fab-scrim { position: fixed; inset: 0; z-index: 59; background: rgba(0,0,0,0); transition: background .22s; }
body.fab-open .m-fab-scrim { background: rgba(0,0,0,.45); }
.m-fab-menu {
  position: fixed; left: 0; right: 0; z-index: 62;
  bottom: calc(var(--m-tab-h) + 52px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column-reverse; align-items: center; gap: 14px;
}
.m-fab-item {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%;
  transform: translateY(18px) scale(.6); opacity: 0; pointer-events: none;
  transition: transform .24s cubic-bezier(.2,.8,.3,1.25), opacity .18s;
}
body.fab-open .m-fab-item { transform: none; opacity: 1; pointer-events: auto; }
.m-fab-label {
  position: absolute; right: calc(50% + 34px); white-space: nowrap;
  background: var(--surface); color: var(--navy, #2E2B5F); font-weight: 700; font-size: 13px;
  padding: 7px 12px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.m-fab-mini { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.28); }
.m-fab-mini-ico { width: 22px; height: 22px; }
.m-fab-mini--brand { background: #C85A1E; } .m-fab-mini--blue { background: #2471A3; }
.m-fab-mini--green { background: #1E8449; } .m-fab-mini--red { background: #C0392B; }
.m-fab-mini--navy { background: #2E2B5F; } .m-fab-mini--orange { background: #E0702E; }

/* — Ana ekran — */
.m-home { display: flex; flex-direction: column; gap: 14px; }
.m-home-hi { font-size: 20px; color: var(--navy, #2E2B5F); padding: 2px 2px 0; }
.m-home-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-stat { min-width: 0; background: var(--surface); border: 1px solid var(--border, #e6e8ec); border-radius: 14px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.m-stat.skeleton { height: 76px; background: linear-gradient(90deg,#eee,#f6f6f6,#eee); border: none; }
.m-stat-value { overflow: hidden; text-overflow: ellipsis; }
.m-stat-label { font-size: 12px; color: var(--text-muted, #8a93a0); }
.m-stat-value { font-size: 19px; font-weight: 800; color: var(--navy, #2E2B5F); margin-top: 4px; white-space: nowrap; }
.m-stat-sub { font-size: 11px; color: var(--text-muted, #8a93a0); margin-top: 2px; }

.m-home-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 96px; padding: 16px; border-radius: 18px; border: none; cursor: pointer; color: #fff; text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.10);
}
.m-tile-ico { width: 30px; height: 30px; }
.m-tile-label { font-size: 15px; font-weight: 700; line-height: 1.2; }
.m-tile--brand { background: linear-gradient(135deg,#E0702E,#C85A1E); }
.m-tile--blue  { background: linear-gradient(135deg,#3A8DDE,#2471A3); }
.m-tile--green { background: linear-gradient(135deg,#2ECC71,#1E8449); }
.m-tile--navy  { background: linear-gradient(135deg,#403C7A,#2E2B5F); }

.m-home-sec { font-size: 13px; font-weight: 700; color: var(--text-muted, #8a93a0); padding: 4px 2px 0; }
.m-home-tasks { display: flex; flex-direction: column; gap: 6px; }
.m-task { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border, #e6e8ec); border-radius: 12px; padding: 12px; font-size: 14px; color: var(--text, #2b2f36); text-align: left; }
.m-task-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand, #C85A1E); flex-shrink: 0; }
.m-empty { color: var(--text-muted, #8a93a0); font-size: 13px; padding: 10px 2px; }

/* — Menü sheet (alt-yukarı) — */
.m-sheet { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .2s; }
.m-sheet.m-sheet--open { opacity: 1; }
.m-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%;
  background: var(--surface-alt, #f4f5f7); border-radius: 20px 20px 0 0; padding: 8px 14px calc(20px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; transform: translateY(100%); transition: transform .22s ease;
}
.m-sheet--open .m-sheet-panel { transform: translateY(0); }
.m-sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 6px auto 10px; }
.m-sheet-head { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 800; color: var(--navy, #2E2B5F); margin-bottom: 8px; }
.m-sheet-close { width: 34px; height: 34px; border: none; background: var(--surface); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); }
.m-sheet-close svg { width: 20px; height: 20px; }
.m-sheet-sec { font-size: 13px; font-weight: 800; color: var(--brand, #C85A1E); background: none; margin: 18px 2px 9px; padding: 0 0 7px; border-bottom: 2px solid var(--brand, #C85A1E); text-transform: uppercase; letter-spacing: .04em; }
.m-sheet-sec:first-child { margin-top: 4px; }
.m-sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-sheet-item { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border, #e6e8ec); border-radius: 12px; padding: 13px 12px; font-size: 14px; font-weight: 600; color: var(--text, #2b2f36); text-decoration: none; cursor: pointer; }
.m-sheet-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--brand, #C85A1E); }

/* — Sheet içi liste + arama (genel) — */
.m-list { display: flex; flex-direction: column; gap: 6px; }
.m-list-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border, #e6e8ec); border-radius: 12px; padding: 13px 14px; cursor: pointer; }
.m-list-label { font-size: 15px; font-weight: 600; color: var(--text, #2b2f36); }
.m-list-sub { font-size: 12px; color: var(--text-muted, #8a93a0); }
.m-ss-input { width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 15px; border: 1px solid var(--border, #e6e8ec); border-radius: 12px; margin-bottom: 10px; }
.m-ss-list { display: flex; flex-direction: column; gap: 6px; max-height: 56vh; overflow-y: auto; }

/* ── Hızlı Satış ekranı (m_satis) ── */
.ms { display: flex; flex-direction: column; gap: 10px; padding-bottom: 84px; }
.ms-cust-pick, .ms-cust-on { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--surface); border: 1px solid var(--border, #e6e8ec); border-radius: 14px; padding: 12px 14px; text-align: left; }
.ms-cust-pick { color: var(--text, #2b2f36); font-size: 14px; cursor: pointer; }
.ms-cust-ico { width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(46,43,95,.08); color: var(--navy, #2E2B5F); border-radius: 50%; }
.ms-cust-ico svg { width: 19px; height: 19px; }
.ms-cust-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ms-cust-name { font-weight: 700; color: var(--navy, #2E2B5F); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-cust-sub, .ms-cust-disc { font-size: 12px; color: var(--text-muted, #8a93a0); }
.ms-cust-disc { color: var(--green, #1E8449); font-weight: 600; }
.ms-cust-clear { width: 32px; height: 32px; border: none; background: transparent; color: var(--text-muted); border-radius: 50%; }
.ms-cust-clear svg { width: 18px; height: 18px; }

.ms-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border, #e6e8ec); border-radius: 14px; padding: 4px 10px; }
.ms-search-ico { color: var(--text-muted); display: flex; } .ms-search-ico svg { width: 20px; height: 20px; }
.ms-q { flex: 1; border: none; outline: none; font-size: 16px; padding: 11px 0; background: transparent; }
.ms-q-clear { width: 30px; height: 30px; border: none; background: transparent; color: var(--text-muted); } .ms-q-clear svg { width: 18px; height: 18px; }
.ms-scan { flex-shrink: 0; width: 38px; height: 38px; border: none; border-radius: 10px; background: var(--brand, #C85A1E); color: #fff; display: flex; align-items: center; justify-content: center; } .ms-scan svg { width: 21px; height: 21px; }
.ms-scan:active { transform: scale(.94); }

.ms-results { display: flex; flex-direction: column; gap: 6px; }
.ms-res { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: var(--surface); border: 1px solid var(--border, #e6e8ec); border-radius: 12px; padding: 11px 13px; text-align: left; cursor: pointer; }
.ms-res-info { display: flex; flex-direction: column; min-width: 0; }
.ms-res-name { font-weight: 600; color: var(--text, #2b2f36); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-res-sub { font-size: 12px; color: var(--text-muted, #8a93a0); }
.ms-res-price { font-weight: 700; color: var(--brand, #C85A1E); white-space: nowrap; }

.ms-cart-head { font-size: 13px; font-weight: 700; color: var(--text-muted, #8a93a0); padding: 4px 2px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ms-kt-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text, #2b2f36); cursor: pointer; }
.ms-kt-toggle input { width: 16px; height: 16px; accent-color: var(--brand, #C85A1E); }
.ms-kamp-badge { display: inline-block; margin-top: 3px; font-size: 10px; font-weight: 800; color: #B7791F; background: rgba(243,156,18,.15); padding: 2px 7px; border-radius: var(--radius-full); width: max-content; }
.ms-line--kamp { border-color: rgba(243,156,18,.5); }
.ms-line-teslim { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; padding-top: 7px; margin-top: 5px; border-top: 1px dashed var(--border, #e6e8ec); font-size: 12px; font-weight: 600; color: var(--text-muted, #8a93a0); }
.ms-qbtn--sm { width: 26px; height: 26px; } .ms-qbtn--sm svg { width: 14px; height: 14px; }
.ms-line-teslim-sub { margin-left: 4px; font-weight: 500; }
.ms-cart-empty { text-align: center; color: var(--text-muted, #8a93a0); padding: 30px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ms-cart-empty svg { width: 40px; height: 40px; opacity: .4; } .ms-cart-empty p { font-weight: 700; margin: 4px 0 0; } .ms-cart-empty span { font-size: 13px; }
.ms-line { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border, #e6e8ec); border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; }
.ms-line-main { min-width: 0; display: flex; flex-direction: column; }
.ms-line-name { font-weight: 600; font-size: 14px; color: var(--text, #2b2f36); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-line-price { font-size: 12px; color: var(--text-muted, #8a93a0); }
.ms-line-qty { display: flex; align-items: center; gap: 6px; }
.ms-qbtn { width: 30px; height: 30px; border: 1px solid var(--border, #e6e8ec); background: var(--surface); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--brand, #C85A1E); }
.ms-qbtn svg { width: 16px; height: 16px; }
.ms-qval { min-width: 22px; text-align: center; font-weight: 700; }
.ms-line-tot { font-weight: 700; color: var(--navy, #2E2B5F); white-space: nowrap; font-size: 13px; }
.ms-line-del { width: 30px; height: 30px; border: none; background: transparent; color: var(--text-muted); } .ms-line-del svg { width: 16px; height: 16px; }

.ms-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--m-tab-h) + env(safe-area-inset-bottom, 0px)); z-index: 58; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--border, #e6e8ec); box-shadow: 0 -2px 10px rgba(0,0,0,.06); }
.ms-bar:empty { display: none; }
.ms-bar-tot { flex: 1; display: flex; flex-direction: column; } .ms-bar-tot span { font-size: 11px; color: var(--text-muted); } .ms-bar-tot strong { font-size: 19px; color: var(--navy, #2E2B5F); }
.ms-pay { background: var(--brand, #C85A1E); color: #fff; border: none; border-radius: 12px; padding: 13px 22px; font-size: 15px; font-weight: 700; }

.ms-pay-sheet { display: flex; flex-direction: column; gap: 12px; }
.ms-pay-tot { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-muted); } .ms-pay-tot strong { font-size: 22px; color: var(--navy, #2E2B5F); }
.ms-pay-methods, .ms-pay-acc { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-pay-m, .ms-pay-a { padding: 11px 16px; border: 1.5px solid var(--border, #e6e8ec); background: var(--surface); border-radius: 12px; font-weight: 600; color: var(--text, #2b2f36); }
.ms-pay-m.on, .ms-pay-a.on { border-color: var(--brand, #C85A1E); background: rgba(200,90,30,.08); color: var(--brand, #C85A1E); }
.ms-pay-note { font-size: 13px; color: var(--text-muted, #8a93a0); }
.ms-pay-done { background: var(--brand, #C85A1E); color: #fff; border: none; border-radius: 14px; padding: 15px; font-size: 16px; font-weight: 800; margin-top: 4px; }
.ms-pay-modes { display: flex; gap: 6px; background: var(--surface-alt, #f4f5f7); padding: 4px; border-radius: 12px; }
.ms-pay-mode { flex: 1; padding: 9px; border: none; background: transparent; border-radius: 9px; font-weight: 700; color: var(--text-muted, #8a93a0); }
.ms-pay-mode.on { background: var(--surface); color: var(--brand, #C85A1E); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ms-pay-rows { display: flex; flex-direction: column; gap: 8px; }
.ms-pay-row { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 6px; align-items: center; }
.ms-pay-rsel { min-width: 0; padding: 9px 6px; border: 1.5px solid var(--border, #e6e8ec); border-radius: 10px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text, #2b2f36); }
.ms-pay-ramt { width: 84px; padding: 9px 8px; border: 1.5px solid var(--border, #e6e8ec); border-radius: 10px; text-align: right; font-weight: 700; font-size: 13px; box-sizing: border-box; }
.ms-pay-rdel { width: 32px; height: 32px; border: none; background: transparent; color: var(--text-muted); } .ms-pay-rdel svg { width: 16px; height: 16px; }
.ms-pay-addrow { padding: 11px; border: 1.5px dashed var(--brand, #C85A1E); background: rgba(200,90,30,.05); color: var(--brand, #C85A1E); border-radius: 12px; font-weight: 700; }
.ms-pay-remain { font-size: 14px; font-weight: 700; color: var(--text, #2b2f36); padding: 4px 2px; } .ms-pay-remain strong { color: var(--green, #1E8449); } .ms-pay-remain.over strong { color: var(--red, #C0392B); }

/* ── Ortak mobil ekran (Ürün/Cari/Görev) ── */
.mx { display: flex; flex-direction: column; gap: 10px; }
.mx-list { display: flex; flex-direction: column; gap: 8px; }
.mx-card { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border, #e6e8ec); border-radius: 14px; padding: 10px 12px; cursor: pointer; }
.mx-thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--surface-alt, #f4f5f7); }
.mx-thumb--ph { display: flex; align-items: center; justify-content: center; color: var(--text-muted); } .mx-thumb--ph svg { width: 24px; height: 24px; }
.mx-card-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mx-card-name { font-weight: 600; color: var(--text, #2b2f36); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-card-sub { font-size: 12px; color: var(--text-muted, #8a93a0); }
.mx-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.mx-card-price { font-weight: 700; color: var(--brand, #C85A1E); white-space: nowrap; }
.mx-chev { color: var(--text-muted); flex-shrink: 0; } .mx-chev svg { width: 20px; height: 20px; }
.mx-stk { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: var(--radius-full); white-space: nowrap; }
.mx-stk--green { background: rgba(46,204,113,.15); color: #1E8449; } .mx-stk--yellow { background: rgba(243,156,18,.15); color: #B7791F; } .mx-stk--red { background: rgba(231,76,60,.13); color: #C0392B; }

.mx-detail { display: flex; flex-direction: column; gap: 12px; }
.mx-det-top { display: flex; gap: 12px; align-items: center; }
.mx-det-img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--surface-alt); flex-shrink: 0; }
.mx-det-img--ph { display: flex; align-items: center; justify-content: center; color: var(--text-muted); } .mx-det-img--ph svg { width: 34px; height: 34px; }
.mx-det-h { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .mx-det-name { font-weight: 700; font-size: 16px; color: var(--navy, #2E2B5F); } .mx-det-code { font-size: 12px; color: var(--text-muted); }
.mx-det-rows { display: flex; flex-direction: column; gap: 1px; background: var(--surface-alt, #f4f5f7); border-radius: 12px; overflow: hidden; }
.mx-det-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--surface); font-size: 14px; }
.mx-det-vlist { display: flex; flex-direction: column; gap: 6px; }
.mx-vrow { display: flex; align-items: center; gap: 10px; background: var(--surface-alt, #f4f5f7); border-radius: 10px; padding: 10px 12px; }
.mx-vopt { flex: 1; font-weight: 600; min-width: 0; } .mx-vprice { font-weight: 700; color: var(--brand, #C85A1E); }
.mx-det-sell { background: var(--brand, #C85A1E); color: #fff; border: none; border-radius: 14px; padding: 14px; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; } .mx-det-sell svg { width: 20px; height: 20px; }

.mc-seg { display: flex; gap: 6px; background: var(--surface-alt, #f4f5f7); padding: 4px; border-radius: 12px; }
.mc-seg-b { flex: 1; padding: 9px; border: none; background: transparent; border-radius: 9px; font-weight: 600; color: var(--text-muted, #8a93a0); font-size: 13px; }
.mc-seg-b.on { background: var(--surface); color: var(--brand, #C85A1E); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.mc-detail { display: flex; flex-direction: column; gap: 14px; }
.mc-bal { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; background: var(--surface-alt, #f4f5f7); border-radius: 14px; }
.mc-bal-lbl { font-size: 13px; color: var(--text-muted, #8a93a0); }
.mc-bal-amt { font-size: 26px; font-weight: 800; } .mc-bal-amt--up { color: var(--green, #1E8449); } .mc-bal-amt--down { color: var(--red, #C0392B); } .mc-bal-amt--flat { color: var(--navy, #2E2B5F); }
.mc-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mc-act { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 14px; background: var(--surface); border: 1px solid var(--border, #e6e8ec); border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--text, #2b2f36); text-decoration: none; cursor: pointer; }
.mc-act svg { width: 22px; height: 22px; color: var(--navy, #2E2B5F); }
.mc-act--p { grid-column: span 2; background: var(--brand, #C85A1E); color: #fff; border: none; } .mc-act--p svg { color: #fff; }

.mg-task { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--border, #e6e8ec); border-radius: 12px; padding: 12px; }
.mg-task.done { opacity: .55; } .mg-task.done .mg-title { text-decoration: line-through; }
.mg-check { width: 28px; height: 28px; flex-shrink: 0; border: 2px solid var(--border, #ccd); background: var(--surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.mg-check.on { background: var(--green, #1E8449); border-color: var(--green, #1E8449); } .mg-check svg { width: 16px; height: 16px; }
.mg-info { flex: 1; display: flex; flex-direction: column; min-width: 0; } .mg-title { font-weight: 600; color: var(--text, #2b2f36); } .mg-sub { font-size: 12px; color: var(--text-muted, #8a93a0); }
.mg-prio { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--red, #C0392B); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mx-add { margin-top: 6px; background: var(--brand, #C85A1E); color: #fff; border: none; border-radius: 14px; padding: 14px; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; } .mx-add svg { width: 20px; height: 20px; }
.mg-add-sheet { display: flex; flex-direction: column; gap: 12px; }

/* — Mobil alış: düzenlenebilir maliyet — */
.ms-line-price--edit { background: none; border: none; padding: 0; font: inherit; color: var(--text-muted, #8a93a0); cursor: pointer; text-align: left; }
.ms-cost-in { width: 100%; font-size: 22px; font-weight: 700; text-align: center; padding: 14px; border: 1px solid var(--border, #e6e8ec); border-radius: 12px; box-sizing: border-box; }

/* — Telefonda masaüstü moduna dönüldüğünde geri-dön pili — */
.m-return {
  position: fixed; right: 14px; bottom: 16px; z-index: 90;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 16px; border: none; border-radius: 24px;
  background: var(--brand, #C85A1E); color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(200,90,30,.45);
}
.m-return svg { width: 18px; height: 18px; }
