:root {
    --primary-blue: #2563eb;
    --primary-blue-light: #E3F2FD;
    --primary-blue-dark: #1d4ed8;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #1F2937;
    --green-500: #10B981;
    --orange-500: #F97316;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.gd-app-shell > .app-container {
    height: auto;
    flex: 1;
    min-height: 0;
}

/* Sidebar */
.nov_sidebar {
    width: 224px;
    background-color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-height: 0;
    height: 100%;
}

html.gradingly-product-ui:has(.gd-powered-footer) .nov_sidebar.gd-shell-sidebar:not(.mobile) {
    position: relative;
    z-index: 1;
}

.nov_sidebar.mobile {
    display: none;
}

.nov_sidebar-header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
}

.nov_sidebar-logo {
    max-height: 28px;
    width: auto;
}

.nov_sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    border-right: 1px solid var(--gray-200);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 0.5rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.nav-item:hover {
    background-color: var(--primary-blue-light);
    color: var(--gray-900);
    text-decoration: none;
}

.nav-item.active {
    background-color: #DBEAFE;
    color: #1E40AF;
    font-weight: 600;
}

.nav-item i {
    width: 20px;
    margin-right: 0.75rem;
    color: var(--gray-500);
}

.nav-item.active i {
    color: var(--primary-blue);
}

.nav-divider {
    height: 1px;
    background-color: var(--gray-200);
    margin: 0.25rem 0;
}

.nov_sidebar-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    margin-top: auto;
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--gray-600);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Bar */
.top-bar {
    height: 50px;
    background-color: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gray-600);
}

.top-bar-controls {
    display: flex;
    align-items: center;
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.top-bar-select {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-900);
    cursor: pointer;
}

.top-bar-select:focus {
    outline: none;
}

.top-bar-divider {
    width: 1px;
    height: 24px;
    background-color: var(--gray-300);
    margin: 0 0.25rem;
}
.rounded-top-5 {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}
/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    background-color: #f9fafb;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.page-description {
    color: var(--gray-600);
    font-size: 1rem;
}

/* Filters */
.filters-section {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    height: 40px;
    padding-left: 2.5rem;
    padding-right: 3rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(43, 133, 240, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-kbd {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 0.25rem;
}

.filter-select-wrapper {
    position: relative;
}

.filter-select {
    width: 100%;
    height: 40px;
    padding: 0 2rem 0 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background-color: white;
    appearance: none;
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(43, 133, 240, 0.1);
    outline: none;
}

.select-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

/* Results */
.results-summary {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Table */
.tests-table-wrapper {
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    overflow: hidden;
}

.tests-table {
    width: 100%;
    margin-bottom: 0;
}

.tests-table thead th {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--table-header-fg, #2d3748);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--table-header-bg, #f4f4f7);
}

.tests-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background-color 0.2s;
}

.tests-table tbody tr:hover {
    background-color: var(--gray-50);
}

.tests-table tbody tr:last-child {
    border-bottom: none;
}

.tests-table tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
}

.nov_test-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.test-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 0.25rem;
    cursor: pointer;
}

.test-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background-color: var(--gray-500);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.test-name {
    font-weight: 500;
    color: var(--gray-900);
    font-size: 0.875rem;
}

.test-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    max-width: 400px;
}

.test-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.subscription-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subscription-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.subscription-dot.free {
    background-color: var(--green-500);
}

.subscription-dot.premium {
    background-color: var(--orange-500);
}

.subscription-text {
    font-size: 0.875rem;
    color: var(--gray-900);
}

.assign-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.assign-btn:hover {
    background-color: var(--primary-blue-dark);
}

/* Hidden class for filtering */
.novium-hidden {
    display: none !important;
}

/* Mobile Sidebar Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-overlay.active {
    display: block;
}

@media (max-width: 991.98px) {
    .nov_sidebar.mobile {
        display: flex;
        position: fixed;
        left: -224px;
        top: 0;
        bottom: 0;
        z-index: 1001;
        transition: left 0.3s;
    }
}

.nov_sidebar.mobile.active {
    left: 0;
}

.close-nov_sidebar-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--gray-500);
}

.close-nov_sidebar-btn:hover {
    color: var(--gray-900);
}

/* Responsive */
@media (max-width: 991.98px) {
    .nov_sidebar {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .close-nov_sidebar-btn {
        display: block;
    }

    .top-bar {
        padding: 0 0.5rem;
    }

    .content-area {
        padding: 1.5rem 1rem;
    }

    .tests-table-wrapper {
        overflow-x: auto;
    }

    .tests-table {
        min-width: 800px;
    }
}

@media (max-width: 767.98px) {
    .page-title {
        font-size: 1.25rem;
    }

    .top-bar-controls {
        flex: 1;
        max-width: 400px;
        margin: 0 0.5rem;
    }

    .top-bar-select {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

.nav-item span {
  margin-left: 0.5rem;
}

html.gradingly-product-ui {
  --primary-blue: var(--brand-primary, var(--background-color, #2563eb));
  --primary-blue-light: var(--brand-primary-light, color-mix(in srgb, var(--background-color, #2563eb) 14%, white));
  --primary-blue-dark: var(--brand-primary-dark, color-mix(in srgb, var(--background-color, #2563eb) 78%, black));
}

html.gradingly-product-ui .nov_sidebar.gd-shell-sidebar .nav-item {
  border-radius: 999px;
  font-weight: 500;
  color: #4b5563;
  padding: 0.5rem 1rem;
  gap: 0.15rem;
  border: 1.5px solid transparent;
  box-shadow: none;
  transform: translate(0, 0);
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

html.gradingly-product-ui .nov_sidebar.gd-shell-sidebar .nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: currentColor;
  stroke: currentColor;
}

html.gradingly-product-ui .nov_sidebar.gd-shell-sidebar .nav-item:hover:not(.active) {
  background-color: #fff;
  color: #111827;
  font-weight: 600;
  border: 1.5px solid #0c1222;
  box-shadow: 3px 3px 0 #0c1222;
  transform: translate(-1px, -1px);
}

html.gradingly-product-ui .nov_sidebar.gd-shell-sidebar .nav-item.active {
  background-color: var(--brand-primary, var(--background-color, #2563eb));
  color: #fff;
  font-weight: 600;
  border: 1.5px solid #0c1222;
  box-shadow: 2px 2px 0 #0c1222;
  transform: translate(0, 0);
}

html.gradingly-product-ui .nov_sidebar.gd-shell-sidebar .nav-item.active:hover {
  box-shadow: 3px 3px 0 #0c1222;
  transform: translate(-1px, -1px);
}

html.gradingly-product-ui .nov_sidebar.gd-shell-sidebar .nav-item:hover:active,
html.gradingly-product-ui .nov_sidebar.gd-shell-sidebar .nav-item.active:active {
  box-shadow: 1px 1px 0 #0c1222;
  transform: translate(1px, 1px);
}

html.gradingly-product-ui .nov_sidebar.gd-shell-sidebar .nav-item.active i,
html.gradingly-product-ui .nov_sidebar.gd-shell-sidebar .nav-item.active svg {
  color: #fff;
  stroke: #fff;
}

html.gradingly-product-ui .nov_sidebar.gd-shell-sidebar .logout-btn {
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
  font-size: 13px;
  padding: 0.5rem 1.1rem;
  min-height: 36px;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: none;
  transform: none;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

html.gradingly-product-ui .nov_sidebar.gd-shell-sidebar .logout-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #d1d5db;
  box-shadow: none;
  transform: none;
  text-decoration: none;
}

html.gradingly-product-ui .nov_sidebar.gd-shell-sidebar .logout-btn:active {
  background: #e2e8f0;
  box-shadow: none;
  transform: none;
}

html.gradingly-product-ui .nov_sidebar.gd-shell-sidebar .logout-btn svg {
  width: 18px;
  height: 18px;
  color: currentColor;
  stroke: currentColor;
}

html.gradingly-product-ui .gd-shell-nav {
  display: flex;
  flex-shrink: 0;
  min-height: 0;
  height: 100%;
  padding-left: 76px;
  background: #fff;
  position: relative;
  z-index: 60;
  overflow: visible;
  box-sizing: border-box;
}

html.gradingly-product-ui .nov_sidebar.gd-rail-only,
html.gradingly-product-ui:has(.gd-powered-footer) .nov_sidebar.gd-rail-only:not(.mobile) {
  position: fixed;
  top: 52px;
  left: 0;
  bottom: 0;
  width: 76px;
  height: auto;
  border-right: 0;
  box-shadow: 1px 0 0 #e5ebf3;
  align-items: stretch;
  z-index: 40;
  overflow: visible;
  box-sizing: border-box;
  background: #fff;
}

html.gradingly-product-ui .gd-teach-subhead .gd-page-subheader-inner {
  justify-content: space-between;
  width: 100%;
  align-items: center;
  gap: 10px 16px;
}

html.gradingly-product-ui .gd-teach-class-form {
  margin: 0;
  flex-shrink: 0;
}

html.gradingly-product-ui .gd-teach-subhead .gd-page-subheader-actions {
  margin-left: auto;
}

html.gradingly-product-ui .gd-new-material {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1.5px solid #0c1222 !important;
  background: var(--brand-primary, var(--background-color, #2563eb)) !important;
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 2px 2px 0 #0c1222 !important;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

html.gradingly-product-ui .gd-new-material:hover {
  color: #fff !important;
  text-decoration: none;
}

html.gradingly-product-ui .gd-class-pick {
  position: relative;
  display: inline-flex;
}

html.gradingly-product-ui .gd-class-pick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  max-width: 280px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e5ebf3 !important;
  background: #f7f9fc !important;
  color: #0c1222 !important;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

html.gradingly-product-ui .gd-class-pick-btn .gd-class-pick-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.gradingly-product-ui .gd-class-pick-btn.is-plain {
  height: auto;
  max-width: 560px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

html.gradingly-product-ui .gd-class-pick-btn.is-plain .gd-badge-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 32px;
  padding: 0 7px;
  font-size: 11px;
  line-height: 1;
  box-sizing: border-box;
}

html.gradingly-product-ui .gd-class-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  width: 320px;
  max-height: 360px;
  overflow: auto;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #e5ebf3;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

html.gradingly-product-ui .gd-class-menu-label {
  margin: 0;
  padding: 6px 10px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
}

html.gradingly-product-ui .gd-class-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left;
  cursor: pointer;
  color: #0c1222;
  appearance: none;
  -webkit-appearance: none;
}

html.gradingly-product-ui .gd-class-item:hover,
html.gradingly-product-ui .gd-class-item.is-on {
  background: #f3f6fb !important;
}

html.gradingly-product-ui .gd-class-item .gd-badge-level {
  min-width: 26px;
  height: 18px;
  padding: 0 6px;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.gradingly-product-ui .gd-class-layers {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
}

html.gradingly-product-ui .gd-class-name {
  min-width: 0;
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.gradingly-product-ui .gd-class-count {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

html.gradingly-product-ui .gd-teach-subhead-note {
  margin: 4px 0 0;
  color: #5a6b82;
  font-size: 13.5px;
  font-weight: 500;
}

html.gradingly-product-ui .gd-assess-subhead-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
  flex: 1 1 auto;
}

html.gradingly-product-ui .gd-assess-subhead-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #0c1222;
  white-space: nowrap;
}

html.gradingly-product-ui .gd-assess-subhead-note {
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  color: #5a6b82;
  line-height: 1.3;
  white-space: nowrap;
}

html.gradingly-product-ui .gd-press-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 7px;
  border-radius: 9999px;
  background: #0c1222;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

html.gradingly-product-ui .gd-press-badge-logo {
  width: 12px;
  height: 12px;
  display: block;
  flex-shrink: 0;
}

html.gradingly-product-ui .gd-rail {
  width: 76px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 0 12px;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  z-index: 4;
  box-sizing: border-box;
}

html.gradingly-product-ui .gd-rail-btn {
  width: 66px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 5px 0 6px;
  border-radius: 12px;
  border: 0;
  color: #5a6b82;
  background: transparent;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
  box-shadow: none;
}

html.gradingly-product-ui .gd-rail-ico {
  width: 44px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
  background: transparent;
  color: #5a6b82;
  box-sizing: border-box;
}

html.gradingly-product-ui .gd-rail-btn svg {
  width: 22px;
  height: 22px;
}

html.gradingly-product-ui .gd-rail-label {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: inherit;
}

html.gradingly-product-ui .gd-rail-btn:hover {
  background: #f8fafc;
  color: #0c1222;
  text-decoration: none;
  box-shadow: none;
}

html.gradingly-product-ui .gd-rail-btn.is-on {
  color: #0c1222;
  background: transparent;
  box-shadow: none;
}

html.gradingly-product-ui .gd-rail-btn.is-on .gd-rail-ico {
  border-color: #0c1222;
  background: var(--brand-primary, var(--background-color, #2563eb));
  color: #fff;
  box-shadow: 2px 2px 0 #0c1222;
}

html.gradingly-product-ui .gd-rail-btn.is-on .gd-rail-label {
  font-weight: 700;
}

html.gradingly-product-ui .gd-rail-logout {
  color: #5a6b82;
}

html.gradingly-product-ui .gd-rail-logout .gd-rail-ico {
  border: 1px solid #d7dee8;
  background: #f3f6fb;
  color: #3d5168;
}

html.gradingly-product-ui .gd-rail-logout svg {
  width: 19px;
  height: 19px;
}

html.gradingly-product-ui .gd-rail-logout:hover {
  background: #f8fafc;
  color: #0c1222;
  box-shadow: none;
}

html.gradingly-product-ui .gd-rail-sep {
  width: 30px;
  height: 1px;
  margin: 4px 0;
  background: #d7dee8;
  flex-shrink: 0;
}

html.gradingly-product-ui .gd-rail-spacer {
  flex: 1;
}

html.gradingly-product-ui .gd-sec {
  width: 220px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border-right: 1px solid #e5ebf3;
  position: relative;
  z-index: 1;
}

html.gradingly-product-ui .gd-sec-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

html.gradingly-product-ui .gd-sec-label {
  margin: 14px 10px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

html.gradingly-product-ui .gd-sec-label:first-child {
  margin-top: 10px;
}

html.gradingly-product-ui .gd-sec-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  text-align: left;
  text-decoration: none;
  color: #3d5168;
  font-size: 13.5px;
  font-weight: 600;
}

html.gradingly-product-ui .gd-sec-item:hover {
  background: #f3f6fb;
  color: #0c1222;
  text-decoration: none;
}

html.gradingly-product-ui .gd-sec-item.is-on {
  background: #eef2f7;
  color: #0c1222;
  font-weight: 700;
}

html.gradingly-product-ui .gd-sec-ico {
  display: inline-flex;
  color: #5a6b82;
  flex-shrink: 0;
}

html.gradingly-product-ui .gd-sec-item.is-on .gd-sec-ico {
  color: #1d4ed8;
}

html.gradingly-product-ui .gd-sec-ico svg {
  width: 16px;
  height: 16px;
}

html.gradingly-product-ui .gd-sec-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.gradingly-product-ui .gd-sec-press {
  display: inline-flex;
  flex-shrink: 0;
  margin-left: auto;
}

html.gradingly-product-ui .gd-sec-press + .gd-sec-count {
  margin-left: 0;
}

html.gradingly-product-ui .gd-sec-press svg {
  width: 13px;
  height: 13px;
  display: block;
}

html.gradingly-product-ui .gd-sec-count {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

html.gradingly-product-ui .gd-stu-menu {
  width: 268px;
}

html.gradingly-product-ui .gd-stu-menu .gd-sec-label {
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

html.gradingly-product-ui .gd-stu-menu .gd-sec-item.is-on {
  background: #e8eef6;
}

html.gradingly-product-ui .gd-stu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

html.gradingly-product-ui .gd-stu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
html.gradingly-product-ui .gd-stu-badge.A1 { background: #9ca3af; }
html.gradingly-product-ui .gd-stu-badge.A2 { background: #8b3a4a; }
html.gradingly-product-ui .gd-stu-badge.B1 { background: #e67e22; }
html.gradingly-product-ui .gd-stu-badge.B2 { background: #4a8b57; }
html.gradingly-product-ui .gd-stu-badge.C1 { background: #2e4a8b; }
html.gradingly-product-ui .gd-stu-badge.C2 { background: #6b4a8b; }

html.gradingly-product-ui .gd-stu-dot.A1 { background: #6b7280; }
html.gradingly-product-ui .gd-stu-dot.A2 { background: #dc2626; }
html.gradingly-product-ui .gd-stu-dot.B1 { background: #ea580c; }
html.gradingly-product-ui .gd-stu-dot.B2 { background: #16a34a; }
html.gradingly-product-ui .gd-stu-dot.C1 { background: #2563eb; }
html.gradingly-product-ui .gd-stu-dot.C2 { background: #0891b2; }
html.gradingly-product-ui .gd-stu-dot.is-trial { background: #9ca3af; }
html.gradingly-product-ui .gd-stu-dot.is-active { background: #16a34a; }
html.gradingly-product-ui .gd-stu-dot.is-expired { background: #f87171; }

@media (max-width: 991.98px) {
  html.gradingly-product-ui .app-container:has(.gd-shell-nav) {
    flex-direction: column;
    overflow: auto;
  }

  html.gradingly-product-ui .gd-shell-nav {
    width: 100%;
    height: auto;
    padding-left: 0;
    flex-direction: column;
    border-bottom: 1px solid #e5ebf3;
  }

  html.gradingly-product-ui .nov_sidebar.gd-rail-only,
  html.gradingly-product-ui:has(.gd-powered-footer) .nov_sidebar.gd-rail-only:not(.mobile) {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    z-index: 6;
    box-shadow: none;
    border-bottom: 1px solid #e5ebf3;
  }

  html.gradingly-product-ui .gd-sec,
  html.gradingly-product-ui .gd-stu-menu {
    width: 100%;
    height: auto;
    border-right: 0;
    box-shadow: none;
  }

  html.gradingly-product-ui .gd-sec-list {
    flex-direction: row;
    flex-wrap: wrap;
    overflow: visible;
    padding: 8px;
  }

  html.gradingly-product-ui .gd-sec-label {
    width: 100%;
  }

  html.gradingly-product-ui .gd-sec-item {
    width: auto;
  }

  html.gradingly-product-ui .gd-rail {
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 2px;
    padding: 8px;
  }

  html.gradingly-product-ui .gd-rail-spacer {
    display: none;
  }

  html.gradingly-product-ui .gd-rail-sep {
    width: 1px;
    height: 28px;
    margin: 0 4px;
    align-self: center;
  }

  html.gradingly-product-ui .gd-rail-logout {
    margin-left: auto;
  }
}

html.gradingly-product-ui .search-input:focus,
html.gradingly-product-ui .filter-select:focus {
  border-color: var(--brand-primary, var(--background-color));
  box-shadow: 0 0 0 3px var(--brand-primary-ring, color-mix(in srgb, var(--background-color) 12%, transparent));
}
