@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700;800&display=swap');

#s8pr-dwr-root{margin:0!important;padding:0!important;width:100%!important;max-width:none!important;background:#f5f7ff!important;overflow:hidden!important}
#s8pr-dwr-root,#s8pr-dwr-root *{box-sizing:border-box!important;font-family:'Bai Jamjuree',Arial,sans-serif!important}
#s8pr-dwr-root .s8pr-app{font-size:10px!important;line-height:1.35!important;color:#14213d!important;background:linear-gradient(180deg,#f8faff 0,#f2f6ff 100%)!important;display:flex!important;width:100%!important;min-height:calc(100vh - 32px)!important;overflow:hidden!important;letter-spacing:-.01em!important}

/* Sidebar */
#s8pr-dwr-root .s8pr-sidebar{width:238px!important;flex:0 0 238px!important;height:calc(100vh - 32px)!important;position:sticky!important;top:32px!important;overflow-y:auto!important;background:linear-gradient(180deg,#111442 0%,#071331 100%)!important;color:#fff!important;padding:18px 14px!important;scrollbar-width:thin!important}
#s8pr-dwr-root .s8pr-brand{display:flex!important;align-items:center!important;gap:10px!important;margin:0 0 22px!important}
#s8pr-dwr-root .s8pr-logo{width:46px!important;height:46px!important;border-radius:50%!important;background:#fff!important;color:#2368ff!important;display:grid!important;place-items:center!important;font-weight:800!important;font-size:14px!important;box-shadow:0 12px 30px rgba(0,0,0,.18)!important}
#s8pr-dwr-root .s8pr-brand strong{display:block!important;font-size:23px!important;line-height:1!important;color:#fff!important;font-weight:800!important;margin:0!important}
#s8pr-dwr-root .s8pr-brand span{display:block!important;font-size:10px!important;line-height:1.25!important;color:#dce5ff!important;margin-top:4px!important}
#s8pr-dwr-root .s8pr-create{width:100%!important;border:0!important;border-radius:13px!important;padding:13px 12px!important;margin:0 0 20px!important;color:#fff!important;background:linear-gradient(100deg,#a7d43a 0%,#146dff 55%,#7a28f2 100%)!important;box-shadow:0 14px 28px rgba(19,77,255,.28)!important;font-size:12px!important;font-weight:800!important;letter-spacing:.02em!important;cursor:pointer!important}
#s8pr-dwr-root .s8pr-sidebar nav{display:block!important;margin:0!important;padding:0!important}
#s8pr-dwr-root .s8pr-sidebar a{display:block!important;color:#fff!important;text-decoration:none!important;font-size:11px!important;line-height:1.25!important;font-weight:700!important;padding:10px 11px!important;margin:3px 0!important;border-radius:10px!important;opacity:.96!important;white-space:normal!important}
#s8pr-dwr-root .s8pr-sidebar a.active2,#s8pr-dwr-root .s8pr-sidebar a:hover{background:linear-gradient(90deg,#3156ff 0%,#7431f0 100%)!important;box-shadow:0 10px 22px rgba(52,75,255,.24)!important}
#s8pr-dwr-root .s8pr-sidebar em{display:block!important;color:#4aa3ff!important;font-style:normal!important;margin:3px 0 0 18px!important;font-size:10px!important;font-weight:700!important}
#s8pr-dwr-root .s8pr-side-bottom{border-top:1px solid rgba(255,255,255,.14)!important;margin-top:16px!important;padding-top:14px!important}
#s8pr-dwr-root .s8pr-side-bottom b{float:right!important;background:#ff4058!important;color:#fff!important;border-radius:999px!important;padding:2px 7px!important;font-size:10px!important;line-height:1.2!important}

/* Main shell */
#s8pr-dwr-root .s8pr-main{flex:1 1 auto!important;min-width:0!important;max-width:100%!important;overflow:auto!important;height:calc(100vh - 32px)!important;padding-bottom:18px!important}
#s8pr-dwr-root .s8pr-top{height:66px!important;margin:10px 16px 6px!important;display:grid!important;grid-template-columns:46px minmax(280px,1fr) 112px 44px 160px!important;gap:12px!important;align-items:center!important}
#s8pr-dwr-root .s8pr-menu,#s8pr-dwr-root .s8pr-top>div{background:#fff!important;border-radius:15px!important;border:1px solid #eef2fb!important;box-shadow:0 10px 30px rgba(26,50,105,.09)!important}
#s8pr-dwr-root .s8pr-menu{height:46px!important;width:46px!important;border:0!important;font-size:20px!important;line-height:1!important;color:#12213e!important;cursor:pointer!important}
#s8pr-dwr-root .s8pr-slogan{height:58px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;font-size:16px!important;line-height:1.25!important;font-weight:800!important;color:#15213e!important;padding:8px 18px!important;white-space:normal!important;overflow:hidden!important}
#s8pr-dwr-root .s8pr-clock{height:58px!important;background:linear-gradient(120deg,#9dd846,#02a8d8)!important;color:#fff!important;text-align:center!important;font-weight:800!important;padding:9px 6px!important;font-size:16px!important;line-height:1.15!important}
#s8pr-dwr-root .s8pr-clock span{font-size:9px!important;font-weight:700!important;color:#fff!important}
#s8pr-dwr-root .s8pr-bell{height:46px!important;display:grid!important;place-items:center!important;position:relative!important;font-size:17px!important}
#s8pr-dwr-root .s8pr-bell b{position:absolute!important;top:4px!important;right:4px!important;background:#ff3048!important;color:#fff!important;border-radius:999px!important;font-size:9px!important;padding:2px 5px!important;line-height:1!important}
#s8pr-dwr-root .s8pr-user{height:58px!important;display:flex!important;align-items:center!important;gap:9px!important;padding:8px 10px!important}
#s8pr-dwr-root .s8pr-user span{width:38px!important;height:38px!important;border-radius:50%!important;background:linear-gradient(120deg,#bfe246,#23b4d8)!important;color:#fff!important;display:grid!important;place-items:center!important;font-weight:800!important;font-size:13px!important;flex:0 0 38px!important}
#s8pr-dwr-root .s8pr-user strong{font-size:12px!important;line-height:1.15!important;color:#14213d!important;font-weight:800!important}
#s8pr-dwr-root .s8pr-user small{display:block!important;font-size:9px!important;line-height:1.2!important;color:#069d4b!important;font-weight:700!important;margin-top:3px!important}

/* Content */
#s8pr-dwr-root .s8pr-content{display:grid!important;grid-template-columns:minmax(0,1fr) 360px!important;gap:16px!important;padding:8px 16px 22px!important;max-width:1510px!important;margin:0 auto!important}
#s8pr-dwr-root .s8pr-left{min-width:0!important}
#s8pr-dwr-root .s8pr-title-row{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:14px!important;margin:4px 0 12px!important}
#s8pr-dwr-root .s8pr-title-row h1{font-size:20px!important;line-height:1.15!important;font-weight:800!important;margin:0 0 5px!important;color:#27334c!important;letter-spacing:-.03em!important;text-transform:uppercase!important}
#s8pr-dwr-root .s8pr-title-row p{font-size:12px!important;line-height:1.25!important;color:#66728c!important;margin:0!important}
#s8pr-dwr-root .s8pr-title-row b{color:#6424e8!important;font-weight:800!important}
#s8pr-dwr-root .s8pr-purple{border:0!important;border-radius:11px!important;color:#fff!important;font-weight:800!important;font-size:11px!important;line-height:1!important;padding:12px 18px!important;background:linear-gradient(90deg,#1267ff,#7d2cf0)!important;box-shadow:0 10px 22px rgba(65,61,232,.24)!important;cursor:pointer!important;white-space:nowrap!important}
#s8pr-dwr-root .s8pr-filters{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:0 0 14px!important}
#s8pr-dwr-root input,#s8pr-dwr-root select,#s8pr-dwr-root textarea{width:100%!important;border:1px solid #dce5f2!important;border-radius:10px!important;background:#fff!important;color:#24314d!important;font-size:11px!important;line-height:1.2!important;padding:10px 12px!important;outline:none!important;box-shadow:none!important;min-height:38px!important}
#s8pr-dwr-root textarea{min-height:74px!important;resize:vertical!important}

/* KPI cards */
#s8pr-dwr-root .s8pr-kpis{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;margin-bottom:12px!important}
#s8pr-dwr-root .s8pr-card,#s8pr-dwr-root .s8pr-panel,#s8pr-dwr-root .s8pr-box{background:#fff!important;border:1px solid #edf2fa!important;border-radius:16px!important;box-shadow:0 12px 30px rgba(26,50,105,.08)!important}
#s8pr-dwr-root .s8pr-card{min-height:112px!important;padding:13px!important;display:flex!important;gap:10px!important;align-items:flex-start!important;overflow:hidden!important}
#s8pr-dwr-root .s8pr-card i{width:38px!important;height:38px!important;flex:0 0 38px!important;border-radius:12px!important;background:#e8f8ef!important;color:#0fac61!important;display:grid!important;place-items:center!important;font-style:normal!important;font-size:18px!important;line-height:1!important}
#s8pr-dwr-root .s8pr-card:nth-child(2) i{background:#fff1df!important;color:#ff8a00!important}
#s8pr-dwr-root .s8pr-card:nth-child(3) i{background:#eaf1ff!important;color:#1767ff!important}
#s8pr-dwr-root .s8pr-card:nth-child(4) i{background:#eee7ff!important;color:#7c2ff2!important}
#s8pr-dwr-root .s8pr-card:nth-child(5) i{background:#e5fbff!important;color:#0b9ab5!important}
#s8pr-dwr-root .s8pr-card h4{font-size:11px!important;line-height:1.25!important;font-weight:800!important;color:#24314d!important;margin:0 0 6px!important}
#s8pr-dwr-root .s8pr-card strong{display:block!important;font-size:25px!important;line-height:1!important;font-weight:800!important;color:#101b35!important;margin:0!important}
#s8pr-dwr-root .s8pr-card p{font-size:11px!important;line-height:1.35!important;color:#66728c!important;margin:7px 0!important}
#s8pr-dwr-root .s8pr-card small{font-size:10px!important;line-height:1.3!important;color:#00a862!important;font-weight:800!important}
#s8pr-dwr-root .mini-bar{display:inline-block!important;width:72px!important;height:8px!important;border-radius:999px!important;background:#dfe5ef!important;overflow:hidden!important;vertical-align:middle!important}
#s8pr-dwr-root .mini-bar em{display:block!important;height:100%!important;background:#23b36d!important;border-radius:999px!important}

/* Panels */
#s8pr-dwr-root .s8pr-grid2{display:grid!important;grid-template-columns:1.1fr .9fr!important;gap:12px!important;margin:12px 0!important}
#s8pr-dwr-root .s8pr-panel,#s8pr-dwr-root .s8pr-box{padding:14px!important;overflow:hidden!important}
#s8pr-dwr-root .s8pr-panel h3,#s8pr-dwr-root .s8pr-box h3{font-size:13px!important;line-height:1.2!important;margin:0 0 10px!important;color:#192641!important;font-weight:800!important;text-transform:uppercase!important}
#s8pr-dwr-root .s8pr-panel p{font-size:11px!important;color:#66728c!important;margin:0 0 10px!important}
#s8pr-dwr-root table{width:100%!important;border-collapse:collapse!important;font-size:10px!important;line-height:1.25!important;table-layout:auto!important}
#s8pr-dwr-root th{background:#f4f7fc!important;color:#26314a!important;text-align:left!important;font-size:9px!important;font-weight:800!important;padding:8px 8px!important;white-space:nowrap!important;border:0!important}
#s8pr-dwr-root td{border-bottom:1px solid #edf1f7!important;padding:8px 8px!important;color:#24314d!important;vertical-align:middle!important;font-size:10px!important}
#s8pr-dwr-root td small{font-size:9px!important;color:#63708a!important}
#s8pr-dwr-root td button{border:0!important;background:#eef4ff!important;color:#1b63ff!important;border-radius:7px!important;margin:0 1px!important;padding:5px 6px!important;font-size:10px!important;line-height:1!important}
#s8pr-dwr-root .gicon{display:inline-grid!important;width:20px!important;height:20px!important;border-radius:7px!important;background:#f2f5fb!important;place-items:center!important;margin-right:6px!important;font-size:10px!important}
#s8pr-dwr-root .s8pr-chart{display:flex!important;align-items:center!important;gap:16px!important;min-height:155px!important}
#s8pr-dwr-root .s8pr-donut{width:132px!important;height:132px!important;border-radius:50%!important;background:conic-gradient(#27b46c calc(var(--p)*1%),#2e80ff 0 88%,#d8deea 0)!important;display:grid!important;place-items:center!important;flex:0 0 132px!important}
#s8pr-dwr-root .s8pr-donut span{width:80px!important;height:80px!important;border-radius:50%!important;background:#fff!important;display:grid!important;place-items:center!important;text-align:center!important;font-size:19px!important;line-height:1!important;font-weight:800!important;color:#14213d!important}
#s8pr-dwr-root .s8pr-donut small{display:block!important;font-size:9px!important;font-weight:700!important;margin-top:4px!important;color:#14213d!important}
#s8pr-dwr-root .s8pr-chart ul{margin:0!important;padding:0!important;min-width:0!important}
#s8pr-dwr-root .s8pr-chart li{list-style:none!important;margin:8px 0!important;font-size:10px!important;color:#34415c!important;line-height:1.3!important}
#s8pr-dwr-root .s8pr-chart b{display:inline-block!important;width:11px!important;height:11px!important;background:#27b46c!important;border-radius:3px!important;margin-right:6px!important;vertical-align:-1px!important}
#s8pr-dwr-root .s8pr-chart b.blue{background:#2e80ff!important}#s8pr-dwr-root .s8pr-chart b.gray{background:#cfd6e2!important}
#s8pr-dwr-root .s8pr-compare{border-top:1px solid #edf1f7!important;margin-top:10px!important;padding-top:10px!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important}
#s8pr-dwr-root .s8pr-compare h4{grid-column:1/-1!important;margin:0 0 2px!important;font-size:11px!important;color:#192641!important;font-weight:800!important}
#s8pr-dwr-root .s8pr-compare strong{display:block!important;color:#0dac63!important;font-size:15px!important;line-height:1.15!important}
#s8pr-dwr-root .s8pr-compare span{font-size:9px!important;color:#66728c!important}

/* Form */
#s8pr-dwr-root .form-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
#s8pr-dwr-root .form-grid label{font-size:10px!important;font-weight:800!important;color:#24314d!important;line-height:1.25!important}
#s8pr-dwr-root .form-grid .wide{grid-column:1/-1!important}
#s8pr-dwr-root .submit{float:right!important;min-width:130px!important;margin-top:10px!important}

/* Right detail */
#s8pr-dwr-root .s8pr-detail{display:flex!important;flex-direction:column!important;gap:12px!important;min-width:0!important}
#s8pr-dwr-root .s8pr-box h2{font-size:16px!important;line-height:1.2!important;margin:0 0 10px!important;color:#24314d!important;font-weight:800!important;text-transform:uppercase!important}
#s8pr-dwr-root .s8pr-box h2 span{display:inline-block!important;background:#d9f7e4!important;color:#0b9b52!important;border-radius:999px!important;font-size:9px!important;padding:4px 8px!important;margin-left:8px!important;vertical-align:2px!important;text-transform:none!important}
#s8pr-dwr-root .s8pr-box h4{font-size:11px!important;line-height:1.2!important;margin:14px 0 6px!important;color:#192641!important;font-weight:800!important;text-transform:uppercase!important}
#s8pr-dwr-root .s8pr-box p,#s8pr-dwr-root .s8pr-box li{font-size:11px!important;line-height:1.55!important;color:#34415c!important;margin:7px 0!important}
#s8pr-dwr-root .s8pr-box ul{padding-left:18px!important;margin:6px 0!important}
#s8pr-dwr-root .s8pr-box a{color:#1667ff!important;text-decoration:none!important;font-weight:700!important}
#s8pr-dwr-root .s8pr-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;margin-top:12px!important}
#s8pr-dwr-root .s8pr-actions button{border:1px solid #dfe6f1!important;border-radius:8px!important;padding:8px 5px!important;font-weight:800!important;background:#fff!important;color:#1d55d8!important;font-size:9px!important;line-height:1.1!important;white-space:nowrap!important}
#s8pr-dwr-root .s8pr-actions button:first-child{background:#1667ff!important;color:#fff!important;border-color:#1667ff!important}
#s8pr-dwr-root .s8pr-actions .danger{background:#f03d46!important;color:#fff!important;border-color:#f03d46!important}
#s8pr-dwr-root .pill,#s8pr-dwr-root .ok{border-radius:999px!important;padding:4px 8px!important;background:#ddf7e7!important;color:#09974c!important;font-weight:800!important;font-size:9px!important;white-space:nowrap!important}
#s8pr-dwr-root .avatar{display:inline-grid!important;width:24px!important;height:24px!important;border-radius:50%!important;background:#1267ff!important;color:#fff!important;place-items:center!important;margin-right:7px!important;font-size:9px!important;font-weight:800!important;vertical-align:middle!important}
#s8pr-dwr-root .s8pr-more{float:right!important;margin-top:12px!important;font-size:10px!important;padding:10px 14px!important}
#s8pr-dwr-root hr{border:0!important;border-top:1px solid #edf1f7!important;margin:12px 0!important}

/* Responsive and WordPress theme protection */
@media(max-width:1450px){
  #s8pr-dwr-root .s8pr-sidebar{width:220px!important;flex-basis:220px!important;padding-left:12px!important;padding-right:12px!important}
  #s8pr-dwr-root .s8pr-content{grid-template-columns:minmax(0,1fr) 330px!important;gap:14px!important;padding-left:14px!important;padding-right:14px!important}
  #s8pr-dwr-root .s8pr-top{grid-template-columns:46px minmax(240px,1fr) 105px 42px 142px!important;gap:10px!important}
  #s8pr-dwr-root .s8pr-slogan{font-size:14px!important}
  #s8pr-dwr-root .s8pr-kpis{gap:10px!important}
  #s8pr-dwr-root .s8pr-card{padding:11px!important;gap:8px!important}
  #s8pr-dwr-root .s8pr-card i{width:34px!important;height:34px!important;flex-basis:34px!important;font-size:16px!important}
  #s8pr-dwr-root .s8pr-card strong{font-size:22px!important}
}
@media(max-width:1200px){
  #s8pr-dwr-root .s8pr-app{display:block!important;height:auto!important;overflow:visible!important}
  #s8pr-dwr-root .s8pr-sidebar{position:relative!important;top:0!important;width:100%!important;height:auto!important;max-height:none!important;display:block!important}
  #s8pr-dwr-root .s8pr-main{height:auto!important;overflow:visible!important}
  #s8pr-dwr-root .s8pr-content{grid-template-columns:1fr!important;max-width:100%!important}
  #s8pr-dwr-root .s8pr-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #s8pr-dwr-root .s8pr-top{grid-template-columns:46px 1fr!important}
  #s8pr-dwr-root .s8pr-clock,#s8pr-dwr-root .s8pr-bell,#s8pr-dwr-root .s8pr-user{display:none!important}
}
@media(max-width:760px){
  #s8pr-dwr-root .s8pr-content,#s8pr-dwr-root .s8pr-grid2,#s8pr-dwr-root .form-grid,#s8pr-dwr-root .s8pr-filters{display:block!important}
  #s8pr-dwr-root .s8pr-kpis{grid-template-columns:1fr!important}
  #s8pr-dwr-root .s8pr-panel,#s8pr-dwr-root .s8pr-card,#s8pr-dwr-root .s8pr-box{margin-bottom:12px!important}
  #s8pr-dwr-root .s8pr-title-row{display:block!important}
  #s8pr-dwr-root .s8pr-purple{margin-top:10px!important}
  #s8pr-dwr-root table{display:block!important;overflow-x:auto!important;white-space:nowrap!important}
}

/* v7.7.60 menu connection polish */
#s8pr-dwr-root .s8pr-sidebar nav a{cursor:pointer!important;user-select:none!important;transition:all .18s ease!important}
#s8pr-dwr-root .s8pr-sidebar nav a:hover{background:rgba(255,255,255,.09)!important;transform:translateX(2px)!important}
#s8pr-dwr-root .s8pr-sidebar nav a.active2,
#s8pr-dwr-root .s8pr-sidebar nav a.active{background:linear-gradient(135deg,#3284ff,#7d2cff)!important;color:#fff!important;box-shadow:0 10px 24px rgba(42,93,255,.24)!important}
#s8pr-dwr-root .s8pr-sidebar nav a.active2 em,
#s8pr-dwr-root .s8pr-sidebar nav a.active em{color:#d9ecff!important}

/* v7.7.61 account and staff login */
#s8pr-dwr-root .s8pr-login-wrap{min-height:720px!important;width:100%!important;display:grid!important;place-items:center!important;background:linear-gradient(135deg,#071333,#eef4ff)!important;font-family:'Bai Jamjuree',Arial,sans-serif!important;padding:24px!important}
#s8pr-dwr-root .s8pr-login-card{width:min(420px,92vw)!important;background:#fff!important;border-radius:28px!important;padding:32px!important;box-shadow:0 28px 80px rgba(8,20,50,.24)!important;border:1px solid rgba(226,233,246,.9)!important;text-align:left!important}
#s8pr-dwr-root .s8pr-login-logo{width:70px!important;height:70px!important;border-radius:50%!important;background:linear-gradient(135deg,#9fd344,#145fff,#7a2cff)!important;color:#fff!important;display:grid!important;place-items:center!important;font-size:22px!important;font-weight:800!important;margin:0 auto 12px!important}
#s8pr-dwr-root .s8pr-login-card h1{text-align:center!important;margin:0!important;font-size:30px!important;color:#091735!important;font-weight:800!important}
#s8pr-dwr-root .s8pr-login-card p{text-align:center!important;margin:8px 0 22px!important;color:#60708a!important;font-size:13px!important;line-height:1.5!important}
#s8pr-dwr-root .s8pr-login-card label{display:block!important;font-size:12px!important;font-weight:800!important;color:#23314d!important;margin:12px 0!important}
#s8pr-dwr-root .s8pr-login-card input{width:100%!important;margin-top:7px!important;border:1px solid #d9e1ef!important;border-radius:14px!important;padding:13px 14px!important;font-size:13px!important;font-family:'Bai Jamjuree',Arial,sans-serif!important;background:#f8fbff!important}
#s8pr-dwr-root .s8pr-login-card button{width:100%!important;margin-top:10px!important;padding:14px!important;border-radius:16px!important;font-size:13px!important}
#s8pr-dwr-root .s8pr-login-card small{display:block!important;text-align:center!important;margin-top:14px!important;color:#73819a!important;font-size:11px!important;line-height:1.5!important}
#s8pr-dwr-root .s8pr-side-bottom a[data-logout]{cursor:pointer!important;color:#fff!important}
#s8pr-dwr-root #s8pr-account-form input,#s8pr-dwr-root #s8pr-account-form select{background:#fff!important}
.s8pr-admin-note{background:#eef6ff;border:1px solid #cfe2ff;border-radius:14px;padding:12px 14px;margin:0 0 14px;color:#17406b;font-weight:600}
.s8pr-dwr-root .pill.branch{display:inline-block;margin:2px 4px 2px 0;padding:4px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:10px;font-weight:700;white-space:nowrap}
.s8pr-dwr-root button.danger,.s8pr-dwr-root .danger{background:#ef4444!important;color:#fff!important;border-color:#ef4444!important}
.s8pr-dwr-root #s8pr-department-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.s8pr-dwr-root #s8pr-department-form .wide{grid-column:1/-1}
.s8pr-dwr-root .s8pr-panel table td button{margin-right:6px}

/* v7.7.64 - Simple professional department layout */
#s8pr-dwr-root .dept-title{margin-top:10px!important;margin-bottom:12px!important}
#s8pr-dwr-root .s8pr-dept-simple,#s8pr-dwr-root .s8pr-dept-list{background:#fff!important;border:1px solid #e8eef8!important;border-radius:18px!important;box-shadow:0 18px 45px rgba(20,35,80,.07)!important;padding:18px!important;margin-bottom:14px!important}
#s8pr-dwr-root .dept-head{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:12px!important}
#s8pr-dwr-root .dept-head h3,#s8pr-dwr-root .s8pr-dept-list h3{font-size:14px!important;line-height:1.2!important;font-weight:800!important;color:#102044!important;margin:0 0 4px!important;text-transform:none!important}
#s8pr-dwr-root .dept-head p{font-size:11px!important;line-height:1.4!important;color:#71809b!important;margin:0!important}
#s8pr-dwr-root .dept-form{display:grid!important;grid-template-columns:minmax(220px,2fr) minmax(160px,1fr) minmax(220px,2fr) minmax(220px,2fr) 130px 150px!important;gap:10px!important;align-items:center!important}
#s8pr-dwr-root .dept-form input,#s8pr-dwr-root .dept-form select{height:42px!important;min-height:42px!important;border-radius:12px!important;font-size:11px!important;background:#fff!important}
#s8pr-dwr-root .dept-form .s8pr-purple{height:42px!important;padding:0 16px!important;border-radius:12px!important;font-size:11px!important;margin:0!important;width:100%!important}
#s8pr-dwr-root .dept-cards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin-top:12px!important}
#s8pr-dwr-root .dept-card{background:#fff!important;border:1px solid #edf2fa!important;border-radius:16px!important;padding:14px!important;box-shadow:0 14px 30px rgba(22,38,80,.06)!important;display:flex!important;flex-direction:column!important;gap:10px!important;min-height:178px!important}
#s8pr-dwr-root .dept-card h4{font-size:13px!important;line-height:1.2!important;font-weight:800!important;color:#102044!important;margin:0 0 3px!important;text-transform:uppercase!important}
#s8pr-dwr-root .dept-card p{font-size:10px!important;line-height:1.35!important;color:#73819d!important;margin:0!important;min-height:28px!important}
#s8pr-dwr-root .dept-meta{background:#f7f9ff!important;border-radius:12px!important;padding:9px 10px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
#s8pr-dwr-root .dept-meta b{font-size:10px!important;color:#67748f!important;font-weight:700!important}
#s8pr-dwr-root .dept-meta strong{font-size:11px!important;color:#111d3c!important;font-weight:800!important;text-align:right!important}
#s8pr-dwr-root .dept-branches{display:flex!important;flex-wrap:wrap!important;gap:5px!important;min-height:26px!important}
#s8pr-dwr-root .dept-branches span{background:#e9fff2!important;color:#0a9853!important;border-radius:999px!important;padding:4px 8px!important;font-size:9px!important;font-weight:700!important;line-height:1!important}
#s8pr-dwr-root .dept-foot{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-top:auto!important}
#s8pr-dwr-root .dept-foot small{font-size:10px!important;color:#66748f!important;font-weight:700!important}
#s8pr-dwr-root .dept-foot em{font-style:normal!important;background:#e8fff1!important;color:#0a9a52!important;border-radius:999px!important;padding:4px 8px!important;font-size:9px!important;font-weight:800!important}
#s8pr-dwr-root .dept-actions{display:flex!important;gap:8px!important;margin-top:2px!important}
#s8pr-dwr-root .dept-actions button{height:32px!important;border-radius:10px!important;border:0!important;background:#eef4ff!important;color:#1558df!important;font-size:10px!important;font-weight:800!important;padding:0 12px!important;cursor:pointer!important}
#s8pr-dwr-root .dept-actions button.danger{background:#ffe4e7!important;color:#e11d48!important}
#s8pr-dwr-root .dept-card.is-off{opacity:.65!important}
@media(max-width:1200px){#s8pr-dwr-root .dept-form{grid-template-columns:1fr 1fr!important}#s8pr-dwr-root .dept-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){#s8pr-dwr-root .dept-form,#s8pr-dwr-root .dept-cards{grid-template-columns:1fr!important}}

/* v7.7.65 premium department layout */
#s8pr-dwr-root .s8pr-dept-premium{display:flex!important;flex-direction:column!important;gap:14px!important;max-width:100%!important}
#s8pr-dwr-root .dept-hero{background:linear-gradient(135deg,#ffffff 0%,#f8fbff 58%,#f2f0ff 100%)!important;border:1px solid #e8eef8!important;border-radius:20px!important;box-shadow:0 18px 45px rgba(18,33,75,.08)!important;padding:18px 20px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;min-height:116px!important;position:relative!important;overflow:hidden!important}
#s8pr-dwr-root .dept-hero:after{content:""!important;position:absolute!important;right:-70px!important;top:-90px!important;width:230px!important;height:230px!important;background:radial-gradient(circle,rgba(118,72,255,.22),rgba(118,72,255,0) 62%)!important;pointer-events:none!important}
#s8pr-dwr-root .dept-hero-copy{position:relative!important;z-index:1!important}
#s8pr-dwr-root .dept-hero .eyebrow{display:inline-flex!important;align-items:center!important;gap:6px!important;background:#eef2ff!important;color:#4f46e5!important;border-radius:999px!important;padding:5px 9px!important;font-size:10px!important;font-weight:800!important;margin-bottom:8px!important}
#s8pr-dwr-root .dept-hero h1{font-size:22px!important;line-height:1.1!important;margin:0 0 6px!important;color:#111d3c!important;font-weight:900!important;letter-spacing:-.02em!important}
#s8pr-dwr-root .dept-hero p{font-size:12px!important;line-height:1.45!important;margin:0!important;color:#697692!important;max-width:620px!important}
#s8pr-dwr-root .dept-primary,#s8pr-dwr-root .list-head button{height:42px!important;border:0!important;border-radius:14px!important;background:linear-gradient(135deg,#1677ff,#7c3aed)!important;color:#fff!important;font-size:11px!important;font-weight:900!important;padding:0 18px!important;box-shadow:0 12px 24px rgba(70,88,255,.25)!important;cursor:pointer!important;white-space:nowrap!important;position:relative!important;z-index:1!important}
#s8pr-dwr-root .dept-stat-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
#s8pr-dwr-root .dept-stat{background:#fff!important;border:1px solid #edf2fa!important;border-radius:18px!important;padding:14px!important;box-shadow:0 12px 28px rgba(19,38,78,.06)!important;display:grid!important;grid-template-columns:38px 1fr!important;grid-template-rows:auto auto!important;column-gap:11px!important;align-items:center!important;min-height:86px!important}
#s8pr-dwr-root .dept-stat i{grid-row:1/3!important;width:38px!important;height:38px!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#eff6ff!important;font-style:normal!important;font-size:18px!important}
#s8pr-dwr-root .dept-stat b{font-size:24px!important;line-height:1!important;color:#0d1837!important;font-weight:900!important}
#s8pr-dwr-root .dept-stat span{font-size:11px!important;color:#6b7894!important;font-weight:700!important;margin-top:4px!important}
#s8pr-dwr-root .premium-list{padding:16px!important;background:#fff!important;border:1px solid #e8eef8!important;border-radius:20px!important;box-shadow:0 18px 45px rgba(20,35,80,.07)!important}
#s8pr-dwr-root .list-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:14px!important}
#s8pr-dwr-root .list-head h3{font-size:14px!important;margin:0 0 4px!important;color:#111d3c!important;font-weight:900!important;text-transform:none!important}
#s8pr-dwr-root .list-head p{font-size:11px!important;margin:0!important;color:#71809b!important}
#s8pr-dwr-root .dept-cards.premium-cards{display:grid!important;grid-template-columns:repeat(3,minmax(240px,1fr))!important;gap:12px!important;margin:0!important}
#s8pr-dwr-root .dept-card.premium{border:1px solid #e9eff8!important;border-radius:18px!important;padding:14px!important;background:linear-gradient(180deg,#fff,#fbfdff)!important;box-shadow:0 14px 35px rgba(15,31,68,.07)!important;min-height:220px!important;gap:11px!important;transition:transform .18s ease, box-shadow .18s ease!important}
#s8pr-dwr-root .dept-card.premium:hover{transform:translateY(-2px)!important;box-shadow:0 20px 44px rgba(15,31,68,.12)!important}
#s8pr-dwr-root .dept-card-top{display:grid!important;grid-template-columns:42px 1fr auto!important;gap:10px!important;align-items:start!important}
#s8pr-dwr-root .dept-icon{width:42px!important;height:42px!important;border-radius:16px!important;background:linear-gradient(135deg,#22c55e,#2563eb 55%,#7c3aed)!important;color:#fff!important;font-size:17px!important;font-weight:900!important;display:flex!important;align-items:center!important;justify-content:center!important;text-transform:uppercase!important}
#s8pr-dwr-root .dept-card.premium h4{font-size:14px!important;line-height:1.2!important;margin:1px 0 4px!important;color:#0f1e3f!important;font-weight:900!important;text-transform:uppercase!important}
#s8pr-dwr-root .dept-card.premium p{font-size:10px!important;line-height:1.35!important;color:#75829a!important;min-height:0!important;margin:0!important}
#s8pr-dwr-root .dept-card-top em{font-style:normal!important;background:#e8fff1!important;color:#079052!important;border-radius:999px!important;padding:5px 8px!important;font-size:9px!important;font-weight:900!important;white-space:nowrap!important}
#s8pr-dwr-root .dept-leader{display:flex!important;align-items:center!important;gap:10px!important;background:#f6f8ff!important;border:1px solid #edf2ff!important;border-radius:15px!important;padding:10px!important}
#s8pr-dwr-root .dept-leader>b{width:30px!important;height:30px!important;border-radius:50%!important;background:#1d4ed8!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:10px!important;font-weight:900!important;flex:none!important}
#s8pr-dwr-root .dept-leader span{display:block!important;font-size:9px!important;color:#74819a!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.02em!important;margin-bottom:2px!important}
#s8pr-dwr-root .dept-leader strong{display:block!important;font-size:11px!important;color:#111d3c!important;font-weight:900!important}
#s8pr-dwr-root .dept-card.premium .dept-branches{gap:6px!important;min-height:30px!important}
#s8pr-dwr-root .dept-card.premium .dept-branches span{background:#ecfdf5!important;color:#079052!important;border:1px solid #d2f7df!important;border-radius:999px!important;padding:5px 8px!important;font-size:9px!important;font-weight:900!important}
#s8pr-dwr-root .dept-metrics{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important;margin-top:auto!important}
#s8pr-dwr-root .dept-metrics div{background:#f8fafc!important;border:1px solid #eef2f7!important;border-radius:13px!important;padding:8px 6px!important;text-align:center!important}
#s8pr-dwr-root .dept-metrics b{display:block!important;font-size:14px!important;color:#111d3c!important;font-weight:900!important;line-height:1!important}
#s8pr-dwr-root .dept-metrics span{display:block!important;font-size:9px!important;color:#74819a!important;font-weight:800!important;margin-top:4px!important}
#s8pr-dwr-root .dept-card.premium .dept-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;margin:0!important}
#s8pr-dwr-root .dept-card.premium .dept-actions button{height:32px!important;min-width:64px!important;border-radius:11px!important;font-size:10px!important;background:#eef4ff!important;color:#1d4ed8!important}
#s8pr-dwr-root .dept-card.premium .dept-actions button.danger{background:#fff1f2!important;color:#e11d48!important}
#s8pr-dwr-root .dept-modal{position:fixed!important;inset:0!important;display:none!important;align-items:center!important;justify-content:center!important;z-index:999999!important;padding:20px!important}
#s8pr-dwr-root .dept-modal.show{display:flex!important}
#s8pr-dwr-root .dept-modal-backdrop{position:absolute!important;inset:0!important;background:rgba(15,23,42,.45)!important;backdrop-filter:blur(6px)!important}
#s8pr-dwr-root .dept-modal-card{position:relative!important;width:min(760px,96vw)!important;background:#fff!important;border-radius:22px!important;box-shadow:0 30px 90px rgba(10,20,50,.28)!important;padding:20px!important;border:1px solid rgba(255,255,255,.55)!important}
#s8pr-dwr-root .dept-x{position:absolute!important;right:16px!important;top:14px!important;width:32px!important;height:32px!important;border:0!important;border-radius:10px!important;background:#f1f5f9!important;color:#0f172a!important;font-size:20px!important;line-height:1!important;cursor:pointer!important}
#s8pr-dwr-root .dept-modal-title{display:flex!important;align-items:center!important;gap:12px!important;margin-bottom:14px!important;padding-right:40px!important}
#s8pr-dwr-root .dept-modal-title>span{width:42px!important;height:42px!important;border-radius:15px!important;background:#eef2ff!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:20px!important}
#s8pr-dwr-root .dept-modal-title h3{font-size:16px!important;margin:0 0 4px!important;color:#111d3c!important;font-weight:900!important;text-transform:none!important}
#s8pr-dwr-root .dept-modal-title p{font-size:11px!important;margin:0!important;color:#71809b!important}
#s8pr-dwr-root .dept-modal-card .dept-form{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;align-items:end!important}
#s8pr-dwr-root .dept-modal-card .dept-form label{font-size:10px!important;font-weight:900!important;color:#1b2b4b!important;display:flex!important;flex-direction:column!important;gap:6px!important;margin:0!important}
#s8pr-dwr-root .dept-modal-card .dept-form label.wide{grid-column:span 2!important}
#s8pr-dwr-root .dept-modal-card .dept-form input,#s8pr-dwr-root .dept-modal-card .dept-form select{width:100%!important;height:42px!important;border:1px solid #dfe7f3!important;border-radius:13px!important;padding:0 12px!important;font-size:11px!important;background:#fff!important;color:#17233f!important;outline:none!important}
#s8pr-dwr-root .dept-modal-card .dept-form input:focus,#s8pr-dwr-root .dept-modal-card .dept-form select:focus{border-color:#7c3aed!important;box-shadow:0 0 0 3px rgba(124,58,237,.10)!important}
#s8pr-dwr-root .dept-modal-card .dept-form .s8pr-purple{grid-column:2!important;justify-self:end!important;width:auto!important;min-width:150px!important;height:42px!important;border-radius:13px!important;font-size:11px!important;margin:0!important}
@media(max-width:1280px){#s8pr-dwr-root .dept-cards.premium-cards{grid-template-columns:repeat(2,minmax(240px,1fr))!important}}
@media(max-width:900px){#s8pr-dwr-root .dept-hero{flex-direction:column!important;align-items:flex-start!important}#s8pr-dwr-root .dept-stat-grid{grid-template-columns:repeat(2,1fr)!important}#s8pr-dwr-root .dept-cards.premium-cards{grid-template-columns:1fr!important}}
@media(max-width:620px){#s8pr-dwr-root .dept-modal-card .dept-form{grid-template-columns:1fr!important}#s8pr-dwr-root .dept-modal-card .dept-form label.wide,#s8pr-dwr-root .dept-modal-card .dept-form .s8pr-purple{grid-column:1!important;width:100%!important}#s8pr-dwr-root .dept-stat-grid{grid-template-columns:1fr!important}}
.account-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.account-actions button{border:0;border-radius:10px;padding:7px 10px;font-family:'Bai Jamjuree',sans-serif;font-size:10px;font-weight:700;cursor:pointer;background:#eef4ff;color:#1763ff}.account-actions button[data-reset-password]{background:#fff4d8;color:#b76b00}.account-actions button.danger{background:#ffe3e7;color:#e11d48}.s8pr-panel code{background:#f3f6fb;border:1px solid #e5ecf6;border-radius:8px;padding:4px 7px;font-size:10px;color:#0b1744}


/* v7.7.67 polish: stable WP embedding and compact professional layout */
#s8pr-dwr-root .s8pr-app button,#s8pr-dwr-root .s8pr-app input,#s8pr-dwr-root .s8pr-app select,#s8pr-dwr-root .s8pr-app textarea{font-family:'Bai Jamjuree',Arial,sans-serif!important}
#s8pr-dwr-root .s8pr-left .s8pr-panel{overflow:hidden!important}
#s8pr-dwr-root table{font-size:10px!important;table-layout:fixed!important}
#s8pr-dwr-root th,#s8pr-dwr-root td{font-size:10px!important;vertical-align:middle!important;word-break:normal!important}
#s8pr-dwr-root .s8pr-sidebar a{cursor:pointer!important}
#s8pr-dwr-root .s8pr-sidebar nav a.active2{background:linear-gradient(90deg,#3156ff 0%,#7431f0 100%)!important}
#s8pr-dwr-root .dept-hero{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:18px!important;border-radius:20px!important;background:linear-gradient(135deg,#fff,#f5f8ff)!important;border:1px solid #e7edf8!important;box-shadow:0 14px 36px rgba(16,35,77,.07)!important;margin-bottom:14px!important}
#s8pr-dwr-root .dept-hero h1{font-size:22px!important;margin:2px 0!important;line-height:1.1!important}
#s8pr-dwr-root .dept-hero p{font-size:11px!important;color:#66728c!important;margin:0!important}
#s8pr-dwr-root .dept-primary,#s8pr-dwr-root .list-head button{border:0!important;border-radius:12px!important;background:linear-gradient(90deg,#146dff,#7a28f2)!important;color:#fff!important;font-weight:800!important;font-size:10px!important;padding:11px 14px!important;cursor:pointer!important;box-shadow:0 12px 25px rgba(75,75,235,.22)!important}
#s8pr-dwr-root .dept-branches{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
#s8pr-dwr-root .s8pr-admin-note{background:#eef6ff!important;border:1px solid #d8eaff!important;color:#1b4c8f!important;border-radius:12px!important;padding:10px 12px!important;margin-bottom:12px!important;font-size:10px!important;font-weight:700!important}
@media(max-width:1180px){#s8pr-dwr-root .s8pr-content{grid-template-columns:1fr!important}#s8pr-dwr-root .s8pr-detail{display:none!important}}

/* v7.7.69 polish: premium table + clean detail actions */
#s8pr-dwr-root .s8pr-panel:has(.s8pr-report-table){padding:16px!important;border-radius:18px!important;background:rgba(255,255,255,.96)!important}
#s8pr-dwr-root .s8pr-table-wrap{width:100%!important;overflow-x:auto!important;border:1px solid #eef2f8!important;border-radius:16px!important;background:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important}
#s8pr-dwr-root .s8pr-report-table{min-width:860px!important;border-collapse:separate!important;border-spacing:0!important;table-layout:fixed!important;background:#fff!important}
#s8pr-dwr-root .s8pr-report-table thead th{height:38px!important;background:#f6f8fc!important;color:#526079!important;font-size:9px!important;letter-spacing:.035em!important;text-transform:uppercase!important;border-bottom:1px solid #e9eef7!important;padding:0 12px!important}
#s8pr-dwr-root .s8pr-report-table tbody tr{transition:background .18s ease, transform .18s ease!important}
#s8pr-dwr-root .s8pr-report-table tbody tr:hover{background:#f8fbff!important}
#s8pr-dwr-root .s8pr-report-table td{height:56px!important;padding:8px 12px!important;border-bottom:1px solid #eef2f7!important;color:#23314d!important;font-size:10px!important;white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important}
#s8pr-dwr-root .s8pr-report-table tbody tr:last-child td{border-bottom:0!important}
#s8pr-dwr-root .row-index{display:inline-grid!important;place-items:center!important;width:22px!important;height:22px!important;border-radius:8px!important;background:#f1f5fb!important;color:#62708a!important;font-weight:800!important;font-size:9px!important}
#s8pr-dwr-root .staff-cell{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important}
#s8pr-dwr-root .staff-cell .avatar{margin:0!important;flex:0 0 28px!important;width:28px!important;height:28px!important;border-radius:11px!important;background:linear-gradient(135deg,#1267ff,#7431f0)!important;box-shadow:0 8px 18px rgba(30,97,255,.22)!important}
#s8pr-dwr-root .staff-cell span{display:block!important;min-width:0!important}
#s8pr-dwr-root .staff-cell strong{display:block!important;font-size:10.5px!important;color:#15213c!important;font-weight:800!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:135px!important}
#s8pr-dwr-root .staff-cell small{display:block!important;font-size:9px!important;color:#7a879d!important;margin-top:3px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:135px!important}
#s8pr-dwr-root .num{font-size:12px!important;color:#111c35!important;font-weight:800!important}
#s8pr-dwr-root .score-pill{background:#e9f9ef!important;color:#0ea05f!important;min-width:34px!important;text-align:center!important;display:inline-block!important}
#s8pr-dwr-root .date-cell{display:inline-block!important;line-height:1.25!important;color:#53617a!important;max-width:74px!important}
#s8pr-dwr-root .row-actions{display:flex!important;align-items:center!important;gap:5px!important;justify-content:flex-start!important;flex-wrap:nowrap!important}
#s8pr-dwr-root .row-actions button{width:26px!important;height:26px!important;padding:0!important;border-radius:9px!important;display:grid!important;place-items:center!important;background:#f0f5ff!important;color:#1d61ff!important;border:1px solid #e5ecff!important;box-shadow:none!important;font-size:11px!important;cursor:pointer!important}
#s8pr-dwr-root .row-actions button:hover{background:#1767ff!important;color:#fff!important;border-color:#1767ff!important}
#s8pr-dwr-root .s8pr-more{float:none!important;display:block!important;margin:14px 0 0 auto!important;border-radius:12px!important;padding:11px 18px!important}
#s8pr-dwr-root .s8pr-detail .s8pr-box{border-radius:18px!important;padding:16px!important;box-shadow:0 14px 36px rgba(16,35,77,.08)!important}
#s8pr-dwr-root .s8pr-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:14px!important;background:#f8fafc!important;border:1px solid #edf2f7!important;border-radius:14px!important;padding:8px!important}
#s8pr-dwr-root .s8pr-actions button{height:34px!important;border-radius:10px!important;padding:0 10px!important;font-size:9.5px!important;font-weight:800!important;white-space:nowrap!important;background:#fff!important;color:#1c56d8!important;border:1px solid #dfe7f3!important;cursor:pointer!important;box-shadow:0 4px 12px rgba(16,35,77,.04)!important}
#s8pr-dwr-root .s8pr-actions button:first-child{background:linear-gradient(90deg,#1267ff,#2358e8)!important;color:#fff!important;border-color:transparent!important}
#s8pr-dwr-root .s8pr-actions .danger{background:linear-gradient(90deg,#ff4757,#ef3347)!important;color:#fff!important;border-color:transparent!important}
@media(max-width:1450px){#s8pr-dwr-root .s8pr-report-table{min-width:820px!important}#s8pr-dwr-root .s8pr-report-table td{padding:8px 9px!important}#s8pr-dwr-root .staff-cell strong,#s8pr-dwr-root .staff-cell small{max-width:105px!important}}

/* v7.7.70 polish: premium daily report form */
#s8pr-dwr-root #s8pr-form{
  position:relative!important;
  padding:20px!important;
  border-radius:22px!important;
  background:
    radial-gradient(circle at top right, rgba(124,58,237,.10), transparent 34%),
    linear-gradient(180deg,#ffffff 0%,#fbfdff 100%)!important;
  border:1px solid #e6edf8!important;
  box-shadow:0 18px 45px rgba(15,31,68,.08)!important;
  overflow:hidden!important;
}
#s8pr-dwr-root #s8pr-form:before{
  content:""!important;
  position:absolute!important;
  left:0!important;top:0!important;right:0!important;height:4px!important;
  background:linear-gradient(90deg,#9ed342,#1267ff,#7a2ff2)!important;
}
#s8pr-dwr-root #s8pr-form h3{
  display:flex!important;align-items:center!important;gap:9px!important;
  margin:0 0 4px!important;font-size:15px!important;letter-spacing:-.02em!important;color:#101b35!important;
}
#s8pr-dwr-root #s8pr-form h3:before{
  content:"📝"!important;width:34px!important;height:34px!important;border-radius:12px!important;
  display:grid!important;place-items:center!important;background:#eef4ff!important;font-size:16px!important;
}
#s8pr-dwr-root #s8pr-form>p{font-size:11px!important;color:#71809b!important;margin:0 0 16px 43px!important}
#s8pr-dwr-root #s8pr-report-form{display:flex!important;flex-direction:column!important;gap:14px!important}
#s8pr-dwr-root #s8pr-report-form .form-grid{
  display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:12px!important;align-items:start!important;
}
#s8pr-dwr-root #s8pr-report-form .form-grid label{
  position:relative!important;display:flex!important;flex-direction:column!important;gap:7px!important;
  grid-column:span 4!important;margin:0!important;padding:0!important;
  color:#25304a!important;font-size:10px!important;font-weight:900!important;letter-spacing:-.01em!important;
}
#s8pr-dwr-root #s8pr-report-form .form-grid label:nth-child(7){grid-column:1 / -1!important}
#s8pr-dwr-root #s8pr-report-form .form-grid label:nth-child(8),
#s8pr-dwr-root #s8pr-report-form .form-grid label:nth-child(9),
#s8pr-dwr-root #s8pr-report-form .form-grid label:nth-child(10),
#s8pr-dwr-root #s8pr-report-form .form-grid label:nth-child(11),
#s8pr-dwr-root #s8pr-report-form .form-grid label:nth-child(12),
#s8pr-dwr-root #s8pr-report-form .form-grid label:nth-child(13){grid-column:span 4!important}
#s8pr-dwr-root #s8pr-report-form input,
#s8pr-dwr-root #s8pr-report-form select,
#s8pr-dwr-root #s8pr-report-form textarea{
  min-height:42px!important;border-radius:13px!important;border:1px solid #dbe5f3!important;background:#fff!important;
  padding:0 13px!important;color:#14213d!important;font-size:11px!important;font-weight:700!important;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease!important;
}
#s8pr-dwr-root #s8pr-report-form textarea{min-height:96px!important;padding:13px!important;line-height:1.45!important;resize:vertical!important}
#s8pr-dwr-root #s8pr-report-form input::placeholder,
#s8pr-dwr-root #s8pr-report-form textarea::placeholder{color:#94a3b8!important;font-weight:600!important}
#s8pr-dwr-root #s8pr-report-form input:focus,
#s8pr-dwr-root #s8pr-report-form select:focus,
#s8pr-dwr-root #s8pr-report-form textarea:focus{
  border-color:#6d5df6!important;box-shadow:0 0 0 4px rgba(109,93,246,.10)!important;background:#fcfdff!important;
}
#s8pr-dwr-root #s8pr-report-form .submit{
  align-self:flex-end!important;float:none!important;min-width:154px!important;height:42px!important;margin:0!important;border-radius:14px!important;
  font-size:11px!important;box-shadow:0 14px 28px rgba(72,76,238,.24)!important;
}
#s8pr-dwr-root #s8pr-form .form-grid label:has(textarea):after{content:"Có thể nhập nhiều dòng, mỗi việc một dòng"!important;position:absolute!important;right:10px!important;top:0!important;color:#8b98ad!important;font-size:9px!important;font-weight:700!important}
#s8pr-dwr-root .s8pr-panel + .s8pr-panel{margin-top:14px!important}
@media(max-width:1280px){
  #s8pr-dwr-root #s8pr-report-form .form-grid label{grid-column:span 6!important}
  #s8pr-dwr-root #s8pr-report-form .form-grid label:nth-child(7){grid-column:1 / -1!important}
}
@media(max-width:720px){
  #s8pr-dwr-root #s8pr-form{padding:16px!important}
  #s8pr-dwr-root #s8pr-form>p{margin-left:0!important}
  #s8pr-dwr-root #s8pr-report-form .form-grid{grid-template-columns:1fr!important}
  #s8pr-dwr-root #s8pr-report-form .form-grid label,
  #s8pr-dwr-root #s8pr-report-form .form-grid label:nth-child(7){grid-column:1!important}
  #s8pr-dwr-root #s8pr-report-form .submit{width:100%!important}
}

/* v7.7.71 - report detail readability + clickable proof links */
#s8pr-dwr-root .report-detail-card{overflow:visible!important}
#s8pr-dwr-root .detail-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important}
#s8pr-dwr-root .detail-meta{display:grid!important;grid-template-columns:1fr!important;gap:2px!important;margin-top:8px!important}
#s8pr-dwr-root .report-content-box,
#s8pr-dwr-root .manager-note{background:#f8fbff!important;border:1px solid #e8eef8!important;border-radius:12px!important;padding:10px 12px!important;margin:6px 0 10px!important;max-width:100%!important;overflow-wrap:anywhere!important;word-break:break-word!important;white-space:normal!important}
#s8pr-dwr-root .report-line{margin:0 0 6px!important;line-height:1.65!important;color:#273855!important;font-size:10.5px!important;overflow-wrap:anywhere!important;word-break:break-word!important;white-space:normal!important}
#s8pr-dwr-root .report-line:last-child{margin-bottom:0!important}
#s8pr-dwr-root .report-line a{display:inline!important;color:#1267ff!important;text-decoration:underline!important;text-underline-offset:2px!important;font-weight:700!important;overflow-wrap:anywhere!important;word-break:break-all!important}
#s8pr-dwr-root .proof-list{display:flex!important;flex-direction:column!important;gap:7px!important;margin:6px 0 10px!important;max-width:100%!important}
#s8pr-dwr-root .proof-link{display:block!important;background:#eef5ff!important;border:1px solid #d9e8ff!important;border-radius:10px!important;padding:8px 10px!important;color:#1267ff!important;text-decoration:none!important;font-weight:800!important;font-size:10px!important;overflow-wrap:anywhere!important;word-break:break-all!important}
#s8pr-dwr-root .proof-link:hover{background:#e5f0ff!important;border-color:#bcd6ff!important}
#s8pr-dwr-root .no-proof{display:inline-flex!important;background:#fff8e9!important;color:#9a6600!important;border:1px solid #ffe2a8!important;border-radius:999px!important;padding:6px 10px!important;font-size:10px!important;font-weight:800!important}
#s8pr-dwr-root .summary-list{background:#fbfcff!important;border:1px solid #edf2f7!important;border-radius:12px!important;padding:8px 12px 8px 24px!important;margin:6px 0 10px!important}
#s8pr-dwr-root .rating-line{background:#f3fff7!important;border:1px solid #d7f5e1!important;border-radius:10px!important;padding:8px 10px!important;margin-top:8px!important}
#s8pr-dwr-root .s8pr-detail{min-width:340px!important}
#s8pr-dwr-root .s8pr-actions{grid-template-columns:1fr 1fr!important;align-items:center!important}
#s8pr-dwr-root .s8pr-actions button{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* v7.7.72 media metrics update */
#s8pr-dwr-root .views-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0 16px}
#s8pr-dwr-root .views-grid>div{background:linear-gradient(135deg,#f7fbff,#f5f1ff);border:1px solid #e4ebf7;border-radius:14px;padding:10px 12px}
#s8pr-dwr-root .views-grid small{display:block;color:#667692;font-weight:700;font-size:10px;margin-bottom:4px}
#s8pr-dwr-root .views-grid b{font-size:18px;color:#0b1b3f}
#s8pr-dwr-root .report-content-box .report-line{margin:0 0 7px;line-height:1.55;word-break:break-word;overflow-wrap:anywhere}
#s8pr-dwr-root .report-content-box a,#s8pr-dwr-root .proof-list a{color:#1167ff;text-decoration:none;font-weight:800;word-break:break-word;overflow-wrap:anywhere}
#s8pr-dwr-root .report-content-box a:hover,#s8pr-dwr-root .proof-list a:hover{text-decoration:underline}
#s8pr-dwr-root #s8pr-report-form textarea{min-height:94px;line-height:1.55;white-space:pre-wrap}
#s8pr-dwr-root #s8pr-report-form .form-grid{align-items:end}
@media(max-width:900px){#s8pr-dwr-root .views-grid{grid-template-columns:1fr}}

/* v7.7.75 account creation cleanup + bulk import */
#s8pr-dwr-root .account-create-panel{background:linear-gradient(135deg,#fff 0%,#fbfdff 68%,#f3f0ff 100%)!important;border-top:3px solid #6d35f0!important}
#s8pr-dwr-root .account-create-panel h3{display:flex!important;align-items:center!important;gap:8px!important}
#s8pr-dwr-root .account-create-panel h3:before{content:'👤'!important;width:28px!important;height:28px!important;border-radius:10px!important;background:#eef4ff!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
#s8pr-dwr-root .account-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
#s8pr-dwr-root .account-grid .wide{grid-column:1/-1!important}
#s8pr-dwr-root .bulk-import-label textarea{min-height:116px!important;font-family:'Bai Jamjuree',Arial,sans-serif!important;line-height:1.55!important;background:#fcfdff!important}
#s8pr-dwr-root .bulk-import-label small{display:block!important;margin-top:6px!important;color:#687791!important;font-size:10px!important;font-weight:600!important}
#s8pr-dwr-root .account-form-actions{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin-top:14px!important;padding-top:12px!important;border-top:1px solid #edf2fb!important}
#s8pr-dwr-root .account-form-actions span{color:#51617f!important;background:#f4f8ff!important;border:1px solid #e5edf9!important;border-radius:12px!important;padding:9px 12px!important;font-size:11px!important;font-weight:700!important}
#s8pr-dwr-root .account-table-wrap{border-radius:16px!important;overflow:auto!important;border:1px solid #edf2fb!important;background:#fff!important}
#s8pr-dwr-root .account-table code{background:#f3f7ff!important;color:#1d4ed8!important;border-radius:8px!important;padding:4px 7px!important;font-weight:800!important;font-size:10px!important}
#s8pr-dwr-root .account-table .account-actions{display:flex!important;gap:6px!important;flex-wrap:wrap!important}
#s8pr-dwr-root .account-table .account-actions button{height:30px!important;border-radius:9px!important;border:0!important;background:#edf4ff!important;color:#1f5fff!important;font-size:10px!important;font-weight:800!important;padding:0 10px!important;cursor:pointer!important}
#s8pr-dwr-root .account-table .account-actions button.danger{background:#ffe4e7!important;color:#e11d48!important}
@media(max-width:1100px){#s8pr-dwr-root .account-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:720px){#s8pr-dwr-root .account-grid{grid-template-columns:1fr!important}#s8pr-dwr-root .account-form-actions{align-items:stretch!important;flex-direction:column!important}}

/* v7.7.78 - clean staff report form: hide readonly identity block for staff */
.clean-report-form{position:relative}
.staff-report-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px 0;padding:14px;border:1px solid #e6edf8;border-radius:18px;background:linear-gradient(135deg,#f8fbff,#f6f2ff)}
.staff-report-summary div{background:#fff;border:1px solid #edf2fb;border-radius:14px;padding:12px 14px;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.staff-report-summary span{display:block;font-size:10px;color:#7b8aa2;font-weight:700;text-transform:uppercase;letter-spacing:.03em;margin-bottom:4px}
.staff-report-summary b{font-size:13px;color:#071735}
.report-main-grid{margin-top:0!important}
.form-admin-meta{padding:14px;border:1px solid #e6edf8;border-radius:18px;background:#fbfdff;margin-bottom:18px}
@media(max-width:900px){.staff-report-summary{grid-template-columns:1fr}}


/* Team leader module */
.s8pr-new-badge{float:right;background:#7c3aed;color:#fff;border-radius:12px;padding:2px 8px;font-size:11px;margin-left:6px}
.team-leader-grid{display:grid;grid-template-columns:1fr 1.35fr;gap:18px;align-items:start}
.team-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.team-head button{border:1px solid #d7e0ef;background:#fff;border-radius:10px;padding:8px 14px;cursor:pointer}
.member-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px;max-height:180px;overflow:auto;padding:10px;border:1px solid #dbe4f2;border-radius:14px;background:#f8fbff}.member-checks label{display:flex!important;align-items:center;gap:7px;margin:0!important;font-weight:600}.member-checks small{color:#7a8497;margin-left:auto}
.team-permission{margin-top:14px;background:#eef6ff;border:1px solid #cfe3ff;border-radius:14px;padding:14px;display:grid;gap:7px;color:#16549b}.team-permission span{display:block}
.org-dept{border:1px solid #f4bd49;background:#fff8e8;border-radius:12px;text-align:center;padding:12px;margin-bottom:22px}.org-dept b{display:block;color:#22315b;font-size:18px}.org-dept span{font-size:13px;color:#667085}
.org-leader{margin:0 auto 24px;width:260px;border:1px solid #8b5cf6;border-radius:14px;padding:14px;text-align:center;background:#fbf8ff;box-shadow:0 10px 22px rgba(124,58,237,.10)}.org-leader b{display:inline-flex;width:38px;height:38px;border-radius:50%;background:#ede9fe;align-items:center;justify-content:center;color:#6d28d9;margin-right:8px}.org-leader strong{font-size:17px}.org-leader span{display:inline-block;background:#7c3aed;color:#fff;border-radius:12px;padding:3px 9px;margin-left:6px;font-size:12px}.org-leader small{display:block;margin-top:5px;color:#667085}
.org-lines{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin-bottom:18px}.org-lines>div{border:1px solid #dbe4f2;border-radius:12px;padding:12px;text-align:center;background:#fff}.org-lines b{display:block}.org-lines span{font-size:12px;color:#667085;background:#f1f5f9;border-radius:10px;padding:2px 7px}.team-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.team-stats div{border:1px solid #dbe4f2;border-radius:12px;padding:14px;background:#fff}.team-stats b{display:block;color:#2563eb;font-size:22px}.team-stats span{color:#667085;font-size:12px}.team-guide{background:#fff8e8!important;border-color:#f8daa0!important}.team-guide-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.team-guide-row div{background:rgba(255,255,255,.6);border-radius:14px;padding:14px}.team-guide-row b{display:block;color:#2563eb;margin-bottom:6px}.team-guide-row span{color:#667085;font-size:13px}
@media(max-width:980px){.team-leader-grid,.team-guide-row{grid-template-columns:1fr}.member-checks{grid-template-columns:1fr}.team-stats{grid-template-columns:repeat(2,1fr)}}


/* v7.7.80 - compact polished team leader screen */
#s8pr-dwr-root .team-title{margin-bottom:12px!important}
#s8pr-dwr-root .team-leader-grid{display:grid!important;grid-template-columns:minmax(360px,.95fr) minmax(520px,1.35fr)!important;gap:14px!important;align-items:start!important}
#s8pr-dwr-root .team-leader-grid .s8pr-panel,#s8pr-dwr-root .team-org{padding:16px!important;border-radius:18px!important;box-shadow:0 16px 40px rgba(15,31,68,.06)!important}
#s8pr-dwr-root .team-leader-form{display:block!important}
#s8pr-dwr-root .team-form-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px 12px!important;margin-bottom:12px!important}
#s8pr-dwr-root .team-form-grid label{font-size:10px!important;font-weight:800!important;color:#14213d!important;margin:0!important;min-width:0!important}
#s8pr-dwr-root .team-form-grid input,#s8pr-dwr-root .team-form-grid select{width:100%!important;height:38px!important;min-height:38px!important;border-radius:11px!important;border:1px solid #dce6f5!important;background:#fff!important;font-size:11px!important;padding:0 11px!important;margin-top:6px!important;color:#1b2a4a!important;box-shadow:none!important;white-space:nowrap!important;text-overflow:ellipsis!important}
#s8pr-dwr-root .team-member-box{border:1px solid #e5ecf7!important;background:#fbfdff!important;border-radius:14px!important;padding:12px!important;margin:4px 0 12px!important}
#s8pr-dwr-root .team-member-title{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:10px!important;margin-bottom:9px!important}
#s8pr-dwr-root .team-member-title b{font-size:12px!important;color:#102044!important;font-weight:900!important}
#s8pr-dwr-root .team-member-title span{font-size:10px!important;color:#71809b!important;font-weight:700!important}
#s8pr-dwr-root .member-checks{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;max-height:190px!important;overflow:auto!important;padding-right:4px!important;background:transparent!important;border:0!important}
#s8pr-dwr-root .member-checks label{display:grid!important;grid-template-columns:18px 26px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;background:#fff!important;border:1px solid #e6edf7!important;border-radius:12px!important;padding:8px!important;margin:0!important;min-height:48px!important;font-size:11px!important;color:#17233f!important;box-shadow:0 6px 16px rgba(15,31,68,.035)!important}
#s8pr-dwr-root .member-checks input{width:15px!important;height:15px!important;margin:0!important;accent-color:#2563eb!important}
#s8pr-dwr-root .member-checks .mini-avatar{width:26px!important;height:26px!important;border-radius:9px!important;background:#eef4ff!important;color:#2563eb!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:11px!important;font-weight:900!important;text-transform:uppercase!important}
#s8pr-dwr-root .member-checks b{display:block!important;font-size:11px!important;line-height:1.1!important;color:#102044!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#s8pr-dwr-root .member-checks small{display:block!important;font-size:9px!important;color:#73819d!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin-top:2px!important}
#s8pr-dwr-root .team-permission{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;background:#eef7ff!important;border:1px solid #d7eaff!important;border-radius:14px!important;padding:12px!important;margin:0 0 12px!important;color:#14549b!important;font-size:11px!important}
#s8pr-dwr-root .team-permission b{font-size:11px!important;font-weight:900!important;margin-bottom:2px!important}
#s8pr-dwr-root .team-actions{border-top:1px solid #edf2f8!important;margin-top:0!important;padding-top:12px!important;display:flex!important;justify-content:flex-end!important;gap:10px!important}
#s8pr-dwr-root .team-actions button{height:38px!important;border-radius:12px!important;padding:0 18px!important;font-size:11px!important;font-weight:900!important}
#s8pr-dwr-root .team-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-bottom:10px!important}
#s8pr-dwr-root .team-head h3{margin:0!important;font-size:13px!important;font-weight:900!important;color:#102044!important}
#s8pr-dwr-root .team-head button{height:34px!important;border:1px solid #dbe5f3!important;background:#fff!important;border-radius:11px!important;padding:0 13px!important;font-size:10px!important;font-weight:900!important;color:#14213d!important;cursor:pointer!important}
#s8pr-dwr-root .org-dept{border:1px solid #f2bb46!important;background:linear-gradient(180deg,#fff9ec,#fff4dc)!important;border-radius:14px!important;text-align:center!important;padding:12px!important;margin:2px 0 20px!important}
#s8pr-dwr-root .org-dept b{display:block!important;color:#15264b!important;font-size:17px!important;line-height:1.15!important;font-weight:900!important}
#s8pr-dwr-root .org-dept span{display:block!important;font-size:11px!important;color:#71809b!important;margin-top:4px!important}
#s8pr-dwr-root .org-leader{position:relative!important;margin:0 auto 28px!important;width:min(280px,100%)!important;border:1px solid #8b5cf6!important;border-radius:16px!important;padding:14px 16px!important;text-align:center!important;background:#fbf8ff!important;box-shadow:0 12px 28px rgba(124,58,237,.10)!important}
#s8pr-dwr-root .org-leader:after{content:""!important;position:absolute!important;left:50%!important;bottom:-29px!important;width:1px!important;height:29px!important;background:#c8d2e5!important}
#s8pr-dwr-root .org-leader b{display:inline-flex!important;width:36px!important;height:36px!important;border-radius:50%!important;background:#ede9fe!important;align-items:center!important;justify-content:center!important;color:#6d28d9!important;margin:0 8px 0 0!important;font-size:13px!important;vertical-align:middle!important}
#s8pr-dwr-root .org-leader strong{font-size:16px!important;font-weight:900!important;color:#102044!important;vertical-align:middle!important}
#s8pr-dwr-root .org-leader span{display:inline-block!important;background:#7c3aed!important;color:#fff!important;border-radius:999px!important;padding:4px 10px!important;margin:8px 0 0!important;font-size:10px!important;font-weight:900!important}
#s8pr-dwr-root .org-leader small{display:block!important;margin-top:6px!important;color:#71809b!important;font-size:10px!important;font-weight:700!important}
#s8pr-dwr-root .org-lines{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(105px,1fr))!important;gap:10px!important;margin:0 0 14px!important}
#s8pr-dwr-root .org-lines>div{border:1px solid #dbe4f2!important;border-radius:13px!important;padding:10px 8px!important;text-align:center!important;background:#fff!important;min-height:58px!important;box-shadow:0 8px 18px rgba(15,31,68,.035)!important}
#s8pr-dwr-root .org-lines b{display:block!important;font-size:11px!important;color:#14213d!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#s8pr-dwr-root .org-lines span{display:inline-block!important;font-size:10px!important;color:#71809b!important;background:#f1f5f9!important;border-radius:999px!important;padding:2px 8px!important;margin-top:4px!important}
#s8pr-dwr-root .team-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin-top:6px!important}
#s8pr-dwr-root .team-stats div{border:1px solid #dbe4f2!important;border-radius:14px!important;padding:12px!important;background:#fff!important;min-height:72px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
#s8pr-dwr-root .team-stats b{display:block!important;color:#2563eb!important;font-size:21px!important;line-height:1.05!important;font-weight:900!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#s8pr-dwr-root .team-stats span{color:#71809b!important;font-size:11px!important;font-weight:700!important;margin-top:4px!important}
#s8pr-dwr-root .team-guide{display:none!important}
#s8pr-dwr-root .s8pr-table-wrap table th,#s8pr-dwr-root .s8pr-table-wrap table td{white-space:nowrap!important}
@media(max-width:1180px){#s8pr-dwr-root .team-leader-grid{grid-template-columns:1fr!important}#s8pr-dwr-root .member-checks{grid-template-columns:1fr!important}}
@media(max-width:760px){#s8pr-dwr-root .team-form-grid,#s8pr-dwr-root .team-stats{grid-template-columns:1fr!important}}


/* v7.7.81 - Collapsible sidebar + cleaner team leader screen */
#s8pr-dwr-root .s8pr-sidebar,#s8pr-dwr-root .s8pr-main,#s8pr-dwr-root .s8pr-brand strong,#s8pr-dwr-root .s8pr-brand span,#s8pr-dwr-root .s8pr-create .s8pr-nav-text,#s8pr-dwr-root .s8pr-sidebar .s8pr-nav-text,#s8pr-dwr-root .s8pr-side-bottom{transition:all .22s ease!important}
#s8pr-dwr-root .s8pr-sidebar a{display:flex!important;align-items:center!important;gap:9px!important;min-height:38px!important;white-space:nowrap!important;overflow:hidden!important}
#s8pr-dwr-root .s8pr-nav-ico{width:18px!important;min-width:18px!important;text-align:center!important;display:inline-grid!important;place-items:center!important;font-size:14px!important;line-height:1!important}
#s8pr-dwr-root .s8pr-nav-text{display:inline-flex!important;align-items:center!important;gap:6px!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important}
#s8pr-dwr-root .s8pr-create{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;white-space:nowrap!important;overflow:hidden!important}
#s8pr-dwr-root .s8pr-menu{position:relative!important;z-index:20!important;transition:transform .18s ease,background .18s ease!important}
#s8pr-dwr-root .s8pr-menu:hover{transform:translateY(-1px)!important;background:#f9fbff!important}
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-sidebar{width:72px!important;flex-basis:72px!important;padding-left:10px!important;padding-right:10px!important;overflow-x:hidden!important}
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-brand{justify-content:center!important;margin-bottom:18px!important}
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-brand>div:last-child,#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-create .s8pr-nav-text,#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-sidebar .s8pr-nav-text,#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-side-bottom a{opacity:0!important;width:0!important;max-width:0!important;pointer-events:none!important;overflow:hidden!important}
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-create{height:46px!important;padding:0!important;border-radius:14px!important;margin-bottom:16px!important}
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-sidebar nav a{justify-content:center!important;padding:10px 0!important;border-radius:13px!important}
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-sidebar nav a:hover{transform:none!important}
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-side-bottom{border-top:1px solid rgba(255,255,255,.1)!important;min-height:0!important;padding:8px 0 0!important}
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-top{grid-template-columns:46px minmax(320px,1fr) 112px 44px 160px!important}
#s8pr-dwr-root .s8pr-team-list label,#s8pr-dwr-root .s8pr-member-row{display:grid!important;grid-template-columns:24px 34px minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;padding:8px 10px!important;border-bottom:1px solid #eef2fb!important}
#s8pr-dwr-root .s8pr-team-list label:hover,#s8pr-dwr-root .s8pr-member-row:hover{background:#f8fbff!important}
#s8pr-dwr-root .s8pr-team-list input[type=checkbox]{width:16px!important;height:16px!important;min-height:16px!important;margin:0!important;accent-color:#2764ff!important}
@media(max-width:900px){#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-sidebar{display:none!important}}


/* v7.7.82 - FIX: thu gọn sidebar thật sự, chống cache/ghi đè CSS */
#s8pr-dwr-root.s8pr-sidebar-collapsed .s8pr-sidebar,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed > .s8pr-sidebar{
  width:72px!important;
  min-width:72px!important;
  max-width:72px!important;
  flex:0 0 72px!important;
  padding-left:10px!important;
  padding-right:10px!important;
  overflow-x:hidden!important;
}
#s8pr-dwr-root.s8pr-sidebar-collapsed .s8pr-brand,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-brand{
  justify-content:center!important;
  gap:0!important;
}
#s8pr-dwr-root.s8pr-sidebar-collapsed .s8pr-brand > div:last-child,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-brand > div:last-child,
#s8pr-dwr-root.s8pr-sidebar-collapsed .s8pr-nav-text,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-nav-text,
#s8pr-dwr-root.s8pr-sidebar-collapsed .s8pr-side-bottom a,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-side-bottom a{
  display:none!important;
  opacity:0!important;
  width:0!important;
  max-width:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
}
#s8pr-dwr-root.s8pr-sidebar-collapsed .s8pr-create,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-create{
  height:46px!important;
  min-height:46px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:14px!important;
}
#s8pr-dwr-root.s8pr-sidebar-collapsed .s8pr-sidebar nav a,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-sidebar nav a{
  justify-content:center!important;
  text-align:center!important;
  padding:10px 0!important;
  margin:5px 0!important;
  gap:0!important;
  min-width:0!important;
}
#s8pr-dwr-root.s8pr-sidebar-collapsed .s8pr-nav-ico,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-nav-ico{
  display:inline-grid!important;
  place-items:center!important;
  width:38px!important;
  height:32px!important;
  font-size:16px!important;
  flex:0 0 38px!important;
}
#s8pr-dwr-root.s8pr-sidebar-collapsed .s8pr-side-bottom,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed .s8pr-side-bottom{
  min-height:0!important;
  padding-top:8px!important;
}
#s8pr-dwr-root.s8pr-sidebar-collapsed .s8pr-main,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed > .s8pr-main{
  width:calc(100% - 72px)!important;
  flex:1 1 calc(100% - 72px)!important;
}
@media(max-width:900px){
  #s8pr-dwr-root.s8pr-sidebar-collapsed .s8pr-sidebar,
  #s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed > .s8pr-sidebar{display:none!important}
  #s8pr-dwr-root.s8pr-sidebar-collapsed .s8pr-main,
  #s8pr-dwr-root .s8pr-app.s8pr-sidebar-collapsed > .s8pr-main{width:100%!important;flex-basis:100%!important}
}

/* v7.7.84 - gộp Tổ trưởng & Tổ viên vào Nhân sự, bỏ menu riêng */
#s8pr-dwr-root .staff-clean-grid{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;gap:18px!important;align-items:start!important}
#s8pr-dwr-root .staff-main-panel{padding:16px!important;border-radius:20px!important}
#s8pr-dwr-root .staff-toolbar{display:grid!important;grid-template-columns:minmax(220px,1fr) 180px 180px!important;gap:12px!important;margin-bottom:14px!important}
#s8pr-dwr-root .staff-toolbar input,#s8pr-dwr-root .staff-toolbar select{height:42px!important;border:1px solid #dfe8f5!important;border-radius:13px!important;background:#fff!important;padding:0 14px!important;font-size:12px!important;font-weight:700!important;color:#263655!important;box-shadow:0 8px 22px rgba(15,23,42,.035)!important}
#s8pr-dwr-root .staff-overview-panel{display:grid!important;gap:14px!important}
#s8pr-dwr-root .staff-stat-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;padding:16px!important;border-radius:20px!important}
#s8pr-dwr-root .staff-stat-grid h3{grid-column:1/-1!important;margin:0 0 2px!important;font-size:13px!important;font-weight:900!important;color:#102044!important}
#s8pr-dwr-root .staff-stat-grid div{border:1px solid #e4ebf7!important;border-radius:16px!important;background:#fff!important;padding:16px!important;min-height:86px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
#s8pr-dwr-root .staff-stat-grid b{font-size:24px!important;line-height:1!important;color:#255ff5!important;font-weight:950!important}
#s8pr-dwr-root .staff-stat-grid span{margin-top:7px!important;font-size:12px!important;color:#6c7a92!important;font-weight:700!important}
#s8pr-dwr-root .staff-note{padding:16px!important;border-radius:20px!important;background:#fbfdff!important}
#s8pr-dwr-root .staff-note h3{margin:0 0 8px!important;font-size:13px!important;font-weight:900!important}
#s8pr-dwr-root .staff-note p{margin:0!important;color:#6a7890!important;font-size:12px!important;line-height:1.6!important}
#s8pr-dwr-root .staff-unified-table{border:1px solid #e8eef8!important;border-radius:16px!important;overflow:auto!important;background:#fff!important}
#s8pr-dwr-root .staff-unified-table table{min-width:760px!important;width:100%!important;border-collapse:collapse!important}
#s8pr-dwr-root .staff-unified-table th{height:42px!important;background:#f7f9fd!important;color:#11213d!important;font-size:11px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.01em!important}
#s8pr-dwr-root .staff-unified-table td{padding:12px 14px!important;border-bottom:1px solid #eef2f8!important;font-size:12px!important;color:#24324e!important;vertical-align:middle!important}
#s8pr-dwr-root .role-badge{display:inline-flex!important;align-items:center!important;height:24px!important;border-radius:999px!important;padding:0 10px!important;font-size:11px!important;font-weight:900!important;background:#edf5ff!important;color:#2563eb!important;border:1px solid #dceafe!important;white-space:nowrap!important}
#s8pr-dwr-root .role-leader{background:#f2e9ff!important;color:#7c2cff!important;border-color:#dcc7ff!important}
#s8pr-dwr-root .role-admin{background:#f4ecff!important;color:#6d28d9!important;border-color:#d8c3ff!important}
#s8pr-dwr-root .role-member{background:#edf6ff!important;color:#2563eb!important;border-color:#d6e9ff!important}
#s8pr-dwr-root .role-sub{display:block!important;margin-top:5px!important;font-size:10px!important;color:#7b8798!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:150px!important}
#s8pr-dwr-root .staff-unified-table .account-actions{display:flex!important;gap:7px!important;justify-content:flex-start!important}
#s8pr-dwr-root .staff-unified-table .account-actions button{height:30px!important;min-width:42px!important;border:1px solid #dfe8f7!important;background:#fff!important;color:#1f5fff!important;border-radius:10px!important;font-size:11px!important;font-weight:900!important;padding:0 10px!important;box-shadow:0 6px 14px rgba(15,23,42,.04)!important}
@media(max-width:1250px){#s8pr-dwr-root .staff-clean-grid{grid-template-columns:1fr!important}#s8pr-dwr-root .staff-overview-panel{grid-template-columns:1fr!important}#s8pr-dwr-root .staff-stat-grid{grid-template-columns:repeat(4,1fr)!important}}
@media(max-width:760px){#s8pr-dwr-root .staff-toolbar{grid-template-columns:1fr!important}#s8pr-dwr-root .staff-stat-grid{grid-template-columns:1fr 1fr!important}}

/* v7.8.0 professional HR report additions */
.dept-report-hint{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;margin:0 0 18px;border:1px solid #dbeafe;background:linear-gradient(135deg,#eff6ff,#f5f3ff);border-radius:18px;color:#10254a}
.dept-report-hint b{font-size:15px;color:#1d4ed8}.dept-report-hint span{font-weight:700}.dept-report-hint em{font-style:normal;margin-left:auto;color:#6d28d9;font-weight:700;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:6px 10px}
.professional-report-form textarea{min-height:118px}.professional-report-form .wide textarea[name="postLinks"],.professional-report-form .wide textarea[name="productLinks"],.professional-report-form .wide textarea[name="channels"]{min-height:88px}
.submit-row{display:flex;align-items:center;gap:14px;justify-content:flex-end;margin-top:18px}.submit-row small{color:#64748b;font-weight:600}.telegram-ok{display:inline-flex;align-items:center;gap:4px;color:#0369a1;background:#e0f2fe;border:1px solid #bae6fd;border-radius:999px;padding:5px 10px;font-weight:700}.telegram-miss{display:inline-flex;color:#b45309;background:#fffbeb;border:1px solid #fde68a;border-radius:999px;padding:5px 10px;font-weight:700}
.account-clean-form .account-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.account-clean-form .bulk-import-label{grid-column:1/-1}.s8pr-report-table .row-actions button,.account-actions button{border-radius:10px;min-width:42px}.s8pr-more[data-export]{margin-top:14px;float:right}.dept-form{grid-template-columns:repeat(2,minmax(0,1fr))}.dept-form input[name="description"]{grid-column:1/-1}.dept-form button{grid-column:1/-1}.s8pr-card,.s8pr-panel,.s8pr-box{box-shadow:0 12px 35px rgba(15,23,42,.06)}
@media(max-width:900px){.submit-row{align-items:stretch;flex-direction:column}.dept-report-hint em{margin-left:0}.account-clean-form .account-grid,.dept-form{grid-template-columns:1fr}}


/* v7.8.1 - fix label overlap in professional daily report form */
#s8pr-dwr-root #s8pr-report-form .form-grid label:has(textarea):after,
#s8pr-dwr-root #s8pr-form .form-grid label:has(textarea):after{
  display:none!important;
  content:none!important;
}
#s8pr-dwr-root #s8pr-report-form .form-grid label{
  min-width:0!important;
  overflow:visible!important;
  line-height:1.35!important;
  white-space:normal!important;
  word-break:normal!important;
}
#s8pr-dwr-root #s8pr-report-form .form-grid label.wide,
#s8pr-dwr-root #s8pr-report-form .form-grid label:has(textarea){
  gap:9px!important;
}
#s8pr-dwr-root #s8pr-report-form textarea{
  width:100%!important;
  box-sizing:border-box!important;
  margin-top:0!important;
  clear:both!important;
}
#s8pr-dwr-root #s8pr-report-form .form-grid{
  row-gap:18px!important;
}
#s8pr-dwr-root .dept-report-hint{
  gap:10px!important;
  line-height:1.35!important;
}
#s8pr-dwr-root .dept-report-hint b,
#s8pr-dwr-root .dept-report-hint span,
#s8pr-dwr-root .dept-report-hint em{
  white-space:normal!important;
}
#s8pr-dwr-root .dept-report-hint em{
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}

/* v7.8.2 - report image upload + Telegram setup guard */
.report-images-upload{
  border:1px dashed #b8c7e6;
  background:#f8fbff;
  border-radius:16px;
  padding:14px 16px!important;
}
.report-images-upload input[type="file"]{
  margin-top:10px;
  width:100%;
  border:1px solid #dbe5f6;
  background:#fff;
  border-radius:12px;
  padding:12px;
  cursor:pointer;
}
.report-images-upload small,
#s8pr-upload-info{
  display:block;
  margin-top:8px;
  color:#64748b;
  font-weight:700;
}
.telegram-required-note{
  grid-column:1/-1;
  border-radius:14px;
  padding:12px 14px;
  font-weight:700;
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#1d4ed8;
}
.telegram-required-note.missing{
  border-color:#fed7aa;
  background:#fff7ed;
  color:#c2410c;
}
.telegram-required-note.ok{
  border-color:#bbf7d0;
  background:#f0fdf4;
  color:#15803d;
}
.settings-panel{max-width:720px}
.settings-form{display:grid;gap:16px}
.settings-form label{display:grid;gap:8px;font-weight:800;color:#172554}
.settings-form input{height:52px;border:1px solid #dbe5f6;border-radius:14px;padding:0 16px;font-weight:700;background:#fff}
.telegram-help{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px 14px;color:#334155}
.image-proof-list{display:flex;flex-wrap:wrap;gap:8px}
.image-proof-item{display:inline-flex;align-items:center;gap:6px;border:1px solid #dbe5f6;background:#f8fbff;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:700;color:#1e3a8a}


/* v7.8.3 - cleaner report form, remove guide/chip style */
#s8pr-dwr-root .professional-report-form{
  padding:0!important;
}
#s8pr-dwr-root #s8pr-report-form .form-grid{
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:18px 20px!important;
  align-items:start!important;
}
#s8pr-dwr-root #s8pr-report-form .form-grid label{
  grid-column:span 4!important;
  font-size:12px!important;
  color:#122344!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
}
#s8pr-dwr-root #s8pr-report-form .form-grid label.wide,
#s8pr-dwr-root #s8pr-report-form .form-grid label.report-images-upload{
  grid-column:1/-1!important;
}
#s8pr-dwr-root #s8pr-report-form input,
#s8pr-dwr-root #s8pr-report-form select,
#s8pr-dwr-root #s8pr-report-form textarea{
  border:1px solid #dbe6f6!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:0 6px 18px rgba(15,23,42,.035)!important;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
#s8pr-dwr-root #s8pr-report-form input:focus,
#s8pr-dwr-root #s8pr-report-form select:focus,
#s8pr-dwr-root #s8pr-report-form textarea:focus{
  border-color:#7c3aed!important;
  box-shadow:0 0 0 4px rgba(124,58,237,.10),0 10px 28px rgba(15,23,42,.07)!important;
  outline:none!important;
}
#s8pr-dwr-root #s8pr-report-form textarea[name="main"]{
  min-height:132px!important;
}
#s8pr-dwr-root .report-images-upload{
  background:linear-gradient(180deg,#fbfdff,#f8fbff)!important;
  border:1.5px dashed #b9c9e8!important;
  padding:18px!important;
}
#s8pr-dwr-root .telegram-required-note.ok{
  display:none!important;
}
#s8pr-dwr-root .submit-row{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:14px!important;
  margin-top:22px!important;
}
#s8pr-dwr-root .submit-row:before{
  content:'LƯU NHÁP';
  display:flex;
  align-items:center;
  justify-content:center;
  height:52px;
  border:1px solid #dbe6f6;
  border-radius:15px;
  background:#fff;
  color:#13213b;
  font-weight:900;
}
#s8pr-dwr-root .submit-row .submit{
  width:100%!important;
  height:52px!important;
  border-radius:15px!important;
  box-shadow:0 16px 32px rgba(99,102,241,.22)!important;
}
@media(max-width:900px){
  #s8pr-dwr-root #s8pr-report-form .form-grid label{grid-column:1/-1!important}
  #s8pr-dwr-root .submit-row{grid-template-columns:1fr!important}
}

/* v7.8.4 - Sidebar gọn: mặc định chỉ hiện icon, rê chuột/click menu mới mở rộng */
#s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar{
  width:72px!important;flex:0 0 72px!important;padding:18px 10px!important;overflow-x:hidden!important;
}
#s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar .s8pr-brand{justify-content:center!important;margin-bottom:16px!important}
#s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar .s8pr-brand>div:last-child,
#s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar .s8pr-nav-text,
#s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar .s8pr-side-bottom a{
  opacity:0!important;width:0!important;max-width:0!important;min-width:0!important;pointer-events:none!important;overflow:hidden!important;white-space:nowrap!important;
}
#s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar .s8pr-create{height:52px!important;padding:0!important;justify-content:center!important;border-radius:16px!important;margin-bottom:18px!important}
#s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar nav a{justify-content:center!important;padding:12px 0!important;border-radius:14px!important;margin:6px 0!important;gap:0!important}
#s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar .s8pr-nav-ico{width:24px!important;min-width:24px!important;text-align:center!important;font-size:16px!important}
#s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar .s8pr-side-bottom{padding-top:12px!important;margin-top:14px!important}
#s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar:hover,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-hover > .s8pr-sidebar{
  width:238px!important;flex-basis:238px!important;padding:18px 14px!important;box-shadow:18px 0 40px rgba(7,19,49,.18)!important;z-index:20!important;
}
#s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar:hover .s8pr-brand,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-hover > .s8pr-sidebar .s8pr-brand{justify-content:flex-start!important}
#s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar:hover .s8pr-brand>div:last-child,
#s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar:hover .s8pr-nav-text,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-hover > .s8pr-sidebar .s8pr-brand>div:last-child,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-hover > .s8pr-sidebar .s8pr-nav-text{
  opacity:1!important;width:auto!important;max-width:170px!important;min-width:0!important;pointer-events:auto!important;
}
#s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar:hover .s8pr-create,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-hover > .s8pr-sidebar .s8pr-create{height:58px!important;padding:0 18px!important;justify-content:center!important;gap:10px!important}
#s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar:hover nav a,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-hover > .s8pr-sidebar nav a{justify-content:flex-start!important;padding:10px 11px!important;gap:9px!important}
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-open > .s8pr-sidebar{width:238px!important;flex-basis:238px!important}
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-open > .s8pr-sidebar .s8pr-nav-text,
#s8pr-dwr-root .s8pr-app.s8pr-sidebar-open > .s8pr-sidebar .s8pr-brand>div:last-child{opacity:1!important;width:auto!important;max-width:170px!important}
@media(max-width:900px){
  #s8pr-dwr-root .s8pr-app:not(.s8pr-sidebar-open) > .s8pr-sidebar{display:none!important}
}


/* v7.8.6: Department-based staff report */
.dept-report-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0 22px}
.dept-report-block{margin-bottom:22px;overflow:hidden}
.dept-report-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.dept-report-head h3{font-size:22px;margin:0;color:#071b4d}
.dept-report-head p{margin:5px 0 0;color:#7583a3;font-size:14px}
.dept-report-head span{padding:8px 14px;border-radius:999px;background:#f0f5ff;color:#2563eb;font-weight:800;font-size:13px;white-space:nowrap}
.dept-mini-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}
.dept-mini-kpis div{background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid #e4ebf7;border-radius:18px;padding:14px 16px;box-shadow:0 10px 26px rgba(11,31,78,.04)}
.dept-mini-kpis small{display:block;color:#7785a1;font-weight:700;margin-bottom:6px}
.dept-mini-kpis b{font-size:22px;color:#0b1f4d}
.dept-staff-table table th,.dept-staff-table table td{white-space:nowrap}
.dept-staff-table td small{display:block;max-width:240px;overflow:hidden;text-overflow:ellipsis;color:#7c8aa6;margin-top:3px}
@media(max-width:1200px){.dept-report-overview,.dept-mini-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.dept-report-overview,.dept-mini-kpis{grid-template-columns:1fr}.dept-report-head{align-items:flex-start;flex-direction:column}}


/* v7.9.0 - Media Performance Platform */
.s8pr-left{max-width:100%;}.media-dashboard,.report-workspace{display:flex;flex-direction:column;gap:18px}.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;background:#eef2ff;color:#4f46e5;font-weight:800;font-size:11px;letter-spacing:.06em;margin-bottom:8px}.media-title h1{font-size:28px;letter-spacing:-.03em}.media-actions{display:flex;gap:10px;align-items:center}.s8pr-outline{border:1px solid #dbe4f4;background:#fff;color:#1f3b72;border-radius:14px;padding:12px 18px;font-weight:800;cursor:pointer}.media-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.media-kpi{background:#fff;border:1px solid #e7edf8;border-radius:22px;padding:18px;box-shadow:0 14px 35px rgba(31,59,114,.07);min-height:116px}.media-kpi.primary{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff}.media-kpi small{display:block;color:#75819a;font-weight:800;margin-bottom:10px}.media-kpi.primary small,.media-kpi.primary span{color:rgba(255,255,255,.85)}.media-kpi b{display:block;font-size:30px;letter-spacing:-.04em;color:#061942}.media-kpi.primary b{color:#fff}.media-kpi span{display:block;color:#7c879c;font-size:12px;margin-top:8px}.media-kpi-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}.media-kpi-grid.compact .media-kpi{min-height:auto;padding:14px}.media-main-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:18px}.media-card{border-radius:24px!important;border:1px solid #e8eef8!important;box-shadow:0 16px 40px rgba(7,18,49,.06)!important}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.role-bars{display:flex;flex-direction:column;gap:16px}.role-row{display:grid;grid-template-columns:1fr 190px 60px;gap:14px;align-items:center;padding:12px;border-radius:16px;background:#f8fbff}.role-row small{display:block;color:#78849b;margin-top:4px}.top-list{display:flex;flex-direction:column;gap:10px}.top-list>div{display:grid;grid-template-columns:34px 1fr auto;gap:12px;align-items:center;padding:12px;border:1px solid #edf1f8;border-radius:16px}.top-list span{height:34px;width:34px;border-radius:50%;display:grid;place-items:center;background:#eef2ff;color:#4f46e5;font-weight:900}.top-list small{display:block;color:#7f8aa0;margin-top:3px}.top-list button{border:0;background:#eef2ff;color:#3152d4;border-radius:10px;padding:8px 12px;font-weight:800}.report-create-card .clean-report-form{padding:0;border:0;box-shadow:none;background:transparent}.professional-report-form .form-grid{gap:18px}.professional-report-form label{font-weight:800;color:#14213d}.professional-report-form input,.professional-report-form textarea,.professional-report-form select{margin-top:8px;border-radius:15px!important;border:1px solid #dce6f6!important;background:#fff!important;min-height:48px}.professional-report-form textarea{min-height:130px}.report-images-upload{border:1px dashed #8b5cf6;border-radius:18px;padding:16px;background:linear-gradient(180deg,#fbfaff,#fff)}.telegram-required-note{grid-column:1/-1;padding:12px 14px;border-radius:14px;font-weight:800}.telegram-required-note.ok{background:#ecfdf5;color:#047857}.telegram-required-note.missing{background:#fff7ed;color:#c2410c}.submit-row{display:grid;grid-template-columns:1fr;}.submit-row .submit{height:52px;border-radius:16px;font-size:15px}.dept-mini-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.dept-mini-kpis>div{background:#f8fbff;border:1px solid #e7edf8;border-radius:18px;padding:14px}.dept-mini-kpis small{display:block;color:#77839a}.dept-mini-kpis b{font-size:22px;color:#0b1b3f}.performance-table th,.performance-table td{white-space:nowrap}.performance-table td:nth-child(4){white-space:normal;min-width:220px}.s8pr-app.s8pr-sidebar-collapsed .s8pr-sidebar{width:74px}.s8pr-app.s8pr-sidebar-collapsed .s8pr-nav-text,.s8pr-app.s8pr-sidebar-collapsed .s8pr-brand div:not(.s8pr-logo),.s8pr-app.s8pr-sidebar-collapsed .s8pr-side-bottom a{display:none!important}@media(max-width:1400px){.media-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.media-main-grid{grid-template-columns:1fr}}@media(max-width:900px){.media-kpi-grid,.media-kpi-grid.compact{grid-template-columns:1fr 1fr}.role-row{grid-template-columns:1fr}.media-actions{flex-direction:column;align-items:stretch}.s8pr-detail{display:none!important}}

/* v7.9.1 - Staff page full frame */
#s8pr-dwr-root.s8pr-page-staff .s8pr-content{grid-template-columns:minmax(0,1fr)!important;}
#s8pr-dwr-root.s8pr-page-staff .s8pr-detail{display:none!important;}
#s8pr-dwr-root.s8pr-page-staff .s8pr-left{width:100%!important;max-width:100%!important;}
#s8pr-dwr-root .staff-full-panel{width:100%!important;max-width:100%!important;padding:22px!important;border-radius:24px!important;overflow:hidden!important;}
#s8pr-dwr-root .staff-full-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin-bottom:18px!important;}
#s8pr-dwr-root .staff-full-kpis>div{background:linear-gradient(180deg,#ffffff,#f8fbff)!important;border:1px solid #e6edf8!important;border-radius:18px!important;padding:16px 18px!important;box-shadow:0 12px 28px rgba(31,59,114,.06)!important;}
#s8pr-dwr-root .staff-full-kpis b{display:block!important;font-size:28px!important;color:#2563eb!important;letter-spacing:-.03em!important;}
#s8pr-dwr-root .staff-full-kpis span{display:block!important;color:#66758f!important;font-weight:700!important;margin-top:4px!important;}
#s8pr-dwr-root.s8pr-page-staff .s8pr-table-wrap{width:100%!important;max-width:100%!important;overflow:auto!important;}
#s8pr-dwr-root.s8pr-page-staff .staff-table{width:100%!important;min-width:980px!important;}
@media(max-width:900px){#s8pr-dwr-root .staff-full-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
