/* KAYA OZALIT - GLOBAL SITE FRAME v0.2.9 TEST */
html{background:#eef1f5}
body.kaya-framed-page,body.order-portal-body{min-height:100vh;margin:0;display:flex;flex-direction:column;background:#eef1f5;color:#20242a;font-family:Arial,Helvetica,sans-serif}
.kaya-global-header{flex:0 0 auto}.kaya-global-footer{flex:0 0 auto}.kaya-global-stage{flex:1 1 auto;min-height:0;position:relative}

/* Dış iskelet sabitleri: sayfa içindeki eski inline CSS bunları ezemez. */
body.kaya-framed-page .portal-header,
body.order-portal-body .portal-header{display:block!important;height:74px!important;background:#fff!important;color:#111d2b!important;border:0!important;border-bottom:3px solid #f05a0a!important;box-shadow:0 2px 10px rgba(17,29,43,.04)!important}
body.kaya-framed-page .portal-topbar,
body.order-portal-body .portal-topbar{width:min(1460px,calc(100% - 40px))!important;min-height:71px!important;height:71px!important;padding:0!important}
body.kaya-framed-page .portal-footer,
body.order-portal-body .portal-footer{display:block!important;background:#111d2b!important;color:#d8dee5!important;border:0!important;font-size:10px!important}
body.kaya-framed-page .portal-footer-inner,
body.order-portal-body .portal-footer-inner{width:min(1460px,calc(100% - 40px))!important;min-height:45px!important;height:auto!important;padding:0!important;display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;gap:20px!important}


/* Sol menüsüz genel sayfalar da aynı beyaz dış panel ailesinde. */
body.portal-public-page>main{flex:1 1 auto;min-height:0}
body.portal-public-page>main>.container.page,body.portal-public-page>main>.page{width:min(1180px,calc(100% - 40px))!important;max-width:1180px!important;margin:18px auto!important;padding:22px 24px!important;background:#fff!important;border:1px solid #e5e8eb!important;border-radius:15px!important;box-shadow:0 8px 30px rgba(31,41,55,.045)!important;box-sizing:border-box!important}

/* Admin: global header/footer arasında mevcut yönetim iç kabuğu çalışır. */
body.admin-framed-page{overflow:hidden}
body.admin-framed-page .kaya-global-stage{overflow:hidden}
body.admin-framed-page .kadmin-shell{height:100%!important;min-height:0!important;box-sizing:border-box!important}
body.admin-framed-page .kadmin-panel{height:100%!important;min-height:0!important}
body.admin-legacy-page{height:auto!important;overflow:hidden!important;padding:0!important;display:flex!important;grid-template-columns:none!important;gap:0!important}
body.admin-legacy-page .admin-legacy-shell{height:100%;min-height:0;box-sizing:border-box;padding:18px 34px 18px 0;display:grid;grid-template-columns:268px minmax(0,1fr);gap:24px}
body.admin-legacy-page .admin-page{height:100%!important;min-height:0!important}
body.admin-login-framed{overflow:hidden!important}
body.admin-login-framed .kaya-global-stage{display:grid;place-items:center;overflow:auto;padding:18px;box-sizing:border-box}
body.admin-login-framed .login-card{margin:0!important}
@media(max-width:1440px) and (min-width:901px){
 body.admin-legacy-page .admin-legacy-shell{padding:12px 20px 12px 0;grid-template-columns:235px minmax(0,1fr);gap:18px}
 body.portal-public-page>main>.container.page,body.portal-public-page>main>.page{width:min(1120px,calc(100% - 24px))!important;margin:12px auto!important;padding:18px 20px!important}
}
@media(max-width:900px){

 body.kaya-framed-page .portal-header,body.order-portal-body .portal-header{height:auto!important}
 body.kaya-framed-page .portal-topbar,body.order-portal-body .portal-topbar{width:calc(100% - 24px)!important;height:auto!important;min-height:66px!important;padding:8px 0!important}
 body.kaya-framed-page .portal-footer-inner,body.order-portal-body .portal-footer-inner{width:calc(100% - 24px)!important;min-height:0!important;grid-template-columns:1fr!important;padding:10px 0!important;gap:6px!important;text-align:center!important}
 body.admin-framed-page,body.admin-login-framed,body.admin-legacy-page{overflow:auto!important}
 body.admin-framed-page .kaya-global-stage,body.admin-login-framed .kaya-global-stage,body.admin-legacy-page .kaya-global-stage{overflow:visible!important}
 body.admin-legacy-page .admin-legacy-shell{height:auto;display:block;padding:12px}
 body.portal-public-page>main>.container.page,body.portal-public-page>main>.page{width:calc(100% - 24px)!important;margin:12px auto!important;padding:16px!important}
}

/* v0.2.10: Admin frame viewport sabitleme.
 * Global footer her admin ekraninda gorunur kalir; scroll yalniz orta panelde olur.
 */
@media(min-width:901px){
  body.admin-framed-page,
  body.admin-login-framed,
  body.admin-legacy-page{
    height:100vh!important;
    min-height:100vh!important;
  }
  body.admin-framed-page .kaya-global-stage,
  body.admin-legacy-page .kaya-global-stage{
    flex:1 1 0!important;
    min-height:0!important;
    height:auto!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
  }
  body.admin-framed-page .kadmin-shell,
  body.admin-legacy-page .admin-legacy-shell{
    flex:1 1 auto!important;
    height:auto!important;
    min-height:0!important;
  }
  body.admin-framed-page .kadmin-work,
  body.admin-legacy-page .admin-page{
    height:100%!important;
    min-height:0!important;
  }
  body.admin-framed-page .kadmin-panel{
    height:100%!important;
    min-height:0!important;
  }
  body.admin-framed-page .kadmin-content{
    min-height:0!important;
  }
}
