/* SMANJA Vote Guru — Office Pro Ultimate 14.0 | progressive, non-destructive design layer */
:root{--office:#1765b5;--office-deep:#103966;--office-line:#d9e5f2;--office-bg:#f3f7fc;--office-muted:#60758e}
*,*:before,*:after{box-sizing:border-box}html{max-width:100%;overflow-x:clip}body{max-width:100%;overflow-x:clip}
body{font-family:Inter,'Segoe UI',Arial,sans-serif!important}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}
/* Office admin workspace */
body:has(.sidebar){background:var(--office-bg)!important;color:#203a57}
.sidebar{background:linear-gradient(180deg,#123b70,#0b2c56)!important;box-shadow:5px 0 24px #173d6712}
.sidebar .brand{border-bottom:1px solid #ffffff22!important}.sidebar .nav>a{border-radius:9px!important;margin:2px 9px!important;transition:background .15s,color .15s}.sidebar .nav>a:hover{background:#ffffff19!important}.sidebar .nav>a.active{background:#ffffffee!important;color:#1256a1!important}
.topbar{background:#ffffffed!important;backdrop-filter:blur(12px);border-bottom:1px solid var(--office-line)!important}.content{min-width:0;max-width:100%}
.page-head{gap:12px}.page-head h1{font-size:clamp(1.15rem,2.2vw,1.55rem)!important;letter-spacing:-.02em}
.card{border:1px solid var(--office-line)!important;border-radius:12px!important;box-shadow:0 4px 16px #0d3a6910!important;min-width:0}.card-head{background:linear-gradient(100deg,#f8fbff,#edf5ff)!important;border-bottom:1px solid var(--office-line)!important;padding-top:13px!important;padding-bottom:13px!important}
.card-body{min-width:0}.btn,.button,button{border-radius:8px}.btn.primary,button.primary{background:#1765b5!important}
input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:13px!important;max-width:100%;min-width:0;border-radius:8px!important}
.grid,.grid>*{min-width:0}.table-wrap,.table-responsive,.table-container{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
table{max-width:100%;border-collapse:collapse}thead th{background:#eaf2fb!important;color:#173b67!important;font-weight:700!important}tbody tr:nth-child(even){background:#f7faff}tbody tr:hover{background:#eaf4ff!important}td,th{vertical-align:middle}
.alert{border-radius:9px}.v7-dashboard-hero{border-radius:12px!important;background:linear-gradient(118deg,#10447b,#2176c5)!important;padding:20px 23px!important}
.v7-dashboard-hero:after{opacity:.3}.v7-dashboard-copy h2{font-size:1.22rem!important}
/* Login (compact professional look) */
body:has(.login){background:linear-gradient(135deg,#edf5ff,#f8fbff)!important}.login{border-radius:14px!important;box-shadow:0 18px 54px #0d3a6920!important}.login-hero{background:linear-gradient(145deg,#0b3973,#2276c8)!important;padding:36px!important}.login-hero h1{margin-top:40px!important}.login-form{padding:38px!important}
.office-password{position:relative;display:block}.office-password input{padding-right:49px!important;width:100%}.office-eye{position:absolute;right:5px;top:50%;transform:translateY(-50%);border:0;background:transparent!important;color:#25639d;min-width:38px;height:36px;cursor:pointer}
/* Public portal and student pages */
body.public-home{background:#f5f9ff!important}.portal-header{background:#fffffff0!important;backdrop-filter:blur(12px)}
.portal-hero{background:linear-gradient(125deg,#0c3a72,#2374bd)!important}.portal-hero-grid{align-items:center!important}.portal-hero-copy h1{font-size:clamp(1.6rem,3vw,2.9rem)!important;line-height:1.16!important}.portal-live-status{border-radius:13px!important}.portal-primary-action{border-radius:10px!important}
.public-home .container{max-width:1200px}.portal-kicker{letter-spacing:.03em}
.student-login-body,.vote-v13-body{background-color:#f4f8fe!important}
/* Accessible, no global horizontal overflow on phones. Wide data stays inside table wrappers. */
@media(max-width:800px){.shell{min-width:0!important}.content{padding:14px 10px!important}.sidebar{max-width:min(295px,88vw)}.topbar{padding-inline:12px!important}.admin-chip{max-width:45vw;overflow:hidden}.admin-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-body{padding:12px!important}.grid.stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.page-head{margin-bottom:14px}.v7-dashboard-hero{padding:16px!important;gap:10px!important}.portal-hero{padding-block:32px!important}.portal-hero-grid{grid-template-columns:1fr!important}.portal-hero-copy h1{font-size:1.85rem!important}.portal-navigation{flex-wrap:wrap}.portal-menu{flex-wrap:wrap}.login-form{padding:24px!important}.login-hero{padding:24px!important}}
@media(max-width:420px){.grid.stats{grid-template-columns:1fr!important}.page-head h1{font-size:1.12rem!important}.v7-dashboard-copy h2{font-size:1.08rem!important}th,td{font-size:11px!important;padding:7px 6px!important}.portal-hero-copy h1{font-size:1.65rem!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
