:root {
  /* Primary colors */
  --color-primary: #02369c;
  --color-primary-light: #e5eeff;
  --color-primary-bg: #eff5ff;
  --color-primary-active: #02369c;

  /* Background colors */
  --color-bg-main: #f8fafb;
  --color-bg-white: #ffffff;
  --color-bg-light: #f8fafb;
  --color-bg-alt: #f6f9ff;
  --color-bg-primary: #02369c;
  --color-bg-primary-light: #eff5ff;
  --color-bg-primary-active: #02369c;
  --color-bg-secondary-light: #f6f9ff;
  --color-bg-badge-pending: #fffaeb;
  --color-bg-badge-received: #f4f3ff;
  --color-bg-badge-review: #eff8ff;
  --color-bg-badge-progress: #ecfdf3;
  --color-bg-user-profile: #fafafa;
  --color-bg-powered-by: #f6faff;

  /* Text colors */
  --color-text-primary: #181d27;
  --color-text-secondary: #717680;
  --color-text-tertiary: #414651;
  --color-text-light: #a4a7ae;
  --color-text-white: #ffffff;
  --color-text-link: #02318e;
  --color-text-badge-pending: #b54708;
  --color-text-badge-received: #5925dc;
  --color-text-badge-review: #175cd3;
  --color-text-badge-progress: #027a48;
  --color-text-pagination-active: #02369c;
  --color-text-pagination-disabled: #d5d7da;

  /* Border colors */
  --color-border: #e9eaeb;
  --color-border-primary: #e9eaeb;
  --color-border-secondary: #d5d7da;
  --color-border-light: #e5eeff;

  /* Status colors */
  --color-success: #027a48;
  --color-success-bg: #ecfdf3;
  --color-warning: #b54708;
  --color-warning-bg: #fffaeb;

  /* Chart colors */
  --color-chart-1: #3063c8;
  --color-chart-2: #17e4a1;

  /* Fonts */
  --font-primary: 'DM Sans', sans-serif;
  --font-secondary: 'Inter', sans-serif;

  /* Additional colors from login CSS */
  --color-primary-link: #02318e;
  --color-text-placeholder: #717680;
  --color-error: #f04438;
  --color-error-border: #fda29b;
  --color-border: #d5d7da;
  --color-border-light: #e6e6e9;
  --background-light: #f8fafb;
  --background-white: #ffffff;
  --background-light-gray: #faf9f8;

  --color-primary-dark: #02318e;
  --color-text-light: #181d27;
  --color-background: #f8fafb;
  --color-white: #ffffff;
  --info-bg: #f0f9ff;
  --info-border: #7cd4fd;
  --info-text-strong: #026aa2;
  --info-text: #4c94b8;

  /* toolbar related colors */
  --toolbar-bg: #fafafa;
  --toolbar-border-primary: #d5d7da;
  --toollabel-text-secondary: #717680;
  --tool-button-active: #eff5ff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-primary)  !important;
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

  .sidebar {
    width: 264px;
    background-color: var(--color-bg-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
  }

  .sidebar__top {
    padding: 24px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
  }

  .sidebar__logo {
    padding: 0 24px;
    height: 40px;
  }
  
  .logo-image-container {
    position: relative;
    width: 134px;
    height: 40px;
  }

  .sidebar__divider {
    border: none;
    height: 1px;
    background-color: var(--color-border);
    margin: 2px 19.5px;
  }

  .sidebar__nav {
    padding: 8px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .sidebar__nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
  }

  .nav-item:hover {
    background-color: var(--color-bg-primary-light);
  }

  .nav-item.active,
  .nav-item--active,
  .nav-item--active:hover {
    background-color: var(--color-bg-primary-active);
    color: var(--color-text-white);
  }

  .nav-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .sidebar__bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 8px 24px 8px;
    flex-shrink: 0;
  }

  .tutorial-card {
    margin: 0 8px;
    background-color: var(--color-bg-primary-light);
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .tutorial-card__text h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 2px 0;
  }

  .tutorial-card__text p {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin: 0;
  }

  .tutorial-card__video,
  .tutorial-card__thumbnail {
    background-image: url('../images/5bf08babde855e7226d732c8b1a734b54bce8ef1.png');
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    height: 96px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .play-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .tutorial-card__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-link);
  }

  .user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-bg-user-profile);
    border: 1px solid var(--color-border-primary);
    border-radius: 6px;
    padding: 8px;
  }

  .user-profile__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }

  .user-profile__info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .user-profile__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-tertiary);
  }

  .user-profile__email {
    font-size: 12px;
    color: #535862;
  }

  .user-profile__chevron {
    transform: rotate(-90deg);
  }

  .powered-by {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
  }

  .powered-by p {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    margin: 0;
  }

  .powered-by__logo-container,
  .powered-by__logo-wrapper {
    background-color: var(--color-bg-powered-by);
    padding: 10px 16px;
    border-radius: 4px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .powered-by__logo {
    width: 119px;
    height: 20px;
  }

  .main-content {
    background-color: var(--color-bg-main);
  }

  .divFullContent {
    background-color: var(--color-bg-main);
  }

  .main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .main-header__title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
  }

  .main-header__controls {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 20px;
  }

  .icon-button {
    background-color: var(--color-bg-white);
    border: 1px solid #e6e6e9;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }

  .dropdown-button {
    background-color: var(--color-bg-white);
    border: 1px solid #d5d7da;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    cursor: pointer;
  }

  .header-divider {
    width: 1px;
    height: 16px;
    background-color: #d5d7da;
  }
  
  .header-logo {
    position: relative;
    width: 197px;
    height: 24px;
  }

  .content-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
  }

  .card {
    background-color: var(--color-bg-white);
    border: 1px solid #f5f5f5;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    min-width: 0;
    height: 95%;
  }

  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    color: rgb(33, 37, 41);
    background-color: rgba(33, 37, 41, 0.03);
    border-bottom: 0.8px solid rgba(0, 0, 0, 0.176);
  }

  .card-header-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .card-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .card-title.large {
    font-size: 16px;
  }
  
  .card-subtitle {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin: 0;
  }

  .stat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
/*    justify-content: space-between; /* spaces items vertically */
    justify-content: center;
    align-items: center;
    gap: 12px;
    overflow: auto;
  }

.button-primary-credits {
    margin-top: auto;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }


  .stat-icon-wrapper {
    background-color: var(--color-primary-bg);
    padding: 9px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .stat-value {
    font-size: 30px;
    font-weight: 500;
    margin: 0;
  }
  
  .stat-value.large {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.72px;
  }

  .badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
  }

  .badge.success {
    background-color: var(--color-success-bg);
    color: var(--color-success);
  }

  .badge.warning {
    background-color: var(--color-warning-bg);
    color: var(--color-warning);
    padding: 2px 10px;
  }

  .badge--pending {
    background-color: var(--color-bg-badge-pending);
    color: var(--color-text-badge-pending);
  }

  .badge--received {
    background-color: var(--color-bg-badge-received);
    color: var(--color-text-badge-received);
  }

  .badge--review {
    background-color: var(--color-bg-badge-review);
    color: var(--color-text-badge-review);
  }

  .badge--progress {
    background-color: var(--color-bg-badge-progress);
    color: var(--color-text-badge-progress);
  }

  .card-divider {
    border: none;
    height: 1px;
    background-color: #f5f5f5;
    margin: 0;
  }

  .card-footer-text {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
  }
  
  .card-footer-text strong {
    color: var(--color-text-primary);
    font-weight: 600;
  }

  .button-primary {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }

  .analytics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
  }

  .chart-card {
    position: relative;
  }

  .chart-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
  }

  .chart-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .legend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #535862;
  }

  .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
  }

  .legend-value {
    font-size: 30px;
    font-weight: 500;
  }

  .modality-tabs {
    background-color: #f5f5f5;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
  }

  .tab-button {
    border: none;
    background-color: transparent;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
  }

  .tab-button.active {
    background-color: var(--color-primary);
    color: var(--color-text-white);
  }

  .chart-container {
    position: relative;
    height: 278px;
    margin-top: 32px;
  }
  
  .chart-image {
    position: absolute;
    top: -23px;
    left: 9px;
    width: calc(100% - 9px);
    height: 271px;
    z-index: 2;
  }

  .chart-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 222px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  .chart-grid-line {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #d0d5dd;
  }
  
  .chart-grid-line span {
    font-size: 8px;
    color: #535862;
    transform: translateY(50%);
  }

  .chart-labels {
    position: absolute;
    bottom: 0;
    left: 21px;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding-left: 11px;
    font-size: 8px;
    color: #535862;
  }
  
  .chart-tooltip-group {
    position: absolute;
    top: 149px;
    left: 487px;
    height: 249px;
    z-index: 3;
  }
  
  .chart-tooltip-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background-color: #414651;
  }
  
  .chart-cursor {
    position: absolute;
    top: 124.5px;
    left: -10px;
  }
  
  .chart-dot-1, .chart-dot-2 {
    position: absolute;
    left: -4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.23);
  }
  
  .chart-dot-1 {
    top: 97px;
    background-color: var(--color-bg-white);
    border: 2px solid var(--color-chart-1);
  }
  
  .chart-dot-2 {
    top: 65px;
    background-color: var(--color-bg-white);
    border: 2px solid var(--color-chart-2);
  }
  
  .chart-tooltip {
    position: absolute;
    top: 33px;
    left: -134px;
    width: 134px;
    background-color: var(--color-bg-white);
    border: 0.5px solid var(--color-border);
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0px 4px 6px -2px rgba(10, 13, 18, 0.03), 0px 12px 16px -4px rgba(10, 13, 18, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .tooltip-date {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
  }
  
  .tooltip-time {
    font-size: 10px;
    color: #535862;
    margin: 0;
  }
  
  .tooltip-data {
    background-color: #fafafa;
    border: 0.5px solid var(--color-border);
    border-radius: 6px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .tooltip-data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .tooltip-value {
    font-size: 18px;
    font-weight: 500;
  }
  
  .tooltip-divider {
    border: none;
    height: 0.5px;
    background-color: var(--color-border);
    margin: 0;
  }

  .team-card .stat-main {
    justify-content: flex-start;
  }

  .team-list {
    display: flex;
    flex-direction: column;
  }
  
  .team-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
  }
  
  .team-list li:last-child {
    border-bottom: none;
  }
  
  .team-list img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }
  
  .team-list span {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 600;
  }
  
  .team-list a {
    flex-shrink: 0;
  }

  .reports-card {
    padding: 16px;
  }

  .table-container {
    border: 1px solid var(--color-border-primary);
    border-radius: 6px;
    overflow-x: auto;
    width: 100%;
  }

  .table-wrapper {
    border: 1px solid var(--color-border-primary);
    border-radius: 6px;
    overflow: hidden;        /* THIS is the magic */
    width: 100%;
    flex: 1;
  }

  .table-wrapper canvas {
    display: block;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    table-layout: fixed;
  }

  .patients-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    min-width: 1200px;
    table-layout: auto;
  }

  th, td {
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
  }

  .patients-table th, .patients-table td {
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
  }

  /* Action column specific styling */
  .patients-table td:last-child {
    padding: 8px 4px;
    white-space: nowrap;
    width: 120px;
    min-width: 120px;
    text-align: center;
    vertical-align: middle;
  }

  .patients-table th:last-child {
    width: 120px;
    min-width: 120px;
    padding: 12px 4px;
    text-align: center;
  }

  .action-buttons {
    display: inline-block;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
    width: 100%;
  }

  th {
    background-color: var(--color-bg-primary-light);
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    padding: 10px 12px;
  }

  .patients-table th {
    background-color: var(--color-bg-primary-light);
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    padding: 10px 12px;
  }

  tbody tr:nth-child(even) {
    background-color: var(--color-bg-secondary-light);
    min-height: 48px;
  }

  .patients-table tbody tr.row-alt {
    background-color: var(--color-bg-secondary-light);
    min-height: 48px;
  }

  .patients-table tbody tr {
    background-color: var(--color-bg-white);
    min-height: 48px;
  }

  .patients-table td {
    color: var(--color-text-secondary);
  }

  td div {
    display: flex;
    flex-direction: column;
  }

  .patient-info, .date-time {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  td div span {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 2px;
  }

  .patient-name {
    font-size: 14px;
    color: var(--color-text-primary);
    font-weight: 500;
    margin: 0;
  }

  .date, .time {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 2px;
  }

  .action-cell {
    display: flex;
    gap: 4px;
  }

  .action-buttons {
    display: table-cell;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
  }

  .action-buttons button {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    width: 32px;
    height: 32px;
    margin: 0 2px;
  }

  .action-buttons button:hover {
    background-color: #f0f0f0;
  }

  .icon-button-table {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    width: 32px;
    height: 32px;
    margin: 0 2px;
  }

  .icon-button-table:hover {
    background-color: #f0f0f0;
  }
  
  .progress-bar-container {
    background-color: #f5f5f5;
    border-radius: 30px;
    height: 8px;
    width: 100%;
  }

  .progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f5f5f5;
    border-radius: 30px;
    overflow: hidden;
  }

  .progress-bar__inner {
    height: 100%;
    background-color: var(--color-text-light);
    border-radius: 30px;
    width: 65.15%; /* 714 / 1096 */
  }


  /* Worklist Components */
  .worklist-container {
    background-color: var(--color-bg-white);
    border: 1px solid #f5f5f5;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: 100%;
  }

  .worklist-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .worklist-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
  }

  .worklist-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .search-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--color-border-secondary);
    border-radius: 8px;
    background-color: var(--color-bg-white);
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
  }

  .search-input input {
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--color-text-secondary);
    width: 264px;
  }

  .search-input input::placeholder {
    color: var(--color-text-secondary);
  }

  .action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--color-border-secondary);
    border-radius: 8px;
    background-color: var(--color-bg-white);
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    cursor: pointer;
  }

  .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
  }

  .pagination-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--color-border-secondary);
    border-radius: 8px;
    background-color: var(--color-bg-white);
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    cursor: pointer;
  }

  .pagination-button:disabled {
    color: var(--color-text-pagination-disabled);
    cursor: not-allowed;
  }

  .pagination-pages {
    display: flex;
    gap: 2px;
  }

  .page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    text-decoration: none;
  }

  .page-link--active {
    background-color: var(--color-bg-primary-light);
    color: var(--color-text-pagination-active);
  }

  /* Login Page Styles */
  #login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
  }

  .login-container {
    display: flex;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
  }

  .logo-part1 {
    top: 0;
    left: 0;
  }

  .logo-part2 {
    top: 1.5px;
    left: 78px;
  }

.dashboard-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-bg-light);
  }

  .dashboard-preview {
    border-radius: 8px;
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
    transform: translateX(88px);
    margin-bottom: auto;
    position: relative;
  }

  .testimonial-card {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
  }

  .hospital-logo {
    width: 82px;
    height: 48px;
  }

  .testimonial-quote {
    font-size: 16px;
    line-height: 24px;
    font-family: 'DM Sans';
    color: var(--color-text-white);
  }

  .testimonial-pagination {
    display: flex;
    gap: 6px;
  }

  .testimonial-pagination .dot {
    width: 24px;
    height: 6px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.3);
  }

  .testimonial-pagination .dot.active {
    background-color: var(--color-text-white);
  }

  .login-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 120px;
    position: relative;
  }

  .back-button {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary-link);
  }

  .login-content {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
  }

  .login-header {
    text-align: left;
    margin-bottom: 40px;
  }

  .login-header h1 {
    font-size: 30px;
    font-weight: 600;
    line-height: 38px;
    color: var(--color-text-primary);
    margin-bottom: 8px;
  }

  .login-header p {
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text-secondary);
  }

  .login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
  }

  .form-group label {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--color-text-secondary);
  }

  .input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--background-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
  }

  .input-wrapper input {
    flex-grow: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    line-height: 24px;
    color: #181d27;
  }

  .input-wrapper input::placeholder {
    color: var(--color-text-placeholder);
  }

  .input-wrapper.input-error {
    border-color: var(--color-error-border);
  }

  .error-message {
    font-size: 14px;
    line-height: 20px;
    color: var(--color-error);
    margin-top: 2px;
  }

  .forgot-password-link {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--color-primary-link);
    margin-top: 4px;
    align-self: flex-start;
  }

  .remember-me {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .checkbox-wrapper {
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-primary);
    background-color: var(--color-primary-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .checkbox-wrapper input[type="checkbox"] {
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }

  .checkmark-icon {
    position: absolute;
    pointer-events: none;
    display: none;
  }

  .checkbox-wrapper input[type="checkbox"]:checked + .checkmark-icon {
    display: block;
  }

  .btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
  }

  .btnsmall {
    padding: 6px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
  }

  .btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border: 1px solid var(--color-primary);
    transition: background-color 0.2s;
  }

  .btn-primary:disabled {
    background-color: #c7daff;
    color: white;
    border: 1px solid #c7daff;
    cursor: not-allowed;
  }

  .separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 24px;
    margin: -4px 0;
  }

  .separator::before,
  .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border-light);
  }

  .separator span {
    padding: 0 10px;
    background-color: var(--background-light);
  }

  .btn-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background-color: var(--background-white);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .signup-prompt {
    text-align: center;
    margin-top: 24px;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text-secondary);
  }

  .signup-prompt a {
    font-weight: 600;
    color: var(--color-primary-link);
  }

  @media (max-width: 1200px) {
    .worklist-actions {
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .search-input {
      width: 100%;
      margin-bottom: 8px;
    }
    .analytics-grid {
      grid-template-columns: 1fr;
    }
    .testimonial-panel {
      display: none;
    }
    .login-panel {
      padding: 24px;
    }
  }

  @media (max-width: 992px) {
    .dashboard-layout {
      flex-direction: column;
      min-height: 100vh;
    }

    .sidebar {
      width: 100%;
      height: auto;
      min-height: auto;
      border-right: none;
      border-bottom: 1px solid var(--color-border-primary);
      position: static;
    }

    .main-content {
      padding: 16px;
      min-height: auto;
    }
    .stats-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 768px) {
    .main-header, .worklist-controls {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }
    .main-header__controls, .worklist-actions {
      width: 100%;
    }
    #login-section {
      padding: 1rem;
    }
    .login-panel {
      padding: 1rem;
    }
    .back-button {
      top: 16px;
      right: 16px;
    }
  }

  /* base container */
.sidebar {
  width: 240px;           /* desktop width */
  height: 100%;
  overflow: auto;
}

.sidebarnew {
  border-radius: 12px;
  background-color: var(--color-bg-white);
}

.sidebarnew__divider {
  border: none;
  height: 1px;
  background-color: var(--color-border);
}

.sidebarnew_button {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  gap: 12px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  outline: none;
  background: var(--color-bg-white);
  color: black;
}

.sidebarnew_button img {
  width: 20px;
  height: 20px;
}

.sidebarnew_button:active img {
    filter: brightness(0) invert(1);
}

.sidebarnew_button span {
  font-size: 14px;
  white-space: nowrap;
}

.1sidebarnew_button:hover {
  background: var(--bg-primary-light);
}

.sidebarnew_button:active {
  background: var(--color-primary-active);
  color: white;
}

.sidebarnew_buttonactive {
  background: var(--color-primary-active);
  color: white;
}

.1sidebarnew_buttonactive:hover {
  background: var(--bg-primary-light);
}

.sidebarnew_buttonactive img {
    filter: brightness(0) invert(1);
}

/* vertical stack */
.sidebar .menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

/* each item row */
.sidebar .menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  outline: none;
}

/* icon size */
.sidebar .menu-item img {
  width: 20px;
  height: 20px;
}

/* text */
.sidebar .menu-item span {
  font-size: 14px;
  white-space: nowrap;
}

/* hover/focus/active */
.sidebar .menu-item:hover,
.sidebar .menu-item:focus-visible {
  background: var(--bg-primary-light);
}
.sidebar .menu-item.active {
  background: var(--color-primary-active);
  color: white;
}

/* --- responsiveness --- */

/* tablet: shrink width */
@media (max-width: 1024px) {
  .sidebar { width: 200px; }
}

/* narrow: icon-only */
@media (max-width: 768px) {
  .sidebar { width: 64px; }
  .sidebar .menu { gap: 4px; padding: 6px; }
  .sidebar .menu-item { justify-content: center; padding: 10px 8px; }
  .sidebar .menu-item span { display: none; } /* hide labels */
}

/* mobile: off-canvas (optional pattern)
   Start hidden; toggle .open on the container from a burger button */
.sidebar.offcanvas {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 240px; transform: translateX(-100%);
  transition: transform .2s ease;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  z-index: 9999;
}
.sidebar.offcanvas.open { transform: translateX(0); }

.success-modal-container {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    border-top: 8px solid #12b76a;
    border-radius: 16px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 620px;
    box-sizing: border-box;
/*
    box-shadow: 0px 4px 6px -2px rgba(10, 13, 18, 0.03), 0px 12px 16px -4px rgba(10, 13, 18, 0.08);
    contain: paint;
    background-clip: padding-box;*/
  }

  .success-modal-container.clip-path {
    clip-path: inset(0 round 16px);
  }

  .failure-modal-container {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    border-top: 8px solid #d92d20;
    border-radius: 16px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 620px;
    width: 100%;
    box-sizing: border-box;

/*    box-shadow: 0px 4px 6px -2px rgba(10, 13, 18, 0.03), 0px 12px 16px -4px rgba(10, 13, 18, 0.08);
    contain: paint;
    background-clip: padding-box;*/
  }

  .failure-modal-container.clip-path {
    clip-path: inset(0 round 16px);
  }

  .close-button {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: #e6e6e6;
    border: none;
    border-radius: 120px;
    padding: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }

  .close-button img {
    width: 16px;
    height: 16px;
  }

  .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
  }

  .success-icon {
    width: 93px;
    height: 93px;
  }

  .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .title {
    color: #252b37;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 30px;
    line-height: 38px;
    text-align: center;
    margin: 0;
  }

  .subtitle {
    color: #414651;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    margin: 0;
    max-width: 499px;
  }

  .action-button-msg {
    background-color: #02369c;
    border: 1px solid #02369c;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease-in-out;
  }

  .action-button-msg:hover {
    background-color: #022b7e; /* A slightly darker shade for hover */
  }

  .action-button-1 {
    background-color: #eff5ff;
    border: 1px solid #eff5ff;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    color: #02318e;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease-in-out;
  }

  .action-button-1:hover {
    background-color: #022b7e; /* A slightly darker shade for hover */
  }

  @media (max-width: 600px) {
    .success-modal-container {
      padding: 40px 24px 24px 24px;
      gap: 24px;
    }

    .close-button {
      top: 16px;
      right: 16px;
    }

    .title {
      font-size: 24px;
      line-height: 32px;
    }

    .subtitle {
      font-size: 14px;
      line-height: 20px;
    }
  }

  .icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .icon-wrapper img {
    position: absolute;
  }

  .icon-part1 {
    width: 105.02px;
    height: 90.95px;
    top: 14.525px;
    left: 7.49px;
  }

  .icon-part2 {
    width: 9.77px;
    height: 42.75px;
    top: 38.625px;
    left: 55.115px;
  }

  .ddpopup {
    background: #FFFFFF;
    border: 1px solid #E9EAEB;
    box-shadow: 0px 32px 64px -12px rgba(10, 13, 18, 0.14);
    border-radius: 8px;
  }

  .ddpopupitem {
    color: #000000;
  }


  .popupform {
    background: var(--White, #fff);
    border-radius: 16px;
    position: relative;
    z-index: 1000;
  }

  .divFormHeader {
    border-bottom: 1px solid var(--Gray-200, #e9eaeb);
    width: 100%;
    padding-bottom: 6px;
    display: flex;
  }

  .divFormHeaderText {
    color: var(--Gray-800, #252b37);
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
  }

  .divFormHeaderCloseBtnHolder {
    background: #e6e6e6;
    border-radius: 120px;
    gap: 10px;
    padding: 4px;
    display: flex;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
  }

  .divFormHeaderCloseBtn {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .LabelFieldDesc {
    color: var(--Gray-700, #414651);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
  }

  .divBoxInputDiv {
    border: 1px solid var(--Gray-300, #d5d7da);
    background: var(--White, #fff);
    box-sizing: border-box;
    border-radius: 8px;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px #0a0d120d;
    transition: border-color 0.2s;
  }

  .divBoxInput {
    background: transparent;
    border: none;
    color: var(--Gray-800, #252b37);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    padding: 0 14px;
    width: 100%;
    z-index: 2;
  }

  .tabs {
    display: flex;
    gap: 24px;
  }

  .tab {
    padding: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #535862;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
  }

  .tab.active {
    color: #02318e;
    border-bottom-color: #02318e;
  }

  .settingsform {
      background-color: var(--color-bg-light);
  }

  .settingssubform {
    border-radius: 8px;
    background-color: white;
  }

  .toolbar {
    background-color: var(--toolbar-bg);
    border: 1px solid var(--toolbar-border-primary);
    border-radius: 10px;
    overflow: hidden;
  }

  .tool-group {
    display: flex;
    flex-grow: 1;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tool-label {
    font-size: 10px;
    line-height: 13px;
    color: var(--toollabel-text-secondary);
    text-align: center;
  }

  .tool-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    min-width: 72px;
    padding: 8px 8px 4px;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .tool-button.active {
    background-color: var(--tool-button-active) !important;
  }

  .tool-button:hover {
    background-color: var(--tool-button-active) !important;
  }

  .tool-icon {
    width: 20px;
    height: 20px;
  }

  .uploadpanel {
    border: 3px dashed var(--color-border);
    border-radius: 4px;
    background-color: var(--color-bg-light);
    color: var(--color-text-secondary);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
  }

  .statuspanel {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
  }

  .comingsoon {
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f8fafc;
    border-radius:12px;
    border:1px solid #e2e8f0;
  }

  .comingsoontext {
    font-size:26px;
    font-weight:600;
    color:#334155;
  }

  .comingsoonsubtext {
    font-size:14px;
    color:#64748b;
    margin-top:6px;
  }

.dashgrid {
  height: 100%;
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 16px;
}

.dashcol1 {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.dashcol2 {
  display: grid;
/*  grid-template-rows: 35% 65%;*/
  grid-template-rows: 210px 1fr;
  gap: 10px;
}

.msgboxbuttonrow {
  display: flex;
  gap: 20px;          /* spacing between buttons */
  width: 100%;
}

.msgboxbuttonrow button {
  flex: 1;            /* makes them equal width */
}

.hospital-header-vertical {
    display: flex;
    flex-direction: column;   /* stack logo above name */
    align-items: center;  /* left aligned */
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Logo above name */
.hospital-logo-vertical {
    width: 64px;              /* fixed width */
    height: auto;             /* auto height, keeps proportions */
    object-fit: contain;
    display: none;            /* hidden until a logo is assigned */
    margin-bottom: 4px;       /* small gap before the name */
}

/* Name under the logo */
.hospital-name-vertical {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    word-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    text-align: center;
}

.logo-64 {
    width: 64px;        /* fixed width */
    height: auto;       /* proportional height */
    object-fit: contain; /* ensures clean scaling without distortion */
    display: block;     /* avoids inline spacing issues */
}

.body-no-scroll {
    overflow: hidden;
}

.linkmoderow {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;       /* space between label and combo */
}

.linkmoderow label {
  flex: 0 0 120px; /* fixed label width; adjust as needed */
}

.linkmoderow select {
  flex: 1;         /* take up remaining space */
  width: 100%;     /* ensure it fills its flex space */
  padding: 6px;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.doc-image-container1 {
  display: flex;
  align-items: center;      /* vertical centering */
  justify-content: center;  /* horizontal centering */
  overflow: hidden;
}

.doc-image-fit {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

