
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");

.import-preview-table th {
  white-space: normal;
}

.import-col-row {
  width: 80px;
  white-space: nowrap;
}

.import-col-question {
  width: 22%;
}

.import-col-statement {
  width: 32%;
}

.import-col-answer {
  width: 10%;
  white-space: nowrap;
}

.import-col-feedback {
  width: 12%;
}

.import-col-reference {
  width: 12%;
}

.import-col-invalid-primary {
  width: 60%;
}

.import-col-invalid-errors {
  width: 35%;
}

.import-col-small {
  width: 8%;
}

.import-col-medium {
  width: 12%;
}

.import-col-large {
  width: 18%;
}

#alertContainer {
    position: fixed;
    top: calc(var(--top-bar-height) + 0.5rem);
    right: 20px;
    left: auto;
    z-index: var(--z-index-alert);
    pointer-events: none;
    width: auto;
    max-width: 500px;
}

#dialogContainer {
    z-index: var(--z-index-confirm-dialog);
}

.tooltip {
    z-index: var(--z-index-alert) !important;
}

.modal-inline-error {
    display: none;
    color: var(--red-error);
    font-size: 0.9em;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    background-color: rgba(255, 111, 97, 0.1);
    border: 1px solid var(--red-error);
}

.modal-inline-error:not(:empty) {
    display: block;
}

#alertContainer .alert {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    min-width: 400px;
    max-width: 600px;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 0.95em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    pointer-events: auto;
    box-sizing: border-box;
}

.alert {
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.alert::before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-success::before {
    content: "✓";
    background-color: #28a745;
    color: white;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-danger::before {
    content: "⚠";
    background-color: #dc3545;
    color: white;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-warning::before {
    content: "⚠";
    background-color: #ffc107;
    color: #212529;
}

.alert-info {
    background-color: #e0f2f7;
    border: 1px solid #b3e0ed;
    color: #005662;
}

.alert-info::before {
    content: "ℹ";
    background-color: #17a2b8;
    color: white;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #alertContainer {
        top: calc(var(--top-bar-height) + 0.5rem);
        right: 10px;
        max-width: calc(100vw - 20px);
    }

    #alertContainer .alert {
        min-width: auto;
        max-width: calc(100vw - 20px);
    }
}

:root {

  --scale-ui: 0.67;
  --scale-font: 0.67;
  --scale-spacing: 0.67;

  --bs-primary: #4a90e2;
  --primary-blue: #4a90e2;
  --dark-blue-hover: #357abd;
  --red-error: #ff6f61;
  --green-success: #4caf50;

  --light-grey-bg: #f5f5f5;
  --very-light-grey-bg: #fafafa;
  --medium-grey: #cccccc;
  --dark-grey-text: #333333;
  --medium-dark-grey: #666666;
  --white: #ffffff;
  --light-grey-border: #e0e0e0;

  --top-bar-height: 3rem;
  --nav-bar-width: 8.5rem;
  --nav-bar-width-hover: 12.5rem;

  --top-bar-color: var(--white);
  --top-bar-border-bottom: 1px solid var(--light-grey-border);
  --top-bar-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  --top-bar-brand-color: var(--primary-blue);

  --nav-bar-color: var(
    --dark-grey-text
  );
  --nav-bar-color-light: #444444;
  --nav-bar-font-color: var(--white);
  --nav-bar-font-color-active: var(--white);
  --nav-bar-font-color-hover: var(--white);
  --nav-bar-highligh-color: var(
    --primary-blue
  );
  --nav-bar-highligh-color-hover: var(--primary-blue);
  --nav-bar-active-color: var(--primary-blue);
  --nav-bar-active-shadow: rgba(
    74,
    144,
    226,
    0.5
  );

  --z-index-modal: 10001;
  --z-index-modal-tooltip: 20001;
  --z-index-confirm-dialog: 20000;
  --z-index-alert: 20001;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(
    --light-grey-bg
  );
  color: var(--dark-grey-text);
  display: block;
}

h1 {
  font-size: calc(24px * var(--scale-font));
  color: var(--dark-grey-text);
  font-weight: 700;
}

h2 {
  font-weight: 700;
  font-size: calc(1.5rem * var(--scale-font));
  color: var(--dark-grey-text);
}

h3 {
  font-weight: 700;
  font-size: calc(18px * var(--scale-font));
  color: var(--dark-grey-text);
  margin-bottom: calc(8px * var(--scale-spacing));
}
label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}
.save-button {
  padding: calc(6px * var(--scale-spacing)) calc(12px * var(--scale-spacing));
  font-size: calc(14px * var(--scale-font));
  margin-top: calc(20px * var(--scale-spacing));
  margin-right:0;
}
.position-input {
  padding: calc(8px * var(--scale-spacing));
  font-size: calc(14px * var(--scale-font));
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 90%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.position-input:focus {
  outline: none;
  border-color: var(--primary-color, #007bff);
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

button {
  padding: calc(6px * var(--scale-spacing)) calc(12px * var(--scale-spacing));
  background-color: var(
    --primary-blue
  );
  color: white;
  border: 1px solid var(--medium-grey);
  border-radius: 4px;
  font-size: calc(12px * var(--scale-font));
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
button.clear{
  padding: calc(6px * var(--scale-spacing)) calc(12px * var(--scale-spacing)) !important;
  border-radius: 4px !important;
  font-size: calc(12px * var(--scale-font)) !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--red-error);
}
button.action-button,
button.view-button{
  font-size: calc(12px * var(--scale-font));
}

.vendor-select{
  display: flex;
  align-items: center;
  gap: 10px;
}
button:hover {
  background-color: var(
    --dark-blue-hover
  );
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}
li {
  font-size: calc(0.8125rem * var(--scale-font, 1));
}
.error-message {
  color: var(--red-error);
  font-weight: 700;
  margin-top: 10px;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--top-bar-height);
  background-color: var(--top-bar-color);
  border-bottom: var(--top-bar-border-bottom);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.top-bar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.top-bar-brand .brand-logo {
  height: calc(35px * var(--scale-ui));
  width: auto;
  border-radius: 5px;
}

.top-bar-brand .brand-name {
  font-size: calc(1.5rem * var(--scale-font));
  font-weight: 700;
  color: var(--top-bar-brand-color);
  white-space: nowrap;
}

.top-bar-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.top-bar-user-info i {
  font-size: 1.3rem;
  color: var(--medium-dark-grey);
  cursor: pointer;
  transition: color 0.2s;
}
.top-bar-user-info i:hover {
  color: var(--primary-blue);
}

.notification-bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notification-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.notification-bell-btn i {
  font-size: 1.3rem;
  color: var(--medium-dark-grey);
  transition: color 0.2s;
}

.notification-bell-btn:hover i,
.notification-bell-btn[aria-expanded="true"] i {
  color: var(--primary-blue);
}

.notification-badge {
  position: absolute;
  top: 0;
  left: 100%;
  transform: translate(-50%, -35%);
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background-color: var(--red-error, #dc3545);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  pointer-events: none;
}

.notification-bell-btn:hover .notification-badge,
.notification-bell-btn[aria-expanded="true"] .notification-badge {
  color: var(--white);
}

.notification-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(22rem, calc(100vw - 1rem));
  max-width: calc(100vw - 1rem);
  max-height: min(24rem, calc(100vh - var(--top-bar-height) - 1rem));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--light-grey-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1100;
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--light-grey-border);
  font-weight: 700;
  color: var(--dark-grey-text);
}

.notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--very-light-grey-bg, #f5f5f5);
  transition: background-color 0.2s ease;
}

.notification-item:hover {
  background-color: var(--very-light-grey-bg, #f8f9fa);
}

.notification-item--unread {
  background-color: rgba(74, 144, 226, 0.06);
}

.notification-item--unread .notification-item-message {
  font-weight: 700;
}

.notification-item--error {
  border-left: 3px solid var(--red-error, #dc3545);
}

.notification-item-message {
  color: var(--dark-grey-text);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.notification-item-time {
  color: var(--medium-dark-grey);
  font-size: 0.75rem;
  text-align: left;
}

.notification-item-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.notification-panel-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--medium-dark-grey);
  font-size: 0.9rem;
}

.top-bar-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--medium-dark-grey);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 1rem;
  transition: color 0.2s;
  flex-shrink: 0;
  z-index: 1002;
}

.top-bar-hamburger:hover {
  color: var(--primary-blue);
}

.logout-button {
  padding: 6px 12px;
  font-size: 0.85rem;
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.logout-button:hover {
  background-color: var(--dark-blue-hover);
}

.top-bar > * {
  flex-shrink: 0;
}

.top-bar-brand {
  min-width: 0;
  flex: 1;
  max-width: 200px;
}

.top-bar-brand .brand-name {

  white-space: nowrap;
  overflow: visible;
}

.top-bar-user-info {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#nav-bar {
  position: fixed;
  top: var(--top-bar-height);
  left: 0;
  width: var(--nav-bar-width-hover);
  height: calc(100% - var(--top-bar-height));
  background: var(--nav-bar-color);
  color: var(--nav-bar-font-color);
  display: flex;
  flex-direction: column;
  overflow: visible;

  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

#nav-toggle {
  display: none;
}

#nav-header {
  display: flex;
  align-items: center;
  padding: .5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#nav-title {
  flex-grow: 1;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--nav-bar-font-color);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#nav-toggle-burger {
  display: none;
  width: 25px;
  height: 3px;
  background: var(--nav-bar-font-color);
  position: relative;
  transition: background 0.3s ease-in-out;
  cursor: pointer;
}
#nav-toggle-burger::before,
#nav-toggle-burger::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--nav-bar-font-color);
  transition: transform 0.3s ease-in-out;
}
#nav-toggle-burger::before {
  transform: translateY(-8px);
}
#nav-toggle-burger::after {
  transform: translateY(8px);
}

#nav-toggle:checked ~ #nav-header #nav-toggle-burger {
  background: transparent;
}
#nav-toggle:checked ~ #nav-header #nav-toggle-burger::before {
  transform: rotate(45deg);
}
#nav-toggle:checked ~ #nav-header #nav-toggle-burger::after {
  transform: rotate(-45deg);
}

#nav-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.nav-button a {
  text-decoration: none;
  color: inherit;
  display: block;

  font-size: calc(1.2rem * var(--scale-font));
  line-height: inherit;
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  font-size: inherit;
  line-height: inherit;
}

.nav-button a:hover,
.nav-button a:focus {
  color: var(--nav-active-color, #fff);
  background-color: transparent;
}

.nav-button {
  display: flex;
  align-items: center;
  padding: calc(0.6rem * var(--scale-spacing)) calc(0.85rem * var(--scale-spacing));
  color: var(--nav-bar-font-color);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}
.nav-button:hover {
  background: var(
    --nav-bar-color-light
  );
  color: var(--nav-bar-font-color-hover);
}
.nav-button i {
  font-size: calc(1.05rem * var(--scale-font));
  width: 1.7rem;
  text-align: center;
  margin-right: 0.5rem;
}

#nav-content-highlight {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: var(--nav-bar-highligh-color);
  opacity: 0.3;
  transition: top 0.2s ease-in-out, height 0.2s ease-in-out;
  pointer-events: none;
}

#nav-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--nav-bar-color-light);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

#nav-footer-toggle {
  display: none;
}

#nav-footer-heading {
  display: flex;
  align-items: center;
  cursor: pointer;
}

#nav-footer-avatar {
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 0.8rem;
  cursor: pointer;
}
#nav-footer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-picture-modal-content {
  max-width: 420px;
  text-align: center;
}

.profile-picture-modal-body {
  text-align: center;
}

.profile-picture-modal-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.profile-picture-preview-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.profile-picture-preview {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--light-grey-border, #dee2e6);
}

.profile-picture-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.profile-picture-help {
  font-size: 0.875rem;
  margin-bottom: 0;
}

#nav-footer-titlebox {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#nav-footer-title {
  font-weight: 700;
  color: var(--nav-bar-font-color);
  font-size: calc(1.2rem * var(--scale-font));
  text-decoration: none;
  display: block;
}
#nav-footer-subtitle {
  font-size: calc(1.0rem * var(--scale-font));
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

#nav-footer-heading i {
  font-size: 1.2rem;
  transition: transform 0.3s ease-in-out;
}
#nav-footer-toggle:checked ~ #nav-footer-heading i {
  transform: rotate(180deg);
}

#nav-footer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 0.5rem;
}
#nav-footer-toggle:checked ~ #nav-footer-content {
  max-height: 100px;
}

.sidebar-logout-button {
  display: none;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: var(--red-error);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
}

.sidebar-logout-button:hover {
  background-color: #e65a50;
}

.main {
  margin-left: var(--nav-bar-width-hover);
  margin-top: var(--top-bar-height);
  padding: 0;
  padding-bottom: calc(1.25rem * var(--scale-spacing));
  padding-left: calc(1.25rem * var(--scale-spacing));
  padding-right: calc(1.25rem * var(--scale-spacing));
  box-sizing: border-box;
  width: calc(
    100% - var(--nav-bar-width-hover)
  );
  min-height: calc(100vh - var(--top-bar-height));
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - var(--top-bar-height));
}

.main h1 {
  color: var(--dark-grey-text);
  position: sticky;
  top: 0;
  background: var(--light-grey-bg);
  padding: calc(0.85rem * var(--scale-spacing)) 0;
  margin: 0;
  margin-left: calc(-1.25rem * var(--scale-spacing));
  margin-right: calc(-1.25rem * var(--scale-spacing));
  padding-left: calc(1.25rem * var(--scale-spacing));
  padding-right: calc(1.25rem * var(--scale-spacing));
  z-index: 100;
  border-bottom: 1px solid var(--light-grey-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.main h1 .breadcrumb {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  background: transparent;
  padding: 0;
}

.main h1 .breadcrumb-item a {
  color: var(--primary-blue);
  text-decoration: none;
}

.main h1 .breadcrumb-item a:hover {
  text-decoration: underline;
}

.main h1 .breadcrumb-item.active {
  color: var(--medium-dark-grey);
}

.role-selector-container {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--light-grey-bg);
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.role-selector-container label {
  font-weight: 700;
  color: var(--dark-grey-text);
}
.role-selector-container select {
  padding: 8px 12px;
  border: 1px solid var(--medium-grey);
  border-radius: 5px;
  background-color: var(--white);
  font-size: 1em;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.role-selector-container select:focus {
  border-color: var(--primary-blue);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  padding: 0.5rem;
}

.gallery figure {
  background-color: var(--white);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 160px;
}
.gallery figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.gallery figure img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.gallery figcaption {
  padding: 0.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.gallery figcaption h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--dark-grey-text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}
.gallery figcaption p {
  font-size: 0.8rem;
  color: var(--medium-dark-grey);
  line-height: 1.3;
  flex-grow: 1;
  margin: 0;
}

.menu-card {
  background-color: var(--white) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  overflow: visible !important;
  cursor: pointer !important;
  transition: all 0.3s ease-in-out !important;
  display: flex !important;
  flex-direction: column !important;
  height: 120px !important;
  min-height: 120px !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  padding: 1rem !important;
  position: relative !important;
}

.menu-card:hover {
  background-color: var(--primary-blue) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.2) !important;
}

.menu-card figcaption {
  padding: 0 !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 100% !important;
  text-align: center !important;
}

.menu-card figcaption h3 {
  margin: 0 0 0.5rem 0 !important;
  color: var(--primary-blue) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  transition: color 0.3s ease-in-out !important;
}

.menu-card figcaption p {
  font-size: 0.85rem !important;
  color: var(--primary-blue) !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  transition: color 0.3s ease-in-out !important;
}

.menu-card:hover figcaption h3 {
  color: var(--white) !important;
}

.menu-card:hover figcaption p {
  color: rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    padding: 0.25rem;
  }

  .menu-card {
    height: 100px !important;
    min-height: 100px !important;
    padding: 0.75rem !important;
  }

  .menu-card figcaption h3 {
    font-size: 0.9rem !important;
    margin-bottom: 0.3rem !important;
  }

  .menu-card figcaption p {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
  }

  .menu-card {
    height: 90px !important;
    min-height: 90px !important;
    padding: 0.5rem !important;
  }

  .menu-card figcaption h3 {
    font-size: 0.85rem !important;
    margin-bottom: 0.25rem !important;
  }

  .menu-card figcaption p {
    font-size: 0.7rem !important;
  }
}

.content-screen {
  background-color: var(--white);
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

#dynamic-content {
  overflow: visible;
}

.content-screen h2 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}
.content-screen p {
  line-height: 1.6;
  color: var(--dark-grey-text);
}

@media (max-width: 768px) {

  .top-bar {
    padding: 0 1rem;
  }

  .top-bar-brand .brand-name {
    font-size: 1rem;

    overflow: visible;
  }

  .top-bar-user-info {
    gap: 0.5rem;
  }

  .top-bar-user-info i {
    font-size: 1.1rem;
  }

  .top-bar-hamburger {
    display: block !important;
  }

  .top-bar-user-info .fa-user-circle {
    display: none;
  }

  .top-bar-user-info .logout-button {
    display: none;
  }

  .notification-panel {
    position: fixed;
    top: var(--top-bar-height);
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-width: none;
    max-height: calc(100vh - var(--top-bar-height) - 0.75rem);
  }

  .notification-panel-header .btn {
    width: 100%;
  }

  #nav-bar {
    width: 0;
    transition: width 0.3s ease-in-out;
    overflow: hidden;
  }

  #nav-toggle:checked ~ #nav-bar {
    width: var(--nav-bar-width-hover) !important;
    overflow: visible !important;
  }

  body #nav-toggle:checked ~ #nav-bar {
    width: var(--nav-bar-width-hover) !important;
    overflow: visible !important;
  }

  #nav-bar.mobile-open {
    width: var(--nav-bar-width-hover) !important;
    overflow: visible !important;
    z-index: 1003 !important;
  }

  body #nav-bar.mobile-open {
    width: var(--nav-bar-width-hover) !important;
    overflow: visible !important;
    z-index: 1003 !important;
    display: flex !important;
    background-color: var(--nav-bar-color) !important;
  }
  .main {
    margin-left: 0;
    margin-top: var(--top-bar-height);
    padding: 0;
    padding-bottom: 0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    width: 100%;
    transition: margin-left 0.3s ease-in-out;
    overflow-y: auto;
    max-height: calc(100vh - var(--top-bar-height));
  }

  .main h1 {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  #nav-toggle:checked ~ #nav-bar + .main {
    margin-left: var(
      --nav-bar-width-hover
    );
    width: calc(
      100% - var(--nav-bar-width-hover)
    );
  }

  #nav-header label {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    padding: 0.25rem;
  }

  #dynamic-content {
    overflow: visible;
  }

  .sidebar-logout-button {
    display: block;
  }

  .gallery figure {
    min-height: 140px;
  }

  .gallery figure img {
    height: 100px;
  }

  .gallery figcaption {
    padding: 0.5rem;
  }

  .gallery figcaption h3 {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }

  .gallery figcaption p {
    font-size: 0.75rem;
    line-height: 1.2;
  }
}

@media (min-width: 769px) {

  #nav-bar {
    width: var(--nav-bar-width-hover);
    transition: none;
  }
  .main {
    margin-left: var(--nav-bar-width-hover);
    width: calc(
      100% - var(--nav-bar-width-hover)
    );
    transition: none;
    padding: 0;
    padding-bottom: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    overflow-y: auto;
    max-height: calc(100vh - var(--top-bar-height));
  }
  #nav-header label {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {

  .top-bar-brand .brand-name {
    font-size: 1.2rem;

  }

  .top-bar-hamburger {
    display: none !important;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }

  .gallery figure {
    min-height: 150px;
  }

  .gallery figure img {
    height: 110px;
  }
}

@media (max-width: 480px) {

  .top-bar {
    padding: 0 0.5rem;
  }

  .top-bar-brand .brand-logo {
    height: 28px;
  }

  .top-bar-brand .brand-name {
    font-size: 0.9rem;

  }

  .top-bar-user-info {
    gap: 0.25rem;
  }

  .top-bar-user-info i {
    font-size: 1rem;
  }

  .top-bar-hamburger {
    font-size: 1.3rem;
    padding: 0.4rem;
    margin-right: 0.5rem;
    display: block !important;
  }

  .logout-button {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  .main {
    padding: 0;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    overflow-y: auto;
    max-height: calc(100vh - var(--top-bar-height));
  }

  .main h1 {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    margin: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem;
    padding: 0.25rem;
  }

  .gallery figure {
    min-height: 120px;
  }

  .gallery figure img {
    height: 80px;
  }

  .gallery figcaption {
    padding: 0.4rem;
  }

  .gallery figcaption h3 {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
  }

  .gallery figcaption p {
    font-size: 0.7rem;
    line-height: 1.1;
  }
}

.brand {
  font-size: calc(24px * var(--scale-font));
  font-weight: 700;
  color: var(--primary-blue);
}

.t-link {
  font-size: calc(1.0rem * var(--scale-font));
  color: var(--primary-blue);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.t-link:hover {
  text-decoration: underline;
  background-color: var(--light-grey-bg);
}

.top-bar-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.top-bar-links .register-link {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.top-bar-links .register-link:hover {
  background-color: var(--dark-blue-hover);
  text-decoration: none;
}

.main-content-area {
  margin-top: var(--top-bar-height);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  min-height: calc(
    100vh - var(--top-bar-height) - 4rem
  );
}

.carousel {
  width: 90%;
  max-width: 900px;
  height: 350px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
  color: var(--white);
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-controls {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--white);
}

.register-buttons-section {
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
}

.register-buttons-section h2 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 2.2em;
}

.register-buttons-section p {
  font-size: 1.1em;
  color: var(--medium-dark-grey);
  margin-bottom: 2rem;
}

.register-buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.btn-register {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 250px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  gap: 10px;
}

.btn-register i {
  font-size: 1.4em;
}

.btn-register-user {
  background-color: var(--primary-blue);
  color: var(--white);
  border: 2px solid var(--primary-blue);
}

.btn-register-user:hover {
  background-color: var(--dark-blue-hover);
  border-color: var(--dark-blue-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.btn-register-vendor {
  background-color: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-register-vendor:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.login-button-section {
  text-align: center;
  padding: 2rem 1.5rem;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 250px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  gap: 10px;
  background-color: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-login i {
  font-size: 1.4em;
}

.btn-login:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

footer {
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
  color: var(--medium-dark-grey);
  font-size: 0.9em;
  border-top: 1px solid var(--light-grey-border);
  background-color: var(--white);
}

.container {

  display: flex;
  height: calc(100vh - 60px);
}

.submenu {
  width: 250px;
  background: #333;
  color: #fff;
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
}

.submenu h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: calc(18px * var(--scale-font));
  color: #fff;
  margin: 0 0 20px 0;
}

.submenu ul {
  list-style: none;
  padding: 0;
}

.submenu li {
  margin: 10px 0;
}

.submenu a {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.content-section {
  flex: 1;
  padding: 20px;
  background: #f5f5f5;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
}

.form-section {
  margin-bottom: 20px;
}
.form-table,
.form-table > * > *,
.form-row > td {
  border: 1px solid var(--medium-grey);
}
.fancy-form-select {
  padding: 8px 12px;
  border: 1px solid var(--medium-grey);
  border-radius: 5px;
  background-color: var(--white);
  font-size: 1em;
  color: var(--dark-grey-text);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-image: url('data:image/svg+xml;utf8,<svg fill="%23333333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 24px;
  padding-right: 30px;
}

.fancy-form-select:hover {
  border-color: var(--primary-blue);
}

.fancy-form-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.modal.hidden {
  opacity: 0;
  visibility: hidden;
}

.modal:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  padding: 30px;
  text-align: center;
  min-width: 300px;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--dark-grey-text);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease-in-out;
}

.modal:not(.hidden) .modal-content {
  transform: translateY(0);
}

.modal-content p {
  margin-top: 15px;
  margin-bottom: 25px;
  line-height: 1.5;
  font-size: 1.1em;
}

.modal-icon-success {
  color: var(--green-success);
  font-size: 3em;
  margin-bottom: 10px;
}

.modal-icon-error {
  color: var(--red-error);
  font-size: 3em;
  margin-bottom: 10px;
}

.modal-close-btn {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.modal-close-btn:hover {
  background-color: var(--dark-blue-hover);
}

.modal.modal-success .modal-content {
  border: 2px solid var(--green-success);
}

.modal.modal-error .modal-content {
  border: 2px solid var(--red-error);
}

.hidden {
  display: none;
}

:root {

  --red-error-hover: #e65a50;
  --green-status: #16a34a;
  --light-blue-bg: #e0f2fe;
  --very-light-grey-bg: #f9fafb;
  --divider-grey: #e5e7eb;
}

.main-content-wrapper {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;

  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.flex-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  padding: 1.5rem;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.back-link {
  font-size: 16px;
  color: var(--primary-blue);
  text-decoration: none;
  margin-bottom: 1rem;
  display: inline-block;
}

.page-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: var(--dark-grey-text);
  margin-bottom: 2rem;
  text-align: center;
}

.section-heading {
  font-size: calc(1.5rem * var(--scale-font));
  line-height: calc(1.75rem * var(--scale-font));
  font-weight: 700;
  color: var(--dark-grey-text);
  margin-bottom: calc(0.75rem * var(--scale-spacing));
}

.form-label,
.col-form-label {
  display: block;
  font-size: calc(0.9rem * var(--scale-font));
  color: var(--medium-dark-grey);
  margin-bottom: 0.25rem;
}

.content-screen .form-label,
.content-screen .col-form-label,
.vendor-registration .accordion-container .form-label,
.vendor-registration .accordion-container .col-form-label,
.self-registration .main-content-area-vendor .form-label,
.self-registration .main-content-area-vendor .col-form-label {
  font-size: calc(0.85rem * var(--scale-font));
  margin-bottom: calc(0.3rem * var(--scale-spacing));
}

.content-screen .form-control,
.content-screen .form-select,
.content-screen textarea.form-control,
.vendor-registration .accordion-container .form-control,
.vendor-registration .accordion-container .form-select,
.vendor-registration .accordion-container textarea.form-control,
.self-registration .main-content-area-vendor .form-control,
.self-registration .main-content-area-vendor .form-select,
.self-registration .main-content-area-vendor textarea.form-control {
  font-size: calc(0.9rem * var(--scale-font));
  padding: calc(0.48rem * var(--scale-spacing)) calc(0.6rem * var(--scale-spacing));
  height: auto;
  line-height: 1.3;
}

.content-screen .form-control-plaintext,
.organogram-modal .form-control-plaintext {
  font-size: calc(0.9rem * var(--scale-font));
  line-height: 1.3;
  color: var(--medium-dark-grey);
  padding-top: calc(0.48rem * var(--scale-spacing));
  padding-bottom: calc(0.48rem * var(--scale-spacing));
  margin-bottom: 0;
}

.content-screen .form-field-suffix,
.organogram-modal .form-field-suffix {
  font-size: calc(0.9rem * var(--scale-font));
  line-height: 1.3;
  color: var(--medium-dark-grey);
}

.limit-attempts-select-wrap .form-select {
  min-width: 10rem;
}

#editLinkModal .modal-content {
  max-width: min(800px, 90vw);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
}

#editLinkModal .form-select,
#editLinkModal .form-select option {
  text-align: left;
  text-align-last: left;
}

#editLinkModal .custom-dropdown-menu {
  overflow: visible;
}

#editLinkModal .custom-dropdown-options {
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#editLinkForm .col-form-label {
  white-space: normal;
  word-break: break-word;
}

#editLinkForm .get-assistance-row .form-select {
  flex: 0 1 auto;
  width: auto;
  max-width: 12rem;
}

#editLinkForm .limit-attempts-select-wrap .form-select {
  min-width: 10rem;
}

.content-screen input.form-control,
.content-screen select.form-select,
.vendor-registration .accordion-container input.form-control,
.vendor-registration .accordion-container select.form-select,
.self-registration .main-content-area-vendor input.form-control,
.self-registration .main-content-area-vendor select.form-select {
  min-height: calc(2.2rem * var(--scale-ui));
}

@media (max-width: 768px) {
  .content-screen .form-label,
  .content-screen .col-form-label,
  .vendor-registration .accordion-container .form-label,
  .vendor-registration .accordion-container .col-form-label,
  .self-registration .main-content-area-vendor .form-label,
  .self-registration .main-content-area-vendor .col-form-label {
    font-size: min(0.95rem, calc(0.95rem * var(--scale-font)));
  }

  .content-screen .form-control,
  .content-screen .form-select,
  .content-screen textarea.form-control,
  .vendor-registration .accordion-container .form-control,
  .vendor-registration .accordion-container .form-select,
  .vendor-registration .accordion-container textarea.form-control,
  .self-registration .main-content-area-vendor .form-control,
  .self-registration .main-content-area-vendor .form-select,
  .self-registration .main-content-area-vendor textarea.form-control {
    padding: 0.45rem 0.7rem;
  }

  .content-screen .custom-dropdown .custom-dropdown-toggle {
    padding: 0.45rem 0.7rem;
  }

  .seta-accreditation-item .custom-dropdown .custom-dropdown-toggle {
    padding: 0.45rem 0.7rem;
  }
}

.input-field,
.select-field {
  border: 1px solid var(--medium-grey);
  border-radius: 8px;
  padding: calc(0.5rem * var(--scale-spacing));
  width: 100%;
  background: var(--very-light-grey-bg);
  box-sizing: border-box;
  height: auto;
  font-size: calc(0.9rem * var(--scale-font));
  line-height: 1.3;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;

}

.input-field:focus,
.select-field:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.filled-text {
  color: var(--dark-grey-text);
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid var(--medium-grey);
  border-radius: 8px;
  padding: 0.5rem;
  width: 100%;
  background: var(--very-light-grey-bg);
  box-sizing: border-box;
  height: 35px;
  font-size: 0.875rem;
}
.filled-text::-webkit-scrollbar {
  display: none;
}

.add-structure-btn {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.add-structure-btn:hover {
  transform: scale(1.05);
}

.action-button {
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.action-button:hover {
  transform: scale(1.05);
}

.edit-button {
  background-color: var(--primary-blue);
  color: var(--white);
}
.edit-button:hover {
  background-color: var(--dark-blue-hover);
}

.modal-button {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.modal-button:hover {
  transform: scale(1.05);
}

.modal-confirm-button {
  background-color: var(--red-error);
  color: var(--white);
}
.modal-confirm-button:hover {
  background-color: var(--red-error-hover);
}

.modal-cancel-button {
  background-color: var(--primary-blue);
  color: var(--white);
}
.modal-cancel-button:hover {
  background-color: var(--dark-blue-hover);
}

.clickable-status {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-block;
  font-weight: 600;
  border: 1px solid transparent;
}

.clickable-status:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-color: currentColor;
}

.clickable-status.status-active {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: var(--green-status);
}

.clickable-status.status-inactive {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: var(--red-error);
}

.clickable-status.status-active:hover {
  background-color: rgba(16, 185, 129, 0.2);
}

.clickable-status.status-inactive:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

.data-table {
  width: 100%;
  text-align: left;
  border-collapse: none;
  border-spacing: 12px 0;
}

.table-header-row {
  background-color: var(--light-blue-bg);
}

.data-table th,
.data-table td {
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.table-header-cell {
  padding: calc(0.5rem * var(--scale-spacing));
  font-size: calc(0.9rem * var(--scale-font));
  font-weight: 500;
  color: var(--medium-dark-grey);
}

.data-table td {
  padding: calc(0.4rem * var(--scale-spacing)) calc(0.35rem * var(--scale-spacing));
  font-size: calc(0.8rem * var(--scale-font));
  vertical-align: top;
}

@media (max-width: 768px) {
  .table-header-cell {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .data-table td {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .table-controls {
    gap: 0.75rem;
  }

  .search-container {
    max-width: 100%;
  }
}

.table-body-divider tr:not(:last-child) {
  border-bottom: 1px solid var(--divider-grey);
}
.table-body-divider tr td {
  border-bottom: none;
}
.table-body-divider tr:last-child td {
  border-bottom: 1px solid var(--medium-grey);
}

.table-row-hover:hover {
  background-color: var(--very-light-grey-bg);
}

.status-active {
  color: var(--green-status);
}

.status-inactive {
  color: var(--red-error);
}

.table-actions-cell {
  text-align: center;
  vertical-align: middle;
}

.modal-message {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--medium-dark-grey);
}

.modal-footer-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.inline {
  display: inline-flex;
  align-items: center;
  margin-right: 1.5rem;
  gap: 0.5rem;
}

.form-section-fieldset {
  border: 1px solid var(--light-grey-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: var(
    --very-light-grey-bg
  );
}

.fieldset-legend {
  font-weight: 700;
  color: var(--dark-grey-text);
  padding: 0 0.5rem;
  font-size: calc(0.9rem * var(--scale-font));
}

.req-doc-label {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 0.5rem 0;
  width: 100%;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--medium-dark-grey);
}

.req-doc-label span {
  flex-grow: 1;
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.req-doc-label input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--primary-blue);
  cursor: pointer;
}

.custom-upload-label {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--dark-grey-text);
  gap: 0.5rem;
}

.add-custom {
  font-size: 1.5rem;
  background: none;
  color: var(--primary-blue);
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.add-custom:hover {
  color: var(--dark-blue-hover);
  background: none;
}

#customUploadField {
  display: none;
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: minmax(100px, 300px) max-content;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

#customUploadField input.input-field {

  margin: 0;
}

.custom-upload-field button {
  flex-shrink: 0;
}

.upload-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.upload-list-item {

  display: grid;
  grid-template-columns: 1fr max-content;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--light-grey-border);
  border-radius: 8px;
  background-color: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  max-width: 500px;
}

.upload-list-item span.upload-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dark-grey-text);
  font-size: 0.9rem;
}

.upload-list-item .delete-item {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  min-width: 60px;
}

.ckeditor-container .cke_textarea_inline,
.cke_chrome {
  border: 1px solid var(--medium-grey) !important;
  border-radius: 8px !important;
  background: var(--very-light-grey-bg) !important;
  box-shadow: none !important;
}

.cke_inner {
  border-radius: 8px !important;
}

.cke_top {
  background: var(
    --light-grey-bg
  ) !important;
  border-bottom: 1px solid var(--light-grey-border) !important;
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
}

.cke_bottom {
  background: var(--light-grey-bg) !important;
  border-top: 1px solid var(--light-grey-border) !important;
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

textarea#message {

  min-height: 200px;
  resize: vertical;
}

.ckeditor-content-display {
  all: unset;
  display: block;

  font-family: sans-serif, Arial, Verdana, "Trebuchet MS" !important;
  font-size: 12px !important;
  color: #333 !important;
  background-color: #fff !important;
  margin: 0 !important;

  font-size: 13px !important;
  line-height: 1.6 !important;
  word-wrap: break-word !important;
}

.ckeditor-content-display h1,
.ckeditor-content-display h2,
.ckeditor-content-display h3,
.ckeditor-content-display h4,
.ckeditor-content-display h5,
.ckeditor-content-display h6 {
  font-weight: normal !important;
  line-height: 1.2 !important;
}

.ckeditor-content-display a {
  color: #0782C1 !important;
}

.ckeditor-content-display ol,
.ckeditor-content-display ul,
.ckeditor-content-display dl {
  padding: 0 40px !important;
}

.ckeditor-content-display blockquote {
  font-style: italic !important;
  font-family: Georgia, Times, "Times New Roman", serif !important;
  padding: 2px 0 2px 20px !important;
  border-style: solid !important;
  border-color: #ccc !important;
  border-width: 0 0 0 5px !important;
}

.ckeditor-content-display hr {
  border: 0 !important;
  border-top: 1px solid #ccc !important;
}

.ckeditor-content-display img.right {
  border: 1px solid #ccc !important;
  float: right !important;
  margin-left: 15px !important;
  padding: 5px !important;
}

.ckeditor-content-display img.left {
  border: 1px solid #ccc !important;
  float: left !important;
  margin-right: 15px !important;
  padding: 5px !important;
}

.ckeditor-content-display pre {
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  -moz-tab-size: 4 !important;
  tab-size: 4 !important;
}

.ckeditor-content-display .marker {
  background-color: Yellow !important;
}

.ckeditor-content-display span[lang] {
  font-style: italic !important;
}

.ckeditor-content-display figure {
  text-align: center !important;
  border: solid 1px #ccc !important;
  border-radius: 2px !important;
  background: rgba(0,0,0,0.05) !important;
  padding: 10px !important;
  margin: 10px 20px !important;
  display: inline-block !important;
}

.ckeditor-content-display figure > figcaption {
  text-align: center !important;
  display: block !important;
}

.ckeditor-content-display a > img {
  padding: 1px !important;
  margin: 1px !important;
  border: none !important;
  outline: 1px solid #0782C1 !important;
}

.question-content-wrapper {
  position: relative;
}

.collapsible-scrollable-content {
  max-height: 80px;
  overflow: hidden;
  border: 1px solid var(--light-grey-border);
  border-radius: 4px;
  background-color: var(--light-grey-bg);
  padding: 0.5rem 0.75rem;
  margin-top: 0.25rem;
  transition: max-height 0.3s ease;
}

.expand-toggle {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.75rem;
  padding: 2px 6px;
 
}

.schedule-venue-comments-body.schedule-venue-comments-filled {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: calc(0.8125rem * var(--scale-font, 1));
}

@media (max-width: 600px) {
  .register-buttons-container {
    flex-direction: column;
    align-items: center;
  }
  .btn-register {
    width: 90%;
    max-width: 300px;
  }
  .btn-login {
    width: 90%;
    max-width: 300px;
  }
  .login-button-section {
    padding: 1.5rem 1rem;
  }
  .register-buttons-section {
    padding: 2rem 1rem;
  }
  .register-buttons-section h2 {
    font-size: 1.8em;
  }
  .register-buttons-section p {
    font-size: 1em;
  }
  .carousel {
    height: 250px;
  }
  .carousel-slide {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 0 1rem;
  }
  .brand {
    font-size: 20px;
  }
  .t-link {
    font-size: 14px;
    padding: 6px 10px;
  }
  .top-bar-links {
    gap: 8px;
  }
}

.main-content-area-vendor {
  margin-top: var(--top-bar-height);
  padding: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--light-grey-bg);
  box-sizing: border-box;
  overflow-x: hidden;
}

.page-header-vendor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-grey-border);
  margin-bottom: 2rem;
}

.page-title-vendor {
  color: var(--primary-blue);
  font-size: 2em;
  margin: 0;
}

.vendor-logo {
  height: 60px;
  width: auto;
}

.top-buttons {
  text-align: right;
  margin-bottom: 1.5rem;
}

.top-buttons .btn {
  margin-left: 10px;
}

.accordion-container {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.prompt-msg {
  background-color: #e0f2f7;
  border: 1px solid #b3e0ed;
  color: #005662;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 0.95em;
}

.accordion-item {
  border: 1px solid var(--light-grey-border);
  border-radius: 8px;
  margin-bottom: 15px;
}

.accordion-header {
  background-color: var(--light-grey-bg);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--dark-grey-text);
  transition: background-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.accordion-item.active .accordion-header {
  background-color: var(--primary-blue);
  color: var(--white);
  border-bottom: 1px solid var(--dark-blue-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.accordion-header:hover {
  background-color: var(--medium-grey);
}

.accordion-item.active .accordion-header:hover {
  background-color: var(--dark-blue-hover);
}

.accordion-icon {
  font-size: 1.2em;
  margin-right: 10px;
  color: var(--primary-blue);
}

.accordion-item.active .accordion-icon {
  color: var(--white);
}

.accordion-title {
  flex-grow: 1;
  margin: 0;
  font-size: 1.1em;
}

.accordion-arrow {
  font-size: 1em;
  transition: transform 0.3s ease-in-out;
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 20px;
  background-color: var(--white);
  border-top: 1px solid var(--light-grey-border);
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.form-label {
  flex: 0 0 180px;
  padding-right: 15px;
  text-align: right;
  font-weight: 600;
  color: var(--medium-dark-grey);
  box-sizing: border-box;

}

.form-field-group {
  flex: 1 1 250px;
  box-sizing: border-box;
}

.form-field-group .form-control,
.form-field-group .fancy-form-select,
.form-field-group textarea {
  width: 100%;
  box-sizing: border-box;
}

.form-row-multi-field {
  display: grid;
  grid-template-columns: 180px repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px 20px;
  align-items: start;
}

.form-row-multi-field .form-label {
  grid-column: 1 / 2;
  text-align: right;
  padding-right: 15px;
  padding-top: 8px;
}

.form-row-multi-field .form-field-group {
  grid-column: auto / span 1;
  flex: none;
  width: auto;
}

.form-row .form-field-group-full,
.form-row .form-field-group-full-address {
  grid-column: 2 / -1;
  max-width: 100%;
}

.form-field-group small {
  display: block;
  font-size: 0.85em;
  color: var(--medium-dark-grey);
  margin-top: 5px;
}

.form-field-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.or-text {
  font-weight: 700;
  color: var(--dark-grey-text);
  white-space: nowrap;
}

.cart-title {
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 1.5rem;
}

.cart-summary {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 2rem;
  padding-right: 10%;
}

.cart-labels p,
.cart-values p {
  margin: 0;
  padding: 5px 0;
  font-size: 1.1em;
}

.cart-labels {
  text-align: right;
  font-weight: 600;
}

.cart-values {
  text-align: right;
  font-weight: 400;
}

.form-row-center {
  justify-content: center;
  margin-top: 20px;
}

.terms-conditions {
  background-color: var(--light-grey-bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--light-grey-border);
  margin-top: 2rem;
}

.terms-conditions h3 {
  color: var(--primary-blue);
  margin-top: 0;
}

.terms-conditions ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
}

.terms-conditions li {
  margin-bottom: 10px;
  line-height: 1.4;
}

.terms-conditions p {
  margin-bottom: 10px;
  line-height: 1.4;
}

.form-fieldset {
  border: 1px solid var(--light-grey-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  position: relative;
  background-color: var(--white);
}

.fieldset-legend {
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 1.05em;
  padding: 0 10px;
  background-color: var(--white);
  position: absolute;
  top: -0.8em;
  left: 15px;
}

.required-asterisk {
  color: var(--red-error);
  font-size: 0.9em;
  font-weight: bold;
  vertical-align: super;
}

.footnote {
  font-size: 0.85em;
  color: var(--medium-dark-grey);
  text-align: right;
  margin-top: 15px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

input[type="checkbox"] {
  width: calc(20px * var(--scale-spacing));
  height: calc(20px * var(--scale-spacing));
  cursor: pointer;

}

input[type="checkbox"]:focus {
  outline: 2px solid var(--primary-blue);
}

input[type="checkbox"]:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

input[type="checkbox"]:hover {
  background-color: var(--dark-blue-hover);
  border-color: var(--dark-blue-hover);
  box-shadow: 0 0 0 2px var(--dark-blue-hover);
}

.custom-tabs-container {
  border-bottom: 2px solid var(--light-grey-border);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.custom-tabs-container::-webkit-scrollbar {
  display: none;
}

.custom-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  padding: 0 0.5rem;
  width: 100%;
  justify-content: space-evenly;
}

.custom-tab {
  background: none;
  border: none;
  padding: 0.6rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--medium-dark-grey);
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  position: relative;
  min-width: 110px;
  max-width: 130px;
  text-align: center;
  flex-shrink: 0;
}

.custom-tab:hover {
  color: var(--primary-blue);
  background-color: var(--very-light-grey-bg);
}

.custom-tab.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  background-color: var(--white);
}

.custom-tab i {
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.faculty-tabs-container .custom-tab {
  min-width: 140px;
  max-width: 200px;
  font-size: 0.75rem;
  white-space: normal;
  line-height: 1.25;
  padding: 0.5rem 0.4rem;
}

.faculty-tabs-container .custom-tab i {
  font-size: 0.85rem;
}

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(0.75rem * var(--scale-spacing));
  flex-wrap: wrap;
}

.search-container {
  display: flex;
  align-items: center;
  gap: calc(0.4rem * var(--scale-spacing));
  flex: 1;
  max-width: 440px;
}

.search-dropdown {
  position: relative;
  display: inline-block;
}

.search-dropdown-btn {
  background: var(--white);
  border: 1px solid var(--medium-grey);
  border-radius: 6px 0 0 6px;
  padding: calc(0.4rem * var(--scale-spacing)) calc(0.6rem * var(--scale-spacing));
  font-size: calc(0.85rem * var(--scale-font));
  color: var(--dark-grey-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s ease;
}

.search-dropdown-btn:hover {
  border-color: var(--primary-blue);
}

.search-dropdown-btn i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.search-dropdown.active .search-dropdown-btn i {
  transform: rotate(180deg);
}

.search-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--light-grey-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.search-dropdown.active .search-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-dropdown-item {
  padding: calc(0.4rem * var(--scale-spacing)) calc(0.6rem * var(--scale-spacing));
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: calc(0.85rem * var(--scale-font));
  color: var(--dark-grey-text);
}

.search-dropdown-item:hover {
  background-color: var(--very-light-grey-bg);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.search-input {
  flex: 1;
  border: 1px solid var(--medium-grey);
  border-left: none;
  border-radius: 0 6px 6px 0;
  padding: calc(0.4rem * var(--scale-spacing)) calc(0.7rem * var(--scale-spacing));
  padding-right: 2.2rem;
  font-size: calc(0.85rem * var(--scale-font));
  color: var(--dark-grey-text);
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.search-action-button {
  margin-left: calc(0.45rem * var(--scale-spacing));
  padding: calc(0.35rem * var(--scale-spacing)) calc(0.55rem * var(--scale-spacing));
  border: 1px solid var(--medium-grey);
  border-radius: 6px;
  background-color: var(--primary-blue);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(0.85rem * var(--scale-font));
  transition: background-color 0.2s ease, border-color 0.2s ease;
  min-width: calc(2rem * var(--scale-ui));
  min-height: calc(1.85rem * var(--scale-ui));
}

.search-action-button:hover:not(:disabled) {
  background-color: var(--dark-blue-hover);
  border-color: var(--dark-blue-hover);
}

.search-clear-button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  color: var(--medium-grey);
  transition: color 0.2s ease, background-color 0.2s ease;
  z-index: 1;
}

.search-clear-button:hover {
  color: var(--primary-blue);
  background-color: rgba(59, 130, 246, 0.1);
}

.search-clear-button:focus {
  outline: none;
  color: var(--primary-blue);
  background-color: rgba(59, 130, 246, 0.1);
}

.search-clear-button i {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.modal-form.hidden {
  opacity: 0;
  visibility: hidden;
}

.modal-form:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.modal-form-content {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 400px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-20px);
  transition: transform 0.3s ease-in-out;
}

.modal-form:not(.hidden) .modal-form-content {
  transform: translateY(0);
}

.modal-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--light-grey-border);
}

.modal-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-grey-text);
  margin: 0;
}

.modal-form-close {
  background: none;
  border: none;
  color: var(--medium-dark-grey);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-form-close:hover {
  background-color: var(--very-light-grey-bg);
  color: var(--dark-grey-text);
}

.modal-form-body {
  padding: 1.5rem;
}

.modal-form-body .form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-form-body .form-field-group {
  flex: 1;
}

.modal-form-body .form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--medium-dark-grey);
  margin-bottom: 0.5rem;
}

.modal-form-body .input-field,
.modal-form-body .fancy-form-select {
  width: 100%;
  box-sizing: border-box;
}

.modal-form-body .form-row-center {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-form-body .action-button,
.modal-form-body .modal-cancel-button {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
  text-align: center;
}

.modal-form-body .action-button {
  background-color: var(--primary-blue);
  color: var(--white);
}

.modal-form-body .action-button:hover {
  background-color: var(--dark-blue-hover);
  transform: translateY(-1px);
}

.modal-form-body .modal-cancel-button {
  background-color: var(--medium-grey);
  color: var(--dark-grey-text);
}

.modal-form-body .modal-cancel-button:hover {
  background-color: #b3b3b3;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .custom-tabs {
    gap: 0.25rem;
    padding: 0 0.25rem;
  }

  .custom-tab {
    padding: 0.4rem 0.5rem;
    font-size: 0.7rem;
    min-width: 90px;
    max-width: 110px;
  }

  .custom-tab i {
    font-size: 0.8rem;
    margin-right: 0.3rem;
  }

  .table-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .search-container {
    max-width: 100%;
  }

  .modal-form-content {
    min-width: 95vw;
    margin: 1rem;
  }

  .modal-form-body .form-row {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .custom-tab {
    padding: 0.3rem 0.3rem;
    font-size: 0.65rem;
    min-width: 70px;
    max-width: 90px;
  }

  .custom-tab i {
    display: none;
  }

  .search-dropdown-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .search-input {
    padding: 0.4rem 0.6rem;
    padding-right: 2rem;
    font-size: 0.8rem;
  }

  .search-clear-button {
    width: 1.25rem;
    height: 1.25rem;
    right: 0.4rem;
  }

  .search-clear-button i {
    font-size: 0.65rem;
  }
}

@media (max-width: 991px) {
  .form-row:not(.form-row-buttons):not(.form-row-center) {
    display: grid;
    grid-template-columns: 150px 1fr 150px 1fr;
    gap: 10px 15px;
    align-items: center;
  }

  .form-row .form-label {
    grid-column: auto;
    text-align: right;
    padding-right: 10px;
    padding-top: 0;
  }

  .form-row .form-field-group {
    grid-column: auto;
    flex: none;
    width: auto;
  }

  .form-row .form-field-group-full,
  .form-row .form-field-group-full-address {
    grid-column: 2 / -1;
    max-width: 100%;
  }

  .form-row-multi-field {
    grid-template-columns: 150px repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 767px) {
  .main-content-area-vendor {
    padding: 1rem;
  }

  .page-header-vendor {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .page-title-vendor {
    font-size: 1.8em;
  }

  .form-row,
  .form-row-multi-field {
    flex-direction: column;
    align-items: flex-start;
    display: flex;
    gap: 0;
  }

  .form-label {
    text-align: left;
    width: 100%;
    flex: none;
    margin-bottom: 5px;
    padding-right: 0;
    padding-top: 0;
  }

  .form-field-group {
    width: 100%;
    max-width: 100%;
    flex: none;
    margin-bottom: 15px;
  }

  .form-field-group-full-address {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .form-field-inline {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .form-field-inline .form-control {
    width: 100%;
  }

  .cart-summary {
    justify-content: center;
    padding-right: 0;
  }

  .fieldset-legend {
    position: static;
    text-align: left;
    width: auto;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .accordion-header {
    padding: 10px 15px;
    font-size: 1em;
  }
  .accordion-title {
    font-size: 1em;
  }
  .accordion-icon {
    font-size: 1em;
  }
  .accordion-content {
    padding: 15px;
  }
  .btn-xs {
    padding: 6px 10px;
    font-size: 0.9em;
  }
}

.page-header {
    margin-bottom: calc(1.5rem * var(--scale-spacing));
    padding-bottom: calc(0.75rem * var(--scale-spacing));
    border-bottom: 2px solid var(--light-grey-border);
}

.page-header h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.text-muted {
    color: var(--medium-dark-grey);
    font-size: calc(0.95rem * var(--scale-font));
    margin: 0;
}

.form-section {
    background-color: var(--white);
    padding: calc(0.4rem * var(--scale-spacing));
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-grey-border);
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    align-items: end;
    gap: calc(1.1rem * var(--scale-spacing));
    flex-wrap: wrap;
    margin-bottom: calc(12px * var(--scale-spacing));
}

.form-field-group {
    flex: 1;
    min-width: 260px;
    box-sizing: border-box;
}

.form-actions {
    flex-shrink: 0;
}

.table-responsive-wrapper {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-grey-border);
    overflow-x: visible;
    overflow-y: auto;
    margin: 1rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    border-spacing: 0;
}

.data-table th,
.data-table td {
    padding: calc(0.4rem * var(--scale-spacing)) calc(0.35rem * var(--scale-spacing));
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    height: auto;
    border: none;
    line-height: 1.2;
}

.data-table td {
    font-size: calc(0.8rem * var(--scale-font));
}

.data-table tbody {
    overflow-y: visible;
}

.data-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: calc(0.95rem * var(--scale-font));
    padding-top: calc(0.55rem * var(--scale-spacing));
    padding-bottom: calc(0.55rem * var(--scale-spacing));
}

.data-table .data-table-header-label {
    white-space: pre-line;
}

.data-table tr:hover {
    background-color: #f9fafb;
}

.table-container {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.table-header-fixed {
    flex-shrink: 0;
    background-color: var(--light-grey-bg);
    border-bottom: 2px solid var(--light-grey-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 10;
    margin: 0;
    padding: 0;

    width: fit-content;
    min-width: 100%;
    max-width: none;
}

.table-header-fixed .table-header-row {
    background-color: var(--light-grey-bg);
    border-bottom: none;
    margin: 0;
}

.table-header-fixed .data-table {
    margin: 0;
    border-spacing: 0;
    border-collapse: collapse;

}

.table-container .table-responsive-wrapper {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    position: relative;
    margin: 0;
    padding: 0;
    overflow-x: visible;
}

.table-container .table-responsive-wrapper .data-table {
    margin: 0;
    border-spacing: 0;
    border-collapse: collapse;
    overflow-x: visible;
    overflow-y: visible;
}

.table-container .data-table {
    width: 100%;
}

.table-header-only,
.table-container .data-table,
.table-scrollable-wrapper .data-table {
    table-layout: fixed;
}

.table-scrollable-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  position: relative;
}

.table-scrollable-wrapper .data-table-header-band {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-shrink: 0;
    width: fit-content;
    min-width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.table-scrollable-wrapper .data-table-header-band > .table-header-fixed {
    min-width: 100%;
}

.table-header-fixed .data-table,
.table-body-scrollable .data-table {
    table-layout: fixed;

}

.table-scrollable-wrapper .table-body-scrollable {
    overflow-x: visible;
    overflow-y: auto;

    max-height: 60vh;

    width: fit-content;
    min-width: 100%;
    max-width: none;
}

.table-body-scrollable .data-table {
    margin: 0;
    border-spacing: 0;
    border-collapse: collapse;
    min-width: 600px;

}

.data-table-actions-toolbar {
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    padding: 0.5rem 0.75rem;
    background-color: var(--light-grey-bg);
    border-bottom: 2px solid var(--light-grey-border);
    z-index: 9;
}

.data-table-actions-toolbar .action-button,
.data-table-actions-toolbar button.action-button {
    height: 35px;
    min-height: 35px;
    width: 35px;
    min-width: 35px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
}

.data-table-actions-toolbar .action-button i,
.data-table-actions-toolbar button.action-button i {
    font-size: 0.875rem;
    line-height: 1;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.data-table-actions-toolbar .action-button:disabled,
.data-table-actions-toolbar button.action-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.table-select-cell {
    text-align: center;
    vertical-align: middle;
}

.data-table-select-cell-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-table-row-select {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .table-container {
        overflow: hidden;
    }

    .table-scrollable-wrapper {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

    .table-header-fixed {
        overflow-x: visible;
    }

     .table-scrollable-wrapper .table-body-scrollable {
         overflow-x: visible;
         overflow-y: auto;

         max-height: 50vh;

         width: fit-content;
         min-width: 100%;
         max-width: none;
     }

    .table-header-only,
    .table-container .data-table,
    .table-header-fixed .data-table,
    .table-body-scrollable .data-table {
        min-width: 1000px;
        width: 100%;
    }

    .table-header-cell {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    .table-container .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    .table-container .action-button,
    .table-container .actions-wrapper .btn,
    .table-container .actions-wrapper .view-button,
    .table-container .actions-wrapper button {
        padding: 6px;
        font-size: 0.75rem;
        height: 30px;
        min-height: 30px;
        width: 30px;
        min-width: 30px;
    }

    .table-container .action-button i,
    .table-container .actions-wrapper .btn i,
    .table-container .actions-wrapper .view-button i,
    .table-container .actions-wrapper button i {
        font-size: 0.75rem;
    }

    .table-container .actions-wrapper {
        gap: 6px;
        flex-wrap: wrap;
    }

    .table-container .table-header-cell[data-column-key="actions"],
    .table-container .table-actions-cell {
        min-width: auto;
    }

    .table-container .table-actions-cell {
        width: auto !important;
        min-width: fit-content;
    }

    .data-table-actions-toolbar {
        gap: 6px;
        padding: 0.45rem 0.5rem;
    }

    .data-table-actions-toolbar .action-button,
    .data-table-actions-toolbar button.action-button {
        height: 30px;
        min-height: 30px;
        width: 30px;
        min-width: 30px;
    }

    .data-table-actions-toolbar .action-button i,
    .data-table-actions-toolbar button.action-button i {
        font-size: 0.75rem;
    }

    .pagination-controls-wrapper {
        padding: 0 0.5rem;
    }
}

.table-container .data-table thead {
    display: table-header-group;
}

.table-container .data-table tbody {
    display: table-row-group;
}

.table-header-cell {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-grey-text);
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.table-body-divider tr:not(:last-child) {
    border-bottom: 1px solid var(--divider-grey);
}
.table-body-divider tr td {
    border-bottom: none;
}
.table-body-divider tr:last-child td {
    border-bottom: 1px solid var(--medium-grey);
}

.table-row-hover:hover {
    background-color: var(--very-light-grey-bg);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.organogram-table th:nth-child(1),
.organogram-table th:nth-child(2),
.organogram-table th:nth-child(3) {
    width: 20%;
}

.organogram-table th:nth-child(4),
.organogram-table th:nth-child(5),
.organogram-table th:nth-child(6),
.organogram-table th:nth-child(7) {
    width: 10%;
}

.organogram-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.organogram-table th,
.organogram-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    height: auto;
}

.organogram-table td {
    font-size: 0.8125rem;
}

.organogram-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.organogram-table tr:hover {
    background-color: #f9fafb;
}

.organogram-table .table-actions-cell {
    padding: 8px 12px !important;
    width: 100% !important;
    vertical-align: middle !important;
    display: table-cell !important;
}

.organogram-table .actions-wrapper {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 2.5rem;
}

.organogram-table .action-button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background-color 0.2s;
    height: 35px;
    min-height: 35px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    box-sizing: border-box;
    white-space: nowrap;
    min-width: 60px;
}

.organogram-table .edit-button {
    background-color: #3b82f6;
    color: white;
}

.organogram-table .edit-button:hover {
    background-color: #2563eb;
}

.organogram-table .save-button {
    background-color: #10b981;
    color: white;
}

.organogram-table .save-button:hover {
    background-color: #059669;
}

.organogram-table .delete-button {
    background-color: #ef4444;
    color: white;
}

.organogram-table .delete-button:hover {
    background-color: #dc2626;
}

.organogram-table .delete-button.disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
}

.organogram-table .delete-button.disabled:hover {
    background-color: #cccccc;
}

.organogram-table .edit-button,
.organogram-table .save-button,
.organogram-table .delete-button {
    height: 32px;
    min-height: 32px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    box-sizing: border-box;
}

.organogram-table .edit-mode {
    display: none;
}

.organogram-table .edit-mode:not(.hidden) {
    display: block;
}

.organogram-table .display-mode:not(.hidden) {
    display: block;
}

.organogram-table .display-mode.hidden {
    display: none;
}

.organogram-table .status-active {
    color: #10b981;
    font-weight: 600;
}

.organogram-table .status-inactive {
    color: #ef4444;
    font-weight: 600;
}

.organogram-table tr,
.organogram-table .action-button {
    transform: none;
}

.organogram-table tr,
.organogram-table .action-button {
    transition: background-color 0.2s;
}

.permissions-hierarchy-table .expand-icon {
    color: var(--medium-dark-grey);
    width: 1rem;
}

.permissions-hierarchy-table tr.category-row {
    background-color: var(--light-grey, #f8f9fa);
}

.permissions-hierarchy-table tr.category-row td {
    font-weight: 600;
}

.permissions-hierarchy-table tr.permission-row td {
    vertical-align: top;
}

.permissions-hierarchy-table .table-actions-cell .actions-wrapper {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
}

.permission-menu-tree {
    width: 100%;
    overflow-x: hidden;
}

.permission-menu-node {
    margin-bottom: 0.25rem;
}

.permission-menu-node--depth-0 {
    padding-left: 0;
}

.permission-menu-node--depth-1 {
    padding-left: 1.25rem;
}

.permission-menu-node--depth-2 {
    padding-left: 2.5rem;
}

.permission-menu-node--depth-3 {
    padding-left: 3.75rem;
}

.permission-menu-node--depth-4 {
    padding-left: 5rem;
}

.permission-menu-section {
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary, #212529);
}

.permission-menu-section-with-check .form-check {
    margin-bottom: 0.25rem;
}

.permission-menu-section-with-check .form-check-label {
    font-weight: 600;
}

.category-select-all-row {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color, #dee2e6);
}

.category-select-all-row .form-check-label {
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
}

.accordion-title .category-title-text,
.permission-role-category-title .category-title-text {
    font-size: inherit;
    font-weight: inherit;
    cursor: default;
}

.accordion-title .category-title-checkbox,
.permission-role-category-title .category-title-checkbox {
    flex-shrink: 0;
    margin-top: 0;
}

.permission-checkbox-row {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.permission-checkbox-row .form-check-label {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: inline-block;
}

.category-header-left {
    flex: 1;
    min-width: 0;
}

.category-checkbox {
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.permission-role-category-title {
    font-weight: 600;
    font-size: 1.1em;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.permission-role-category:first-child .permission-role-category-title {
    margin-top: 0;
}

.organogram-table tr:hover,
.organogram-table .action-button:hover {
    transform: none !important;
}

.organogram-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: var(--z-index-modal);
    text-align: left;
}

.organogram-modal.hidden {
    display: none;
}

.organogram-modal .modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    margin: 10% auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: left;
}

.organogram-modal .modal-message {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--medium-dark-grey);
}

.organogram-modal .modal-footer-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.search-user-mgmt-layout {
    max-width: 100%;
    box-sizing: border-box;
    min-height: calc(100vh - 120px);
}
.search-user-mgmt-left {
    width: 33.33%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
}
.search-user-mgmt-left-scroll {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.search-user-mgmt-left-sticky-actions {
    position: sticky;
    bottom: 0;
    padding: 0.75rem 0;
    background: var(--light-grey-bg, #f8f9fa);
    border-top: 1px solid var(--light-grey-border, #dee2e6);
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.search-user-mgmt-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 0;
    overflow: hidden;
    align-self: stretch;
}
.search-user-mgmt-panel {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
}

#enrol-qual-panel.search-user-mgmt-panel,
#enrol-course-panel.search-user-mgmt-panel,
#capture-results-panel.search-user-mgmt-panel,
#edit-user-panel.search-user-mgmt-panel {
    overflow-x: hidden;
    overflow-y: auto;
}

.search-results-bulk-actions {
    align-items: flex-start;
}

.search-results-bulk-actions > .dropdown {
    display: flex;
    align-items: flex-start;
}

#sendMailModal .send-mail-modal-content {
    width: 100%;
    max-width: min(800px, 95vw);
}

.organogram-modal .modal-content.email-compose-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: min(800px, 95vw);
    max-height: min(85vh, 720px);
    margin: auto;
    padding: 0;
    overflow: hidden;
}

.email-compose-modal .modal-form-header {
    flex-shrink: 0;
}

.email-compose-modal .modal-form-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.email-compose-modal form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.email-compose-modal-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1.5rem;
}

.email-compose-modal .modal-form-footer {
    flex-shrink: 0;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--light-grey-border);
    background-color: #fff;
}

.email-compose-modal .modal-form-footer.form-row-center {
    margin-top: 0;
}

#sendMailModal .send-mail-target-panel {
    max-width: none;
    min-width: 0;
    width: 100%;
}

#sendMailModal .custom-multi-select-list,
#sendMailModal .enrol-qual-target-scroll {
    max-height: min(240px, 35vh);
}

.search-user-mgmt-layout .fieldset-legend {
    font-size: calc(1.05rem * var(--scale-font));
}

.enrol-qual-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.enrol-qual-layout {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    align-items: flex-start;
    min-height: min(65vh, 640px);
    margin-top: 1rem;
}
.enrol-qual-target-panel {
    flex: 0 1 34%;
    max-width: 360px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--light-grey-border, #dee2e6);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    background: var(--light-grey-bg, #f8f9fa);
}
.enrol-qual-target-panel .enrol-qual-panel-title {
    font-size: calc(0.95rem * var(--scale-font, 1));
    margin-bottom: 0.35rem;
    padding-bottom: 0.25rem;
}
.enrol-qual-form-panel {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid var(--light-grey-border, #dee2e6);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    overflow-x: hidden;
}
.enrol-qual-panel-title {
    font-size: calc(1.05rem * var(--scale-font, 1));
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--light-grey-border, #dee2e6);
}
.enrol-qual-target-scroll {
    flex: 0 1 auto;
    min-height: 120px;
    max-height: min(320px, 40vh);
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--light-grey-border, #dee2e6);
    border-radius: 6px;
    font-size: calc(0.8125rem * var(--scale-font, 1));
    line-height: 1.3;
}
.custom-multi-select {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.custom-multi-select .custom-dropdown-search {
    margin-bottom: 0;
}
.custom-multi-select-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    font-size: calc(0.775rem * var(--scale-font, 1));
    color: var(--text-muted, #6c757d);
    padding: 0 0.2rem;
}
.custom-multi-select-status-showing {
    flex: 1 1 auto;
    min-width: 0;
}
.custom-multi-select-status-selected {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    font-weight: 500;
}
.custom-multi-select-footer {
    min-height: 1rem;
    font-size: calc(0.75rem * var(--scale-font, 1));
    padding: 0 0.2rem;
}
.custom-multi-select-list {
    min-height: 160px;
}
.enrol-qual-form-scroll {
    flex: 1 1 auto;
    min-height: 200px;
    max-height: min(62vh, 560px);
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.enrol-qual-check-all-wrap .enrol-qual-check-all,
.enrol-qual-target-scroll .enrol-qual-user-cb {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    margin-top: 0.12rem;
    border: 2px solid var(--medium-dark-grey, #5c636a);
    border-radius: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-blue, #0d6efd);
}
.enrol-qual-check-all-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.25rem 0.2rem;
    font-size: calc(0.8125rem * var(--scale-font, 1));
}

.form-check-label {
    font-size: calc(0.8125rem * var(--scale-font, 1));
}
.enrol-qual-check-all-wrap .form-check-label {
    cursor: pointer;
    font-weight: 500;
    padding-top: 0.05rem;
    line-height: 1.3;
}
.enrol-qual-target-row {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    cursor: pointer;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}
.enrol-qual-target-line {
    flex: 1 1 0;
    min-width: 0;
    line-height: 1.3;
    padding-top: 0;
}

.enrol-qual-form-panel .row.mb-3 > .col-form-label {
    font-weight: 500;
}
.enrol-qual-faculty-warning {
    margin-top: 0.5rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid #ffeaa7;
    border-radius: 0.375rem;
    background-color: #fff3cd;
    color: #856404;
    font-size: calc(0.8125rem * var(--scale-font, 1));
    line-height: 1.35;
}
@media (min-width: 768px) {
    .enrol-qual-form-panel .row.mb-3 > .col-form-label.col-md-4 {
        text-align: left;
    }
}
@media (max-width: 991px) {
    .enrol-qual-layout {
        flex-direction: column;
    }
    .enrol-qual-target-panel {
        flex: 0 1 auto;
        max-width: none;
        width: 100%;
    }
    .enrol-qual-form-panel {
        max-width: none;
        width: 100%;
    }
    .enrol-qual-form-scroll {
        max-height: none;
    }
}

.enrol-course-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.enrol-course-layout {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    align-items: flex-start;
    min-height: min(65vh, 640px);
    margin-top: 1rem;
}
.enrol-course-target-panel {
    flex: 0 1 34%;
    max-width: 360px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--light-grey-border, #dee2e6);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    background: var(--light-grey-bg, #f8f9fa);
}
.enrol-course-target-panel .enrol-course-panel-title {
    font-size: calc(0.95rem * var(--scale-font, 1));
    margin-bottom: 0.35rem;
    padding-bottom: 0.25rem;
}
.enrol-course-form-panel {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid var(--light-grey-border, #dee2e6);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    overflow-x: hidden;
}
.enrol-course-panel-title {
    font-size: calc(1.05rem * var(--scale-font, 1));
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--light-grey-border, #dee2e6);
}
.enrol-course-form-scroll {
    flex: 1 1 auto;
    min-height: 200px;
    max-height: min(62vh, 560px);
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0.25rem;
}
.enrol-course-form-panel .row.mb-3 > .col-form-label {
    font-weight: 500;
}
@media (min-width: 768px) {
    .enrol-course-form-panel .row.mb-3 > .col-form-label.col-md-4 {
        text-align: left;
    }
}

#enrolCourseScheduleGridWrap,
#captureResultsGridWrap,
#enrolCourseScheduleGrid,
#captureResultsGrid {
    min-width: 0;
    max-width: 100%;
}
#enrolCourseScheduleGridWrap,
#captureResultsGridWrap {
    overflow-x: hidden;
}

#enrolCourseScheduleGrid .table-scrollable-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
}
#enrolCourseScheduleGrid .data-table-header-band,
#enrolCourseScheduleGrid .table-body-scrollable {
    width: max-content;
    min-width: 100%;
}
#enrolCourseScheduleGrid .table-header-fixed .data-table,
#enrolCourseScheduleGrid .table-body-scrollable .data-table {
    min-width: 980px;
    width: max-content;
}
#enrolCourseScheduleGrid .table-body-scrollable {
    overflow-y: auto;
}

#captureResultsGrid .table-scrollable-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
}
#captureResultsGrid .data-table-header-band,
#captureResultsGrid .table-body-scrollable {
    width: max-content;
    min-width: 100%;
}
#captureResultsGrid .table-header-fixed .data-table,
#captureResultsGrid .table-body-scrollable .data-table {
    min-width: 640px;
    width: max-content;
}
#captureResultsGrid .table-body-scrollable {
    overflow-y: auto;
}
@media (max-width: 991px) {
    .enrol-course-layout {
        flex-direction: column;
    }
    .enrol-course-target-panel {
        flex: 0 1 auto;
        max-width: none;
        width: 100%;
    }
    .enrol-course-form-panel {
        flex: 0 1 auto;
        max-width: none;
        width: 100%;
    }
    .enrol-course-form-scroll {
        max-height: none;
    }
}

@media (max-width: 991px) {
    .search-user-mgmt-layout {
        flex-direction: column;
    }
    .search-user-mgmt-left {
        width: 100%;
        max-width: none;
        min-height: 50vh;
        max-height: 50vh;
        overflow: hidden;
    }
}

.organogram-modal .modal-button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.organogram-modal .modal-button:hover {
    transform: scale(1.05);
}

.organogram-modal .modal-confirm-button {
    background-color: #ef4444;
}

.organogram-modal .modal-confirm-button:hover {
    background-color: #dc2626;
}

.organogram-modal .modal-cancel-button {
    background-color: #4a90e2;
}

.organogram-modal .modal-cancel-button:hover {
    background-color: #357abd;
}

.organogram-modal .tooltip {
    z-index: var(--z-index-alert) !important;
}

.organogram-modal .tooltip-arrow {
    z-index: var(--z-index-alert) !important;
}

@media (max-width: 768px) {
    .organogram-table th,
    .organogram-table td {
        padding: 8px 12px;
        font-size: 0.875rem;
        min-width: 100px;
    }

    .organogram-table .table-actions-cell {
        flex-direction: column;
        gap: 4px;
    }

    .organogram-table .action-button {
        width: 100%;
        text-align: center;
    }
}

.actions-wrapper {
    display: flex;
    gap: calc(8px * var(--action-btn-scale, 1));
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    min-height: 2.5rem;
    flex-wrap: wrap;
}

.action-button {
    padding: calc(8px * var(--action-btn-scale, 1));
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: calc(0.875rem * var(--action-btn-scale, 1));
    font-weight: 500;
    transition: background-color 0.2s, transform 0.2s;
    height: calc(35px * var(--action-btn-scale, 1));
    min-height: calc(35px * var(--action-btn-scale, 1));
    width: calc(35px * var(--action-btn-scale, 1));
    min-width: calc(35px * var(--action-btn-scale, 1));
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    box-sizing: border-box;
    white-space: nowrap;
    position: relative;
}

.action-button i {
    font-size: calc(0.875rem * var(--action-btn-scale, 1));
    line-height: 1;
    color: inherit;
}

.action-button:hover {
    transform: scale(1.05);
}

.action-button:active {
    transform: scale(0.95);
}

.actions-wrapper .btn,
.actions-wrapper .view-button,
.actions-wrapper button {
    height: calc(35px * var(--action-btn-scale, 1)) !important;
    min-height: calc(35px * var(--action-btn-scale, 1)) !important;
    width: calc(35px * var(--action-btn-scale, 1)) !important;
    min-width: calc(35px * var(--action-btn-scale, 1)) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

.actions-wrapper .btn i,
.actions-wrapper .view-button i,
.actions-wrapper button i {
    font-size: calc(0.875rem * var(--action-btn-scale, 1));
    line-height: 1;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
}

.actions-wrapper .btn.btn-sm {
    padding: 0 !important;
    font-size: calc(0.875rem * var(--action-btn-scale, 1)) !important;
}

.actions-wrapper .btn-outline-primary,
.actions-wrapper .btn-outline-warning {
    padding: 0 !important;
}

.edit-button {
    background-color: #3b82f6;
    color: white;
}

.edit-button:hover {
    background-color: #2563eb;
}

.save-button {
    background-color: #10b981;
    color: white;
}

.save-button:hover {
    background-color: #059669;
}

.delete-button {
    background-color: #ef4444;
    color: white;
}

.delete-button:hover {
    background-color: #dc2626;
}

.delete-button.disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
}

.delete-button.disabled:hover {
    background-color: #cccccc;
}

.edit-button,
.save-button,
.delete-button {
    height: 32px;
    min-height: 32px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    box-sizing: border-box;
}

@media (min-width: 769px) and (max-width: 1024px) {

    .table-container .table-header-cell[data-column-key="actions"],
    .table-container .table-actions-cell {
        min-width: fit-content;
    }

    .table-container .actions-wrapper {
        gap: calc(8px * var(--action-btn-scale, 1));
        flex-wrap: wrap;
        justify-content: center;
    }

    .table-container .action-button,
    .table-container .actions-wrapper .btn,
    .table-container .actions-wrapper .view-button,
    .table-container .actions-wrapper button {
        height: calc(32px * var(--action-btn-scale, 1));
        min-height: calc(32px * var(--action-btn-scale, 1));
        width: calc(32px * var(--action-btn-scale, 1));
        min-width: calc(32px * var(--action-btn-scale, 1));
        padding: calc(6px * var(--action-btn-scale, 1));
    }

    .table-container .action-button i,
    .table-container .actions-wrapper .btn i,
    .table-container .actions-wrapper .view-button i,
    .table-container .actions-wrapper button i {
        font-size: calc(0.8125rem * var(--action-btn-scale, 1));
    }
}

@media (max-width: 480px) {
    .table-container .action-button,
    .table-container .actions-wrapper .btn,
    .table-container .actions-wrapper .view-button,
    .table-container .actions-wrapper button {
        height: calc(28px * var(--action-btn-scale, 1));
        min-height: calc(28px * var(--action-btn-scale, 1));
        width: calc(28px * var(--action-btn-scale, 1));
        min-width: calc(28px * var(--action-btn-scale, 1));
        padding: calc(5px * var(--action-btn-scale, 1));
    }

    .table-container .action-button i,
    .table-container .actions-wrapper .btn i,
    .table-container .actions-wrapper .view-button i,
    .table-container .actions-wrapper button i {
        font-size: calc(0.7rem * var(--action-btn-scale, 1));
    }

    .table-container .actions-wrapper {
        gap: calc(4px * var(--action-btn-scale, 1));
    }

    .table-container .table-actions-cell {
        width: auto !important;
        min-width: fit-content;
        padding: 0.5rem 0.25rem !important;
    }
}

.btn-edit,
.btn-save-edit,
.btn-cancel-edit {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.btn-edit {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 1px solid var(--primary-blue);
}

.btn-edit:hover {
    background-color: var(--dark-blue-hover);
    border-color: var(--dark-blue-hover);
    transform: translateY(-1px);
}

.btn-save-edit {
    background-color: var(--green-success);
    color: var(--white);
    border: 1px solid var(--green-success);
}

.btn-save-edit:hover {
    background-color: #16a34a;
    border-color: #16a34a;
    transform: translateY(-1px);
}

.btn-cancel-edit {
    background-color: var(--medium-grey);
    color: var(--white);
    border: 1px solid var(--medium-grey);
}

.btn-cancel-edit:hover {
    background-color: #999;
    border-color: #999;
    transform: translateY(-1px);
}

.edit-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--medium-grey);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.edit-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.usage-tally {
    text-align: center;
    vertical-align: middle;
}

.tally-badge {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.tally-badge.zero {
    background-color: var(--medium-grey);
}

.tally-badge.tally-badge--criteria {
    box-sizing: border-box;
    margin-inline-end: 0.35rem;
    margin-bottom: 0.25rem;
    vertical-align: middle;
    background-color: transparent;
    color: var(--dark-grey-text);
    border: 1px solid var(--primary-blue);
    font-weight: 500;
}

#searchResultsCriteriaText {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.4;
}

#searchResultsCriteriaText .search-results-criteria-item {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
}

#searchResultsCriteriaText .search-results-criteria-label {
    color: var(--dark-grey-text);
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: var(--dark-grey-text);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
}

.modal:not(.hidden) .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-grey-border);
    margin-bottom: 1rem;
}

.modal-title {
    margin: 0;
    color: var(--dark-grey-text);
    font-size: 1.25rem;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--light-grey-border);
    padding-top: 1rem;
}

.modal-footer-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-message {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--medium-dark-grey);
}

.data-table th:last-child,
.data-table td:last-child {
    text-align: center;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-field-group {
        min-width: auto;
    }

    .form-actions {
        align-self: stretch;
    }

    .form-actions .btn {
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .modal-footer-buttons {
        flex-direction: column;
    }

    .modal-footer-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 1rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    .table-header-cell {
        font-size: 0.75rem;
    }
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-blue-hover);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-blue) transparent;
}

.custom-select-field {
  display: block;
}

.grant-survey-type-helper {
  display: none;
}

.content-screen .custom-dropdown .custom-dropdown-toggle {
  min-height: calc(2.2rem * var(--scale-ui));
  padding: calc(0.48rem * var(--scale-spacing)) calc(0.6rem * var(--scale-spacing));
  box-sizing: border-box;
}

.custom-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
}
.custom-dropdown-toggle {
  height: 100%;
}

.status-active {
  color: #10b981;
  font-weight: 600;
}

.status-inactive {
  color: #ef4444;
  font-weight: 600;
}

.vendor-select .custom-dropdown-toggle {
  background: var(--nav-bar-color-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--nav-bar-font-color);
  font-size: calc(0.85rem * var(--scale-font));
  padding: calc(0.35rem * var(--scale-spacing)) calc(0.55rem * var(--scale-spacing));
  min-height: auto;
}

.vendor-select .custom-dropdown-toggle:hover {
  background: var(--nav-bar-color);
  border-color: var(--nav-bar-highligh-color);
}

.vendor-select .custom-dropdown-toggle.active {
  border-color: var(--nav-bar-highligh-color);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

.vendor-select .custom-dropdown-toggle .dropdown-arrow {
  color: var(--nav-bar-font-color);
}

.vendor-select .custom-dropdown-menu {
  background: var(--white);
  border: 1px solid var(--light-grey-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

.vendor-select .custom-dropdown-search input {
  background: var(--white);
  color: var(--dark-grey-text);
  border: 1px solid var(--medium-grey);
}

.vendor-select .custom-dropdown-search input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.vendor-select .custom-dropdown-option {
  color: var(--dark-grey-text);
}

.vendor-select .custom-dropdown-option:hover {
  background-color: var(--very-light-grey-bg);
}

.vendor-select .custom-dropdown-option.selected {
  background-color: var(--primary-blue);
  color: var(--white);
}

.custom-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: calc(0.35rem * var(--scale-spacing)) calc(0.6rem * var(--scale-spacing));
  border: 1px solid var(--medium-grey);
  border-radius: 6px;
  background: var(--very-light-grey-bg);
  font-size: calc(0.9rem * var(--scale-font));
  line-height: 1.3;
  color: var(--dark-grey-text);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: auto;
  box-sizing: border-box;
}

.custom-dropdown-toggle:hover {
  border-color: var(--primary-blue);
}

.custom-dropdown-toggle.active {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.custom-dropdown-toggle .selected-text {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-dropdown-toggle .dropdown-arrow {
  font-size: calc(0.75rem * var(--scale-font));
  color: var(--medium-dark-grey);
  transition: transform 0.3s ease;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.custom-dropdown-toggle.active .dropdown-arrow {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--light-grey-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 260px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.custom-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-dropdown-search {
  padding: calc(0.5rem * var(--scale-spacing));
  border-bottom: 1px solid var(--light-grey-border);
  background: var(--very-light-grey-bg);
}

.custom-dropdown-search input {
  width: 100%;
  padding: calc(0.35rem * var(--scale-spacing)) calc(0.55rem * var(--scale-spacing));
  border: 1px solid var(--medium-grey);
  border-radius: 6px;
  font-size: calc(0.9rem * var(--scale-font));
  color: var(--dark-grey-text);
  background: var(--white);
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.custom-dropdown-search input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.custom-dropdown-search input::placeholder {
  color: var(--medium-dark-grey);
}

.custom-dropdown-options {
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--medium-grey) transparent;
}

.custom-dropdown-options::-webkit-scrollbar {
  width: 6px;
}

.custom-dropdown-options::-webkit-scrollbar-track {
  background: transparent;
}

.custom-dropdown-options::-webkit-scrollbar-thumb {
  background: var(--medium-grey);
  border-radius: 3px;
}

.custom-dropdown-options::-webkit-scrollbar-thumb:hover {
  background: var(--dark-grey-text);
}

.custom-dropdown-option {
  padding: calc(0.45rem * var(--scale-spacing)) calc(0.65rem * var(--scale-spacing));
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--very-light-grey-bg);
  font-size: calc(0.875rem * var(--scale-font));
  color: var(--dark-grey-text);
}

.custom-dropdown-option:hover {
  background-color: var(--very-light-grey-bg);
}

.custom-dropdown-option.selected {
  background-color: var(--primary-blue);
  color: var(--white);
}

.custom-dropdown-option.highlighted {
  background-color: var(--very-light-grey-bg);
}

.custom-dropdown-option.hidden {
  display: none;
}

.custom-dropdown-no-results {
  padding: calc(0.65rem * var(--scale-spacing));
  text-align: center;
  color: var(--medium-dark-grey);
  font-style: italic;
  font-size: calc(0.85rem * var(--scale-font));
}

@media (max-width: 768px) {
  .custom-dropdown-menu {
    max-height: 250px;
  }

  .custom-dropdown-options {
    max-height: 200px;
  }

  .custom-dropdown-option {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .custom-dropdown-toggle {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-height: 32px;
  }

  .custom-dropdown-search {
    padding: 0.5rem;
  }

  .custom-dropdown-search input {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .custom-dropdown-option {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
  }
}

.searchable-input {
  position: relative;
  display: inline-block;
  width: 100%;
}

.searchable-input-field {
  width: 100%;
  padding: calc(0.48rem * var(--scale-spacing)) calc(0.6rem * var(--scale-spacing));
  border: 1px solid var(--medium-grey);
  border-radius: 8px;
  background: var(--white);
  font-size: calc(0.9rem * var(--scale-font));
  color: var(--dark-grey-text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: calc(2.2rem * var(--scale-ui));
  box-sizing: border-box;
}

.searchable-input-field:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.searchable-input-field:disabled {
  background: var(--very-light-grey-bg);
  cursor: not-allowed;
  opacity: 0.6;
}

.searchable-input.is-invalid .searchable-input-field {
  border-color: #dc3545;
}

.searchable-input.is-invalid .searchable-input-field:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.custom-dropdown.is-invalid .custom-dropdown-toggle {
  border-color: #dc3545;
}

.custom-dropdown.is-invalid .custom-dropdown-toggle:focus,
.custom-dropdown.is-invalid .custom-dropdown-toggle.active {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.searchable-input.active .searchable-input-field {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.searchable-input.disabled .searchable-input-field {
  background: var(--very-light-grey-bg);
  cursor: not-allowed;
  opacity: 0.6;
}

.searchable-input-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--light-grey-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 300px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 2px;
}

.searchable-input-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.searchable-input-options {
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--medium-grey) transparent;
}

.searchable-input-options::-webkit-scrollbar {
  width: 6px;
}

.searchable-input-options::-webkit-scrollbar-track {
  background: transparent;
}

.searchable-input-options::-webkit-scrollbar-thumb {
  background: var(--medium-grey);
  border-radius: 3px;
}

.searchable-input-options::-webkit-scrollbar-thumb:hover {
  background: var(--dark-grey-text);
}

.searchable-input-option {
  padding: calc(0.45rem * var(--scale-spacing)) calc(0.65rem * var(--scale-spacing));
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--very-light-grey-bg);
  font-size: calc(0.875rem * var(--scale-font));
  color: var(--dark-grey-text);
}

.searchable-input-option:hover,
.searchable-input-option.highlighted {
  background-color: var(--very-light-grey-bg);
}

.searchable-input-option.selected {
  background-color: var(--primary-blue);
  color: var(--white);
}

.searchable-input-option.hidden {
  display: none;
}

.searchable-input-create {
  background-color: var(--very-light-grey-bg);
  color: var(--primary-blue);
  font-weight: 500;
  border-top: 2px solid var(--light-grey-border);
  border-bottom: none;
}

.searchable-input-create:hover,
.searchable-input-create.highlighted {
  background-color: rgba(74, 144, 226, 0.1);
  color: var(--dark-blue-hover);
}

.searchable-input-no-results {
  padding: calc(0.65rem * var(--scale-spacing));
  text-align: center;
  color: var(--medium-dark-grey);
  font-style: italic;
  font-size: calc(0.85rem * var(--scale-font));
}

@media (max-width: 768px) {
  .searchable-input-menu {
    max-height: 250px;
  }

  .searchable-input-options {
    max-height: 200px;
  }

  .searchable-input-option {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .searchable-input-field {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-height: 32px;
  }

  .searchable-input-option {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
  }
}

.btn-primary,
.btn-save,
.btn-submit {
  background-color: var(--primary-blue);
  color: var(--white);
  border: 1px solid var(--primary-blue);
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: calc(0.35rem * var(--scale-spacing)) calc(0.65rem * var(--scale-spacing));
  font-size: calc(0.875rem * var(--scale-font));
  line-height: 1.3;
}

.btn-primary:hover,
.btn-save:hover,
.btn-submit:hover {
  background-color: var(--dark-blue-hover);
  border-color: var(--dark-blue-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-save:disabled,
.btn-submit:disabled {
  background-color: var(--medium-dark-grey) !important;
  color: var(--white) !important;
  border-color: var(--medium-dark-grey) !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.btn-outline-secondary,
.btn-secondary,
.btn-cancel,
.btn-test {
  background-color: transparent;
  color: var(--medium-dark-grey);
  border: 1px solid var(--medium-grey);
  padding: calc(0.35rem * var(--scale-spacing)) calc(0.65rem * var(--scale-spacing));
  font-size: calc(0.875rem * var(--scale-font));
  line-height: 1.3;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-outline-secondary:hover,
.btn-secondary:hover,
.btn-cancel:hover,
.btn-test:hover {
  background-color: var(--medium-grey);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-secondary:disabled,
.btn-secondary:disabled,
.btn-cancel:disabled,
.btn-test:disabled {
  background-color: var(--very-light-grey-bg);
  color: var(--medium-grey);
  border-color: var(--medium-grey);
  cursor: not-allowed;
  transform: none;
}

.btn-outline-primary,
.btn-add,
.btn-create {
  background-color: transparent;
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  padding: calc(0.35rem * var(--scale-spacing)) calc(0.65rem * var(--scale-spacing));
  font-size: calc(0.875rem * var(--scale-font));
  line-height: 1.3;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-outline-primary:hover,
.btn-add:hover,
.btn-create:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-primary:disabled,
.btn-add:disabled,
.btn-create:disabled {
  background-color: var(--very-light-grey-bg);
  color: var(--medium-grey);
  border-color: var(--medium-grey);
  cursor: not-allowed;
  transform: none;
}

.btn-sm,
.btn-small {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

.btn-outline-danger,
.btn-danger,
.btn-remove,
.delete-btn,
.delete-button {
  background-color: transparent;
  color: var(--red-error);
  border: 1px solid var(--red-error) !important;
  padding: calc(0.35rem * var(--scale-spacing)) calc(0.65rem * var(--scale-spacing)) !important;
  font-size: calc(0.875rem * var(--scale-font)) !important;
  line-height: 1.3 !important;
  border-radius: 0.375rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
}

.btn-outline-danger:hover,
.btn-danger:hover,
.btn-remove:hover,
.delete-btn:hover,
.delete-button:hover {
  background-color: var(--red-error);
  color: var(--white);
  transform: translateY(-1px);
  border: 1px solid var(--red-error) !important;
}

.btn-outline-danger:disabled,
.btn-danger:disabled,
.btn-remove:disabled,
.delete-btn:disabled,
.delete-button:disabled {
  background-color: var(--very-light-grey-bg);
  color: var(--medium-grey);
  border-color: var(--medium-grey) !important;
  cursor: not-allowed;
  transform: none;
}

.btn-success,
.btn-outline-success {
  background-color: var(--green-success);
  color: var(--white);
  border: 1px solid var(--green-success) !important;
  padding: calc(0.35rem * var(--scale-spacing)) calc(0.65rem * var(--scale-spacing));
  font-size: calc(0.875rem * var(--scale-font));
  line-height: 1.3;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-outline-success {
  background-color: transparent;
  color: var(--green-success);
}

.btn-success:hover,
.btn-outline-success:hover {
  background-color: var(--green-success);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-warning,
.btn-outline-warning {
  background-color: #ffc107;
  color: var(--dark-grey-text);
  border: 1px solid #ffc107;
  padding: calc(0.35rem * var(--scale-spacing)) calc(0.65rem * var(--scale-spacing));
  font-size: calc(0.875rem * var(--scale-font));
  line-height: 1.3;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-outline-warning {
  background-color: transparent;
  color: #ffc107;
}

.btn-warning:hover,
.btn-outline-warning:hover {
  background-color: #ffc107;
  color: var(--dark-grey-text);
  transform: translateY(-1px);
}

.btn-info,
.btn-outline-info {
  background-color: #17a2b8;
  color: var(--white);
  border: 1px solid #17a2b8;
  padding: calc(0.35rem * var(--scale-spacing)) calc(0.65rem * var(--scale-spacing));
  font-size: calc(0.875rem * var(--scale-font));
  line-height: 1.3;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-outline-info {
  background-color: transparent;
  color: #17a2b8;
}

.btn-info:hover,
.btn-outline-info:hover {
  background-color: #17a2b8;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-group .btn {
  margin: 0;
}

.btn i {
  margin-right: 0.5rem;
}

.btn.btn-icon-only {
  padding: 0.5rem;
  min-width: 2.5rem;
}

.btn.btn-icon-only i {
  margin-right: 0;
}

.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(0.75rem * var(--scale-spacing));
    flex-wrap: wrap;
    gap: calc(0.75rem * var(--scale-spacing));
}

.search-container {
    display: flex;
    align-items: center;
    gap: calc(0.4rem * var(--scale-spacing));
    flex: 1;
    min-width: 200px;
    max-width: 440px;
}

.search-dropdown {
    position: relative;
    display: inline-block;
}

.search-dropdown-btn {
    background-color: var(--white);
    border: 1px solid var(--medium-grey);
    border-radius: 6px 0 0 6px;
    padding: calc(0.4rem * var(--scale-spacing)) calc(0.6rem * var(--scale-spacing));
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: calc(0.35rem * var(--scale-spacing));
    font-size: calc(0.85rem * var(--scale-font));
    color: var(--dark-grey-text);
    min-width: 100px;
    transition: border-color 0.2s ease;
}

.search-dropdown-btn:hover {
    border-color: var(--primary-blue);
}

.search-dropdown-btn i {
    font-size: calc(0.75rem * var(--scale-font));
    transition: transform 0.2s ease;
}

.search-dropdown.active .search-dropdown-btn i {
    transform: rotate(180deg);
}

.search-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--light-grey-border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    margin-top: 2px;
}

.search-dropdown.active .search-dropdown-menu {
    display: block;
}

.search-dropdown-item {
    padding: calc(0.4rem * var(--scale-spacing)) calc(0.6rem * var(--scale-spacing));
    cursor: pointer;
    font-size: calc(0.85rem * var(--scale-font));
    transition: background-color 0.2s ease;
}

.search-dropdown-item:hover {
    background-color: var(--light-grey-bg);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.search-input {
    flex: 1;
    padding: calc(0.4rem * var(--scale-spacing)) calc(0.7rem * var(--scale-spacing));
    padding-right: 2.2rem;
    border: 1px solid var(--medium-grey);
    border-left: none;
    border-radius: 0 6px 6px 0;
    font-size: calc(0.85rem * var(--scale-font));
    color: var(--dark-grey-text);
    transition: border-color 0.2s ease;
    min-width: 140px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.search-action-button {
    margin-left: calc(0.45rem * var(--scale-spacing));
    padding: calc(0.35rem * var(--scale-spacing)) calc(0.55rem * var(--scale-spacing));
    border: 1px solid var(--medium-grey);
    border-radius: 6px;
    background-color: var(--primary-blue);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(0.85rem * var(--scale-font));
    transition: background-color 0.2s ease, border-color 0.2s ease;
    min-width: calc(2rem * var(--scale-ui));
    min-height: calc(1.85rem * var(--scale-ui));
}

.search-action-button:hover:not(:disabled) {
    background-color: var(--dark-blue-hover);
    border-color: var(--dark-blue-hover);
}

.search-clear-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    color: var(--medium-grey, #6b7280);
    transition: color 0.2s ease, background-color 0.2s ease;
    z-index: 1;
}

.search-clear-button:hover {
    color: var(--primary-blue, #3b82f6);
    background-color: rgba(59, 130, 246, 0.1);
}

.search-clear-button:focus {
    outline: none;
    color: var(--primary-blue, #3b82f6);
    background-color: rgba(59, 130, 246, 0.1);
}

.search-clear-button i {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-wrapper {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.pagination-controls-wrapper .pagination-wrapper {
    margin-top: 0;
    width: 100%;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 0 !important;
    align-items: center;
}

.pagination .page-item {
    margin: 0 0.25rem;
}

.pagination .page-link {
    display: block;
    padding: 0.45rem 0.7rem;
    font-size: calc(0.9rem * var(--scale-font));
    color: var(--primary-blue);
    text-decoration: none;
    border: 1px solid var(--light-grey-border);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: var(--light-grey-bg);
    border-color: var(--primary-blue);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.pagination .page-item.disabled .page-link {
    color: var(--medium-grey);
    cursor: not-allowed;
}

.page-loading-state {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.pagination-controls-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0 1rem;
}

.page-count-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-count-label {
    font-size: calc(0.85rem * var(--scale-font));
    color: var(--medium-dark-grey);
    margin: 0;
    white-space: nowrap;
}

.page-count-select {
    width: auto;
    min-width: 80px;
    font-size: calc(0.85rem * var(--scale-font));
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--light-grey-border);
    border-radius: 4px;
    background-color: white;
}

.page-count-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

@media (max-width: 768px) {
    .pagination-controls-wrapper {
        gap: 1rem;
    }
}

.page-loading-state .loading-content {
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-loading-state .spinner-border {
    width: 3rem;
    height: 3rem;
}

.page-loading-state p {
    margin: 0;
    color: #6c757d;
    font-size: 1.1rem;
}

.two-column-form {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.form-labels-column {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0.5rem;
}

.form-fields-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 300px;
}

.form-labels-column label {
    text-align: right;
    font-weight: 600;
    color: var(--dark-grey-text);
    padding: 0.5rem 0;
    white-space: nowrap;
}

.form-fields-column .input-field {
    width: 100%;
    text-align: left;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    padding-left: 0;
}

.form-actions .btn {
    margin: 0;
}

.textarea-field {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    line-height: 1.4;
}

.textarea-field:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

@media (max-width: 768px) {
    .search-container {
        min-width: 250px;
    }

    .search-input {
        min-width: 150px;
        padding-right: 2rem;
    }

    .search-clear-button {
        width: 1.25rem;
        height: 1.25rem;
        right: 0.4rem;
    }

    .search-clear-button i {
        font-size: 0.65rem;
    }

    .two-column-form {
        flex-direction: column;
        gap: 1rem;
    }

    .form-labels-column {
        flex: none;
        width: 100%;
        gap: 1rem;
    }

    .form-labels-column label {
        text-align: left;
        padding: 0.25rem 0;
    }

    .form-fields-column {
        min-width: auto;
        width: 100%;
    }
}

.seta-accreditation-item {
    transition: all 0.2s ease-in-out;
}

.seta-accreditation-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.seta-accreditation-item .remove-seta {
    transition: all 0.2s ease-in-out;
}

.seta-accreditation-item .remove-seta:hover {
    transform: scale(1.1);
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

#setaAccreditationsContainer:empty::before {
    content: "No Regulators accreditations added yet. Click 'Add Regulators Accreditation' to get started.";
    display: block;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
}

.seta-accreditation-item .seta-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.seta-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.seta-accreditation-item .seta-select option:disabled {
    color: #6c757d;
    font-style: italic;
}

.seta-accreditation-item .seta-number.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.seta-accreditation-item .custom-dropdown .custom-dropdown-toggle {
    min-height: calc(2.2rem * var(--scale-ui));
    padding: calc(0.48rem * var(--scale-spacing)) calc(0.6rem * var(--scale-spacing));
    box-sizing: border-box;
}

.number-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.document-status-badge {
    cursor: pointer;
}

.document-url-display {
    margin-top: 0.5rem;
}

.showing-range {
    font-size: 0.875rem;
    color: var(--medium-dark-grey);
    margin-left: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

.pagination-info {
    font-size: calc(0.8rem * var(--scale-font));
    color: var(--medium-dark-grey);
    font-weight: 500;
    margin-left: 1rem;
    white-space: nowrap;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-grey-text, #333);
    margin-bottom: 1.5rem;
    text-align: center;
}

body.login {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding-top: 6rem;
}

.login-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--light-grey-border, #e5e7eb);
}

.login-form-card label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-grey-text, #333);
    width: 100%;
}

.login-form-card .input-field,
.login-form-card .select-field {
    margin-bottom: 1rem;
}

.login-form-card .action-button {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    font-size: 1rem;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

#recaptcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

#recaptcha-container .g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
}

.sequence-btn {
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    font-size: 0.85rem;
}

.sequence-btn i {
    color: var(--primary-blue) !important;
}

.sequence-btn:hover:not(:disabled) {
    background: none !important;
}

.sequence-btn:hover:not(:disabled) i {
    color: var(--dark-blue-hover) !important;
}

.sequence-btn:disabled {
    background: none !important;
    cursor: not-allowed;
    opacity: 0.5;
}

.sequence-btn:disabled i {
    color: var(--medium-grey) !important;
}

.print-view-details-table {
    table-layout: fixed;
    width: 100%;
    font-size: 0.9rem;
}

.print-view-details-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: top;
    padding: 0.5rem;
}

.print-view-details-table .header-cell {
    width: 12.5%;
}

.print-view-outcomes-table {
    table-layout: fixed;
    font-size: 0.9rem;
}

.print-view-outcomes-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0.5rem;
}

.print-view-outcomes-table th {
    font-size: 0.9rem;
    padding: 0.5rem;
}

.export-dropdown-group {
    position: relative;
    display: inline-block;
}

.export-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-dropdown-toggle:hover {
    background-color: var(--dark-blue-hover);
}

.export-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: var(--white);
    border: 1px solid var(--medium-grey);
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
}

.export-dropdown-menu.hidden {
    display: none;
}

.export-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: var(--dark-grey-text);
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.export-dropdown-item:hover {
    background-color: var(--very-light-grey-bg);
}

.export-dropdown-item i {
    font-size: 1rem;
    color: var(--primary-blue);
}

.export-dropdown-item:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.export-dropdown-item:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

#vendorTokenModal[data-bs-backdrop="static"] {
    pointer-events: auto;
}

#vendorTokenModal .modal-backdrop {
    pointer-events: none;
}

#vendorTokenModal .modal-dialog {
    pointer-events: auto;
}

#vendorTokenModal.show .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

#vendorTokenInput {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    resize: vertical;
    min-height: 100px;
}

#vendorTokenInput:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

#vendorTokenError {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.9em;
}

#vendorTokenLoading {
    vertical-align: middle;
    margin-left: 0.5rem;
}

#vendorTokenModal .modal-header {
    background-color: var(--primary-blue);
    color: white;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

#vendorTokenModal .modal-header .modal-title {
    color: white;
    font-weight: 600;
    margin: 0;
}

#vendorTokenModal .modal-header .modal-title i {
    margin-right: 0.5rem;
}

#vendorTokenModal .modal-body {
    padding: 1.5rem;
}

#vendorTokenModal .modal-footer {
    border-top: 1px solid var(--light-grey-border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#vendorTokenSubmit {
    min-width: 150px;
}

#vendorTokenSubmit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    #vendorTokenModal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    #vendorTokenInput {
        font-size: 0.85em;
    }
}

.accordion-item.cart-disabled {
    display: none !important;
}

.accordion-header.disabled {
    cursor: not-allowed !important;
    opacity: 0.5;
    pointer-events: none;
}

.accordion-header.disabled:hover {
    background-color: transparent !important;
}

.verification-icon {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.otp-input {
    font-size: 28px;
    text-align: center;
    letter-spacing: 12px;
    font-weight: bold;
    border: 3px solid var(--medium-grey);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    margin: 15px auto;
    display: block;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.3rem rgba(74, 144, 226, 0.25);
    outline: none;
    transform: scale(1.02);
}

.otp-timer {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-blue);
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 8px;
}

.otp-timer.expired {
    color: var(--red-error);
    background-color: rgba(255, 111, 97, 0.1);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.info-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-list li i {
    color: var(--primary-blue);
    width: 20px;
}

.otp-info-card {
    background: var(--light-grey-bg);
    border-radius: 12px;
    padding: 30px;
    border-left: 4px solid var(--primary-blue);
}

#verifyButton {
    background-color: var(--green-success);
    border-color: var(--green-success);
}

#verifyButton:hover {
    background-color: rgba(76, 175, 80, 0.9);
    border-color: rgba(76, 175, 80, 0.9);
}

@media (max-width: 768px) {
    .otp-input {
        font-size: 24px;
        letter-spacing: 8px;
        padding: 15px;
    }
}

.status-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.status-icon.status-pending {
    color: #ff9800;
}

.status-icon.status-applying {
    color: var(--primary-blue);
}

.status-icon.status-success {
    color: var(--green-success);
}

.status-icon.status-info {
    color: var(--primary-blue);
}

.application-list {
    background: var(--light-grey-bg);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.application-item {
    background: var(--white);
    border: 1px solid var(--medium-grey);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.application-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
    transform: translateY(-1px);
}

.application-item.pending {
    cursor: not-allowed;
    opacity: 0.7;
    border-left: 4px solid #ff9800;
}

.application-item.pending:hover {
    border-color: var(--medium-grey);
    box-shadow: none;
    transform: none;
}

.application-item.applying {
    border-left: 4px solid var(--primary-blue);
}

.application-item.approved {
    border-left: 4px solid var(--green-success);
}

.application-item.declined {
    border-left: 4px solid var(--red-error);
}

.application-item.remediation {
    border-left: 4px solid #ff9800;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.applying {
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--primary-blue);
}

.status-badge.pending {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.status-badge.approved {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--green-success);
}

.status-badge.declined {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--red-error);
}

.status-badge.remediation {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.delete-application-btn {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.delete-application-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

.application-item:hover .delete-application-btn {
    opacity: 1;
}

@media (max-width: 768px) {
    .status-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .card-body {
        padding: 1rem;
    }

    .application-list {
        padding: 15px;
        margin-top: 15px;
    }

    .application-item {
        padding: 12px;
        margin-bottom: 12px;
    }

    .application-item h6 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .application-item small {
        font-size: 0.8rem;
    }

    .status-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    .delete-application-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
    }

    .delete-application-btn i {
        font-size: 1rem;
    }

    .info-list li {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    .page-title-vendor {
        font-size: 1.5rem;
    }

    .page-header-vendor p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .status-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .card-body {
        padding: 0.75rem;
    }

    .application-list {
        padding: 12px;
    }

    .application-item {
        padding: 10px;
    }

    .application-item h6 {
        font-size: 0.95rem;
    }

    .status-badge {
        font-size: 0.65rem;
        padding: 2px 5px;
    }

    .organogram-modal .modal-content {
        padding: 1.5rem;
        margin: 5%;
        max-width: 95%;
    }

    .modal-footer-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-footer-buttons .modal-button {
        width: 100%;
    }
}

.step-indicator {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.language-card {
    border: 1px solid var(--light-grey-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--very-light-grey-bg);
    transition: all 0.3s ease;
}

.language-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.language-card.selected {
    border-color: var(--primary-blue);
    background-color: #e3f2fd;
}

.proficiency-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
}

.proficiency-beginner {
    background-color: #ffeaa7;
    color: #d63031;
}

.proficiency-intermediate {
    background-color: #74b9ff;
    color: var(--white);
}

.proficiency-advanced {
    background-color: #a29bfe;
    color: var(--white);
}

.proficiency-expert {
    background-color: #00b894;
    color: var(--white);
}

@media (max-width: 767px) {
    .language-card .row {
        flex-direction: column;
        gap: 1rem;
    }

    .language-card .col-md-6,
    .language-card .col-md-4,
    .language-card .col-md-3,
    .language-card .col-md-2 {
        width: 100%;
        max-width: 100%;
    }

    .language-card .text-end {
        text-align: left !important;
    }
}

.upload-area {
    border: 2px dashed var(--light-grey-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: var(--very-light-grey-bg);
}

.upload-area:hover {
    border-color: var(--primary-blue);
    background-color: #e3f2fd;
}

.upload-area.dragover {
    border-color: var(--primary-blue);
    background-color: #e3f2fd;
}

.file-item {
    border: 1px solid var(--light-grey-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--very-light-grey-bg);
}

.file-item.uploaded {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.file-item.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.file-upload-progress {
    width: 100px;
    height: 6px;
}

.required-document {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.document-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-required {
    background-color: #f8d7da;
    color: #721c24;
}

.status-uploaded {
    background-color: #d4edda;
    color: #155724;
}

.status-optional {
    background-color: #e0f2f7;
    color: #005662;
}

.file-item .btn-outline-danger {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.file-item:hover .btn-outline-danger {
    opacity: 1;
}

@media (max-width: 767px) {
    .upload-area {
        padding: 1.5rem;
    }

    .file-item .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .required-document .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
}

.review-section {
    border: 1px solid var(--light-grey-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: var(--very-light-grey-bg);
}

.review-section.completed {
    border-color: #28a745;
    background-color: #d4edda;
}

.review-section.incomplete {
    border-color: #ffc107;
    background-color: #fff3cd;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    font-weight: 600;
    color: #495057;
}

.review-value {
    color: #6c757d;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-incomplete {
    background-color: #fff3cd;
    color: #856404;
}

@media (max-width: 767px) {
    .review-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .review-label {
        font-weight: 700;
    }
}

.email-wrap {
    word-break: break-word;
    overflow-wrap: break-word;
}

.type-badge {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.125rem 0.375rem;
    font-size: 0.65rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.status-applying {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.125rem 0.375rem;
    font-size: 0.65rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.status-pending {
    background-color: #fff3e0;
    color: #f57c00;
    padding: 0.125rem 0.375rem;
    font-size: 0.65rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.status-approved {
    background-color: #e8f5e8;
    color: #2e7d32;
    padding: 0.125rem 0.375rem;
    font-size: 0.65rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.status-declined {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 0.125rem 0.375rem;
    font-size: 0.65rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.status-remediation {
    background-color: #f3e5f5;
    color: #1976d2;
    padding: 0.125rem 0.375rem;
    font-size: 0.65rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.status-remediated {
    background-color: #e8f5e8;
    color: #f57c00;
    padding: 0.125rem 0.375rem;
    font-size: 0.65rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.vendor-registration {
    --vr-registration-primary: #4a90e2;
    --vr-registration-primary-hover: #357abd;
    --vr-registration-success: #4caf50;
    --vr-registration-success-hover: #45a049;
}

.vendor-registration .btn-primary {
    background-color: var(--vr-registration-primary);
    border-color: var(--vr-registration-primary);
}

.vendor-registration .btn-primary:hover {
    background-color: var(--vr-registration-primary-hover);
    border-color: var(--vr-registration-primary-hover);
}

.vendor-registration #registerButton {
    background-color: var(--vr-registration-success);
    border-color: var(--vr-registration-success);
}

.vendor-registration #registerButton:hover {
    background-color: var(--vr-registration-success-hover);
    border-color: var(--vr-registration-success-hover);
}

.vendor-registration .vendor-info-alert {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    margin-bottom: 20px;
    width: 100%;
    max-width: none;
    min-width: auto;
}

.vendor-registration .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.vendor-registration .btn.loading {
    pointer-events: none;
}

.vendor-registration .btn.loading .spinner-border {
    display: inline-block !important;
}

.vendor-registration .accordion-icon,
.self-registration .accordion-icon {
    transition: color 0.3s ease;
}

.vendor-registration .accordion-icon.completed,
.self-registration .accordion-icon.completed {
    color: #28a745 !important;
}

.vendor-registration .accordion-icon.pending,
.self-registration .accordion-icon.pending {
    color: #f0ad4e !important;
}

.vendor-registration #setaAccreditationsContainer:empty::before {
    content: "No regulators added yet. Click 'Add Regulator' to get started.";
}

.self-registration {
    --sr-registration-primary: #4a90e2;
    --sr-registration-primary-hover: #357abd;
    --sr-registration-success: #4caf50;
    --sr-registration-success-hover: #45a049;
}

.self-registration .btn-primary {
    background-color: var(--sr-registration-primary);
    border-color: var(--sr-registration-primary);
}

.self-registration .btn-primary:hover {
    background-color: var(--sr-registration-primary-hover);
    border-color: var(--sr-registration-primary-hover);
}

.self-registration #registerButton {
    background-color: var(--sr-registration-success);
    border-color: var(--sr-registration-success);
}

.self-registration #registerButton:hover {
    background-color: var(--sr-registration-success-hover);
    border-color: var(--sr-registration-success-hover);
}

.self-registration .vendor-info-alert {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    margin-bottom: 20px;
    width: 100%;
    max-width: none;
    min-width: auto;
}

.self-registration .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.self-registration .btn.loading {
    pointer-events: none;
}

.self-registration .btn.loading .spinner-border {
    display: inline-block !important;
}

.self-registration .custom-dropdown-menu {
    z-index: 9999999 !important;
    position: absolute !important;
}

.self-registration .accordion-item.active #accordion1 {
    overflow: visible !important;
}

.self-registration.application-success-page .success-content {
    text-align: center;
    padding: 40px 20px;
}

.self-registration.application-success-page .success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.self-registration.application-success-page .success-title {
    color: #28a745;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.self-registration.application-success-page .success-message {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.self-registration.application-success-page .next-steps {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.self-registration.application-success-page .next-steps h5 {
    color: #495057;
    margin-bottom: 15px;
}

.self-registration.application-success-page .next-steps ul {
    margin: 0;
    padding-left: 20px;
}

.self-registration.application-success-page .next-steps li {
    margin-bottom: 8px;
    color: #6c757d;
}

.self-registration.application-success-page .btn-primary {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
}

.self-registration.application-success-page .btn-outline-primary {
    border-color: #4a90e2;
    color: #4a90e2;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
}

.self-registration.application-success-page .btn-outline-primary:hover {
    background-color: #4a90e2;
    border-color: #4a90e2;
    color: #fff;
}

#qualPartialEnrolModal .qual-partial-modal-content {
    width: 100%;
    max-width: min(800px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

#qualPartialEnrolModal .qual-partial-modal-actions {
    margin-top: 1.5rem;
}

.qual-enrol-list-screen .qual-enrol-organogram-table.organogram-table .expand-icon {
    cursor: pointer;
    color: var(--primary-blue, #0d6efd);
}

.qual-enrol-list-screen .qual-enrol-organogram-table.organogram-table tbody tr.qual-enrol-row-qual:hover,
.qual-enrol-list-screen .qual-enrol-organogram-table.organogram-table tbody tr.qual-enrol-row-subj:hover,
.qual-enrol-list-screen .qual-enrol-organogram-table.organogram-table tbody tr.qual-enrol-row-asmt:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.qual-enrol-list-screen .qual-enrol-structure-cell--qual .qual-enrol-structure-name {
    font-weight: bold;
}

.qual-enrol-list-screen .qual-enrol-structure-cell--subj {
    font-style: italic;
    padding-left: 2rem;
}

.qual-enrol-list-screen .qual-enrol-structure-cell--subj .qual-enrol-structure-branch {
    margin-right: 0.5rem;
    color: var(--medium-dark-grey, #6c757d);
}

.qual-enrol-list-screen .qual-enrol-structure-cell--asmt {
    padding-left: 3.25rem;
}

.qual-enrol-list-screen .qual-enrol-open-link {
    font-weight: 500;
}

.mark-scripts-screen .mark-scripts-table-container tbody tr.mark-scripts-row-returned td {
    background-color: #fff3e0;
}

.mark-scripts-screen .mark-scripts-table-container tbody tr.mark-scripts-row-returned:hover td {
    background-color: #ffe8cc;
}

.mark-script-screen .accordion-container {
    padding: 0;
    box-shadow: none;
    background-color: transparent;
}

.mark-script-screen .mark-script-messaging {
    display: flex;
    gap: 0.5rem;
}

.mark-script-screen .mark-script-messaging .action-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.mark-script-screen .mark-script-subhead {
    font-weight: 600;
    margin: 0.5rem 0 0.25rem;
    color: #555;
}

.mark-script-screen .mark-script-scroll {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    background: #fff;
}

.mark-script-screen .mark-script-ck-host {
    margin-bottom: 0.25rem;
}

.mark-script-screen .ckeditor-content.collapsible-scrollable-content {
    padding: 0;
}

.mark-script-screen .mark-script-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0.5rem;
}

.mark-script-screen .mark-script-attachments-list .attachment-row {
    width: 100%;
}

#msCompareModal .mark-script-subhead {
    font-weight: 600;
    margin: 0.5rem 0 0.25rem;
    color: #555;
}

#msCompareModal .mark-script-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0.5rem;
}

#msCompareModal .mark-script-attachments-list .attachment-row {
    width: 100%;
}

/* Email compose modal — row-based attachments */
.email-attachments-panel {
    margin-bottom: 1rem;
}

.email-attachments-panel > .form-label {
    margin-bottom: 0.5rem;
}

.email-attachment-row {
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background-color: var(--surface-muted, #f8f9fa);
}

.email-attachment-row-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: start;
}

.email-attachment-row-file {
    min-width: 0;
}

.email-attachment-row-actions {
    min-width: 7rem;
}

.email-attachment-row-actions-spacer {
    visibility: hidden;
}

.email-attachment-preview {
    margin-top: 0.5rem;
}

.email-attachment-preview.hidden {
    display: none;
}

#msCompareModal .mark-script-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    text-align: left;
}

#msCompareModal .mark-script-compare-pane {
    min-width: 0;
}

#msCompareModal .mark-script-ck-host {
    margin-bottom: 0.5rem;
}

#msCompareModal .ckeditor-content.collapsible-scrollable-content {
    padding: 0;
}

@media (max-width: 768px) {
    #msCompareModal .mark-script-compare-grid {
        grid-template-columns: 1fr;
    }
}

.mark-script-screen .mark-script-media-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.mark-script-screen .mark-script-media-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.mark-script-screen .mark-script-past-attempt {
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.mark-script-screen .mark-script-past-attempt:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mark-script-screen .mark-script-declaration {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0;
    cursor: pointer;
}

.mark-script-screen .mark-script-score {
    max-width: 120px;
}

.mark-script-screen .mark-script-file-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.mark-script-screen .mark-script-file-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.15rem 0;
}

.mark-script-screen .mark-script-file-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0;
}

.mark-script-screen .mark-script-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.qual-partial-modal-intro {
    margin-bottom: 1rem;
}

.qual-partial-missing-table {
    text-align: left;
}

.qual-partial-missing-table thead th {
    text-align: center;
    white-space: nowrap;
}

.qual-partial-missing-table .qual-partial-missing-table__num {
    text-align: center;
}

.qual-partial-credits-table {
    text-align: left;
}

.qual-partial-credits-table thead th {
    text-align: center;
    white-space: nowrap;
}

.important-dates-table-container .data-table-wrapper,
.poe-view-table-container .data-table-wrapper {
    margin-top: 0.5rem;
}

.important-dates-table-container .data-table th:last-child,
.important-dates-table-container .data-table td:last-child {
    text-align: left;
}

.poe-view-info-wrap {
    margin-bottom: 0;
}

.poe-view-info-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: calc(0.8125rem * var(--scale-font));
    line-height: 1.35;
}

.poe-view-info-table caption {
    caption-side: top;
}

.poe-view-info-table tbody th.poe-info-label,
.poe-view-info-table tbody td.poe-info-value {
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--light-grey-border);
    vertical-align: middle;
}

.poe-view-info-table tbody th.poe-info-label {
    width: 14%;
    min-width: 5.5rem;
    font-size: calc(0.85rem * var(--scale-font));
    font-weight: 700;
    color: var(--medium-dark-grey);
    background-color: #f3f5f7;
    text-align: left;
    white-space: nowrap;
}

.poe-view-info-table tbody td.poe-info-value {
    width: 19%;
    font-size: calc(0.8125rem * var(--scale-font));
    font-weight: 400;
    color: var(--dark-grey-text);
    background-color: var(--white);
    word-break: break-word;
}

.poe-view-info-table col.poe-info-col-label {
    width: 14%;
}

.poe-view-info-table col.poe-info-col-value {
    width: 19%;
}

.poe-view-info-table .poe-status-text.poe-status-active {
    color: var(--green-success);
}

.poe-view-info-table .poe-status-text.poe-status-abandoned {
    color: var(--red-error);
}

.poe-view-info-table td.poe-info-status-cell .poe-status-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.poe-view-info-table td.poe-info-status-cell .poe-status-btns {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.poe-view-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
}

.poe-view-toolbar .poe-toolbar-spacer {
    flex: 1;
}

.poe-view-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    background-color: #17a2b8;
    color: var(--white);
    border: 1px solid #17a2b8;
    font-weight: 500;
    vertical-align: middle;
}

.poe-view-email-btn:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.poe-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    vertical-align: middle;
    line-height: 1;
}

.poe-card-icon--yellow {
    color: #f1c40f;
}

.poe-card-icon--red {
    color: var(--red-error);
    cursor: pointer;
}

.poe-blocked-icon {
    font-size: 1rem;
    cursor: pointer;
}

.poe-blocked-icon--accessible {
    color: var(--green-success);
}

.poe-blocked-icon--blocked {
    color: var(--red-error);
}

.poe-get-assistance-icon {
    color: #e67e22;
    margin-left: 0.3rem;
    font-size: 0.85rem;
    cursor: help;
}

.poe-grid-stack {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.25;
}

.poe-grid-stack--center {
    align-items: center;
    text-align: center;
}

.poe-view-table-container .data-table tbody tr.subject-header-row td.subject-header-cell,
.sched-due-grid-container .data-table tbody tr.subject-header-row td.subject-header-cell {
    background-color: var(--light-grey-bg);
    color: var(--dark-grey-text);
    font-weight: 700;
    font-size: calc(0.875rem * var(--scale-font));
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-grey-border);
    vertical-align: middle;
}

.poe-cards-cell {
    display: flex;
    gap: 6px;
    align-items: center;
}

.sched-due-screen .sched-due-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sched-due-screen .sched-due-fieldset {
    margin-bottom: 0;
}

.sched-due-screen .sched-due-search-results {
    margin-top: 0.75rem;
}

.sched-due-screen .sched-due-grid-container {
    margin-top: 0.5rem;
}

.page-header.subjects-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.total-benchmark-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--primary-blue);
}

.total-benchmark-warning {
    color: var(--red-error);
    font-size: 1rem;
    cursor: help;
}

.poe-progress-fieldset .poe-overall-completion {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
}

.poe-progress-fieldset .poe-overall-completion-label {
    font-weight: 600;
    color: var(--primary-blue);
}

.poe-progress-fieldset .poe-overall-completion-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.poe-progress-fieldset .poe-overall-completion-suffix {
    font-weight: 600;
    color: var(--primary-blue);
}

.poe-progress-chart-figure {
    margin: 0;
    max-width: 100%;
}

.poe-progress-chart-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 20rem;
    margin-top: 0.5rem;
    box-sizing: border-box;
}

.poe-progress-chart-wrap canvas {
    max-width: 100%;
}

.poe-progress-chart-unavailable {
    margin-top: 0.75rem;
    font-style: italic;
    color: var(--medium-dark-grey);
}

@media (max-width: 992px) {
    .poe-view-info-table tbody th.poe-info-label {
        min-width: 5rem;
        font-size: calc(0.8rem * var(--scale-font));
        white-space: normal;
    }

    .poe-view-info-table tbody th.poe-info-label,
    .poe-view-info-table tbody td.poe-info-value {
        padding: 0.35rem 0.45rem;
    }

    .poe-progress-chart-wrap {
        min-height: 17rem;
    }
}

@media (max-width: 768px) {
    .poe-view-info-table,
    .poe-view-info-table tbody,
    .poe-view-info-table tr,
    .poe-view-info-table th,
    .poe-view-info-table td {
        display: block;
        width: 100%;
    }

    .poe-view-info-table colgroup {
        display: none;
    }

    .poe-view-info-table tbody tr {
        display: grid;
        grid-template-columns: minmax(7.25rem, 38%) minmax(0, 1fr);
        border: 1px solid var(--light-grey-border);
        border-bottom: 0;
    }

    .poe-view-info-table tbody tr:last-child {
        border-bottom: 1px solid var(--light-grey-border);
    }

    .poe-view-info-table tbody th.poe-info-label,
    .poe-view-info-table tbody td.poe-info-value {
        border: 0;
        border-bottom: 1px solid var(--light-grey-border);
        min-width: 0;
    }

    .poe-view-info-table tbody tr > :nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .poe-view-info-table td.poe-info-status-cell .poe-status-inline {
        justify-content: space-between;
    }

    .poe-view-info-table td.poe-info-status-cell .poe-status-btns {
        justify-content: flex-start;
    }

    .poe-progress-chart-wrap {
        max-width: 100%;
        min-height: 15rem;
    }
}

@media (max-width: 576px) {
    .poe-progress-chart-wrap {
        min-height: 13.5rem;
    }

    .poe-progress-fieldset .poe-overall-completion-label {
        width: 100%;
    }
}

.asmt-launch-screen .asmt-launch-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.asmt-launch-screen #asmtOverviewAccordion {
    margin-top: 0.75rem;
}

.asmt-launch-screen #asmtOverviewAccordion .accordion-content.asmt-accordion-panel {
    box-sizing: border-box;
    overflow-x: auto;
}

.asmt-launch-screen #asmtOverviewAccordion .asmt-accordion-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    padding-bottom: 1.25rem;
    box-sizing: border-box;
}

.asmt-launch-screen #asmtOverviewAccordion .asmt-accordion-body--html {
    white-space: normal;
}

.asmt-launch-screen #asmtOverviewAccordion .asmt-accordion-body--html img {
    max-width: 100%;
    height: auto;
}

.asmt-launch-screen .asmt-agreement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.asmt-launch-screen .btn-asmt-agree {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.asmt-launch-screen .btn-asmt-disagree {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: #fff;
}

.asmt-launch-screen .asmt-build-status-msg {
    margin-top: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.asmt-launch-screen .asmt-build-spinner-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.asmt-launch-screen .asmt-take-countdown {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.asmt-launch-screen .asmt-take-question-card {
    border: 1px solid var(--border-grey, #dee2e6);
    border-radius: 0.35rem;
    padding: 1rem;
    background: var(--white, #fff);
}

.asmt-launch-screen .asmt-take-question-type {
    font-size: 0.85rem;
    text-transform: capitalize;
    color: var(--medium-dark-grey);
    margin-bottom: 0.35rem;
}

.asmt-launch-screen .asmt-take-menubar {
    border: 1px solid var(--light-grey-border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.9rem;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.asmt-launch-screen .asmt-take-menubar-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--light-grey-border);
}

.asmt-launch-screen .asmt-take-summary-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.2;
}

.asmt-launch-screen .asmt-take-summary-label {
    color: var(--medium-dark-grey, #6c757d);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.asmt-launch-screen .asmt-take-summary-value {
    font-weight: 600;
    color: var(--text-color, #212529);
}

.asmt-launch-screen .asmt-take-summary-name .asmt-take-summary-value {
    max-width: 24rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asmt-launch-screen .asmt-take-summary-prompt {
    flex: 1 1 16rem;
    min-width: 16rem;
}

.asmt-launch-screen .asmt-take-summary-prompt .asmt-take-summary-value {
    font-weight: 500;
    color: var(--primary-blue, #0d6efd);
}

.asmt-launch-screen .asmt-take-menubar-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding-top: 0.65rem;
}

.asmt-launch-screen .asmt-take-nav-group {
    display: inline-flex;
    gap: 0.25rem;
}

.asmt-launch-screen .asmt-take-nav-jump {
    flex: 0 1 auto;
}

.asmt-launch-screen .asmt-take-nav-select {
    min-width: 12rem;
    max-width: 18rem;
}

.asmt-launch-screen .asmt-take-attachments-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.asmt-launch-screen .asmt-take-attachments-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.asmt-launch-screen .asmt-take-submit-group {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.asmt-launch-screen .asmt-take-attachments-panel {
    border: 1px solid var(--light-grey-border);
    border-radius: 0.5rem;
    background: var(--light-bg, #f8f9fa);
    padding: 0.85rem 1rem;
    margin-bottom: 0.9rem;
}

.asmt-launch-screen .asmt-take-attachments-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.asmt-launch-screen .asmt-take-attachments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.6rem;
}

.asmt-launch-screen .asmt-take-attachment-item {
    border: 1px solid var(--light-grey-border);
    border-radius: 0.35rem;
    padding: 0.5rem 0.6rem;
    background: var(--white, #fff);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.asmt-launch-screen .asmt-take-attachment-item a {
    word-break: break-all;
}

.asmt-launch-screen .asmt-take-attachment-type {
    align-self: flex-start;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--primary-blue, #0d6efd);
    color: #fff;
    padding: 0.1rem 0.45rem;
    border-radius: 0.25rem;
}

.asmt-launch-screen .asmt-take-attachment-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

.asmt-launch-screen .asmt-take-attachment-preview audio {
    width: 100%;
}

.asmt-launch-screen .asmt-take-attachment-filename {
    font-size: 0.9rem;
    color: #555;
    margin-left: 0.35rem;
}

.asmt-launch-screen .asmt-take-attachment-preview--protected {
    user-select: none;
}

.asmt-launch-screen .asmt-take-answered-badge {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #d1e7dd;
    color: #0a3622;
    border-radius: 0.35rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.asmt-launch-screen .asmt-results-breakdown .list-group-item {
    font-size: 1rem;
    line-height: 1.35;
    padding: 0.65rem 1rem;
}

.asmt-launch-screen .asmt-results-breakdown .asmt-results-score-badge {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.35em 0.75em;
    min-width: 2.75rem;
    text-align: center;
}

@media (max-width: 768px) {
    .asmt-launch-screen .asmt-take-summary-name .asmt-take-summary-value {
        max-width: 100%;
        white-space: normal;
    }

    .asmt-launch-screen .asmt-take-summary-prompt {
        flex-basis: 100%;
    }

    .asmt-launch-screen .asmt-take-attachments-btn {
        margin-left: 0;
    }
}

.asmt-launch-screen .btn-orange {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: #fff;
}

@keyframes asmtSubmitPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 159, 64, 0.45);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 159, 64, 0.12);
        transform: scale(1.03);
    }
}

.asmt-launch-screen #asmtTkMenuBar[data-timer-band="warning"] .asmt-take-submit-group .btn-orange,
.asmt-launch-screen #asmtTkMenuBar[data-timer-band="warning-high"] .asmt-take-submit-group .btn-orange,
.asmt-launch-screen #asmtTkMenuBar[data-timer-band="critical"] .asmt-take-submit-group .btn-orange {
    background-color: #ffb366;
    border-color: #ff9f40;
    color: #fff;
    animation: asmtSubmitPulse 2s ease-in-out infinite;
}

.asmt-launch-screen .asmt-take-countdown.band-normal {
    background-color: #d9edf7;
    border: 1px solid #b8dce8;
    color: var(--primary-blue, #0d6efd);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.asmt-launch-screen .asmt-take-countdown.band-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.asmt-launch-screen .asmt-take-countdown.band-warning-high {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.asmt-launch-screen .asmt-take-countdown.band-critical {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

@keyframes asmtFlashThree {
    0% { opacity: 1; }
    25% { opacity: 0.3; }
    50% { opacity: 1; }
    75% { opacity: 0.3; }
    100% { opacity: 1; }
}

.asmt-launch-screen .asmt-take-countdown.flash-3 {
    animation: asmtFlashThree 0.6s ease-in-out 3;
}

.total-question-count-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.total-question-count-tooltip {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    cursor: help;
}

.asmt-launch-screen .survey-take-intro,
.asmt-launch-screen .survey-take-question-lead {
    max-width: 52rem;
}

.asmt-launch-screen .survey-take-options-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.asmt-launch-screen .survey-take-option-row {
    margin-bottom: 0.5rem;
}

.unit-standard-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unit-standard-input {
    flex: 1;
}

.course-view-modal-content {
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.course-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: left;
}

.course-view-description {
    grid-column: 1 / -1;
    padding: 1rem;
    border: 1px solid var(--light-grey-border);
    border-radius: 4px;
    background-color: var(--light-grey-bg);
    max-height: 400px;
    overflow-y: auto;
}

.course-info-list {
    list-style-type: none;
    padding-left: 0;
}

.course-marketing-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

#adfQuestionModal .modal-content.adf-question-modal-content {
    max-width: min(900px, 95vw);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.adf-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    text-align: left;
}

@media (max-width: 767px) {
    .adf-detail-grid {
        grid-template-columns: 1fr;
    }
}

.adf-detail-label {
    font-weight: 600;
}

.adf-detail-value {
    word-break: break-word;
}

.adf-detail-pre {
    white-space: pre-wrap;
}

.adf-detail-ck-host {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
    border: 1px solid var(--light-grey-border);
    border-radius: 4px;
    background-color: var(--light-grey-bg);
}

.adf-detail-answer-text {
    font-size: 1rem;
}

.adf-detail-answer-list {
    margin: 0;
    padding-left: 1.25rem;
    text-align: left;
}

.adf-detail-resources {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #dee2e6;
}

.adf-detail-resources-title {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.adf-detail-resource-heading {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

.adf-detail-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.adf-detail-image-thumb {
    width: 100px;
    height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 0 auto 0.5rem;
}

.adf-detail-image-thumb img {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.adf-detail-image-item {
    text-align: center;
}

.adf-detail-audio-item audio,
.adf-detail-video-item video {
    width: 100%;
    max-width: 100%;
}

.adf-detail-pair-image,
.adf-detail-hotspot-image {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-top: 0.5rem;
}

.adf-detail-field-label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: var(--medium-dark-grey, #666);
}

.adf-detail-pair-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.adf-detail-static-prefix {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.adf-detail-answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.assessment-data-feedback-screen .question-content-wrapper .collapsible-scrollable-content--expanded,
.my-portfolio-ecourses-screen .question-content-wrapper .collapsible-scrollable-content--expanded {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.assessment-data-feedback-screen .question-content-wrapper .collapsible-scrollable-content--collapsed,
.my-portfolio-ecourses-screen .question-content-wrapper .collapsible-scrollable-content--collapsed {
    max-height: 80px;
    overflow-y: hidden;
    padding: 0;
}

.adf-hotspot-review-map {
    width: 100%;
    min-height: 280px;
    height: 360px;
    border: 1px solid var(--light-grey-border);
    border-radius: 4px;
    background-color: var(--light-grey-bg);
}

.adf-hotspot-review-mount {
    width: 100%;
}

.adf-hotspot-click-captions {
    margin-top: 0.75rem;
    list-style: none;
    padding-left: 0;
}

.adf-hotspot-review-map .leaflet-marker-icon.adf-hotspot-click-marker,
.adf-hotspot-review-map .leaflet-div-icon.adf-hotspot-click-marker {
    box-sizing: border-box;
    background: var(--primary-color, #4a90e2);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    pointer-events: none;
}

.adf-hotspot-review-map .adf-hotspot-click-marker span {
    display: block;
    left: 50%;
    line-height: 1;
    margin: 0;
    padding: 0;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
}

.adf-hotspot-review-map .leaflet-marker-icon.adf-hotspot-area-label,
.adf-hotspot-review-map .leaflet-div-icon.adf-hotspot-area-label {
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid currentColor;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    color: inherit;
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    padding: 0;
    pointer-events: none;
}

.adf-hotspot-review-map .adf-hotspot-area-label span {
    display: block;
    left: 50%;
    line-height: 1;
    margin: 0;
    padding: 0;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
}

.adf-hotspot-click-marker--outside {
    border-style: dashed !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.55), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.adf-hotspot-color-swatch {
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 2px;
    border: 1px solid var(--light-grey-border);
    vertical-align: middle;
    margin-right: 0.35rem;
}

.adf-hotspot-click-seq {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.35rem;
    border-radius: 50%;
    background: var(--light-grey-bg);
    border: 1px solid var(--light-grey-border);
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
}

.adf-hotspot-click-caption {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin-bottom: 0.35rem;
}

.adf-hotspot-click-caption--within {
    color: inherit;
}

.adf-hotspot-click-caption--outside {
    color: var(--danger-color, #dc3545);
}

.adf-question-modal-footer {
    margin-top: 1.5rem;
}

.ecourse-dim-input {
    width: 5rem;
}

.asmt-launch-screen.ecourse-build-screen .ecourse-build-dimensions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.asmt-launch-screen.ecourse-build-screen .ecourse-build-dim-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--medium-dark-grey, #6c757d);
    letter-spacing: 0.04em;
}

.asmt-launch-screen.ecourse-build-screen .ecourse-build-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.asmt-launch-screen.ecourse-build-screen .ecourse-build-editor-card .cke {
    margin-top: 0.5rem;
}

.asmt-launch-screen.ecourse-build-screen #buildSlideshowCarousel.owl-carousel,
.my-portfolio-ecourse-take-screen #slideshowCarousel.owl-carousel {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.asmt-launch-screen.ecourse-build-screen #buildSlideshowCarousel .owl-stage-outer,
.my-portfolio-ecourse-take-screen #slideshowCarousel .owl-stage-outer {
    overflow: hidden;
}

.asmt-launch-screen.ecourse-build-screen #buildSlideshowCarousel .owl-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.asmt-launch-screen.ecourse-build-screen #buildSlideshowCarousel .ecourse-build-slide {
    width: 100%;
    max-width: 100%;
}

.asmt-launch-screen.ecourse-build-screen #buildSlideshowCarousel .ecourse-build-slide-frame {
    width: 100%;
    max-width: 100%;
    height: 60vh;
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--light-grey, #f8f9fa);
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.asmt-launch-screen.ecourse-build-screen #buildSlideshowCarousel .ecourse-build-slide-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.asmt-launch-screen.ecourse-build-screen #buildSlideshowCarousel .ecourse-build-slide-caption {
    flex: 0 0 auto;
    margin-top: 0.5rem;
}

.asmt-launch-screen.ecourse-build-screen #buildSlideshowCarousel .owl-nav {
    position: static;
    margin-top: 0.5rem;
    text-align: center;
}

.asmt-launch-screen.ecourse-build-screen #buildSlideshowCarousel .owl-nav button.owl-prev,
.asmt-launch-screen.ecourse-build-screen #buildSlideshowCarousel .owl-nav button.owl-next {
    position: static;
    display: inline-block;
    margin: 0 0.35rem;
}

.asmt-launch-screen.ecourse-build-screen #buildSlideshowCarousel .owl-dots {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.asmt-launch-screen.ecourse-build-screen #buildSlideshowCarousel .ecourse-build-slideshow-nav {
    display: inline-block;
    font-size: 1.75rem;
    line-height: 1;
}



.my-portfolio-ecourses-screen .ecourse-pages-viewed-cell {
    line-height: 1.35;
}

.cke_button__navfirstbutton .cke_button_icon,
.cke_button__navprevbutton .cke_button_icon,
.cke_button__navnextbutton .cke_button_icon,
.cke_button__navlastbutton .cke_button_icon,
.cke_button__cssbutton .cke_button_icon {
    background-image: none !important;
    background: none !important;
    width: auto !important;
    min-width: 16px;
    text-align: center;
}

.cke_button_icon i.fas {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
    line-height: 16px;
    display: inline-block;
    width: 16px;
}

.cke_button__cssbutton .cke_button_icon i {
    color: var(--bs-primary, #0d6efd);
}



.ecourse-reorder-row {
    cursor: grab;
    background: var(--light-grey-bg, #f8f9fa);
}

.ecourse-reorder-row:active {
    cursor: grabbing;
}

.ecourse-reorder-handle {
    cursor: grab;
}

.ecourse-css-editor-wrap {
    border: 1px solid var(--light-grey-border, #dee2e6);
    border-radius: 0.25rem;
    overflow: hidden;
    max-height: 360px;
}

.ecourse-css-editor-wrap .CodeMirror {
    height: 360px;
    font-size: 13px;
}

.ecourse-css-editor-wrap .CodeMirror-lint-tooltip {
    z-index: 2000;
}

.draggable-css-editor {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 1100;
    width: min(640px, 90vw);
    background: #fff;
    border: 1px solid var(--light-grey-border, #dee2e6);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.draggable-css-editor.hidden {
    display: none;
}

.css-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--light-grey-border, #dee2e6);
    cursor: move;
    user-select: none;
    background: var(--light-grey-bg, #f8f9fa);
    border-radius: 8px 8px 0 0;
}

.css-editor-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.css-editor-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.css-editor-header-actions .btn {
    cursor: pointer;
}

.css-editor-body {
    padding: 0.5rem;
}

.ecourse-floating-css-editor-wrap .CodeMirror {
    height: 280px;
    font-size: 13px;
}

.modal-content-wide {
    max-width: 900px;
    width: 95%;
}

.modal-content-wide.email-compose-modal {
    max-width: min(900px, 95vw);
}

/* eCourse Take Screen Styles */
.my-portfolio-ecourse-take-screen {
    max-height: 100vh;
    display: flex;
    flex-direction: column;
}

.my-portfolio-ecourse-take-screen .content-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ecourse-nav-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-grey-bg, #f8f9fa);
    border-bottom: 1px solid var(--light-grey-border, #dee2e6);
    align-items: center;
    flex-shrink: 0;
}

.ecourse-nav-controls {
    display: flex;
    gap: 0.5rem;
}

.ecourse-nav-dropdown {
    flex: 1;
    min-width: 200px;
}

.ecourse-nav-actions {
    display: flex;
    gap: 0.5rem;
}

.ecourse-content-panel {
    padding: 2rem;
    max-height: 100%;
    width: 100%;
    overflow: hidden;
}

.ecourse-page-content {
    min-height: 400px;
}

.ecourse-nav-option-viewed::before {
    content: "✓";
    color: var(--green-success, #28a745);
    margin-right: 0.5rem;
}

.ecourse-nav-option-unviewed::before {
    content: "✗";
    color: var(--red-error, #dc3545);
    margin-right: 0.5rem;
}

/* Blog Modal Styles */
.blog-modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.blog-comments-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.blog-comment-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-grey-bg, #f8f9fa);
    border-radius: 5px;
    border: 1px solid var(--light-grey-border, #dee2e6);
}

.blog-comment-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.blog-comment-body {
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
}

.blog-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem 0;
}

.blog-comment-level-0 { margin-left: 0; }
.blog-comment-level-1 { margin-left: 2rem; }
.blog-comment-level-2 { margin-left: 4rem; }
.blog-comment-level-3 { margin-left: 6rem; }

/* eCourse slideshow carousel */
.ecourse-slide {
    width: 100%;
    height: auto;
}

.ecourse-slide-frame {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.ecourse-slide-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.ecourse-slide-caption {
    margin-top: 0.5rem;
}

.ecourse-slideshow-nav {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.owl-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.owl-carousel .owl-nav .owl-prev {
    left: 5%;
}

.owl-carousel .owl-nav .owl-next {
    right: 7%;
}
@media (max-width: 768px) {
    .owl-carousel .owl-nav .owl-prev {
        left: 5%;
    }
    .owl-carousel .owl-nav .owl-next {
        right: 15%;
    }
}

.owl-carousel .owl-nav .owl-prev:hover,
.owl-carousel .owl-nav .owl-next:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* eCourse message containers */
.ecourse-message-container {
    padding: 1rem;
}

.ecourse-message {
    margin-bottom: 0;
}

/* Draggable modals */
.draggable-modal {
    position: fixed;
    z-index: 1050;
}

.draggable-modal .modal-form-header {
    cursor: move;
    user-select: none;
}

.email-attachment-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-attachment-row input {
    flex: 1;
}

/* Draggable Notes Editor */
.draggable-notes-editor {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 1100;
    width: min(800px, 90vw);
    background: #fff;
    border: 1px solid var(--light-grey-border, #dee2e6);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.draggable-notes-editor.hidden {
    display: none;
}

.notes-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--light-grey-border, #dee2e6);
    cursor: move;
    user-select: none;
    background: var(--light-grey-bg, #f8f9fa);
    border-radius: 8px 8px 0 0;
}

.notes-editor-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.notes-editor-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.notes-editor-header-actions .btn {
    cursor: pointer;
}

.notes-editor-body {
    padding: 0.5rem;
}

.notes-editor-body .cke {
    width: 100% !important;
}

.notes-editor-body .cke_inner {
    width: 100% !important;
}

/* Draggable Blog Editor */
.draggable-blog-editor {
  
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 1100;
    width: min(900px, 90vw);
    height: min(80vh, 600px);
    background: #fff;
    border: 1px solid var(--light-grey-border, #dee2e6);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.draggable-blog-editor.hidden {
    display: none;
}

.blog-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--light-grey-border, #dee2e6);
    cursor: move;
    user-select: none;
    background: var(--light-grey-bg, #f8f9fa);
    border-radius: 8px 8px 0 0;
}

.blog-editor-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.blog-editor-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-editor-header-actions .btn {
    cursor: pointer;
}

.blog-editor-body {
  padding: 0.5rem;
    
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
}

.blog-editor-body #comments-container {
    width: 100%;
    overflow-y: auto;
}

/* Override jquery-comments 'main' class styling to fix layout */
.blog-editor-body .jquery-comments .commenting-field.main {
    margin: 0.25rem 0 !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.blog-editor-body .jquery-comments .commenting-field.main .profile-picture {
    margin-bottom: 0 !important;
}

.blog-editor-body .jquery-comments .textarea-wrapper {
    padding-left: 10px;
    height: auto !important;
}

.blog-editor-body .jquery-comments .textarea-wrapper .textarea {
    min-height: 2.5em;
    height: 2.5em !important;
    max-height: 2.5em;
}

.ecourse-message h4 {
    margin-bottom: 1rem;
}

.ecourse-message p {
    margin-bottom: 0.5rem;
}

.ecourse-message .btn {
    margin-top: 1rem;
}

/* ---- Qcluster email queue dashboard (/ops/qcluster/email-queue/) ---- */
.qcluster-email-dashboard {
    max-width: 100%;
}

.qcluster-email-dashboard__header h1 {
    margin-bottom: 0.25rem;
}

.qcluster-email-dashboard__meta {
    color: var(--text-muted, #666);
    margin-bottom: 1.25rem;
}

.qcluster-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.qcluster-status-card {
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-color, #ddd);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.qcluster-status-card--warn {
    border-color: #f0ad4e;
}

.qcluster-status-card--active {
    border-color: #5bc0de;
}

.qcluster-status-card--danger {
    border-color: #d9534f;
}

.qcluster-status-card__label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted, #666);
}

.qcluster-status-card__value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.qcluster-verdict {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.qcluster-verdict--ok {
    background: #eef8ee;
    border: 1px solid #b8deb8;
}

.qcluster-verdict--warn {
    background: #fff8e6;
    border: 1px solid #f0d58a;
}

.qcluster-kill-switch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.qcluster-kill-switch-item__label {
    font-size: 0.85rem;
    color: var(--text-muted, #666);
    margin-right: 0.35rem;
}

.qcluster-kill-switch-item__value--off {
    color: #d9534f;
    font-weight: 700;
}

.qcluster-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color, #ddd);
}

.qcluster-tab-link {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--surface-muted, #f4f4f4);
    text-decoration: none;
}

.qcluster-email-section {
    margin-bottom: 2rem;
}

.qcluster-email-section h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.qcluster-email-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.qcluster-email-table th,
.qcluster-email-table td {
    border: 1px solid var(--border-color, #ddd);
    padding: 0.5rem 0.65rem;
    vertical-align: top;
    text-align: left;
}

.qcluster-email-table th {
    background: var(--surface-muted, #f4f4f4);
}

.qcluster-email-table__recipients {
    max-width: 220px;
    word-break: break-word;
}

.qcluster-email-table__error {
    max-width: 280px;
    word-break: break-word;
    font-size: 0.85rem;
}

.qcluster-email-table__row--warn {
    background: #fff8e6;
}

.qcluster-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: lowercase;
}

.qcluster-badge--queued {
    background: #fff3cd;
    color: #856404;
}

.qcluster-badge--processing {
    background: #d1ecf1;
    color: #0c5460;
}

.qcluster-badge--failed {
    background: #f8d7da;
    color: #721c24;
}

.qcluster-badge--sent {
    background: #d4edda;
    color: #155724;
}

.qcluster-badge--ok {
    background: #d4edda;
    color: #155724;
}

.qcluster-badge--warn {
    background: #fff3cd;
    color: #856404;
}

.qcluster-empty {
    color: var(--text-muted, #666);
    font-style: italic;
}

.qcluster-email-dashboard__footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #ddd);
    color: var(--text-muted, #666);
}
