.datashape-title {
    color: #0b131e;
}

.datashape1 {
    color: #0b131e;
    /* margin-top:10px; */
}

/* Info Box */
.datashape-info {
    /* background-color: #f1f1f1; */
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    color: #000;
}


/* styles.css */
.dataset-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dataset-header-button {
    padding: 5px 10px;
    background: #213E71;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .dataset-header-button:hover {
        background: #0056b3;
    }

/* Scheduler Popup Styles */
.scheduler-popup-unique {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.popup-content-unique {
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    width: 800px;
    max-width: 90%;
    /* max-height: 100vh; */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: fadeInUnique 0.3s;
    display: flex;
    flex-direction: column;
}

@keyframes fadeInUnique {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-header-unique {
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .popup-header-unique h3 {
        font-weight: bold;
        color: #19376B;
        font-size: 20px;
        font-family: Arial, sans-serif;
        margin-bottom: 2px;
    }

.close-unique {
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

    .close-unique:hover {
        color: #555;
    }

.popup-body-unique {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.popup-footer-unique {
    padding: 20px 25px;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
    text-align: right;
}

.form-group-unique {
    margin-bottom: 30px;
}

    .form-group-unique label {
        display: block;
        margin-bottom: 10px;
        font-weight: 500;
        color: rgb(33, 62, 113);
        font-size: 16px;
        color: bold;
    }

    .form-group-unique input[type="text"],
    .form-group-unique input[type="email"],
    .form-group-unique input[type="datetime-local"],
    .form-group-unique input[type="time"],
    .form-group-unique select {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ced4da;
        border-radius: 6px;
        font-size: 16px;
        box-sizing: border-box;
    }

.radio-group-unique {
    display: flex;
    gap: 25px;
    margin-top: 10px;
    align-items: center;
}

.radio-option-unique {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-group-unique input[type="radio"] {
    /* width: 18px; */
    /* height: 18px; */
    margin: 0;
}

.radio-group-unique label {
    margin-bottom: 0;
    font-weight: 400;
}

.weekday-selector-unique {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.day-btn-unique {
    position: relative;
    width: 30px;
    height: 30px;
    text-align: center;
}

    .day-btn-unique input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    .day-btn-unique label {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        margin: 0;
        background-color: #f8f9fa;
        border: 1px solid #ced4da;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 14px;
    }

    .day-btn-unique input[type="checkbox"]:checked + label {
        background-color: #0d6efd;
        color: white;
        border-color: #0d6efd;
    }

/* Updated Button Styles (Smaller Size) */
.btn-unique {
    padding: 8px 16px;
    border-radius: 6px;
    /* font-size: 13px; */
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-primary-unique {
    background-color: #213E71;
    color: white;
    border: 1px solid #6c757d;
}

    .btn-primary-unique:hover {
        background-color: #0b5ed7;
    }

.btn-secondary-unique {
    background-color: #213E71;
    color: white;
    border: 1px solid #6c757d;
    margin-right: 15px;
}

    .btn-secondary-unique:hover {
        background-color: #0b5ed7;
    }

.dataset-header-container-unique {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.datashape1-unique {
    margin: 0;
    /* font-size: 1.5rem; */
}

.dataset-header-button-unique {
    padding: 8px 16px;
    background-color: #213E71;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    /* font-size: 13px; */
    font-weight: 500;
}

    .dataset-header-button-unique:hover {
        background-color: #335ca1;
    }


.scheduler-icon {
    width: 16px;
    height: 16px;
    color: white; /* Icon color matches text */
}





/* Labels */
.datashape-label {
    display: block;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px;
    margin-top: 3px;
    /* margin-left:15px ; */
}

.datashape-label1 {
    display: block;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px;
    margin-top: 3px;
    margin-left: 9px;
    color: #3E4676;
}

.datashape-label2 {
    display: block;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px;
    margin-top: 3px;
    margin-right: 10px;
    color: #3E4676;
}

.datashape-label3 {
    display: block;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px;
    margin-top: 10px;
    margin-left: 8px;
    color: #3E4676;
}

.file-format-header-container {
    margin-bottom: 20px;
}

.file-format-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
/* Inputs, Textareas, and Selects */
.datashape-input,
.datashape-textarea,
.datashape-select {
    width: 100%;
    padding: 8px;
    /* margin-top: 5px; */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Textarea Specific */
.datashape-textarea {
    height: 60px;
    resize: vertical;
}

/* Section Titles */
.datashape-section-title {
    /* margin-top: 10px; */
    font-size: 16px;
    font-weight: bold;
    color: #3E4676;
}
/* Section Titles */
.datashape-section1 {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #3E4676;
}


/* Scope Container (Dropdowns) */
.datashape-scope {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin-top: 25px;
}

/* Individual Dropdown Boxes */
.datashape-box {
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    min-width: 150px;
    flex: 1; /* Makes boxes flexible */
    text-align: center;
}

/* Context Menu Styling */
.context-menu {
    display: none;
    position: absolute;
    background-color: #f2f2f2;
    border: 2px solid #4f5a62; /* Light Blue Border */
    padding: 5px 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    min-width: 150px;
    list-style: none !important;
    border-radius: 5px;
    padding-left: 0 !important;
}

    /* Context Menu Items */
    .context-menu li {
        padding: 10px 15px;
        cursor: pointer;
        font-size: 14px;
        color: rgb(16, 15, 15); /* White Text */
        transition: background 0.3s;
    }

        /* Hover Effect */
        .context-menu li:hover {
            background-color: #3498db; /* Light Blue Hover */
        }


/* Dropdowns */
.datashape-select {
    width: 100%; /* Full width inside box */
    padding: 5px;
    font-size: 14px;
    margin-right: 40px;
    width: 200px;
}

/* Reduce Dropdown and Label Size */
.datashape-scope .datashape-label {
    font-size: 15px;
    margin-bottom: 10px;
    margin-left: 1px;
}

/* Fieldset Styling */
fieldset {
    border: 1px solid #ccc; /* Light border */
    border-radius: 5px; /* Rounded corners */
    padding: 20px; /* Inner spacing */
    margin: 20px 0; /* Spacing between fieldsets */
}

/* Container for file format options */
.file-format-container {
    display: flex; /* Flex for even spacing */
    flex-wrap: wrap; /* Allow wrapping */
    gap: 20px; /* Reduce excessive space */
    align-items: center; /* Align items */
    justify-content: flex-start; /* Align to the left */
    margin-left: 8px
}

/* Individual Option Styling */
.file-format-option {
    padding: 8px 12px; /* Adjust padding */
    color: black;
    margin: 5px 0; /* Adds vertical spacing */
    display: flex; /* Aligns radio with text */
    align-items: center;
    gap: 8px; /* Space between radio button and text */
    background-color: #f8f9fa;
    border-radius: 4px;
}

    .file-format-option:hover {
        background-color: #e9ecef;
    }

.upload-container {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.row-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.datashape-label {
    font-weight: bold;
    margin-right: 10px;
}

input[type="file"], select {
    padding: 5px;
    box-sizing: border-box;
    max-width: 100%; /* Ensures it doesn't overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /*margin-left: -4px;*/
}

.row-container {
    /* display: flex; */
    justify-content: space-between;
    gap: 20px;
}

.file-input-container1 {
    flex: 1;
}



#checkbox-container {
    /* margin-top: 15px; */
}



/* Tab Styles */
.datashapetabs-tabs {
    display: flex;
    border-bottom: 2px solid #ccc;
}

.datashapetabs-tab {
    padding: 10px 15px;
    border: none;
    background-color: #f4f4f4;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 8px;
    margin-bottom: 10px;
}



    .datashapetabs-tab.active,
    .datashapetabs-tab:hover {
        background-color: #fff;
        border-bottom: 1px solid #007bff;
        color: #000;
    }


/* Tab Content Styles */
.datashapetabs-tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
}

    .datashapetabs-tab-content.active {
        display: block;
    }
/* Wrapper for the table to make it scrollable both horizontally and vertically */
/*.table-wrapper {
    overflow: auto;*/ /* Enables both horizontal and vertical scrolling */
    /*max-height: 400px;*/ /* Adjust for vertical scroll limit */
    /*width: 100%;*/ /* Full container width */
    /*border: 1px solid #ccc;*/ /* Optional: Adds border around the table */
    /*display: block;*/ /* Allows horizontal scrolling */
/*}*/

/*table {
    width: 100%;*/ /* Table takes full width of the container */
    /*min-width: 1200px;*/ /* Set a larger minimum width for horizontal scrolling */
    /*table-layout: auto;*/ /* Allows cells to adjust size based on content */
    /*border-collapse: collapse;*/ /* Collapses borders into a single line */
/*}*/

/*th, td {
    border: 1px solid #ddd;
    padding: 8px;*/ /* Proper padding for cell content */
    /*text-align: left;
    white-space: nowrap;*/ /* Prevents text from wrapping */
/*}*/

.drag-handle {
    width: 20px; /* Set a small fixed width */
    text-align: center;
    cursor: grab; /* Use grab cursor to indicate draggable area */
    user-select: none; /* Prevent text selection */
    background-color: #f0f0f0; /* Light background for visibility */
}

    .drag-handle:active {
        cursor: grabbing; /* Change cursor when dragging */
    }

.dragging {
    opacity: 0.5;
    background-color: #f0f0f0;
}

.drop-target {
    border-top: 2px solid #007bff;
}





.form-container {
    display: flex;
    flex-wrap: nowrap; /* Ensures all elements stay in one row */
    gap: 100px; /* Adds space between columns */
    align-items: center; /* Aligns items vertically */
    justify-content: flex-start; /* Aligns items to the left */
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column; /* Keeps label above the dropdown */
    align-items: flex-start;
    min-width: 120px; /* Adjust as needed */
}

    .form-group select, .form-group input[type="text"] {
        /*width: 120px;*/
        padding: 5px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
        box-sizing: border-box;
        height: 30px;
    }

.checkbox-container div {
    margin-bottom: 10px; /* Adds space between the checkboxes */
    margin-top: 10px;
    margin-bottom: 5px;
}



.checkbox-container label {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}


.save-button1 {
    display: block;
    margin-left: auto;
    margin-right: 0;
    padding: 10px 20px;
    background-color: #0d274e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    width: 100px;
}

    .save-button1:hover {
        background-color: #005a9e;
    }

/* Style for select dropdown */
#schema-dropdown {
    width: 120px; /* Adjust width as needed */

    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: white;
    cursor: pointer;
    margin-left: 2px;
    appearance: none; /* Removes default dropdown styling */
    -webkit-appearance: none;
    -moz-appearance: none;
}

#schema-dropdown {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" fill="none"><path d="M1.41 0.295L6 4.875L10.59 0.295L12 1.705L6 7.705L0 1.705L1.41 0.295Z" fill="%23333333"/></svg>') no-repeat;
    ;
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 12px;
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    color: #666;
    margin-top: 10px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.schema-drop-zone:hover {
    border-color: #999;
}

.hidden-input {
    display: none;
}


.table-wrapper {
    margin-top: 20px;
    overflow-x: auto;
}

#schemaTable {
    width: 100%;
    border-collapse: collapse;
}

    #schemaTable th, #schemaTable td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }

    #schemaTable th {
        background-color: #f2f2f2;
    }



.scroll-container {
    width: 100%; /* Full width */
    overflow-x: auto; /* Horizontal scrolling */
}



#addRowButton {
    background-color: #3E4676; /* Green */
    color: white;
    border: none;
    padding: 10px 20px;
    /* font-size: 16px; */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
    height: 40px
}

    #addRowButton:hover {
        background-color: #005a9e;
    }

.thick-dot::before {
    content: "•"; /* Bullet character */
    font-size: 18px; /* Adjust size for thickness */
    font-weight: bold;
    margin-right: 5px; /* Space after the dot */
    vertical-align: middle; /* Align vertically */
    display: inline-block;
}

/* Style for level 0 bullet */
.bullet {
    font-size: 18px; /* Adjust size */
    font-weight: bold;
    color: black;
    margin-right: 5px;
    vertical-align: middle; /* Align vertically */
    display: inline-block;
}


.required {
    color: red; /* Only the * will be red */
    font-weight: bold;
}

.file-input-container1 {
    margin: 15px 0;
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    position: relative;
    width: 80%;
}

    .drop-zone:hover {
        border-color: #666;
    }

    .drop-zone.dragover {
        border-color: #2196F3;
        background-color: #f0f8ff;
    }

.file-name {
    display: block;
    margin-top: 10px;
    color: #666;
}

.hidden-input {
    display: none;
}

.datashape-label {
    display: block;
    margin-bottom: 5px;
}

.schema-container {
    display: flex;
    gap: 11px;
    align-items: center;
}


.schema-drop-zone {
    flex: 1;
}

.container-wrapper {
    width: 555px;
}

.container-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
    /* margin-bottom: 5px; */
}

.transaction-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-top: 15px;
}

.format-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    padding-right: 40px; /* Adjust this value to align with the HL7 button */
}

.container6 {
    background-color: #f2f2f2;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 555px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    /* margin-bottom: 20px; */
}

.transaction-text {
    color: #444;
    font-size: 16px;
    font-weight: 500;
    margin-top: 15px;
}

.button-container {
    display: flex;
    align-items: center;
}

.hl7-button {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 20px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 16px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #555;
    font-size: 16px;
}

    .action-btn i {
        font-size: 18px;
    }

.modal-footer .btn-primary {
    background-color: #0d274e;
    /* border-color: #0d6efd; */
}

.modal-footer .text-white {
    background-color: #0d274e;
    /* border-color: #0d6efd; */
}


.close-btn {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1; /* Keep above content */
}


    .close-btn:hover {
        color: #000;
        text-decoration: none;
    }



.calendar-container {
    width: 250px;
}

    .calendar-container button {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 16px;
        padding: 5px 10px;
    }

        .calendar-container button:hover {
            background-color: #f0f0f0;
            border-radius: 3px;
        }

    .calendar-container div[style*="grid"] > div:hover {
        background-color: #e0e0e0;
    }

.fake-calendar-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: white;
    cursor: pointer;
}

    .fake-calendar-input:hover {
        border-color: #aaa;
    }

/* Custom appearance for date input */
.form-group-unique input[type="date"] {
    position: relative;
    padding-right: 35px;
}

    .form-group-unique input[type="date"]::-webkit-calendar-picker-indicator {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        color: transparent;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="%23333"><path d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"/></svg>') no-repeat center;
        background-size: 16px;
        width: 25px;
        height: 25px;
        cursor: pointer;
    }

    /* Placeholder styling */
    .form-group-unique input[type="date"]:not(:focus):not(:valid)::before {
        content: attr(placeholder);
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
        pointer-events: none;
    }

    /* Hide the default value display when empty */
    .form-group-unique input[type="date"]:not(:focus):not(:valid) {
        color: transparent;
    }

    /* Focus styles */
    .form-group-unique input[type="date"]:focus {
        outline: none;
        border-color: #4CAF50;
        box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    }

.form-group-unique input[type="date"] {
    width: 100%;
    padding: 13px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #fff;
    position: relative;
}



.datascope-container {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    max-width: 100%;
    margin-bottom: 20px;
}

.datascope-title {
    color: #444;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
}

/* .datashape-label {
            font-weight: bold;
            color: #344767;
            margin-right: 10px;
            width: 120px;
        } */

.custom-select-container {
    position: relative;
    width: 230px;
    margin-right: 20px;
}

.custom-select-input {
    width: 100%;
    padding: 3px 30px 3px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" fill="none"><path d="M1.41 0.295L6 4.875L10.59 0.295L12 1.705L6 7.705L0 1.705L1.41 0.295Z" fill="%23333333"/></svg>') no-repeat;
    background-position: calc(100% - 10px) center;
    cursor: pointer;
}

    .custom-select-input:focus {
        outline: none;
        /* border-color: #80bdff; */
        /* box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); */
    }

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.custom-select-option {
    padding: 8px 10px;
    cursor: pointer;
}

    .custom-select-option:hover, .custom-select-option.highlighted {
        background-color: #f0f0f0;
    }

    .custom-select-option.selected {
        background-color: #e0e0ff;
    }

.text-input {
    width: 230px;
    padding: 3px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Specific styles for the header row checkbox */
.header-row-checkbox {
    width: 20px;
    height: 20px;
    min-width: 19px;
    min-height: 19px;
    vertical-align: middle;
    margin-right: 12px;
    /* margin-top: 4px; */
    cursor: pointer;
    accent-color: rgb(33, 62, 113);
    border-radius: 2px;
}



.related-tab-resources {
    font-family: Arial, sans-serif;
    margin: 20px 0;
}

.related-form-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* .related-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  cursor: pointer;
} */

/* .related-col-md-9 {
  flex: 0 0 75%;
  max-width: 75%;
  padding-right: 15px;
  padding-left: 15px;
} */

.related-col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 15px;
    padding-left: 15px;
}

#related-space-border {
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 50px;
    padding: 8px 12px;
    background-color: #fff;
}

.related-form-container {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.related-close-form-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    font-weight: bold;
}

    .related-close-form-btn:hover {
        color: #000;
    }

.related-d-flex {
    display: flex;
}

.related-gap-3 {
    gap: 15px;
}

.related-mt-3 {
    margin-top: 15px;
}

.related-mt-4 {
    margin-top: 20px;
}

.related-fw-bolder {
    font-weight: 700;
}

.related-custom-multi-select {
    position: relative;
    width: 100%;
}

#related-multi-select-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
}

.related-multi-select-options {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    z-index: 1000;
    margin-top: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.related-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .related-dropdown-item:hover {
        background-color: #f3f3f3;
    }

.related-add-new-option {
    color: #0066cc;
    border-bottom: 1px solid #eee;
}

.related-selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-tag {
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.related-remove-tag {
    margin-left: 5px;
    cursor: pointer;
    font-weight: bold;
}

    .related-remove-tag:hover {
        color: #cc0000;
    }

.bi {
    display: inline-block;
    margin-right: 8px;
    width: 14px;
}

.bi-plus-circle::before {
    content: "+";
}

.bi-check2::before {
    content: "?";
}


.history-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding: 20px;
    /* max-width: 1200px; */
    margin: 0 auto;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

    .history-header h3 {
        margin: 0;
        font-size: 24px;
        color: #2c3e50;
    }

.history-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.history-filter, .history-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .history-filter label, .history-search label {
        font-weight: 500;
    }

    .history-filter select {
        padding: 8px 12px;
        border-radius: 4px;
        border: 1px solid #ddd;
        background-color: white;
    }

    .history-search input {
        padding: 8px 12px;
        border-radius: 4px;
        border: 1px solid #ddd;
        min-width: 200px;
    }

    .history-search button {
        padding: 8px 12px;
        background-color: #f0f0f0;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
    }

.history-timeline-container {
    display: flex;
    gap: 30px;
}

.history-timeline {
    flex: 2;
    border-right: 1px solid #eee;
    padding-right: 20px;
    max-height: 600px;
    /* overflow-y: auto; */
}

.history-detail-view {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
}

.history-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #9a9090;
    padding-bottom: 10px;
}

    .history-detail-header h4 {
        margin: 0;
        color: #2c3e50;
    }

    .history-detail-header button {
        background: none;
        border: none;
        font-size: 18px;
        cursor: pointer;
        color: #777;
    }

.history-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #9a9090;
}

    .history-item:hover {
        background-color: #f5f5f5;
        border-color: #ddd;
    }

    .history-item.selected {
        background-color: #e6f2ff;
        border-left: 3px solid #4a90e2;
    }

.history-date {
    min-width: 120px;
    text-align: right;
    padding-right: 15px;
    color: #666;
}

    .history-date .date {
        display: block;
        font-weight: 500;
    }

    .history-date .time {
        display: block;
        font-size: 0.9em;
        color: #888;
    }

.history-details {
    flex: 1;
}

.history-action {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.history-icon {
    color: #213E71;
    font-size: 18px;
}

.history-title {
    font-weight: 500;
    color: #2c3e50;
}

.history-user {
    color: #666;
    font-size: 0.9em;
    margin-left: auto;
}

.history-description {
    color: #555;
    font-size: 0.95em;
    line-height: 1.4;
}

.detail-section {
    margin-bottom: 20px;
}

    .detail-section h5 {
        margin: 0 0 8px 0;
        color: #555;
        font-size: 0.95em;
        text-transform: uppercase;
    }

    .detail-section p {
        margin: 0;
        padding: 8px 0;
        color: #333;
    }

#detail-changes {
    background-color: white;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    white-space: pre-wrap;
    max-height: 200px;
    /* overflow-y: auto; */
}

#rollback-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

    #rollback-btn:hover {
        background-color: #ffe8a1;
    }

.history-load-more {
    text-align: center;
    margin-top: 20px;
}

.btn-primary, .btn-secondary {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.btn-primary {
    background-color: #213E71;
    color: white;
}

.btn-secondary {
    background-color: #213E71;
    color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .history-timeline-container {
        flex-direction: column;
    }

    .history-timeline {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 20px;
        max-height: none;
    }

    .history-detail-view {
        width: 100%;
    }
}

/* Unique CSS class names */
.data-spec-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: auto;
    width: 100%;
    box-sizing: border-box;
}

.data-spec-table {
    width: 100%;
    table-layout: auto; /* Changed from fixed to auto for better space distribution */
    border-collapse: collapse;
}

.data-spec-thead {
    background-color: #f2f2f2;
    color: #3E4676;
    position: sticky;
    top: 0;
}

.data-spec-th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    white-space: nowrap; /* Prevent text wrapping in headers */
}

.data-spec-td {
    padding: 10px 15px;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: top;
}

.data-spec-tr:hover {
    background-color: #f8f9fa;
}

.data-spec-drag-handle {
    cursor: move;
    text-align: center;
    width: 40px;
}

.data-spec-required {
    text-align: center;
    width: 80px;
}

.data-spec-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    background: transparent;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
}

    .data-spec-input:focus {
        outline: none;
        border-color: #3498db;
    }

.data-spec-checkbox {
    transform: scale(1.2);
    cursor: pointer;
}

/* Column width adjustments - removed fixed widths to allow natural distribution */
.data-spec-th:nth-child(2),
.data-spec-th:nth-child(3),
.data-spec-th:nth-child(4),
.data-spec-th:nth-child(5),
.data-spec-th:nth-child(7) {
    width: auto; /* Let the content determine the width */
    min-width: 100px; /* Set minimum widths as needed */
}

/* Optional: Add these if you want the table to stretch to full container width */
.data-spec-table {
    min-width: 100%;
}
