/* Visually de-emphasize withdrawn students in tables */
.withdrawn-row {
	background-color: #f5f5f5;
	color: #6c757d;
}

.withdrawn-row td {
	opacity: 0.9;
}
.d-flex.justify-content-between.align-items-center {
    width: 100%;
}
.list-group .list-group-item .align-items-center .btn-group{
	float: right;
}
li.list-group-item.sortableListsOpen {
    display: inherit;
}
.fa-solid, .fas {
    color: var(--white);
}
.sortableLists .fas{
    font-size: unset !important;
    color:var(--white);
    margin-top: 5px;
}
.wizard>.steps .number{
	top: -17px;
	width: 3.375rem;
    height: 3.375rem;
	background-color: unset;
    display: inline-block;
    position: absolute;
    left: 50%;
    margin-left: 1.999rem;
    border: unset;
    font-size: .875rem;
    z-index: 10;
    line-height: 2.125rem;
    text-align: center;
    border-radius: 50%;
}
.wizard>.steps>ul>li:after, .wizard>.steps>ul>li:before {
	display: none;
}

.wizard>.steps>ul>li.done .number {
    background-color: #4CAF50;
}
.wizard>.steps>ul>li.current .number:after {
	font-size: 0;
}

.wizard>.steps>ul>li .number .fa-solid, .wizard>.steps>ul>li .number .fas, .fas{
    font-size: 1.9rem;
	margin-top: 5px;
    color: #fff;
}
.wizard>.steps>ul>li:not(:first-child)
 {
    padding-left: 26px;
}
.wizard>.steps>ul>li {
    background-color: #00bcd4;
	flex: auto;
	text-align: left;
    text-wrap: auto;
}
.wizard>.steps>ul>li.current {
    background-color: #edbc17;
}
.wizard>.steps>ul>li.current .number{
    background-color: unset;
}

.wizard>.steps>ul>li.done{
	background: #4CAF50;
}

.wizard>.steps>ul>li.done .number{
    border-color: #4CAF50;
}
.wizard>.steps>ul>li.done .number .fas{
    color: #4CAF50;
}

.wizard>.steps>ul>li.done .fas::before {
    color: #fff;
}
.wizard>.steps>ul>li.done .number:after {
	position: absolute;
    font-size: 1.2rem;
    color: #38d067;
    top: -20px;
}
.wizard>.steps>ul>li:first-child .number{
	margin-left: 18px;
}
.wizard>.steps>ul>li>a span.title {
	font-size: 100%;
	color: #fff;
}
.wizard>.steps>ul>li a {
	color: #fff;
	padding-top: unset;

}

.wizard>.steps>ul>li.done a, .wizard>.steps>ul>li.done a:focus, .wizard>.steps>ul>li.done a:hover
{
	background-color: unset;
}
.wizard>.content {
    border: 1px solid #ccc;
	border-radius: 15px;
	padding: 10px;
}
/*
ssssssss
*/
.arrow-progress {
  display: flex!important;
  list-style: none;
  padding: 0;
  margin: 0;
  padding-bottom: 0.1rem;
}

.arrow-progress > li {
  position: relative;
  background: #4CAF50;
  color: #fff;
  margin-left: -20px; /* overlap arrows */
  clip-path: polygon(
    0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%,
    24px 50%
  );
  z-index: 1;
  white-space: nowrap;
  font-weight: bold;
}

/* First item: no left notch */
.arrow-progress > li:first-child {
  clip-path: polygon(
    0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%
  );
  padding-left: 5px;
  margin-left: 3px;
}

/* Optional: rounded corners */
.arrow-progress > li:first-child {
  border-radius: 4px 0 0 4px;
}
.arrow-progress > li:last-child {
  border-radius: 0 4px 4px 0;
}

.app-page-header-compact.page-header {
    min-height: 52px !important;
    padding: 0 !important;
}

.app-page-header-compact .page-header-content.header-elements-md-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 52px;
    padding: .45rem 1.25rem;
    background-color: var(--header-background, #fff) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--header-border-color, #ddd) !important;
}

.app-page-title-group {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.app-page-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    margin: 0;
    color: var(--heading-color, #2c3e50);
    font-size: 1.25rem;
    line-height: 1.2;
}

.app-page-title i {
    flex: 0 0 auto;
    color: var(--success-color, #27ae60);
    font-size: 1rem;
}

.app-page-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-page-context {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    flex: 0 1 auto;
    min-width: 0;
}

.app-session-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    max-width: 100%;
    min-height: 44px;
    padding: .5rem .75rem;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    background-color: #eff6ff;
    color: #1e3a8a !important;
    font-size: .8125rem;
    line-height: 1;
    white-space: nowrap;
}

.app-session-chip:hover {
    background-color: #dbeafe;
    color: #1e3a8a !important;
    text-decoration: none;
}

.app-session-chip:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.app-session-chip.is-disabled {
    pointer-events: none;
    opacity: .75;
}

.app-session-label {
    color: #1f2937;
}

.app-session-year {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1e40af;
    font-weight: 600;
}

.app-page-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    color: #374151;
    font-size: .8125rem;
    line-height: 1;
    white-space: nowrap;
}

.app-page-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-height: 44px;
    color: #374151 !important;
}

.app-page-breadcrumb-link:hover {
    color: #1d4ed8 !important;
    text-decoration: none;
}

.app-page-breadcrumb-link:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.app-page-breadcrumb-active {
    overflow: hidden;
    max-width: 14rem;
    color: var(--breadcrumb-active-color, #495057);
    text-overflow: ellipsis;
}

.app-page-breadcrumb-separator {
    color: #6b7280;
    opacity: 1;
}

.badge.badge-light,
a.badge.badge-light {
    background-color: var(--badge-light-background, #f1f5f9) !important;
    box-shadow: inset 0 0 0 1px var(--badge-light-border-color, #cbd5e1);
    color: var(--badge-light-text-color, #111827) !important;
}

.badge.badge-light.border,
a.badge.badge-light.border {
    border-color: var(--badge-light-border-color, #cbd5e1) !important;
    box-shadow: none;
}

a.badge.badge-light:hover,
a.badge.badge-light:focus {
    background-color: var(--badge-light-background, #f1f5f9) !important;
    color: var(--badge-light-text-color, #111827) !important;
    filter: brightness(.97);
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .app-session-label {
        display: none;
    }

    .app-page-breadcrumb-active {
        max-width: 10rem;
    }
}

@media (max-width: 767.98px) {
    .app-page-header-compact .page-header-content.header-elements-md-inline {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: .45rem;
        min-height: auto;
        padding: .55rem .875rem;
    }

    .app-page-title-group {
        flex-basis: 100%;
        width: 100%;
    }

    .app-page-title {
        width: 100%;
        font-size: 1.1rem;
    }

    .app-page-context {
        width: 100%;
        justify-content: space-between;
        gap: .5rem;
    }

    .app-session-chip {
        min-width: 0;
        max-width: 70%;
    }

    .app-page-breadcrumb {
        justify-content: flex-end;
        max-width: 30%;
    }

    .app-page-breadcrumb-link span,
    .app-page-breadcrumb-separator,
    .app-page-breadcrumb-active {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .app-page-context {
        justify-content: flex-start;
    }

    .app-session-chip {
        max-width: 100%;
    }

    .app-page-breadcrumb {
        display: none;
    }
}

.page-header-light {
    background-color: unset;
    border-bottom: unset;
    padding: 0rem 1.25rem;
}
/*Layout customization (Override layout.min*/
.sidebar-dark {
    background-color: var(--white);
    color: var(--dark);
    box-shadow: 1px 8px 6px 5px #ccc !important;
}
.sidebar-dark .nav-sidebar .nav-link, .sidebar-light .card[class*=bg-]:not(.bg-light):not(.bg-white):not(.bg-transparent) .nav-sidebar .nav-link {
    color: var(--dark);
}
.sidebar-dark .nav-sidebar .nav-item-open>.nav-link:not(.disabled), .sidebar-dark .nav-sidebar>.nav-item-expanded:not(.nav-item-open)>.nav-link, .sidebar-light .card[class*=bg-]:not(.bg-light):not(.bg-white):not(.bg-transparent) .nav-sidebar .nav-item-open>.nav-link:not(.disabled), .sidebar-light .card[class*=bg-]:not(.bg-light):not(.bg-white):not(.bg-transparent) .nav-sidebar>.nav-item-expanded:not(.nav-item-open)>.nav-link {
    background-color: rgba(0, 0, 0, .15) !important;
    color: var(--dark);
    border-bottom: 1px solid #ccc;
}
.nav-sidebar .nav-item:not(.nav-item-divider) {
    border-bottom: 1px solid #ccc;
}
.sidebar .nav .nav-item .nav-link i::before {
    color: #02b5cb;
}
.sidebar .nav .nav-item.active .nav-link i::before {
    color: var(--light);
}
.navbar-dark {
    box-shadow: 1px 8px 6px 5px #ccc !important;
}
.sidebar-dark .nav-sidebar .nav-link:not(.disabled):hover, .sidebar-light .card[class*=bg-]:not(.bg-light):not(.bg-white):not(.bg-transparent) .nav-sidebar .nav-link:not(.disabled):hover{
        color: #fff;
        background-color: rgb(149 158 213 / 32%);
}


/*Student Profile Tabbed Style*/
.vertical-tabs .nav-link {
    align-items: center;
    text-align: left;
    display: flex;
    gap: .5rem;
}
[dir="rtl"] .vertical-tabs .nav-link {
    text-align: right;
}
.nav-pills li.nav-item {
    margin: 0;
}
.vertical-tabs .nav-link {
    position: relative;
    border-radius: 0;
    border: none;
    background: #f8f9fa;
    margin-bottom: 2px;
    padding: 7px 12px;
}
.vertical-tabs .nav-link.active {
    background: #00bcd4;
    color: white;
}
.vertical-tabs .nav-link > i {
        align-items: center;
        color: #00bcd4;
        display: inline-flex;
        flex: 0 0 1.35rem;
        font-size: 1rem;
        height: 1.35rem;
        justify-content: center;
        line-height: 1;
        margin: 0;
        text-align: center;
        width: 1.35rem;
}
.vertical-tabs .nav-link.active > i{
    color: white;
}
[dir="ltr"] .vertical-tabs .nav-link.active::after,
[dir="rtl"] .vertical-tabs .nav-link.active::after {
    display: none;
}

.data-item {
    display: flex;
    align-items: stretch;
    margin-bottom: .35rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.data-item:last-child {
    border-bottom: 1px solid #dee2e6;
}

.data-item i {
    flex: 0 0 42px;
    width: 42px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00bcd4;
    border-right: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.data-label {
    flex: 0 1 38%;
    min-width: 0;
    padding: 9px 11px;
    font-weight: bold;
    border-right: 1px solid #dee2e6;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
}

.data-value {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    overflow-wrap: anywhere;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .data-item {
        flex-direction: column;
    }

    .data-item i {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        justify-content: flex-start;
        padding: 8px 15px;
    }

    .data-label {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        background-color: #f8f9fa;
    }

    .data-value {
        background-color: #fff;
    }
}

/* RTL specific adjustments */
[dir="rtl"] .row {
    direction: rtl;
    width: 100%;
}

[dir="rtl"] .data-item {
    direction: rtl;
}

[dir="rtl"] .data-item i {
    border-right: none;
    border-left: 1px solid #dee2e6;
}

[dir="rtl"] .data-label {
    border-right: none;
    border-left: 1px solid #dee2e6;
}

/* Mobile tab selector styling */
.mobile-tab-selector {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
}

.mobile-tab-selector select {
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.mobile-tab-selector select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .data-item i {
        border-right: none;
        border-left: none;
        border-bottom: 1px solid #dee2e6;
    }

    [dir="rtl"] .data-label {
        border-right: none;
        border-left: none;
        border-bottom: 1px solid #dee2e6;
    }
}
.modal-dialog.modal-lg {
    max-width: 90%;
}

.post-submit-panel {
    background: #fff;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    padding: 1rem;
    width: 100%;
}

.post-submit-summary {
    align-items: center;
    border-bottom: 1px solid #edf1f7;
    display: flex;
    gap: .75rem;
    margin-bottom: .85rem;
    padding-bottom: .85rem;
}

.post-submit-icon {
    align-items: center;
    background: #e7f8ed;
    border-radius: 50%;
    color: #259a45;
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.post-submit-title {
    color: #172033;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.post-submit-subtitle {
    color: #64748b;
    font-size: .85rem;
    margin: .15rem 0 0;
}

.post-submit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.post-submit-actions .btn {
    align-items: center;
    border-radius: 7px;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 600;
    gap: .4rem;
    justify-content: center;
    margin: 0 !important;
    min-height: 42px;
    padding: .55rem .85rem;
}

.post-submit-actions .btn i {
    flex: 0 0 auto;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .post-submit-actions .btn {
        width: 100%;
    }
}

.profile-action-bar {
    align-items: center;
    gap: .65rem;
    justify-content: center !important;
}

.profile-action-bar > .btn {
    align-items: center;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
    display: inline-flex;
    flex: 0 1 168px;
    font-size: .95rem;
    font-weight: 700;
    gap: .55rem;
    justify-content: center;
    line-height: 1.2;
    margin: .25rem !important;
    min-height: 48px;
    min-width: 148px;
    overflow: hidden;
    padding: .65rem .95rem;
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.profile-action-bar > .btn,
.profile-action-bar > .btn:link,
.profile-action-bar > .btn:visited,
.profile-action-bar > .btn:hover,
.profile-action-bar > .btn:focus,
.profile-action-bar > .btn:active,
.profile-action-bar > .btn * {
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
}

.profile-action-bar > .btn::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.profile-action-bar > .btn:hover,
.profile-action-bar > .btn:focus {
    box-shadow: 0 12px 24px rgba(15, 23, 42, .17);
    filter: saturate(1.04);
    transform: translateY(-1px);
}

.profile-action-bar > .btn > i {
    align-items: center;
    background: rgba(255, 255, 255, .24);
    border-radius: 6px;
    display: inline-flex;
    flex: 0 0 2rem;
    font-size: 1rem;
    height: 2rem;
    justify-content: center;
    line-height: 1;
    margin: 0 !important;
    width: 2rem;
}

@media (max-width: 575.98px) {
    .profile-action-bar {
        gap: .5rem;
    }

    .profile-action-bar > .btn {
        flex: 1 1 100%;
        width: 100%;
    }
}

.modal-vertical-tabs .nav-link {
    align-items: center;
    text-align: left;
    display: flex;
    gap: .5rem;
}
[dir="rtl"] .modal-vertical-tabs .nav-link {
    text-align: right;
}
.modal-vertical-tabs .nav-link {
    position: relative;
    border-radius: 0;
    border: none;
    background: #f8f9fa;
    margin-bottom: 2px;
    padding: 7px 12px;
}
.modal-vertical-tabs .nav-link.active {
    background: #00bcd4;
    color: white;
}
[dir="ltr"] .modal-vertical-tabs .nav-link.active::after,
[dir="rtl"] .modal-vertical-tabs .nav-link.active::after {
    display: none;
}
.modal-vertical-tabs .nav-link > i {
    align-items: center;
    color: #00bcd4;
    display: inline-flex;
    flex: 0 0 1.35rem;
    font-size: 1rem;
    height: 1.35rem;
    justify-content: center;
    line-height: 1;
    margin: 0;
    text-align: center;
    width: 1.35rem;
}
.modal-vertical-tabs .nav-link.active > i {
    color: white;
}
.nav-pills {
    box-shadow: 1px 8px 6px 5px #ccc !important;
}
.student-profile-modal-content,
.employee-profile-modal-content {
    --modal-data-label-width: var(--profile-modal-data-label-width, 30%);
    --modal-data-divider-offset: var(--profile-modal-data-divider-offset, 0px);
    --modal-data-divider-color: var(--profile-modal-data-divider-color, #dee2e6);
    --modal-data-value-gap: var(--profile-modal-data-value-gap, 8px);
}
.modal-data-item {
    display: flex;
    align-items: stretch;
    margin-bottom: .35rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}
.modal-data-item:last-child {
    border-bottom: 1px solid #dee2e6;
}
.modal-data-item i {
    flex: 0 0 42px;
    width: 42px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00bcd4;
    border-right: 1px solid #dee2e6;
    background-color: #f8f9fa;
}
.modal-data-label {
    flex: 0 1 38%;
    min-width: 0;
    padding: 9px 11px;
    font-weight: bold;
    border-left: none;
    border-right: none;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    position: relative;
}
.modal-data-label::after {
    background-color: var(--modal-data-divider-color, #dee2e6);
    content: "";
    inset-block: 0;
    inset-inline-end: var(--modal-data-divider-offset, 0px);
    position: absolute;
    width: 1px;
}
[dir="rtl"] .data-label {
    border-right: none;
    border-left: 1px solid #dee2e6;
}
.modal-data-value {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: start;
    direction: inherit;
    overflow-wrap: anywhere;
}
.modal-data-item .modal-data-label {
    flex: 0 0 var(--modal-data-label-width, 30%);
    max-width: var(--modal-data-label-width, 30%);
    padding-inline: 10px 8px;
}
.modal-data-item .modal-data-value {
    flex: 1 1 0;
    padding-inline: var(--modal-data-value-gap, 8px) 11px;
}
.modal-data-value-preline {
    align-items: flex-start;
    line-height: 1.6;
    text-align: start;
    white-space: pre-line;
}
/* RTL specific adjustments */
[dir="rtl"] .modal-data-item {
    direction: rtl;
}

[dir="rtl"] .modal-data-item i {
    border-right: none;
    border-left: 1px solid #dee2e6;
}

[dir="rtl"] .modal-data-label {
    border-right: none;
    border-left: none;
}
@media (max-width: 768px) {
    .modal-data-item {
        flex-direction: column;
    }
    .modal-data-item i {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        justify-content: flex-start;
        padding: 8px 15px;
    }
    .modal-data-label {
        border-right: none;
        background-color: #f8f9fa;
    }
    .modal-data-label::after {
        inset-block: auto 0;
        inset-inline: 0;
        height: 1px;
        width: auto;
    }
    .modal-data-item .modal-data-label,
    .modal-data-item .modal-data-value {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
    }
    .modal-data-value {
        background-color: #fff;
    }
}

.profile-modal-main {
    align-items: flex-start;
}

.profile-modal-sidebar {
    align-items: flex-start;
    display: flex;
    gap: .75rem;
}

.profile-modal-photo-card {
    background: #fff;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    flex: 0 0 112px;
    padding: .7rem;
    text-align: center;
}

.profile-modal-photo {
    border: 3px solid #eef7f9;
    border-radius: 50%;
    height: 74px;
    object-fit: cover;
    width: 74px;
}

.profile-modal-photo-name {
    color: #2f3a48;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.25;
    margin-top: .55rem;
    overflow-wrap: anywhere;
}

.profile-modal-photo-meta {
    color: #6b7280;
    font-size: .74rem;
    line-height: 1.25;
    margin-top: .25rem;
    overflow-wrap: anywhere;
}

.profile-modal-tabs-card {
    flex: 1 1 auto;
    min-width: 0;
}

.profile-modal-tabs-card .nav-pills {
    background: #fff;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .1) !important;
    padding: .35rem;
}

.profile-modal-tabs-card .modal-vertical-tabs .nav-link {
    background: #f7f9fc;
    border: 1px solid #e5eaf1;
    border-radius: 6px;
    color: #4b5563;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: .35rem;
    min-height: 42px;
    padding: .55rem .65rem;
}

.profile-modal-tabs-card .modal-vertical-tabs .nav-item:last-child .nav-link {
    margin-bottom: 0;
}

.profile-modal-tabs-card .modal-vertical-tabs .nav-link:hover {
    background: #edf8fb;
    border-color: #c9eef4;
    color: #08798a;
}

.profile-modal-tabs-card .modal-vertical-tabs .nav-link.active {
    background: #00bcd4;
    border-color: #00bcd4;
    box-shadow: 0 6px 14px rgba(0, 188, 212, .26);
    color: #fff;
}

.profile-modal-tabs-card .modal-vertical-tabs .nav-link > i {
    color: #00a9bf;
}

.profile-modal-tabs-card .modal-vertical-tabs .nav-link.active > i {
    color: #fff;
}

.profile-modal-tabs-card .modal-vertical-tabs .nav-link.active::after {
    top: 50%;
    transform: translateY(-50%);
}

.modal-repeatable-record {
    border-bottom: 1px solid #e5eaf1;
    margin-bottom: .75rem;
    padding-bottom: .4rem;
}

.modal-repeatable-record:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 767.98px) {
    .profile-modal-sidebar {
        flex-direction: column;
    }

    .profile-modal-photo-card {
        align-items: center;
        display: flex;
        flex: none;
        gap: .65rem;
        text-align: left;
        width: 100%;
    }

    [dir="rtl"] .profile-modal-photo-card {
        text-align: right;
    }

    .profile-modal-photo {
        flex: 0 0 64px;
        height: 64px;
        width: 64px;
    }

    .profile-modal-tabs-card {
        width: 100%;
    }
}

 /*Fancy Form Check Style*/
  .checkbox-wrapper-12 {
    position: relative;
        padding: 0 3px;
  }
  .checkbox-wrapper-12 > svg {
    position: absolute;
    top: -130%;
    left: -170%;
    width: 110px;
    pointer-events: none;
  }
  .checkbox-wrapper-12 * {
    box-sizing: border-box;
  }
  .checkbox-wrapper-12 input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    margin: 0;
  }
  .checkbox-wrapper-12 input[type="checkbox"]:focus {
    outline: 0;
  }
  .checkbox-wrapper-12 .cbx {
    width: 24px;
    height: 24px;
    top: calc(50vh - 12px);
    left: calc(50vw - 12px);
  }
  .checkbox-wrapper-12 .cbx input {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border: 2px solid #bfbfc0;
    border-radius: 50%;
  }
  .checkbox-wrapper-12 .cbx label {
    width: 24px;
    height: 24px;
    background: none;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-filter: url("#goo-12");
    filter: url("#goo-12");
    transform: trasnlate3d(0, 0, 0);
    pointer-events: none;
  }
  .checkbox-wrapper-12 .cbx svg {
    position: absolute;
    top: 5px;
    left: 4px;
    z-index: 1;
    pointer-events: none;
  }
  .checkbox-wrapper-12 .cbx svg path {
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 19;
    stroke-dashoffset: 19;
    transition: stroke-dashoffset 0.3s ease;
    transition-delay: 0.2s;
  }
  .checkbox-wrapper-12 .cbx input:checked + label {
    animation: splash-12 0.6s ease forwards;
  }
  .checkbox-wrapper-12 .cbx input:checked + label + svg path {
    stroke-dashoffset: 0;
  }
  @-moz-keyframes splash-12 {
    40% {
      background: #866efb;
      box-shadow: 0 -18px 0 -8px #866efb, 16px -8px 0 -8px #866efb, 16px 8px 0 -8px #866efb, 0 18px 0 -8px #866efb, -16px 8px 0 -8px #866efb, -16px -8px 0 -8px #866efb;
    }
    100% {
      background: #866efb;
      box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent, 32px 16px 0 -10px transparent, 0 36px 0 -10px transparent, -32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
    }
  }
  @-webkit-keyframes splash-12 {
    40% {
      background: #866efb;
      box-shadow: 0 -18px 0 -8px #866efb, 16px -8px 0 -8px #866efb, 16px 8px 0 -8px #866efb, 0 18px 0 -8px #866efb, -16px 8px 0 -8px #866efb, -16px -8px 0 -8px #866efb;
    }
    100% {
      background: #866efb;
      box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent, 32px 16px 0 -10px transparent, 0 36px 0 -10px transparent, -32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
    }
  }
  @-o-keyframes splash-12 {
    40% {
      background: #866efb;
      box-shadow: 0 -18px 0 -8px #866efb, 16px -8px 0 -8px #866efb, 16px 8px 0 -8px #866efb, 0 18px 0 -8px #866efb, -16px 8px 0 -8px #866efb, -16px -8px 0 -8px #866efb;
    }
    100% {
      background: #866efb;
      box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent, 32px 16px 0 -10px transparent, 0 36px 0 -10px transparent, -32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
    }
  }
  @keyframes splash-12 {
    40% {
      background: #866efb;
      box-shadow: 0 -18px 0 -8px #866efb, 16px -8px 0 -8px #866efb, 16px 8px 0 -8px #866efb, 0 18px 0 -8px #866efb, -16px 8px 0 -8px #866efb, -16px -8px 0 -8px #866efb;
    }
    100% {
      background: #866efb;
      box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent, 32px 16px 0 -10px transparent, 0 36px 0 -10px transparent, -32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
    }
  }

/* Dashboard Statistics Carousel */
.stats-carousel-container {
    overflow: hidden;
    position: relative;
}

.stats-carousel {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.stats-carousel-item {
    flex: 0 0 25%;
    padding: 0 4px;
    box-sizing: border-box;
}

.stats-carousel-prev,
.stats-carousel-next {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transition: all 0.3s ease;
}

.stats-carousel-prev:hover:not(:disabled),
.stats-carousel-next:hover:not(:disabled) {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: scale(1.05);
}

.stats-carousel-prev:disabled,
.stats-carousel-next:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-group-sub li.nav-item a.nav-link span {
    text-align: left;
}
.sidebar-dark .nav-sidebar .nav-link:not(.disabled):hover > i::before{
    color: #f9feff;
}
/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .stats-carousel-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 576px) {
    .stats-carousel-item {
        flex: 0 0 100%;
    }
}
.latest-activities-list .list-group-item {
    text-align: center;
}
.breadcrumb-line {
    padding: initial;
}
#sections .badge {
    font-size: 100%;
}

#sections .badge-danger {
    background-color: #d829c7;
}
#templateList .list-group .fas{
    color: #17a2b8;
}
.list-group-item-action:focus, .list-group-item-action:hover{
        border-bottom: solid 1px #ccc;
}
.list-group-item-action:hover{
        background-color: #17a2b826;
}
div#navbar-mobile {
    margin-left: unset;
}
.navbar-dark .navbar-nav-link:hover{
    background-color: rgba(0, 0, 0, .15) !important;
}
a#navbarDropdownMenuLink {
    color: var(--white) !important;
}
.table td, .table th {
    padding: .75rem 0.1rem;
}
#studentProfileModalBody .table td, #studentProfileModalBody .table th {
    padding: .75rem 1.1rem;
}
#payments-inline .table td, #payments-inline .table th {
    padding: .75rem 0.8rem;
}
.pay-now{
    width: 100%;
    display: flex;
    flex-direction: column;
}
div#gjs {
    direction: ltr;
}
.gjs-pn-panels {
    display: flex;
    justify-content: space-between;
}
.gjs-pn-buttons {
    align-items: center;
    display: flex;
    justify-content: space-between;
    flex-flow: wrap;
}
.gjs-pn-commands{
    width:auto;
}
.gjs-pn-options{
        right: 20%;
}
.gjs-pn-panel{
    padding: 0 5px !important;
}
.gjs-sm-header {
    margin-top: 55px;
}
.gjs-clm-tags{
    margin-top: 55px;
}
div.btn-group button.btn.btn-sm.btn-danger.delete-btn {
    color: #fff;
}
.owl-carousel .owl-nav button.owl-next, .owl-carousel .owl-nav button.owl-prev, .owl-carousel button.owl-dot{
    font-size: xx-large !important;
}
#manage-ts .card .header-elements-inline a.list-icons-item {
    display: none;
}

/* Card Collapse Toggle Styles */
#manage-ts .card .header-elements-inline {
    position: relative;
}

#manage-ts .card .header-elements-inline .collapse-icon {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

#manage-ts .card .header-elements-inline .collapse-icon i {
    color: white;
    font-size: 0.8rem;
}

#manage-ts .card .header-elements-inline .collapse-icon i.rotate-180 {
    transform: rotate(180deg);
}

[dir="rtl"] #manage-ts .card .header-elements-inline .collapse-icon {
    right: auto;
    left: 50px;
}
table#timetable_table td, table#timetable_table th
 {
    padding: .75rem 1.2rem;
    text-align: center;
}

/* Holiday Calendar Styles */
.holiday-event {
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.holiday-event:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: scale(1.02);
}

.fc-event.holiday-event {
    cursor: pointer;
}

.fc-content {
    padding: 2px 4px;
}

/* FullCalendar holiday cell styling */
.fc-day-number {
    font-weight: normal;
}

.fc-day-top.holiday-day {
    background-color: #ffebee;
}

/* Holiday input styling in settings */
.holiday-row {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.picker__nav--next:before {
  content: " " !important;
}
.picker__nav--prev:before {
  content: " " !important;
}

/* Holiday full cell styling - like fc-today */
.fc-holiday {
    background-color: #ffebee !important;
}

.fc-holiday .fc-day-number {
    color: #dc3545;
    font-weight: bold;
}

.fc-day-top.fc-holiday {
    background-color: #ffebee;
}

.fc-day.fc-holiday {
    background-color: #ffebee;
}

.fc-row.fc-week.fc-widget-content.fc-holiday {
    background-color: #ffebee;
}

/* Holiday tooltip styling */
.holiday-tooltip {
    text-align: center;
    padding: 5px;
}

.holiday-tooltip strong {
    color: #dc3545;
    font-size: 14px;
}

.holiday-tooltip small {
    color: #6c757d;
    display: block;
    margin-top: 3px;
}
.fc-day-grid-event {
    margin: 1px !important;
    padding: 4px 0 !important;
    font-size: 11px !important;
    text-align: center !important;
    text-wrap-mode: wrap !important;
    height: fit-content !important;
}

.latest-activities-view-all {
    align-items: center;
    color: var(--app-link-strong, #075985) !important;
    display: inline-flex;
    font-weight: 600;
    min-height: 44px;
}

.latest-activities-list .latest-activities-badge.badge-success {
    background-color: var(--app-success-strong, #166534);
    color: #fff;
}

.latest-activities-list .latest-activities-badge.badge-primary {
    background-color: var(--app-primary-action, #075985);
    color: #fff;
}

.latest-activities-list .latest-activities-badge.badge-info {
    background-color: var(--app-info-strong, #075985);
    color: #fff;
}

.latest-activities-list .latest-activities-badge.badge-warning {
    background-color: #fde68a;
    color: var(--app-warning-strong, #92400e);
}

.latest-activities-list .latest-activities-user {
    color: var(--app-link-strong, #075985) !important;
    font-weight: 600;
}

.sidebar1-user .align-self-center {
    margin-left: 0 !important;
    margin-right: 1.25rem;
}

/* Select2 inside Bootstrap modals - ensure dropdown renders above backdrop */
.select2-container--open .select2-dropdown {
    z-index: 9999 !important;
}

/* Academic workflow workspace */
.academic-workspace {
    --aw-ink: #172026;
    --aw-muted: #69767d;
    --aw-line: #dfe8e6;
    --aw-soft-line: #eef3f2;
    --aw-surface: #ffffff;
    --aw-surface-tint: #f6faf9;
    --aw-accent: #0f766e;
    --aw-accent-soft: #e4f4f1;
    --aw-blue: #2563a9;
    --aw-blue-soft: #e7f0fa;
    --aw-amber: #b7791f;
    --aw-amber-soft: #fff4dd;
    --aw-red: #b42318;
    --aw-red-soft: #fee8e6;
}

.academic-workspace .academic-shell {
    border: 1px solid var(--aw-line);
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(23, 32, 38, 0.06);
    overflow: hidden;
}

.academic-workspace .academic-shell > .card-header {
    background: linear-gradient(90deg, #f7fbfa 0%, #ffffff 70%);
    border-bottom: 1px solid var(--aw-line);
    padding: .85rem 1rem;
}

[dir="rtl"] .academic-workspace .academic-shell > .card-header,
.academic-workspace[dir="rtl"] .academic-shell > .card-header {
    background: linear-gradient(270deg, #f7fbfa 0%, #ffffff 70%);
}

.academic-workspace .card-title {
    color: var(--aw-ink);
    line-height: 1.35;
}

.academic-workspace .aw-card-body {
    background:
        linear-gradient(180deg, rgba(246, 250, 249, .8), rgba(255, 255, 255, 0) 130px),
        var(--aw-surface);
}

.academic-workspace .aw-toolbar {
    background: var(--aw-surface-tint);
    border: 1px solid var(--aw-line);
    border-radius: 6px;
    padding: .75rem;
}

.academic-workspace .aw-toolbar + .aw-toolbar,
.academic-workspace .aw-toolbar + .aw-stats-grid {
    margin-top: .75rem;
}

.academic-workspace .aw-loading + .aw-stats-grid {
    margin-top: .75rem;
}

.academic-workspace .aw-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
    gap: .55rem;
    align-items: end;
}

.academic-workspace .aw-filter-bar {
    align-items: flex-start;
    border-bottom: 1px solid var(--aw-soft-line);
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin-bottom: .7rem;
    padding-bottom: .65rem;
}

.academic-workspace .aw-filter-heading {
    min-width: 9rem;
}

.academic-workspace .aw-filter-title {
    align-items: center;
    color: var(--aw-ink);
    display: flex;
    font-size: .82rem;
    font-weight: 800;
    gap: .4rem;
    line-height: 1.25;
}

.academic-workspace .aw-filter-title i {
    color: var(--aw-accent);
}

.academic-workspace .aw-filter-subtitle,
.academic-workspace .aw-filter-empty {
    color: var(--aw-muted);
    font-size: .72rem;
    line-height: 1.35;
    margin-top: .18rem;
}

.academic-workspace .aw-filter-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: flex-end;
    min-width: 0;
}

.academic-workspace .aw-filter-chip {
    align-items: center;
    background: #fff;
    border: 1px solid #cfe0dc;
    border-radius: 5px;
    color: var(--aw-ink);
    display: inline-flex;
    gap: .35rem;
    max-width: 100%;
    padding: .25rem .45rem;
}

.academic-workspace .aw-filter-chip span {
    color: var(--aw-muted);
    font-size: .66rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.academic-workspace .aw-filter-chip strong {
    display: inline-block;
    font-size: .75rem;
    line-height: 1.1;
    max-width: 15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.academic-workspace .aw-filter {
    min-width: 0;
}

.academic-workspace .aw-filter--wide {
    grid-column: span 2;
}

.academic-workspace .aw-filter label {
    align-items: center;
    color: var(--aw-muted);
    display: flex;
    font-size: .72rem;
    font-weight: 700;
    gap: .35rem;
    line-height: 1.2;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.academic-workspace .aw-filter label i,
.academic-workspace .aw-inline-icon {
    color: var(--aw-accent);
    font-size: .85rem;
}

.academic-workspace .aw-filter .form-control,
.academic-workspace .aw-filter .btn,
.academic-workspace .aw-actions .btn {
    border-radius: 5px;
}

.academic-workspace .aw-filter .form-control {
    border-color: var(--aw-line);
    min-height: 34px;
}

.academic-workspace .aw-filter .form-control:focus {
    border-color: var(--aw-accent);
    box-shadow: 0 0 0 .13rem rgba(15, 118, 110, .12);
}

.academic-workspace .aw-actions {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    min-width: 0;
}

.academic-workspace .aw-actions .btn {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.academic-workspace .aw-help {
    background: var(--aw-accent-soft);
    border: 1px solid #c6e5df;
    border-radius: 6px;
    color: #254c45;
    padding: .65rem .75rem;
}

.academic-workspace .aw-loading {
    align-items: center;
    color: var(--aw-muted);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 700;
    gap: .4rem;
    margin-top: .45rem;
}

.academic-workspace .aw-loading::before {
    animation: aw-spin .75s linear infinite;
    border: 2px solid var(--aw-line);
    border-radius: 50%;
    border-top-color: var(--aw-accent);
    content: "";
    height: 14px;
    width: 14px;
}

@keyframes aw-spin {
    to {
        transform: rotate(360deg);
    }
}

.academic-workspace .aw-stats-grid {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.academic-workspace .aw-stat-card {
    background: var(--aw-surface);
    border: 1px solid var(--aw-line);
    border-radius: 6px;
    min-height: 68px;
    padding: .62rem .7rem;
    position: relative;
}

.academic-workspace .aw-stat-card::before {
    background: var(--aw-accent);
    border-radius: 6px 6px 0 0;
    content: "";
    height: 3px;
    inset: 0 0 auto 0;
    position: absolute;
}

.academic-workspace .aw-stat-card--blue::before {
    background: var(--aw-blue);
}

.academic-workspace .aw-stat-card--amber::before {
    background: var(--aw-amber);
}

.academic-workspace .aw-stat-card--red::before {
    background: var(--aw-red);
}

.academic-workspace .aw-stat-label {
    color: var(--aw-muted);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.25;
}

.academic-workspace .aw-stat-value {
    color: var(--aw-ink);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: .35rem;
}

.academic-workspace .aw-pill-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.academic-workspace .aw-pill {
    align-items: center;
    background: #f3f7f6;
    border: 1px solid var(--aw-line);
    border-radius: 5px;
    color: #35444b;
    display: inline-flex;
    font-size: .76rem;
    font-weight: 700;
    gap: .25rem;
    padding: .22rem .5rem;
}

.academic-workspace .aw-pill strong {
    color: var(--aw-accent);
}

.academic-workspace .aw-table-wrap {
    border-top: 1px solid var(--aw-line);
}

.academic-workspace .aw-table {
    margin-bottom: 0;
}

.academic-workspace .aw-table.table td,
.academic-workspace .aw-table.table th {
    padding: .62rem .72rem;
}

.academic-workspace .aw-table thead th {
    background: #f2f6f5;
    border-bottom: 1px solid var(--aw-line);
    color: #516068;
    font-size: .72rem;
    font-weight: 800;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    white-space: nowrap;
    z-index: 2;
}

.academic-workspace .aw-table tbody td {
    border-top-color: var(--aw-soft-line);
    vertical-align: middle;
}

.academic-workspace .aw-table tbody tr {
    transition: background-color .16s ease, box-shadow .16s ease;
}

.academic-workspace .aw-table tbody tr:hover {
    background: #f8fbfb;
    box-shadow: inset 3px 0 0 var(--aw-accent);
}

[dir="rtl"] .academic-workspace .aw-table tbody tr:hover,
.academic-workspace[dir="rtl"] .aw-table tbody tr:hover {
    box-shadow: inset -3px 0 0 var(--aw-accent);
}

.academic-workspace .aw-student-cell {
    align-items: center;
    display: flex;
    gap: .6rem;
    min-width: 180px;
}

.academic-workspace .aw-avatar {
    align-items: center;
    background: var(--aw-accent-soft);
    border: 1px solid #cbe7e2;
    border-radius: 50%;
    color: var(--aw-accent);
    display: inline-flex;
    flex: 0 0 34px;
    font-size: .95rem;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.academic-workspace img.aw-avatar {
    background: #fff;
    object-fit: cover;
    padding: 1px;
}

.academic-workspace .aw-title-line {
    color: var(--aw-ink);
    font-weight: 800;
}

.academic-workspace .aw-muted-line,
.academic-workspace .aw-route-line {
    color: var(--aw-muted);
    display: block;
    font-size: .76rem;
    line-height: 1.35;
}

.academic-workspace .aw-route-line {
    margin-top: .1rem;
}

.academic-workspace .aw-note {
    max-width: 260px;
    min-width: 180px;
    white-space: normal;
}

.academic-workspace .aw-meta-list {
    display: grid;
    gap: .28rem;
    min-width: 160px;
}

.academic-workspace .aw-meta-chip {
    background: #f4f7f8;
    border: 1px solid #e2eaec;
    border-radius: 5px;
    color: #34444c;
    display: inline-flex;
    gap: .25rem;
    padding: .18rem .45rem;
    width: max-content;
}

.academic-workspace .aw-meta-chip span {
    color: var(--aw-muted);
}

.academic-workspace .aw-action-stack {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: flex-end;
}

[dir="rtl"] .academic-workspace .aw-action-stack,
.academic-workspace[dir="rtl"] .aw-action-stack {
    justify-content: flex-start;
}

.academic-workspace .aw-action-stack .form-control {
    flex: 1 0 100%;
    max-width: 280px;
}

.academic-workspace .aw-result-count {
    color: var(--aw-muted);
    font-size: .78rem;
    font-weight: 700;
}

.academic-workspace .aw-empty-state {
    color: var(--aw-muted);
    font-weight: 700;
    padding: 2rem 1rem;
    text-align: center;
}

.academic-workspace .aw-empty-state i {
    color: var(--aw-accent);
    display: block;
    font-size: 1.7rem;
    margin-bottom: .45rem;
}

.academic-workspace .aw-export-group .btn {
    border-radius: 5px !important;
}

.academic-workspace .aw-icon-button {
    align-items: center;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.academic-workspace .aw-report-toolbar {
    align-items: end;
    display: grid;
    gap: .65rem;
    grid-template-columns: auto minmax(0, 1fr);
}

.academic-workspace .aw-report-commandbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.academic-workspace .aw-report-filter-grid {
    grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(120px, 1fr));
}

.academic-workspace .aw-report-filter-grid .aw-filter--wide,
.academic-workspace .aw-decision-bulk-grid .aw-filter--wide {
    grid-column: auto;
}

.academic-workspace .aw-decision-bulk-grid {
    align-items: end;
    display: grid;
    gap: .65rem;
    grid-template-columns: minmax(210px, .8fr) minmax(320px, 2fr);
}

.academic-workspace .aw-decision-actions {
    justify-content: flex-end;
}

[dir="rtl"] .academic-workspace .aw-decision-actions,
.academic-workspace[dir="rtl"] .aw-decision-actions {
    justify-content: flex-start;
}

.academic-workspace .aw-decision-overview {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.academic-workspace .aw-decision-overview__tile {
    background: #ffffff;
    border: 1px solid var(--aw-line);
    border-radius: 6px;
    min-height: 72px;
    padding: .62rem .72rem;
    position: relative;
}

.academic-workspace .aw-decision-overview__tile::before {
    background: var(--aw-accent);
    border-radius: 6px 6px 0 0;
    content: "";
    height: 3px;
    inset: 0 0 auto;
    position: absolute;
}

.academic-workspace .aw-decision-overview__tile--pass::before {
    background: #087f5b;
}

.academic-workspace .aw-decision-overview__tile--fail::before {
    background: var(--aw-red);
}

.academic-workspace .aw-decision-overview__tile--incomplete::before {
    background: var(--aw-amber);
}

.academic-workspace .aw-decision-overview__tile span {
    color: var(--aw-muted);
    display: block;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.academic-workspace .aw-decision-overview__tile strong {
    color: var(--aw-ink);
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: .38rem;
}

.academic-workspace .aw-decision-overview__tile small {
    color: var(--aw-muted);
    display: block;
    font-size: .72rem;
    line-height: 1.2;
    margin-top: .25rem;
}

.academic-workspace .aw-decision-table.table td,
.academic-workspace .aw-decision-table.table th {
    padding: .52rem .6rem;
}

.academic-workspace .aw-decision-table .form-control-sm {
    min-height: 32px;
}

.academic-workspace .aw-decision-table .badge {
    line-height: 1.35;
    white-space: normal;
}

.academic-workspace .aw-decision-reason-cell {
    min-width: 390px;
}

.academic-workspace .aw-rule-card {
    background: #ffffff;
    border: 1px solid var(--aw-line);
    border-radius: 6px;
    min-width: 230px;
    padding: .5rem;
}

.academic-workspace .aw-rule-card--pass {
    border-color: #b9e4d1;
    background: #f2fbf7;
}

.academic-workspace .aw-rule-card--fail {
    border-color: #ffc9c4;
    background: #fff5f4;
}

.academic-workspace .aw-rule-card--incomplete {
    border-color: #f2d7a5;
    background: #fff9ed;
}

.academic-workspace .aw-rule-card__head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: space-between;
}

.academic-workspace .aw-rule-card__summary {
    color: var(--aw-muted);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.3;
}

.academic-workspace .aw-condition-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .22rem;
    margin-top: .42rem;
}

.academic-workspace .aw-condition-chip {
    background: #ffffff;
    border: 1px solid var(--aw-line);
    border-radius: 4px;
    color: #34444c;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.2;
    padding: .18rem .36rem;
}

.academic-workspace .aw-condition-chip--pass {
    border-color: #b9e4d1;
    color: #087f5b;
}

.academic-workspace .aw-condition-chip--fail {
    border-color: #ffc9c4;
    color: var(--aw-red);
}

.academic-workspace .aw-condition-chip--incomplete,
.academic-workspace .aw-condition-chip--waived {
    border-color: #f2d7a5;
    color: var(--aw-amber);
}

.academic-workspace .aw-rule-card__subjects {
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: .35rem;
}

.academic-workspace .aw-rule-card__subjects--fail {
    color: var(--aw-red);
}

.academic-workspace .aw-rule-card__subjects--missing {
    color: var(--aw-amber);
}

.academic-workspace .aw-rule-details {
    margin-top: .4rem;
}

.academic-workspace .aw-rule-details summary {
    color: var(--aw-muted);
    cursor: pointer;
    font-size: .72rem;
    font-weight: 800;
}

.academic-workspace .aw-rule-details__list {
    display: grid;
    gap: .25rem;
    margin-top: .35rem;
}

.academic-workspace .aw-condition-trace-item {
    align-items: center;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--aw-line);
    border-radius: 4px;
    display: flex;
    font-size: .72rem;
    gap: .45rem;
    justify-content: space-between;
    line-height: 1.25;
    padding: .25rem .38rem;
}

.academic-workspace .aw-condition-trace-item strong {
    flex: 0 0 auto;
}

.academic-workspace .aw-condition-trace-item--pass strong,
.academic-workspace .aw-condition-trace-item--waived strong {
    color: #087f5b;
}

.academic-workspace .aw-condition-trace-item--fail strong {
    color: var(--aw-red);
}

.academic-workspace .aw-condition-trace-item--incomplete strong {
    color: var(--aw-amber);
}

.academic-workspace .aw-selected-outcome {
    background: #f3f7f6;
    border: 1px solid var(--aw-line);
    border-radius: 5px;
    margin-top: .35rem;
    padding: .28rem .42rem;
}

.academic-workspace .aw-selected-outcome span {
    color: var(--aw-muted);
    display: block;
    font-size: .66rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.academic-workspace .aw-selected-outcome strong {
    color: var(--aw-ink);
    display: block;
    font-size: .78rem;
    line-height: 1.2;
    margin-top: .1rem;
}

.academic-workspace .aw-checkout-panel {
    background: #f8fbfb;
    border: 1px solid var(--aw-line);
    border-radius: 6px;
    padding: .48rem;
}

.academic-workspace .aw-checkout-grid {
    align-items: end;
    display: grid;
    gap: .4rem .5rem;
    grid-template-columns: minmax(150px, 1fr) minmax(120px, .58fr);
}

.academic-workspace .aw-compact-field {
    min-width: 0;
}

.academic-workspace .aw-compact-field--full {
    grid-column: 1 / -1;
}

.academic-workspace .aw-compact-field label {
    color: var(--aw-muted);
    display: block;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: .18rem;
}

.academic-workspace .aw-compact-field textarea {
    min-height: 34px;
    resize: vertical;
}

.academic-workspace .aw-compact-toggle {
    align-items: center;
    align-self: end;
    background: #fff;
    border: 1px solid var(--aw-line);
    border-radius: 5px;
    color: var(--aw-ink);
    cursor: pointer;
    display: flex;
    font-size: .76rem;
    font-weight: 700;
    gap: .4rem;
    line-height: 1.25;
    margin: 0;
    min-height: 32px;
    padding: .35rem .5rem;
}

.academic-workspace .aw-compact-toggle input {
    flex: 0 0 auto;
    margin: 0;
    position: static;
}

.academic-workspace .aw-file-input {
    border: 1px dashed var(--aw-line);
    border-radius: 5px;
    font-size: .76rem;
    padding: .28rem .35rem;
    width: 100%;
}

.academic-workspace .aw-checkout-extra {
    grid-column: 1 / -1;
}

.academic-workspace .aw-checkout-extra summary {
    align-items: center;
    background: #fff;
    border: 1px solid var(--aw-line);
    border-radius: 5px;
    color: var(--aw-muted);
    cursor: pointer;
    display: flex;
    font-size: .72rem;
    font-weight: 800;
    gap: .35rem;
    line-height: 1.25;
    padding: .32rem .48rem;
}

.academic-workspace .aw-checkout-extra summary::marker {
    color: var(--aw-accent);
}

.academic-workspace .aw-checkout-extra summary i {
    color: var(--aw-accent);
    font-size: .82rem;
}

.academic-workspace .aw-checkout-extra-grid {
    display: grid;
    gap: .4rem .5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: .42rem;
}

.academic-workspace .aw-reason-input {
    min-width: 260px;
}

.academic-workspace .aw-helping-drawer {
    background: #f7faf9;
    border: 1px solid #cddbd6;
    border-radius: 6px;
    padding: .75rem;
}

.academic-workspace .aw-helping-drawer__head {
    align-items: flex-start;
    border-bottom: 1px solid #dde8e4;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin-bottom: .75rem;
    padding-bottom: .65rem;
}

.academic-workspace .aw-helping-drawer__title {
    align-items: center;
    color: var(--aw-ink);
    display: flex;
    font-size: .95rem;
    font-weight: 800;
    gap: .4rem;
    line-height: 1.25;
}

.academic-workspace .aw-helping-drawer__title i {
    color: var(--aw-amber);
}

.academic-workspace .aw-helping-drawer__hint {
    color: var(--aw-muted);
    font-size: .76rem;
    line-height: 1.35;
    margin-top: .16rem;
}

.academic-workspace .aw-inline-badge-button {
    cursor: pointer;
    text-align: inherit;
}

.academic-workspace .aw-helping-row-action {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .18rem;
    text-align: inherit;
}

.academic-workspace .aw-modal-backdrop {
    align-items: center;
    background: rgba(18, 30, 42, .52);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1060;
}

.academic-workspace .aw-helping-modal {
    background: #f8faf9;
    border: 1px solid #d5e0dc;
    border-radius: 8px;
    box-shadow: 0 24px 58px rgba(15, 23, 42, .26);
    max-height: calc(100vh - 2rem);
    max-width: 1120px;
    overflow: hidden;
    width: min(1120px, 100%);
}

.academic-workspace .aw-helping-modal__head {
    align-items: flex-start;
    background: #ffffff;
    border-bottom: 1px solid #dce6e2;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: .85rem 1rem;
}

.academic-workspace .aw-helping-modal__title {
    align-items: center;
    color: var(--aw-ink);
    display: flex;
    font-size: 1rem;
    font-weight: 800;
    gap: .45rem;
    line-height: 1.25;
}

.academic-workspace .aw-helping-modal__title i {
    color: var(--aw-amber);
}

.academic-workspace .aw-helping-modal__hint {
    color: var(--aw-muted);
    font-size: .76rem;
    line-height: 1.35;
    margin-top: .16rem;
}

.academic-workspace .aw-helping-modal__student {
    align-items: center;
    background: #fff8e9;
    border-bottom: 1px solid #ead9b7;
    display: flex;
    gap: .65rem;
    padding: .68rem 1rem;
}

.academic-workspace .aw-helping-modal__student strong,
.academic-workspace .aw-helping-modal__student span {
    display: block;
    line-height: 1.25;
}

.academic-workspace .aw-helping-modal__student span {
    color: var(--aw-muted);
    font-size: .75rem;
    margin-top: .12rem;
}

.academic-workspace .aw-helping-modal__body {
    max-height: calc(100vh - 12rem);
    overflow: auto;
    padding: .85rem 1rem 1rem;
}

.academic-workspace .aw-helping-toolbar {
    background: #fbfcfd;
}

.academic-workspace .aw-scope-lock {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.academic-workspace .aw-scope-lock > div,
.academic-workspace .aw-helping-config-card > div,
.academic-workspace .aw-helping-entry-summary {
    background: #ffffff;
    border: 1px solid var(--aw-line);
    border-radius: 6px;
    padding: .5rem .62rem;
}

.academic-workspace .aw-scope-lock span,
.academic-workspace .aw-helping-config-card span,
.academic-workspace .aw-helping-entry-summary span,
.academic-workspace .aw-helping-entry-summary small {
    color: var(--aw-muted);
    display: block;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.academic-workspace .aw-scope-lock strong,
.academic-workspace .aw-helping-config-card strong,
.academic-workspace .aw-helping-entry-summary strong {
    color: var(--aw-ink);
    display: block;
    font-size: .86rem;
    line-height: 1.25;
    margin-top: .18rem;
}

.academic-workspace .aw-helping-config-card {
    display: grid;
    gap: .5rem;
    grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(120px, 1fr));
    margin-bottom: .75rem;
}

.academic-workspace .aw-helping-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.academic-workspace .aw-helping-filter-row .btn {
    border-radius: 5px;
    font-weight: 700;
    min-height: 30px;
}

.academic-workspace--helping-marks-allocation .helping-marks-input-grid {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
}

.academic-workspace--helping-marks-allocation .helping-marks-input-grid label {
    margin-bottom: 0;
}

.academic-workspace--helping-marks-allocation .helping-marks-input-grid span,
.academic-workspace--helping-marks-allocation td label {
    color: var(--aw-muted);
    display: block;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: .2rem;
}

.academic-workspace .aw-helping-entry-summary {
    align-items: center;
    display: grid;
    gap: .25rem .55rem;
    grid-template-columns: minmax(110px, 1fr) auto;
    margin: .5rem 0;
}

.academic-workspace .aw-helping-entry-summary strong {
    font-size: 1rem;
    margin-top: 0;
    text-align: end;
}

.academic-workspace .aw-helping-entry-summary small {
    grid-column: 1 / -1;
    text-transform: none;
}

.academic-workspace .aw-helping-allocation-card {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: .75rem;
}

.academic-workspace .aw-helping-allocation-card span {
    color: #9a3412;
    display: block;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: .15rem;
    text-transform: uppercase;
}

.academic-workspace .aw-helping-allocation-card strong {
    color: var(--aw-ink);
    display: block;
    font-size: .9rem;
    margin-bottom: .5rem;
}

.academic-workspace .badge {
    border-radius: 5px;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .academic-workspace .aw-decision-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .academic-workspace .aw-decision-bulk-grid,
    .academic-workspace .aw-checkout-grid,
    .academic-workspace .aw-checkout-extra-grid,
    .academic-workspace .aw-helping-config-card,
    .academic-workspace .aw-scope-lock {
        grid-template-columns: 1fr;
    }

    .academic-workspace .aw-decision-reason-cell {
        min-width: 320px;
    }

    .academic-workspace .aw-decision-actions {
        justify-content: stretch;
    }

    .academic-workspace .aw-filter-bar {
        flex-direction: column;
    }

    .academic-workspace .aw-filter-chip-row {
        justify-content: flex-start;
    }

    .academic-workspace .aw-helping-drawer__head {
        display: grid;
    }

    .academic-workspace .aw-helping-modal {
        max-height: calc(100vh - 1rem);
    }

    .academic-workspace .aw-helping-modal__head {
        display: grid;
    }

    .academic-workspace .aw-helping-modal__body {
        max-height: calc(100vh - 13rem);
    }
}

@media (max-width: 575.98px) {
    .academic-workspace .aw-decision-overview {
        grid-template-columns: 1fr;
    }

    .academic-workspace .aw-filter--wide {
        grid-column: auto;
    }

    .academic-workspace .academic-shell > .card-header {
        align-items: flex-start;
        gap: .5rem;
    }

    .academic-workspace .aw-action-stack {
        justify-content: stretch;
    }

    .academic-workspace .aw-action-stack .btn,
    .academic-workspace .aw-actions .btn {
        flex: 1 1 auto;
    }

    .academic-workspace .aw-report-toolbar {
        grid-template-columns: 1fr;
    }

    .academic-workspace .aw-report-commandbar {
        justify-content: flex-start;
    }
}

.academic-rules-page .rules-overview {
    border: 1px solid #d7e1da;
    background: linear-gradient(135deg, #f8fbf9 0%, #eef5f1 100%);
    border-radius: 6px;
    padding: 1.25rem;
}

.academic-rules-page .rules-overview-title {
    color: #21483c;
    letter-spacing: 0;
}

.academic-rules-page .rule-priority-strip {
    display: grid;
    gap: .5rem;
    min-width: 280px;
}

.academic-rules-page .rule-priority-item {
    align-items: center;
    background: rgba(255, 255, 255, .84);
    border: 1px solid rgba(47, 125, 99, .16);
    border-radius: 6px;
    display: flex;
    gap: .625rem;
    padding: .625rem .75rem;
}

.academic-rules-page .rule-priority-number {
    align-items: center;
    background: #2f7d63;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 700;
    height: 1.65rem;
    justify-content: center;
    width: 1.65rem;
}

.academic-rules-page .rule-card .card-header {
    border-bottom-color: #e8eee9;
}

.academic-rules-page .rule-summary-cell {
    color: #33443d;
    line-height: 1.45;
    min-width: 260px;
}

.academic-rules-page .rule-note-cell {
    min-width: 340px;
}

.academic-rules-page .rule-help-box {
    background: #f8faf8;
    border: 1px solid #e1e8e3;
    border-radius: 6px;
    color: #4c5c54;
    padding: .75rem .9rem;
}

.academic-rules-page .input-group-text {
    justify-content: center;
    min-width: 3rem;
}

@media (max-width: 991.98px) {
    .academic-rules-page .rule-priority-strip {
        min-width: 0;
    }
}

.sync-console {
    --sync-ink: #172026;
    --sync-muted: #64727a;
    --sync-line: #dce5e8;
    --sync-soft-line: #edf3f5;
    --sync-surface: #ffffff;
    --sync-tint: #f7fafb;
    --sync-info: #0f6f85;
    --sync-success: #237a57;
    --sync-warning: #9a5b13;
    color: var(--sync-ink);
}

.sync-readiness,
.sync-section,
.sync-action-bar {
    background: var(--sync-surface);
    border: 1px solid var(--sync-line);
    border-radius: 8px;
}

.sync-readiness {
    align-items: flex-start;
    display: flex;
    gap: .85rem;
    justify-content: space-between;
    margin-bottom: .75rem;
    padding: .85rem;
}

.sync-readiness--success {
    background: #f3fbf7;
    border-color: #bfe5d1;
}

.sync-readiness--info {
    background: #f2f9fb;
    border-color: #b9dfe8;
}

.sync-readiness--warning {
    background: #fff8ea;
    border-color: #efd39f;
}

.sync-readiness--secondary,
.sync-readiness--dark {
    background: #f7f8fa;
    border-color: #d9dee5;
}

.sync-readiness__main {
    min-width: 0;
}

.sync-readiness__main h6,
.sync-section__header h6 {
    color: var(--sync-ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.sync-readiness__meta {
    flex: 0 0 auto;
    text-align: right;
}

.sync-metric-grid {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.sync-metric {
    background: var(--sync-tint);
    border: 1px solid var(--sync-line);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    min-height: 78px;
    padding: .65rem .75rem;
}

.sync-metric__label,
.sync-metric span:last-child,
.sync-section__header p,
.sync-definition-list dt {
    color: var(--sync-muted);
    font-size: .8125rem;
}

.sync-metric strong {
    color: var(--sync-ink);
    font-size: 1.35rem;
    line-height: 1.15;
    margin: .1rem 0;
}

.sync-metric__text {
    font-size: 1rem !important;
    line-height: 1.3 !important;
}

.sync-action-bar {
    align-items: center;
    display: flex;
    gap: .85rem;
    justify-content: space-between;
    padding: .75rem .85rem;
}

.sync-action-bar__controls,
.sync-row-actions,
.sync-capture-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.sync-action-bar__controls form,
.sync-row-actions form {
    margin: 0;
}

.sync-section {
    padding: .85rem;
}

.sync-section__header {
    align-items: flex-start;
    border-bottom: 1px solid var(--sync-soft-line);
    display: flex;
    gap: .65rem;
    justify-content: space-between;
    margin: -.85rem -.85rem .75rem;
    padding: .75rem .85rem;
}

.sync-section__header p {
    margin: .2rem 0 0;
}

.sync-table th {
    border-top: 0;
    color: var(--sync-muted);
    font-size: .8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.sync-table td {
    vertical-align: middle;
}

.sync-definition-list {
    display: grid;
    gap: .7rem 1rem;
    grid-template-columns: minmax(90px, auto) 1fr;
}

.sync-definition-list dt,
.sync-definition-list dd {
    margin: 0;
}

.sync-conflict-list,
.sync-audit-list,
.sync-file-list {
    display: grid;
    gap: .5rem;
}

.sync-conflict,
.sync-audit,
.sync-file,
.sync-empty,
.sync-inline-notice,
.sync-inline-help {
    background: var(--sync-tint);
    border: 1px solid var(--sync-soft-line);
    border-radius: 6px;
    padding: .6rem .7rem;
}

.sync-inline-notice {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.sync-inline-help {
    color: var(--sync-muted);
}

.sync-conflict {
    align-items: flex-start;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.sync-empty {
    color: var(--sync-muted);
}

.sync-capture-form .form-control {
    max-width: 260px;
}

.sync-detail-tabs {
    align-items: center;
    border-bottom-color: var(--sync-line);
    display: flex;
    gap: .25rem;
}

.sync-detail-tabs .nav-link {
    align-items: center;
    border-radius: 6px 6px 0 0;
    color: var(--sync-muted);
    display: inline-flex;
    gap: .2rem;
    min-height: 40px;
}

.sync-detail-tabs .nav-link.active {
    color: var(--sync-ink);
    font-weight: 700;
}

.sync-detail-modal-backdrop {
    background: rgba(23, 32, 38, .35);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1050;
}

.sync-detail-modal {
    background: var(--sync-surface);
    border: 1px solid var(--sync-line);
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(23, 32, 38, .2);
    left: 50%;
    max-height: min(760px, calc(100vh - 3rem));
    max-width: min(1080px, calc(100vw - 2rem));
    overflow: hidden;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 86vw;
    z-index: 1051;
}

.sync-detail-modal--wide {
    max-width: min(1180px, calc(100vw - 2rem));
}

.sync-detail-modal__header {
    align-items: flex-start;
    border-bottom: 1px solid var(--sync-soft-line);
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: .85rem 1rem;
}

.sync-detail-modal__header h6 {
    color: var(--sync-ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.sync-detail-modal__header p {
    color: var(--sync-muted);
    font-size: .8125rem;
    margin: .2rem 0 0;
}

.sync-detail-modal__body {
    display: grid;
    gap: .85rem;
    grid-template-columns: minmax(220px, 28%) 1fr;
    max-height: calc(min(760px, 100vh - 3rem) - 70px);
    overflow: auto;
    padding: 1rem;
}

.sync-detail-modal__body--single {
    display: block;
}

.sync-detail-modal__body--single .table-responsive {
    margin-top: .75rem;
}

.sync-detail-modal__meta,
.sync-detail-modal__payloads {
    display: grid;
    gap: .6rem;
}

.sync-detail-modal__meta {
    align-content: start;
}

.sync-detail-modal__payload pre {
    max-height: 520px;
    overflow: auto;
}

@media (max-width: 767.98px) {
    .sync-readiness,
    .sync-action-bar,
    .sync-conflict,
    .sync-section__header,
    .sync-detail-modal__header {
        display: block;
    }

    .sync-readiness__meta {
        margin-top: .75rem;
        text-align: left;
    }

    .sync-action-bar__controls,
    .sync-row-actions,
    .sync-capture-form {
        align-items: stretch;
        margin-top: .75rem;
    }

    .sync-inline-notice {
        align-items: stretch;
        display: flex;
        flex-direction: column;
    }

    .sync-action-bar__controls .btn,
    .sync-inline-notice .btn,
    .sync-row-actions .btn,
    .sync-capture-form .btn,
    .sync-capture-form .form-control {
        width: 100%;
    }

    .sync-definition-list {
        grid-template-columns: 1fr;
    }

    .sync-detail-modal {
        bottom: .75rem;
        left: .75rem;
        max-height: calc(100vh - 1.5rem);
        max-width: none;
        right: .75rem;
        top: .75rem;
        transform: none;
        width: auto;
    }

    .sync-detail-modal__body {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 7rem);
    }
}
