/*
 * Isparta Bilgisayar StockOS v1.5.05
 * Kurumsal UI Ritmi — referans: koyu petrol kart + beyaz bilgi yuzeyi.
 * Is mantigi, veri, URL ve komponent fonksiyonlarini degistirmez.
 */
:root{
  --ib-navy:#041F40;
  --ib-navy-2:#082E54;
  --ib-teal:#055970;
  --ib-teal-2:#0A7289;
  --ib-surface:#FFFFFF;
  --ib-canvas:#F5F7F8;
  --ib-soft:#EEF4F6;
  --ib-border:#CAD3DA;
  --ib-text:#182433;
  --ib-muted:#5B6A78;
  --ib-success:#16835D;
  --ib-warning:#B7791F;
  --ib-danger:#B42318;
  --ib-radius-sm:10px;
  --ib-radius-md:14px;
  --ib-radius-lg:18px;
  --ib-shadow:0 12px 32px rgba(4,31,64,.08);
}

/* Genel StockOS yuzeyleri: acik, ferah, net. */
body.mxso-standalone,
body.mxso-mgmt-body,
body.mxso-tech-body-v1430,
body.mxso-customer-portal-body-v1423{
  background:var(--ib-canvas)!important;
  color:var(--ib-text)!important;
}

/* Koyu yuzeylerde tek kurumsal dil. */
html body #mxsoMainSidebar.mxso-sidebar,
html body .mxso-tech-sidebar-v1432,
html body .mxso-ai-app-sidebar-v1476,
html body .mxso-field-sidebar,
html body .mxso-sidebar.is-dark,
html body .mxso-customer-sidebar-v1423{
  background:linear-gradient(180deg,var(--ib-navy) 0%,var(--ib-teal) 100%)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.12)!important;
}

html body #mxsoMainSidebar.mxso-sidebar :is(h1,h2,h3,h4,strong,b,p,span,small,label,a,button,.dashicons),
html body .mxso-tech-sidebar-v1432 :is(h1,h2,h3,h4,strong,b,p,span,small,label,a,button,.dashicons),
html body .mxso-ai-app-sidebar-v1476 :is(h1,h2,h3,h4,strong,b,p,span,small,label,a,button,.dashicons),
html body .mxso-customer-sidebar-v1423 :is(h1,h2,h3,h4,strong,b,p,span,small,label,a,button,.dashicons){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Sol menu: referans gorseldeki duzenli, net buton-kart ritmi. */
html body #mxsoMainSidebar.mxso-sidebar a.mxso-nav-link,
html body .mxso-tech-sidebar-nav-v1432 a,
html body .mxso-customer-sidebar-v1423 nav a{
  min-height:46px!important;
  border-radius:12px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  background:rgba(255,255,255,.075)!important;
  box-shadow:none!important;
  transition:background .16s ease,border-color .16s ease,transform .16s ease!important;
}
html body #mxsoMainSidebar.mxso-sidebar a.mxso-nav-link:is(:hover,:focus-visible,.active,.is-active,[aria-current="page"]),
html body .mxso-tech-sidebar-nav-v1432 a:is(:hover,:focus-visible,.is-active),
html body .mxso-customer-sidebar-v1423 nav a:is(:hover,:focus-visible,.is-active,[aria-current="page"]){
  background:rgba(255,255,255,.16)!important;
  border-color:rgba(255,255,255,.30)!important;
  transform:translateY(-1px)!important;
}
html body #mxsoMainSidebar.mxso-sidebar .mxso-nav-text strong,
html body .mxso-tech-sidebar-nav-v1432 b{
  font-size:14px!important;
  font-weight:600!important;
  line-height:1.25!important;
}
html body #mxsoMainSidebar.mxso-sidebar .mxso-nav-text small{
  font-size:12px!important;
  line-height:1.35!important;
  opacity:.82!important;
}

/* Yeni logo: beyaz bir marka plakasi ile koyu zeminde temiz gorunur. */
html body :is(.mxso-sidebar-brand,.mxso-tech-sidebar-brand-v1432,.mxso-customer-sidebar-brand-v1423,.mxso-ai-brand,.mxso-login-premium-brand) img{
  background:#fff!important;
  border-radius:12px!important;
  padding:7px!important;
  object-fit:contain!important;
  box-shadow:0 8px 24px rgba(4,31,64,.12)!important;
}
html body .mxso-tech-sidebar-brand-v1432{min-height:104px!important;}
html body .mxso-tech-sidebar-brand-v1432 img{width:130px!important;max-height:96px!important;filter:none!important;}
html body .mxso-tech-titlebar-v1432 img{width:94px!important;max-height:38px!important;background:#fff!important;border-radius:9px!important;padding:4px!important;}

/* Komuta merkezi / hizli erisim: beyaz kart + petrol ikon + lacivert baslik. */
html body :is(.mxso-command-card,.mxso-command-group-card,.mxso-command-popular-action,.mxso-command-status-card-v1147,
.mxso-dashboard-quick-card-v1145,.mxso-mgmt-quick-lite a,.mxso-mgmt-owner-grid a,.mxso-mgmt-indicator,
.mxso-mgmt-command-card,.mxso-mgmt-card,.mxso-mgmt-alert,.mxso-mgmt-action-step){
  background:var(--ib-surface)!important;
  border:1px solid #D8E2E8!important;
  border-radius:var(--ib-radius-md)!important;
  box-shadow:none!important;
  color:var(--ib-text)!important;
}
html body :is(.mxso-command-card,.mxso-command-group-card,.mxso-command-popular-action,.mxso-dashboard-quick-card-v1145,
.mxso-mgmt-quick-lite a,.mxso-mgmt-owner-grid a,.mxso-mgmt-card):is(:hover,:focus-within){
  border-color:#AFC3CD!important;
  box-shadow:var(--ib-shadow)!important;
}
html body :is(.mxso-command-card,.mxso-command-group-card,.mxso-command-popular-action,.mxso-dashboard-quick-card-v1145,
.mxso-mgmt-quick-lite a,.mxso-mgmt-owner-grid a,.mxso-mgmt-card) :is(h2,h3,strong,b){
  color:var(--ib-navy)!important;
  -webkit-text-fill-color:var(--ib-navy)!important;
}
html body :is(.mxso-command-card,.mxso-command-group-card,.mxso-command-popular-action,.mxso-dashboard-quick-card-v1145,
.mxso-mgmt-quick-lite a,.mxso-mgmt-owner-grid a,.mxso-mgmt-card) :is(p,small,span,em){
  color:var(--ib-muted)!important;
  -webkit-text-fill-color:var(--ib-muted)!important;
}

/* Referans gorseldeki petrol ikon plakasi. */
html body :is(.mxso-command-icon,.mxso-nav-icon,.mxso-dashboard-quick-card-v1145>.dashicons:first-child,
.mxso-mgmt-owner-grid a>.dashicons,.mxso-mgmt-quick-lite .dashicons){
  background:var(--ib-teal)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-radius:10px!important;
  border:0!important;
}

/* Komuta merkezi hero: koyu sadece vurgu bandinda; ana hizli erisim beyaz kalir. */
html body :is(.mxso-command-hero,.mxso-command-hero-card-v1147,.mxso-dashboard-hero-v1148,.mxso-dashboard-hero-v1588,.mxso-mgmt-hero){
  border-radius:var(--ib-radius-lg)!important;
  border:1px solid rgba(4,31,64,.08)!important;
  box-shadow:var(--ib-shadow)!important;
}
html body .mxso-mgmt-hero{
  background:linear-gradient(120deg,var(--ib-navy),var(--ib-teal))!important;
  color:#fff!important;
}
html body .mxso-mgmt-hero :is(h1,p,span,strong,a,button){color:#fff!important;-webkit-text-fill-color:#fff!important;}

/* Acik yuzey section basliklari. */
html body :is(.mxso-command-section-head,.mxso-mgmt-block-title,.mxso-section-title,.mxso-tech-section-head-v1432) :is(h1,h2,h3){
  color:var(--ib-navy)!important;
  -webkit-text-fill-color:var(--ib-navy)!important;
}

/* Buton anayasasi: petrol ana, lacivert ikincil, acik yardimci. */
html body :is(.mxso-btn-primary,.button-primary,[data-tone="primary"],.mxso-primary-action),
html body :is(.mxso-tech-body-v1430,.mxso-customer-portal-body-v1423,.mxso-mgmt-body) button[type="submit"]{
  background:var(--ib-teal)!important;
  border-color:var(--ib-teal)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html body :is(.mxso-btn-secondary,.mxso-secondary-action){
  background:var(--ib-navy)!important;
  border-color:var(--ib-navy)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html body :is(.mxso-btn-ghost,.mxso-btn-light,.mxso-tertiary-action){
  background:var(--ib-soft)!important;
  border:1px solid var(--ib-border)!important;
  color:var(--ib-navy)!important;
  -webkit-text-fill-color:var(--ib-navy)!important;
}

/* Formlar: net, daha kompakt ve tek ritim. */
html body :is(.mxso-standalone,.mxso-tech-body-v1430,.mxso-customer-portal-body-v1423,.mxso-mgmt-body) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  border:1px solid var(--ib-border)!important;
  border-radius:11px!important;
  background:#fff!important;
  color:var(--ib-text)!important;
  box-shadow:none!important;
}
html body :is(.mxso-standalone,.mxso-tech-body-v1430,.mxso-customer-portal-body-v1423,.mxso-mgmt-body) :is(input:not([type="checkbox"]):not([type="radio"]),select){
  min-height:42px!important;
}
html body :is(.mxso-standalone,.mxso-tech-body-v1430,.mxso-customer-portal-body-v1423,.mxso-mgmt-body) :is(input,select,textarea):focus{
  border-color:var(--ib-teal)!important;
  box-shadow:0 0 0 3px rgba(5,89,112,.10)!important;
  outline:0!important;
}

/* Musteri paneli: marka tekrari ve kart yogunlugu daha dengeli. */
html body.mxso-customer-portal-body-v1423 :is(.mxso-customer-hero-v1423,.mxso-customer-welcome-v1423,.mxso-customer-ai-quick-v1480){
  border-radius:var(--ib-radius-lg)!important;
  box-shadow:none!important;
}
html body.mxso-customer-portal-body-v1423 :is(.mxso-customer-kpi-grid-v1423 article,.mxso-customer-stat-v1423,[class*="customer-card"]){
  border-radius:var(--ib-radius-md)!important;
  border-color:#D8E2E8!important;
  box-shadow:none!important;
}
html body.mxso-customer-portal-body-v1423 :is(h1,h2,h3,.page-title,.section-title){
  color:var(--ib-navy)!important;
  -webkit-text-fill-color:var(--ib-navy)!important;
}

/* Teknik servis: koyu hero kurumsal, acik kartlar sade. */
html body .mxso-tech-hero-v1432{
  background:linear-gradient(120deg,var(--ib-navy) 0%,var(--ib-teal) 100%)!important;
  border-radius:var(--ib-radius-lg)!important;
  box-shadow:var(--ib-shadow)!important;
}
html body .mxso-tech-hero-grid-v1432{min-height:158px!important;padding:24px 26px!important;}
html body .mxso-tech-hero-copy-v1432 :is(h1,p,small,strong,span){color:#fff!important;-webkit-text-fill-color:#fff!important;}
html body :is(.mxso-tech-stats-v1431 article,.mxso-tech-card-v1432,.mxso-tech-admin-ticket-v1431,.mxso-tech-shortcuts-v1431){
  border-radius:var(--ib-radius-md)!important;
  border-color:#D8E2E8!important;
  box-shadow:none!important;
}

/* SSS / belge merkezi gibi masaustunde bos kalan alanlari genislet. */
html body.mxso-tech-body-v1430 .mxso-tech-workspace-v1432{
  width:100%!important;
  max-width:none!important;
}
html body.mxso-tech-body-v1430 :is(.mxso-tech-content-v1432,.mxso-tech-main-v1432,.mxso-tech-sections-v1432){
  width:100%!important;
  max-width:none!important;
}

/* A4 ekran araci: aksiyon hiyerarsisi. Baskinin mm/pt olculerine dokunmaz. */
html body :is(.mxso-document-toolbar,.mxso-a4-toolbar,.mxso-service-document-toolbar) :is(button,a):first-of-type{
  background:var(--ib-navy)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html body :is(.mxso-document-toolbar,.mxso-a4-toolbar,.mxso-service-document-toolbar) :is(button,a):not(:first-of-type){
  background:var(--ib-teal)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* MX Asistan: tum yuzeylerde ayni kurumsal launcher. */
html body :is(.mxso-customer-ai-launcher-v1480,.mxso-global-assistant-launcher,.mxso-mx-assistant-launcher,[data-mxso-assistant-launcher]){
  background:var(--ib-navy)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 10px 28px rgba(4,31,64,.20)!important;
}

/* Telefon/web gibi kurumsal degerler tasmasin. */
html body :is(.mxso-document,.mxso-a4-document,.mxso-service-document) :is(td,span,p,strong){overflow-wrap:anywhere;}

@media (max-width:1024px){
  html body .mxso-tech-hero-grid-v1432{grid-template-columns:1fr!important;gap:16px!important;}
  html body :is(.mxso-command-grid,.mxso-command-group-grid,.mxso-dashboard-quick-grid-v1145,.mxso-mgmt-owner-grid){gap:10px!important;}
}
@media (max-width:768px){
  html body #mxsoMainSidebar.mxso-sidebar a.mxso-nav-link,
  html body .mxso-tech-sidebar-nav-v1432 a{min-height:44px!important;}
  html body :is(.mxso-command-card,.mxso-command-group-card,.mxso-dashboard-quick-card-v1145,.mxso-mgmt-card){border-radius:12px!important;}
  html body .mxso-tech-hero-grid-v1432{padding:20px!important;min-height:0!important;}
}

/* Müşteri paneli sol menü — koyu kurumsal yüzey, rozet + ana etiket ayrımı. */
html body.mxso-customer-portal-body-v1423 .mxso-customer-leftmenu-v1426{
  background:linear-gradient(180deg,var(--ib-navy) 0%,var(--ib-teal) 100%)!important;
  border-radius:18px!important;
  color:#fff!important;
  box-shadow:var(--ib-shadow)!important;
}
html body.mxso-customer-portal-body-v1423 .mxso-customer-leftmenu-v1426 :is(small,em,strong,b,span,a){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html body.mxso-customer-portal-body-v1423 .mxso-left-profile-v1426 img{
  background:#fff!important;
  border-radius:12px!important;
  padding:7px!important;
  object-fit:contain!important;
  box-shadow:none!important;
}
html body.mxso-customer-portal-body-v1423 .mxso-left-nav-v1426{
  display:grid!important;
  gap:8px!important;
}
html body.mxso-customer-portal-body-v1423 .mxso-left-nav-v1426 a{
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  min-height:52px!important;
  padding:8px 12px!important;
  border-radius:12px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  background:rgba(255,255,255,.075)!important;
  text-decoration:none!important;
}
html body.mxso-customer-portal-body-v1423 .mxso-left-nav-v1426 a:is(:hover,:focus-visible,.is-active){
  background:rgba(255,255,255,.16)!important;
  border-color:rgba(255,255,255,.30)!important;
}
html body.mxso-customer-portal-body-v1423 .mxso-left-nav-v1426 a span{
  display:inline-flex!important;
  justify-content:center!important;
  align-items:center!important;
  min-height:30px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.15)!important;
  font-size:12px!important;
  font-weight:600!important;
  text-align:center!important;
}
html body.mxso-customer-portal-body-v1423 .mxso-left-nav-v1426 a b{
  font-size:14px!important;
  font-weight:600!important;
  line-height:1.25!important;
}

/* Yönetim ekranında referanstaki hızlı erişim kartlarını kompaktlaştır. */
html body .mxso-command-grid,
html body .mxso-command-group-grid,
html body .mxso-dashboard-quick-grid-v1145,
html body .mxso-mgmt-owner-grid,
html body .mxso-mgmt-quick-grid{
  gap:10px!important;
}
html body :is(.mxso-command-card,.mxso-command-group-card,.mxso-command-popular-action,.mxso-dashboard-quick-card-v1145,.mxso-mgmt-owner-grid a,.mxso-mgmt-quick-lite a){
  min-height:78px!important;
  padding:14px 16px!important;
}
html body :is(.mxso-command-card,.mxso-command-group-card,.mxso-command-popular-action,.mxso-dashboard-quick-card-v1145,.mxso-mgmt-owner-grid a,.mxso-mgmt-quick-lite a) strong{
  font-size:15px!important;
  font-weight:600!important;
  line-height:1.25!important;
}
html body :is(.mxso-command-card,.mxso-command-group-card,.mxso-command-popular-action,.mxso-dashboard-quick-card-v1145,.mxso-mgmt-owner-grid a,.mxso-mgmt-quick-lite a) :is(p,small,em,span){
  font-size:13px!important;
  line-height:1.4!important;
}

/* =============================================================
 * v1.5.05 — Görsel regresyon tamamlama / okunabilirlik ve yoğunluk
 * ============================================================= */

/* Müşteri paneli koyu hero: genel açık-yüzey başlık kuralı burada uygulanmaz. */
html body.mxso-customer-portal-body-v1423 .mxso-customer-hero-v1423{
  min-height:178px!important;
  padding:22px 28px!important;
  border-radius:18px!important;
  background:linear-gradient(118deg,var(--ib-navy) 0%,var(--ib-teal) 100%)!important;
}
html body.mxso-customer-portal-body-v1423 .mxso-customer-hero-v1423 :is(h1,h2,h3,p,small,strong),
html body.mxso-customer-portal-body-v1423 .mxso-customer-hero-v1423 .mxso-customer-brand-v1423 span{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html body.mxso-customer-portal-body-v1423 .mxso-customer-hero-v1423 p{
  color:rgba(255,255,255,.90)!important;
  -webkit-text-fill-color:rgba(255,255,255,.90)!important;
}
html body.mxso-customer-portal-body-v1423 .mxso-customer-hero-v1423 h1{
  font-size:clamp(24px,2vw,32px)!important;
  font-weight:600!important;
  line-height:1.22!important;
  margin:10px 0 7px!important;
}
html body.mxso-customer-portal-body-v1423 .mxso-customer-hero-v1423 nav a{
  min-height:42px!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
html body.mxso-customer-portal-body-v1423 .mxso-customer-brand-v1423 img{
  width:170px!important;
  max-height:68px!important;
  padding:4px!important;
  border-radius:11px!important;
}

/* Kırpılmış resmi logo, sidebar/marka plakalarında daha görünür kullanılabilsin. */
html body :is(.mxso-sidebar-brand,.mxso-tech-sidebar-brand-v1432,.mxso-customer-sidebar-brand-v1423,.mxso-ai-brand,.mxso-login-premium-brand) img{
  padding:4px!important;
}
html body .mxso-customer-sidebar-brand-v1423 img{
  width:min(100%,188px)!important;
  max-height:88px!important;
}
html body .mxso-tech-sidebar-brand-v1432 img{
  width:150px!important;
  max-height:92px!important;
}

/* Müşteri panelinde ana çalışma kartlarını gereksiz uzatma. */
html body.mxso-customer-portal-body-v1423 :is(.mxso-customer-kpi-grid-v1423 article,.mxso-customer-stat-v1423){
  min-height:0!important;
  padding:14px 16px!important;
}
html body.mxso-customer-portal-body-v1423 .mxso-customer-kpi-grid-v1423 strong{
  margin-top:5px!important;
  font-size:24px!important;
}

/* Teknik servis / müşteri paneli açık yüzeylerinde butonların işlevsel renk ayrımı. */
html body.mxso-tech-body-v1430 :is(.mxso-tech-shortcuts-v1431,.mxso-tech-card-v1432) a:not([class*="whatsapp"]),
html body.mxso-customer-portal-body-v1423 :is(.mxso-customer-resume-v1452,.mxso-customer-overview-v1428) a{
  box-shadow:none!important;
}

/* Global MX Asistan her yüzeyde aynı ölçü ve konum. */
html body :is(.mxso-customer-ai-launcher-v1480,.mxso-global-assistant-launcher,.mxso-mx-assistant-launcher,[data-mxso-assistant-launcher]){
  min-height:48px!important;
  padding:0 16px!important;
  border-radius:999px!important;
}

@media (max-width:768px){
  html body.mxso-customer-portal-body-v1423 .mxso-customer-hero-v1423{
    min-height:0!important;
    padding:18px!important;
    border-radius:15px!important;
  }
  html body.mxso-customer-portal-body-v1423 .mxso-customer-brand-v1423 img{
    width:142px!important;
    max-height:58px!important;
  }
}
