:root {
    --ims-theme: #33759f;
    --ims-theme-hover: #2a6084;
    --ims-theme-active: #245471;
    --bs-primary: #33759f;
    --bs-primary-rgb: 51, 117, 159;
}

.ims-body {
    background: #f5f6f8;
    min-height: 100vh;
}

.ims-apply-logo {
    text-align: center;
    padding: 24px;
}

.ims-apply-logo img {
    width: 200px;
    height: auto;
}

.ims-navbar {
    background-color: var(--ims-theme) !important;
    font-size: 0.9rem;
    /* Keep Settings dropdowns above sticky page headers (e.g. personnel profile) */
    position: relative;
    z-index: 1030;
}
.ims-navbar-secondary {
    background-color: #ccd !important;
    position: relative;
    z-index: 1025;
}

/* Below navbar dropdowns; only needs to cover scrolling page content */
@media (min-width: 992px) {
    .ims-sticky-page-header.sticky-lg-top {
        z-index: 10;
    }
}

.ims-navbar .navbar-brand {
    font-size: 1.1rem;
}

.ims-list-tooltip .tooltip-inner {
    text-align: left;
    max-width: 20rem;
}

.ims-list-tooltip .tooltip-inner ul {
    margin: 0;
    padding-left: 1.1rem;
}

/* Reserve glyph space before bootstrap-icons CSS/font finish loading */
.bi {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    line-height: 1;
}

.btn-primary {
    --bs-btn-bg: var(--ims-theme);
    --bs-btn-border-color: var(--ims-theme);
    --bs-btn-hover-bg: var(--ims-theme-hover);
    --bs-btn-hover-border-color: var(--ims-theme-hover);
    --bs-btn-active-bg: var(--ims-theme-active);
    --bs-btn-active-border-color: var(--ims-theme-active);
    --bs-btn-disabled-bg: var(--ims-theme);
    --bs-btn-disabled-border-color: var(--ims-theme);
}

.btn-outline-primary {
    --bs-btn-color: var(--ims-theme);
    --bs-btn-border-color: var(--ims-theme);
    --bs-btn-hover-bg: var(--ims-theme);
    --bs-btn-hover-border-color: var(--ims-theme);
    --bs-btn-active-bg: var(--ims-theme-active);
    --bs-btn-active-border-color: var(--ims-theme-active);
    --bs-btn-disabled-color: var(--ims-theme);
    --bs-btn-disabled-border-color: var(--ims-theme);
}

.nav-tabs .nav-link.active {
    color: var(--ims-theme);
    border-color: #dee2e6 #dee2e6 #fff;
}

.nav-link.active {
    font-weight: 600;
}

.ims-check-card {
    max-width: 420px;
}

.ims-check-card--active {
    position: relative;
    overflow: hidden;
    background: transparent;
}

@property --ims-clock-spin {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.ims-check-card--active::before {
    content: "";
    position: absolute;
    inset: 0;
    background: conic-gradient(
        from var(--ims-clock-spin) at -15% 115%,
        rgba(51, 117, 159, 0.55),
        rgba(120, 190, 220, 0.2),
        rgba(40, 140, 180, 0.5),
        rgba(200, 230, 245, 0.25),
        rgba(51, 117, 159, 0.55)
    );
    animation: ims-clocked-in-spin 12s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.ims-check-card--active .card-body {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.55);
}

@keyframes ims-clocked-in-spin {
    to {
        --ims-clock-spin: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ims-check-card--active::before {
        animation: none;
    }
}

.ims-profile-photo {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
}

.ims-profile-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

.ims-intern-list-name {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.ims-intern-list-name:hover {
    color: var(--ims-theme);
}

.ims-intern-list-photo {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.ims-intern-list-photo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.ims-note-photo {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.ims-note-photo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.ims-feedback-avatars {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.35rem;
}

.ims-feedback-avatars-arrow {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0 0.1rem;
}

.ims-hours-week-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.125rem;
}

.ims-hours-matrix {
    overflow-x: auto;
}

.ims-hours-matrix table {
    min-width: 640px;
}

.ims-hours-matrix th,
.ims-hours-matrix td {
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    min-height: 48px;
    height: 48px;
}

.ims-hours-matrix th:first-child,
.ims-hours-matrix td:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    white-space: normal;
}

.ims-hours-matrix-worker {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    line-height: 1.25;
}

.ims-hours-matrix-worker-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 0;
}

.ims-hours-matrix-worker-link {
    color: inherit;
    text-decoration: none;
}

.ims-hours-matrix-worker-link:hover {
    color: var(--ims-theme);
    text-decoration: underline;
}

.ims-hours-matrix-staff-code {
    font-size: 0.65rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #6c757d;
}

.ims-hours-matrix-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.ims-hours-matrix-location {
    font-size: 0.65rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #6c757d;
    white-space: normal;
    max-width: 7.5rem;
}

.ims-hours-matrix-day-start {
    background: linear-gradient(to right, rgba(25, 135, 84, 0.35), #fff 50%);
}

.ims-hours-matrix-day-end {
    background: linear-gradient(to right, #fff 50%, rgba(220, 53, 69, 0.35));
}

.ims-hours-matrix-day-start.ims-hours-matrix-day-end {
    background: linear-gradient(to right, rgba(25, 135, 84, 0.35), #fff 50%, rgba(220, 53, 69, 0.35));
}

.ims-availability-app {
    margin-bottom: 2rem;
}

.ims-availability-grid-wrap {
    overflow-x: auto;
}

.ims-availability-grid {
    min-width: 760px;
    table-layout: fixed;
}

.ims-availability-grid th,
.ims-availability-grid td {
    vertical-align: top;
    text-align: center;
}

.ims-availability-week-col {
    width: 132px;
    min-width: 132px;
    text-align: center;
    vertical-align: middle;
    background: #f8f9fa;
    position: sticky;
    left: 0;
    z-index: 1;
}

.ims-availability-week-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #495057;
    line-height: 1.2;
}

.ims-availability-copy-week-btn {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    font-size: 0.65rem;
    line-height: 1.2;
    padding: 0.25rem 0.35rem;
    white-space: normal;
}

.ims-availability-day-cell {
    min-height: 88px;
    height: 88px;
    padding: 0.35rem;
    background: #fff;
}

.ims-availability-day-cell--clickable {
    cursor: pointer;
}

.ims-availability-day-cell--clickable:hover {
    background: #f8fbff;
}

.ims-availability-day-cell--empty {
    background: #f1f3f5;
}

.ims-availability-day-heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.ims-availability-holiday-captions {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 0.2rem;
}

.ims-availability-day-cell .ims-timeline-holiday-caption {
    font-size: 0.68rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

.ims-availability-day-slots {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ims-availability-slot {
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0.15rem 0.25rem;
    border-radius: 0.25rem;
    background: #e7f1ff;
    color: #0d6efd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ims-availability-day-empty {
    font-size: 0.72rem;
    color: #adb5bd;
    margin-top: 0.15rem;
}

.ims-status-badge {
    text-transform: capitalize;
}

.ims-status-badge.ims-status-working {
    background-color: #198754;
    color: #fff;
}

.ims-status-badge.ims-status-pre-application {
    background-color: #e2e3e5;
    color: #41464b;
}

.ims-status-badge.ims-status-applied {
    background-color: #6f42c1;
    color: #fff;
}

.ims-status-badge.ims-status-considering {
    background-color: #7ec8e3;
    color: #053a4a;
}

.ims-status-badge.ims-status-waitlisted {
    background-color: #ffc107;
    color: #664d03;
}

.ims-status-badge.ims-status-rejected {
    background-color: #dc3545;
    color: #fff;
}

.ims-status-badge.ims-status-finished {
    background-color: #212529;
    color: #fff;
}

.ims-status-badge.ims-status-default {
    background-color: #adb5bd;
    color: #fff;
}

.ims-rejection-reason {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.7rem;
    line-height: 1.25;
    color: #6c757d;
}

.ims-checked-in-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.ims-checked-in-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ims-checked-in-card:hover {
    border-color: var(--ims-theme);
    box-shadow: 0 0 0 1px var(--ims-theme);
}

.ims-checked-in-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.ims-checked-in-card-link:hover {
    color: inherit;
}

.ims-checked-in-force-out {
    margin-top: 0.75rem;
    width: 100%;
}

.ims-checked-in-force-out .btn {
    width: 100%;
}

.ims-checked-in-photo {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.ims-checked-in-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

.ims-checked-in-name {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.ims-checked-in-location {
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
}

.ims-checked-in-since {
    font-size: 0.85rem;
}

.ims-alpha-banner {
    font-size: 1.15rem;
    text-align: center;
    padding: 1rem 1.25rem;
    border-width: 2px;
}

.ims-timeline {
    max-width: 720px;
}

.ims-timeline-day {
    position: relative;
    padding-left: 1.5rem;
    padding-bottom: 1.75rem;
    border-left: 2px solid #d7dde3;
}

.ims-timeline-day:last-child {
    padding-bottom: 0;
}

.ims-timeline-empty-collapse {
    position: relative;
    padding-left: 1.5rem;
    padding-bottom: 1.75rem;
    border-left: 2px solid #d7dde3;
}

.ims-timeline-empty-collapse:last-child {
    padding-bottom: 0;
}

.ims-timeline-empty-collapse > summary {
    list-style: none;
    cursor: pointer;
}

.ims-timeline-empty-collapse-summary {
    display: block;
}

.ims-timeline-empty-collapse > summary::-webkit-details-marker {
    display: none;
}

.ims-timeline-empty-collapse-link {
    color: var(--ims-theme);
    font-size: 0.875rem;
    font-weight: 500;
}

.ims-timeline-empty-collapse-link:hover {
    text-decoration: underline;
}

.ims-timeline-empty-collapse[open] > summary {
    margin-bottom: 0.75rem;
}

.ims-timeline-empty-collapse::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 0.4rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d7dde3;
}

.ims-timeline-day::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 0.4rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ims-theme);
}

.ims-timeline-day--today::before {
    width: 16px;
    height: 16px;
    left: -9px;
    top: 0.25rem;
}

.ims-timeline-day-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    margin-bottom: 0.75rem;
}

.ims-timeline-holiday-caption {
    width: 100%;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #dc3545;
    line-height: 1.3;
}

.ims-timeline-day-hours {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ims-theme);
    white-space: nowrap;
}

.ims-timeline-day-body {
    background: #fff;
    border: 1px solid #e5e8ec;
    border-radius: 10px;
    padding: 1rem 1.1rem;
}

.ims-timeline-section + .ims-timeline-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eef1f4;
}

.ims-timeline-logs {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ims-timeline-logs li {
    margin-bottom: 0.35rem;
}

.ims-timeline-logs li:last-child {
    margin-bottom: 0;
}

.ims-timeline-note + .ims-timeline-note {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e5e8ec;
}

.ims-feedback-note {
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    border-left: 3px solid #6c757d;
    background: #f8f9fa;
}

.ims-feedback-note + .ims-feedback-note {
    margin-top: 0.75rem;
}

.ims-feedback-note--internal {
    border-left-color: #6c757d;
    background: #f1f3f5;
}

.ims-feedback-note--school {
    border-left-color: #d39e00;
    background: #fff8e6;
}

.ims-feedback-note--intern {
    border-left-color: #198754;
    background: #eef8f1;
}

.ims-timeline-note-body {
    margin-bottom: 0.5rem;
}

.ims-timeline-note-body--plain {
    white-space: pre-wrap;
}

.ims-timeline-note-body > :last-child {
    margin-bottom: 0;
}

.ims-timeline-note-body p,
.ims-timeline-note-body ul,
.ims-timeline-note-body ol {
    margin-bottom: 0.5rem;
}

.ims-timeline-note-body ul,
.ims-timeline-note-body ol {
    padding-left: 1.25rem;
}

.ims-timeline-note-body em {
    font-style: italic;
}

.ims-timeline-note-body strong {
    font-weight: 600;
}

.ims-timeline-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
}

.ims-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.ims-documents-grid-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ims-documents-grid-item:hover {
    border-color: var(--ims-theme);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: inherit;
}

.ims-documents-grid-preview {
    aspect-ratio: 4 / 3;
    background: #f5f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ims-documents-grid-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ims-documents-grid-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem;
    text-align: center;
    width: 100%;
    height: 100%;
}

.ims-documents-grid-file .bi {
    font-size: 2rem;
    color: #6c757d;
}

.ims-documents-grid-filename {
    font-size: 0.8rem;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.ims-post-body-preview {
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: pre-line;
    word-break: break-word;
}

.ims-weather-warning-text {
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.ims-weather-warning-text--expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.ims-documents-grid-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0.65rem 0.65rem;
    border-top: 1px solid #eee;
}

.ims-timeline-image img {
    display: block;
    max-width: 180px;
    max-height: 140px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.ims-timeline-doc {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.65rem;
    background: #f5f6f8;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
}

.ims-timeline-doc:hover {
    border-color: var(--ims-theme);
    color: var(--ims-theme);
}

.ims-timeline-add summary {
    cursor: pointer;
    color: var(--ims-theme);
    font-weight: 600;
    list-style: none;
}

button.ims-timeline-add {
    display: inline-block;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--ims-theme);
    font-weight: 600;
}

.ims-timeline-add summary::-webkit-details-marker {
    display: none;
}

.ims-collapsible-card summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--ims-theme);
}

.ims-collapsible-card summary::-webkit-details-marker {
    display: none;
}

.ims-collapsible-card .ims-collapsible-chevron {
    transition: transform 0.15s ease;
    font-size: 0.875rem;
}

.ims-collapsible-card[open] .ims-collapsible-chevron {
    transform: rotate(90deg);
}

.ims-reflections-timeline {
    max-width: 820px;
}

.ims-reflection-entry {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    align-items: start;
}

.ims-reflection-entry + .ims-reflection-entry {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e5e8ec;
}

.ims-reflection-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    gap: 0.4rem;
}

.ims-reflection-author:hover {
    color: var(--ims-theme);
}

.ims-reflection-photo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
}

.ims-reflection-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

.ims-reflection-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.ims-reflection-fullname {
    font-size: 0.8rem;
    line-height: 1.2;
}

@media (max-width: 576px) {
    .ims-reflection-entry {
        grid-template-columns: 1fr;
    }

    .ims-reflection-author {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
    }
}

.ims-document-preview-wrap {
    position: sticky;
    top: 1rem;
}

.ims-document-preview-frame {
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 16px;
    min-height: 28rem;
}

.ims-document-preview-frame iframe {
    display: block;
    width: 100%;
    height: min(70vh, 52rem);
    border: 0;
    background: #fff;
}

.ims-assigned-work article {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.ims-assigned-work article h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.ims-assigned-work .butt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 0;
    appearance: none;
    background: var(--ims-theme);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.ims-assigned-work .butt:hover {
    background: var(--ims-theme-hover);
    color: #fff;
}
h6.dropdown-header {
    background-color: #dae6f2;
}

.ims-assigned-work .table {
    background-color: #fff;
}

.ims-task-list .list-group-item {
    border-left: 3px solid transparent;
}

.ims-task-title {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
}

.ims-task-actions {
    min-width: 6.5rem;
}

.ims-task-actions form {
    display: flex;
    align-items: center;
    margin: 0;
}

.ims-task-item--overdue,
.ims-task-chip--overdue {
    border-left-color: #dc3545;
}

.ims-task-chip {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

a.ims-task-chip-link {
    display: block;
    color: inherit;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

a.ims-task-chip-link:hover .ims-task-chip {
    border-color: var(--ims-theme, #0d6efd);
    background: #fff;
}

a.ims-task-chip-link .ims-task-chip {
    margin-bottom: 0;
}

.ims-task-item--highlight {
    scroll-margin-top: 5rem;
    box-shadow: 0 0 0 2px var(--ims-theme, #0d6efd);
}

#tasks,
#timeline {
    scroll-margin-top: 6rem;
}

.ims-linked-tasks {
    border-top: 1px solid #dee2e6;
    padding-top: 0.75rem;
}

.ims-dashboard-task-list li {
    padding-left: 0.25rem;
    border-left: 2px solid #dee2e6;
}

.ims-dashboard-task-list li.text-danger {
    border-left-color: #dc3545;
}

.ims-navbar .notification-bell-btn {
    color: rgba(255, 255, 255, 0.85);
}

.ims-navbar .notification-bell-btn:hover {
    color: #fff;
}

.ims-multiselect {
    position: relative;
}

.ims-multiselect__control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.35rem 0.5rem;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    cursor: text;
}

.ims-multiselect--open .ims-multiselect__control,
.ims-multiselect__control:focus-within {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.ims-multiselect__chips {
    display: contents;
}

.ims-multiselect__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    padding: 0.15rem 0.35rem 0.15rem 0.5rem;
    background: #e9ecef;
    border-radius: 999px;
    font-size: 0.875rem;
    line-height: 1.2;
}

.ims-multiselect__chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ims-multiselect__chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.ims-multiselect__chip-remove:hover {
    background: #ced4da;
    color: #212529;
}

.ims-multiselect__input {
    flex: 1 1 8rem;
    min-width: 6rem;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0.15rem 0.1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.ims-multiselect__menu {
    position: absolute;
    z-index: 1080;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    max-height: 14rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.ims-multiselect__option,
.ims-multiselect__empty {
    padding: 0.4rem 0.75rem;
    cursor: pointer;
}

.ims-multiselect__empty {
    color: #6c757d;
    cursor: default;
}

.ims-multiselect__option.is-active,
.ims-multiselect__option:hover {
    background: #e9ecef;
}

.ims-multiselect__hidden {
    display: none;
}

.ims-tag-picker {
    position: relative;
}

.ims-tag-picker__control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.35rem 0.5rem;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    cursor: text;
}

.ims-tag-picker--inline .ims-tag-picker__control {
    min-height: auto;
    padding: 0.25rem 0.35rem;
}

.ims-tag-picker--open .ims-tag-picker__control,
.ims-tag-picker__control:focus-within {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.ims-tag-picker__chips {
    display: contents;
}

.ims-tag-picker__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    padding: 0.15rem 0.35rem 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.875rem;
    line-height: 1.2;
    color: #fff;
}

.ims-tag-picker__chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ims-tag-picker__chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.ims-tag-picker__chip-remove:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.ims-tag-picker__input {
    flex: 1 1 8rem;
    min-width: 6rem;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0.15rem 0.1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.ims-tag-picker--inline .ims-tag-picker__input {
    flex: 1 1 10rem;
    min-width: 10rem;
    font-size: 0.875rem;
}

.ims-tag-picker__menu {
    position: absolute;
    z-index: 1080;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    max-height: 14rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.ims-tag-picker__option,
.ims-tag-picker__empty {
    padding: 0.4rem 0.75rem;
    cursor: pointer;
}

.ims-tag-picker__empty {
    color: #6c757d;
    cursor: default;
}

.ims-tag-picker__create {
    color: #0d6efd;
    cursor: pointer;
}

.ims-tag-picker__option.is-active,
.ims-tag-picker__option:hover {
    background: #e9ecef;
}

.ims-tag-picker__option-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.3;
}

.ims-tag-picker__hidden {
    display: none;
}

.ims-task-tags {
    position: relative;
}

.ims-tag-picker-popover {
    position: absolute;
    z-index: 1090;
    top: calc(100% + 0.25rem);
    left: 0;
    min-width: 14rem;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.ims-tag-picker-popover .ims-tag-picker__menu {
    position: static;
    box-shadow: none;
    border: 0;
    margin-top: 0.25rem;
    max-height: 10rem;
}

.ims-assignee-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

.ims-assignee-list a {
    white-space: nowrap;
}

.ims-bulk-tasks-wrap {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
}

.ims-bulk-tasks-table {
    margin-bottom: 0;
}

.ims-bulk-tasks-table thead th {
    white-space: nowrap;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 600;
    border-bottom-width: 1px;
    background: #f8f9fa;
}

.ims-bulk-tasks-table td,
.ims-bulk-tasks-table th {
    vertical-align: top;
    padding: 0.65rem 0.75rem;
}

.ims-bulk-col-task {
    min-width: 16rem;
    width: 38%;
}

.ims-bulk-col-assignees {
    min-width: 14rem;
    width: 32%;
}

.ims-bulk-col-hours {
    min-width: 6rem;
    width: 8rem;
}

.ims-bulk-col-due {
    min-width: 9rem;
    width: 10rem;
}

.ims-bulk-col-actions {
    width: 3rem;
}

.ims-bulk-tasks-table .ims-multiselect__control {
    min-height: calc(1.5em + 0.75rem + 2px);
}

.ims-bulk-tasks-table .form-control {
    min-height: calc(1.5em + 0.75rem + 2px);
}

.ims-application-email-preview {
    max-height: 50vh;
    overflow: auto;
    font-size: 0.925rem;
    line-height: 1.45;
}

.ims-application-email-preview > :first-child {
    margin-top: 0;
}

.ims-application-email-preview > :last-child {
    margin-bottom: 0;
}

.ims-application-email-preview p,
.ims-application-email-preview ul,
.ims-application-email-preview ol {
    margin-bottom: 0.75rem;
}

.ims-milestone {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 120% 100% at 85% 20%, #fff4b8 0%, #ffd54f 38%, #ffc107 68%, #e5a800 100%);
    color: #1a1200;
    padding: 1.35rem 1.45rem;
    border-radius: 14px;
    margin-bottom: 0.85rem;
    box-shadow:
        0 6px 20px rgba(180, 130, 0, 0.28),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.ims-milestone-title {
    color: #856404;
    font-weight: 700;
    font-size: 1.15rem;
}

.ims-milestone-countdown {
    color: #856404;
    font-weight: 600;
    font-size: 0.875rem;
}

.ims-milestone-details {
    color: inherit;
}

.ims-milestone__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0.75rem;
    bottom: calc(0.25rem + 10px);
    font-size: 5rem;
    line-height: 1;
    color: rgba(0, 0, 0, 0.07);
    pointer-events: none;
    z-index: 0;
}

.ims-milestone__body {
    position: relative;
    z-index: 1;
}

.ims-milestone__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(26, 18, 0, 0.55);
    margin-bottom: 0.55rem;
}

.ims-milestone .ims-milestone-title {
    color: #1a1200;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ims-milestone .ims-milestone-countdown {
    color: #1a1200;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
}

.ims-milestone .ims-milestone-location {
    font-size: 1rem;
}

.ims-milestone .text-muted {
    color: rgba(26, 18, 0, 0.72) !important;
}

.ims-milestone .ims-milestone-details {
    color: #1a1200;
    font-size: 1.05rem;
    line-height: 1.55;
}

.ims-milestone .ims-linked-tasks h4,
.ims-milestone .ims-linked-tasks h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(26, 18, 0, 0.65) !important;
}

#hours-log-table:not(.ims-hours-show-paid) tr.ims-hours-row--paid {
    display: none;
}

