:root {
    --fms-badge-text-color: white;
    --fms-badge-color: var(--dark)
}

.accordion .card-body {
    overflow: visible;
}

.active-upload {
    color: #28a745 !important; /* Bootstrap success green */
    transform: scale(1.2);
    transition: all 0.2s ease-in-out;
}

.alert-warning {
    position: sticky;
    top: 0;
}

.badge.badge-lg {
    font-size: 1rem;
    padding: 8px 10px;
    border-radius: 8px;
}

.banner {
    border-radius: 10px;
}

.btn-dark:active {
    background-color: white !important;
    color: black !important;
    border-color: black !important;
}

.btn-size {
  width: 210px;
}

.btn-size-m {
  width: 130px;
}

.btn-size-s {
  width: 115px;
}

.btn-size-xs {
  width: 50px;
}

.card {
    padding-left: var(--stripe-width);
    position: relative;
    box-sizing: border-box;
    border-radius: 10px;
}

.card-container {
    margin: 4px 0 0 0;
}

.card-details {
    margin-left: 20px;
    margin-right: 20px;
}

.card-tab {
    height: 25px;
    width: 300px;
    font-size: 14px;
    padding: 1px 0 1px 16px;
}

/* Container for checkbox and CR item title, to ensure they are on the same line */
.cr-item-container {
    display: flex; /* Make both checkbox and title align in a row */
    align-items: center; /* Vertically center the checkbox and title */
}

.cr-item-label {
    margin-left: 4px; /* Add space between checkbox and title */
}

.custom-pagination .pagination {
    background: #222; /* Dark background */
    padding: 5px 10px;
    border-radius: 8px; /* Rounded corners */
}

.custom-pagination .page-item {
    margin: 0 3px; /* Spacing between items */
}

.custom-pagination .page-link {
    color: #fff; /* White text */
    background-color: #333; /* Darker background */
    border: 1px solid #444; /* Subtle border */
    font-size: 14px; /* Smaller font */
    padding: 6px 10px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.custom-pagination .page-link:hover {
    background-color: #555; /* Slightly lighter on hover */
    border-color: #666;
    color: #f1f1f1;
}

.custom-pagination .page-item.active .page-link {
    background-color: #0d6efd; /* Bootstrap primary color */
    border-color: #0a58ca;
    color: white;
}

.custom-pagination .page-item.disabled .page-link {
    background-color: #444;
    color: #777;
    cursor: not-allowed;
}

.dashboard-control-bar {
    height: 42px;
    margin-top:8px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dashboard-tabs {
    margin-bottom: 30px;
}

.drop-zone {
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.2s ease;
}
.drop-zone.bg-light {
    background-color: #e2e6ea !important;
}

.file-upload-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.drop-zone-wrapper {
    min-width: 300px;
    max-width: 500px;
}

.form-check-label {
    font-family: inherit; /* Inherits the modal's font-family */
    font-size: inherit;   /* Matches the modal's font-size */
    margin-left: 10px;     /* Add spacing between the checkbox and label */
}

.form-check-input {
    width: 1.25rem; /* Default checkbox size */
    height: 1.25rem;
    margin-top: 0.25rem; /* Aligns with text */
    accent-color: #007bff; /* For modern browsers, match primary color */
}

.form-control:disabled {
  background-color: #f8f9fa;
  cursor: not-allowed;
}

.form-field-medium-font {
    font-size: 14px;
}

.form-group-horizontal {
    margin-bottom: 0.5rem;
}

.form-field-label {
    font-size: 14px;
}

#height::placeholder,
#height2::placeholder {
  font-size: 14px;
}


.invisible-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: 0;
}

.layout-icon i {
    font-size: 1.4rem;
    margin-right: 12px;
    cursor: pointer;
    color: #000;
    transition: color 0.2s ease;
}

.layout-icon i:last-child {
    margin-right: 0;
}

.layout-icon i.clickable:hover {
    color: #007bff;
}

.layout-icon i.no-pointer {
    cursor: default;
    color: #ccc !important; /* Greyed out */
}

.no-pointer {
    cursor: not-allowed !important;
    opacity: 0.6;
}

.rm {
    display: inline-block;
    width: var(--container-width);
    height: 38px;
    margin: 8px 10px 16px 0px;
    padding: 6px 10px 6px 10px;
    border: solid 1px grey;
    border-radius: 10px;
    position: relative; /* Needed for stripe positioning */
}

.rm-container {
    margin: 16px 15px 0 0;
    overflow-x: auto;
    white-space: nowrap; /* Keep reporting milestones in a single line */
}

.rm-entry {
    display: inline-block;
    text-align: center;
}

.rm-name {
    width: 200px;
    padding: 10px;
    position: relative; /* Needed for stripe positioning */
}

.rm-expand, .rm-collapse {
    z-index: 100; /* these must sit on top */
    position: relative;
}

.rm-expand i,
.rm-collapse i {
    display: inline-block;
    margin-bottom: 2px;
}

.rotated-label i {
    margin-right: 4px;
}

.table-scrollable-x {
    overflow-x: auto;
    width: 100%;
    background-color: white;
}

/* Sticky + rotated table layout */
.table-sticky-rotate {
    border-collapse: separate;
    border-spacing: 0;
    width: max-content;
    min-width:100%;
}

.table-sticky-rotate thead th,
.table-sticky-rotate thead th.rotate {
     /* Force border suppression */
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-inline-start: none !important;
    border-inline-end: none !important;
    border-style: none !important;
    box-shadow: none !important;
}


/* Sticky headers */
.table-sticky-rotate thead th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 5;
}

/* Rotate column headers, remove borders */
.table-sticky-rotate thead th.rotate {
    height: 140px;
    width: 90px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    padding: 0;
    text-align: left;
    vertical-align: bottom;
    white-space: nowrap;
    background-clip: padding-box;
    box-shadow: none !important;
}

.table-sticky-rotate td {
    border-left: none !important;
    border-right: none !important;
}

.table-sticky-rotate th.rotate .rotated-label {
    display: inline-block;
    transform: rotate(-45deg);
    transform-origin: bottom left;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;

    margin-left: 16px;
    margin-bottom: 10px;
}

.screen-configuration-table {
    font-size: 0.9rem;
}

.scrollable-container {
    max-height: 60vh; /* Prevent the table from overflowing */
    overflow-y: auto; /* Enables vertical scrolling for the table */
    overflow-x: auto;
    margin: 0;
    border: 0;
}

.stripe {
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Optional: Center items horizontally */

    position: absolute;
    top: 0;
    left: 0;
    width: var(--stripe-width);
    height: 100%;

    border-top-left-radius: max(0px, calc(var(--card-border-radius, 10px) - var(--card-border-width, 0px)));
    border-bottom-left-radius: max(0px, calc(var(--card-border-radius, 10px) - var(--card-border-width, 0px)));
}

.styling-icon {
    font-size: 1rem;
    cursor: pointer;
}

.styling-mode {
    display: flex;
    justify-content: center;  /* Centers horizontally */
    align-items: center;  /* Centers vertically */
    font-size: 15px;
    height: 90%;
    padding: 8px 0;
}

.submit-field {
  margin-top:30px;
}

.table-footnote {
    font-size: 13px;
}

.textarea-mimic {
    background-color: #fff;
    height: auto;
    min-height: 6em;  /* approx 4 rows */
    overflow-y: auto;
    white-space: pre-wrap;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    resize: none;   /* Prevent resize icon (like textarea) */
}


.td-small-font {
    font-size: 12px;
}
