/* 小富富网络 · 后台布局修复 */
html,body{min-height:100%;}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei UI",sans-serif !important;
  background:#f3f0ff !important;
}
.lyear-layout-sidebar{
  width:240px !important;
  min-width:240px !important;
  background:#1e1b4b !important;
  position:fixed !important;
  top:0;bottom:0;left:0;z-index:30 !important;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.lyear-layout-sidebar-scroll{
  background:transparent !important;
  flex:1 1 auto;
  height:auto !important;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.sidebar-header,.lyear-layout-sidebar .nav{background:transparent !important;}
.lyear-layout-sidebar .nav-drawer > li > a{
  color:#e2e8f0 !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.lyear-layout-sidebar .nav-subnav{
  position:static !important;
  width:auto !important;
  left:auto !important;
  box-shadow:none !important;
  background:rgba(255,255,255,.06) !important;
  padding-left:12px !important;
  display:none;
}
.nav-item-has-subnav.open > .nav-subnav{display:block !important;}
.lyear-layout-sidebar .nav-subnav a{color:#cbd5e1 !important;white-space:normal;line-height:1.4;}

.lyear-layout-header{
  left:0 !important;
  right:0;
  z-index:20;
  padding-left:240px !important;
  padding-right:0 !important;
}
.lyear-layout-header .navbar{
  background:#fff !important;
  border:none !important;
  box-shadow:0 8px 24px rgba(30,27,75,.06);
}
.lyear-layout-content{
  width:100%;
  box-sizing:border-box;
  padding-top:88px !important;
  padding-right:20px !important;
  padding-bottom:28px !important;
  padding-left:240px !important;
  min-height:100vh;
}
.lyear-layout-sidebar-close .lyear-layout-header,
.lyear-layout-sidebar-close .lyear-layout-content{
  padding-left:0 !important;
}
.lyear-layout-content .container-fluid{
  padding-left:8px !important;
  padding-right:8px !important;
  max-width:100%;
  overflow-x:hidden;
}
.card{
  border:none !important;
  border-radius:18px !important;
  box-shadow:0 10px 28px rgba(30,27,75,.08) !important;
  overflow:visible !important;
}
.card-body{overflow-x:auto;}
.card-header{
  display:flex !important;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  overflow:visible !important;
}
.card-header > *{
  display:block !important;
  float:none !important;
  margin:0 !important;
}
.card-header h4,.card-header .h4{
  float:none !important;
  flex:1 1 auto;
  text-align:left !important;
  white-space:nowrap;
}
.card-actions{
  float:none !important;
  display:flex !important;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:0 !important;
  padding:0 !important;
  list-style:none;
}
.card-actions > li{
  display:block !important;
  padding:0 !important;
}
.card-actions > li > .btn-primary,
.btn-sm.btn-primary{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  padding:8px 16px !important;
  line-height:1.3 !important;
  height:auto !important;
  min-height:36px !important;
  white-space:nowrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
  width:auto !important;
  max-width:100%;
  font-size:14px !important;
  font-weight:700 !important;
  opacity:1 !important;
  color:#fff !important;
  background:linear-gradient(135deg,#7c3aed,#db2777) !important;
  border:none !important;
  border-radius:12px !important;
  box-sizing:border-box;
}
.card-actions > li > span{
  display:inline-block;
  color:#64748b;
  font-size:13px;
  white-space:nowrap;
  line-height:36px;
}
.btn{
  white-space:nowrap;
  overflow:visible;
  height:auto;
}
.btn-sm,.btn-xs{
  overflow:visible !important;
  height:auto !important;
  line-height:1.3 !important;
}
.btn-sm{
  padding:7px 14px !important;
  font-size:13px !important;
  min-height:34px;
}
.btn-xs{
  padding:4px 10px !important;
  font-size:12px !important;
  min-height:28px;
}
.btn-primary,.btn-block.btn-primary{
  background:linear-gradient(135deg,#7c3aed,#db2777) !important;
  border:none !important;
  border-radius:14px !important;
}
.nav-row{
  background:#f8fafc;
  border-radius:16px;
  padding:14px;
  margin-bottom:12px;
}
.nav-row-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:10px;
}
.nav-row-ops{display:flex;flex-wrap:wrap;gap:6px;}
.nav-icon-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:6px;}
.nav-icon-preview{
  width:44px;height:44px;border-radius:12px;background:#fff;border:1px solid #e2e8f0;
  object-fit:contain;flex:none;display:inline-flex;align-items:center;justify-content:center;
  color:#94a3b8;font-size:11px;
}
.form-control,textarea.form-control{border-radius:12px !important;}
.table-responsive{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
.navbar-page-title{
  font-weight:700;color:#1e1b4b;font-size:16px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  max-width:calc(100vw - 320px);
}

.stat-card{
  border-radius:18px;
  padding:18px 16px;
  color:#fff;
  min-height:96px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  margin-bottom:16px;
  box-shadow:0 12px 28px rgba(30,27,75,.12);
}
.stat-card small{opacity:.9;font-size:13px;line-height:1.4;}
.stat-card strong{display:block;font-size:22px;margin-top:6px;word-break:break-word;line-height:1.3;}
.stat-a{background:linear-gradient(135deg,#7c3aed,#a78bfa);}
.stat-b{background:linear-gradient(135deg,#059669,#22d3ee);}
.stat-c{background:linear-gradient(135deg,#2563eb,#db2777);}
.admin-chart{width:100% !important;max-width:100% !important;height:240px !important;}
.list-group-item{word-break:break-all;}

.ios-switch{position:relative;display:inline-block;width:52px;height:32px;vertical-align:middle;}
.ios-switch input{opacity:0;width:0;height:0;}
.ios-switch-track{position:absolute;inset:0;background:#d1d5db;border-radius:999px;transition:.2s;}
.ios-switch-track:before{content:"";position:absolute;height:26px;width:26px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s;}
.ios-switch input:checked + .ios-switch-track{background:#34c759;}
.ios-switch input:checked + .ios-switch-track:before{transform:translateX(20px);}

body.adm-login{
  min-height:100vh;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(160deg,#ede9fe,#fce7f3,#e0f2fe) !important;
  padding:16px !important;
  margin:0 !important;
}
.adm-login-card{
  width:min(92vw,380px);
  background:#fff;
  border-radius:24px;
  padding:24px 22px 18px;
  box-shadow:0 20px 50px rgba(30,27,75,.12);
}
.adm-login-card img{width:52px;height:52px;border-radius:16px;object-fit:cover;display:block;margin:0 auto 8px;}
.adm-login-card h3{margin:0;text-align:center;font-size:20px;color:#1e1b4b;font-weight:700;}
.adm-login-card .sub{margin:4px 0 16px;text-align:center;color:#64748b;font-size:13px;}
.adm-login-card .adm-field{margin:0 0 10px !important;}
.adm-login-card input{
  width:100% !important;height:44px !important;border:1px solid #e2e8f0 !important;border-radius:12px !important;
  padding:0 14px !important;font-size:15px;box-sizing:border-box;margin:0 !important;
  background:#fff !important;
}
.adm-login-card button{
  width:100%;height:44px;margin:2px 0 0;border:0;border-radius:12px;color:#fff;font-weight:700;
  background:linear-gradient(135deg,#7c3aed,#db2777);
}
.adm-login-card .copy{margin:12px 0 0;text-align:center;color:#94a3b8;font-size:12px;}

.brand-preview{display:flex;align-items:center;gap:14px;padding:12px;background:#f8fafc;border-radius:16px;}
.brand-preview img{
  width:72px;height:72px;border-radius:16px;object-fit:cover;background:#fff;
  border:1px solid #e2e8f0;flex:none;
}
.sidebar-copy{
  flex:none;
  padding:10px 16px 16px;
  color:rgba(255,255,255,.45);
  font-size:11px;
  text-align:center;
  line-height:1.4;
}

@media (max-width:1024px){
  .lyear-layout-sidebar{
    transform:translateX(-100%) !important;
    transition:.25s ease;
  }
  .lyear-layout-sidebar.lyear-aside-open{
    transform:translateX(0) !important;
    box-shadow:16px 0 40px rgba(0,0,0,.25);
  }
  .lyear-layout-header{padding-left:0 !important;}
  .lyear-layout-content{
    padding-top:76px !important;
    padding-right:12px !important;
    padding-bottom:20px !important;
    padding-left:12px !important;
  }
  .navbar-page-title{font-size:14px;max-width:calc(100vw - 72px);}
  .stat-card strong{font-size:18px;}
}
