/* Modern form controls */
.admin-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="range"]):not([type="hidden"]),
.admin-page select,
.admin-page textarea{
  min-height:40px;border:1px solid #dfe5ef;border-radius:11px;background:#fff;color:#1f2937;
  padding:8px 11px;font:inherit;font-size:12.5px;line-height:1.5;box-sizing:border-box;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.admin-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="range"]):not([type="hidden"]):focus,
.admin-page select:focus,.admin-page textarea:focus{outline:0;border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.14)}
.admin-page input::placeholder,.admin-page textarea::placeholder{color:#9aa5b8}
.admin-page select{cursor:pointer;padding-inline-end:30px}
.admin-page textarea{min-height:80px;resize:vertical}
.il-row input:not([type="checkbox"]):not([type="radio"]){width:76px!important;min-height:34px!important;height:34px!important;padding:5px 8px!important;text-align:center;font-weight:800}
.il-row select:not([type="checkbox"]),.il-row textarea{min-height:34px!important}
html[data-theme="dark"] .admin-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="range"]):not([type="hidden"]),
html[data-theme="dark"] .admin-page select,html[data-theme="dark"] .admin-page textarea{background:#0b1220!important;border-color:#26334a!important;color:#e5e7eb!important}


/* module titles */
.admin-page-header h1,.ii-header h1,.usr-hero-copy h1{font-size:clamp(22px,2.5vw,30px);font-weight:800;letter-spacing:-.5px;line-height:1.35;margin:5px 0 7px;color:#0f172a}
.admin-page-header p,.admin-page-header .muted,.ii-header p{font-size:14px;line-height:1.7;color:#64748b}
.admin-topbar .page-title{font-size:20px;font-weight:800;letter-spacing:-.3px}
@media(max-width:640px){.admin-page-header h1,.ii-header h1{font-size:22px}.admin-topbar .page-title{font-size:16px}}

/* module header cards */
.admin-page-header{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;background:linear-gradient(135deg,#ffffff,#f8faff);border:1px solid #e8ecf4;border-radius:20px;padding:18px 20px;margin-bottom:14px;box-shadow:0 8px 26px rgba(28,39,75,.05)}
.admin-page-header:not([data-kicker]){padding-top:18px}
.admin-page-header[data-kicker]::before{display:none!important;content:none!important}
.admin-page-header h1{margin:0;font-size:clamp(22px,2.5vw,30px);font-weight:800;letter-spacing:-.5px;line-height:1.35;color:#0f172a}
.admin-page-header>div{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
html[data-theme="dark"] .admin-page-header{background:#0f172a!important;border-color:#1f2937!important}
html[data-theme="dark"] .admin-page-header h1{color:#e5e7eb}
@media(max-width:640px){.admin-page-header{padding:16px 14px}}

/* institute tab bar */
.ii-optabs{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden;scrollbar-width:thin;justify-content:flex-start;align-items:center}
.ii-optabs>*{flex:0 0 auto!important}
.ii-optabs .ii-optab{margin-inline-start:0!important;white-space:nowrap}
.ii-optabs::-webkit-scrollbar{height:5px}
.ii-optabs::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}

/* shared institute tabs */
.ii-optabs{display:flex;align-items:center;gap:6px;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden;margin:0 0 14px;padding:8px;background:#f8fafc;border:1px solid #eef2f7;border-radius:12px;scrollbar-width:thin}
.ii-optab{border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:9px;padding:7px 12px;font:inherit;font-size:11.5px;font-weight:800;cursor:pointer;display:inline-flex;gap:6px;align-items:center;white-space:nowrap;flex:0 0 auto}
.ii-optab.active{background:linear-gradient(135deg,#4338ca,#6366f1);color:#fff;border-color:#4338ca}
.ii-optabs::-webkit-scrollbar{height:5px}
.ii-optabs::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}

/* hide auto translate in tabs */
.ii-optabs .az-tr-btn,.ii-optabs .ii-tr,.ii-optabs .ii-btn.ii-tr{display:none!important}

.az-group-tabs{display:flex;align-items:center;gap:4px;flex-wrap:wrap;width:100%;background:#fff;border:1px solid #e8ecf4;border-radius:16px;padding:6px;margin:0 0 12px;box-shadow:0 6px 20px rgba(28,39,75,.05);position:relative;z-index:3}
.az-group-tabs-title{font-size:11px;font-weight:900;color:#4338ca;background:#eef2ff;border-radius:10px;padding:7px 11px;margin-inline-end:4px;white-space:nowrap}
.az-group-tab{border:0;background:transparent;color:#475569;border-radius:10px;padding:8px 13px;font:inherit;font-size:11px;font-weight:900;cursor:pointer;white-space:nowrap;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
.az-group-tab:hover{background:#f1f5f9;color:#1e293b}
.az-group-tab.active{background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;box-shadow:0 8px 20px rgba(79,70,229,.28)}
.az-group-mobile-select{display:none}
@media(max-width:700px){
  .az-group-tabs{background:#fff;border:1px solid #e8ecf4;box-shadow:0 4px 14px rgba(28,39,75,.05);padding:6px;margin:0 0 10px;gap:5px;overflow:visible;flex-wrap:wrap}
  .az-group-tabs-title,.az-group-tab{display:none!important}
  .az-group-mobile-select{display:block;width:100%;border:1px solid #e2e8f0;background:#f8fafc;color:#1e293b;border-radius:10px;padding:11px 12px;font:inherit;font-size:12px;font-weight:900;appearance:none;background-image:linear-gradient(45deg,transparent 50%,#64748b 50%),linear-gradient(135deg,#64748b 50%,transparent 50%);background-position:calc(100% - 18px) calc(50% - 2px),calc(100% - 13px) calc(50% - 2px);background-size:5px 5px,5px 5px;background-repeat:no-repeat}
  .az-group-mobile-select:focus{outline:0;border-color:#a5b4fc;box-shadow:0 0 0 3px rgba(99,102,241,.14)}
}
