:root {
    --bg-go-rugged: orange;
    --bg-eskom-blue: #003896;
    --bg-golden: #83725B;
}

a {
    text-decoration: none;
    color: var(--bg-eskom-blue);
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.center {
    text-align: center;
}

.size-up {
    font-size: 1.5rem;
}

.bg-gorugged {
    background: var(--bg-go-rugged);
}

.bg-eskom {
    background: var(--bg-eskom-blue);
}

.text-gorugged {
    color: var(--bg-go-rugged);
}

.text-eskom {
    color: var(--bg-eskom-blue);
}

.text-gorugged:hover {
    color: var(--bg-go-rugged);
    text-decoration: double;
}

.text-eskom:hover {
    color: var(--bg-eskom-blue);
    text-decoration: double;
}

.btn-primary {
    background-color: var(--bg-golden);
    border-color: var(--bg-golden);
}

.btn-outline-border{
    margin: 10px;
    font-size: 1rem;
    width: fit-content;
    height: fit-content;
    padding: 10px;
    background: #ffffff;
    color: var(--bg-golden);
    outline: none;
    border-radius: 5px;
    border: 2px solid var(--bg-golden);
    transition: 0.5s;
    box-shadow: 0 0 0 1px rgba(162, 149, 132, 0.5);
}

.form-multi-select {
    width: 100%;
    height: auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    font-size: 16px;
    color: #333;
}

.form-multi-select option:checked {
    background-color: #007bff;
    color: #fff;
}

.form-multi-select option:hover {
    background-color: #f5f5f5;
}

.form-multi-select::-ms-expand {
    display: none;
}

.form-multi-select:after {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

#modal-background {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

#modal {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 65%;
    max-width: 300px;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

#modal-background-sources {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

#modal-sources {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 1200px;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

#modal-background-sources-edit {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

#modal-sources-edit {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 1200px;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

#modal-background-destinations {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

#modal-destinations {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 1200px;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

#modal-background-destinations-edit {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

#modal-destinations-edit {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 1200px;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

#close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#close-modal:hover,
#close-modal:focus {
    color: black;
    text-decoration: none;
}

#close-modal-sources {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#close-modal-sources:hover,
#close-modal-sources:focus {
    color: black;
    text-decoration: none;
}

#close-modal-destinations {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#close-modal-destinations:hover,
#close-modal-destinations:focus {
    color: black;
    text-decoration: none;
}

#close-modal-sources-edit {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#close-modal-sources-edit:hover,
#close-modal-sources-edit:focus {
    color: black;
    text-decoration: none;
}

#close-modal-destinations-edit {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#close-modal-destinations-edit:hover,
#close-modal-destinations-edit:focus {
    color: black;
    text-decoration: none;
}

.form-block-category {
    width: 90%;
    max-width: 600px;
}

.input-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.input-container label {
    flex: 1;
}

.edit-icon {
    margin-left: 10px;
    cursor: pointer;
}

.row-sources {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #f0f0f0;
    margin-bottom: 10px;
    border-radius: 5px;
}

.row-destinations {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #f0f0f0;
    margin-bottom: 10px;
    border-radius: 5px;
}

.row-sources-edit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #f0f0f0;
    margin-bottom: 10px;
    border-radius: 5px;
}

.row-destinations-edit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #f0f0f0;
    margin-bottom: 10px;
    border-radius: 5px;
}

.plus-icon {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.row-hr-sources {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin: 20px 0;
}

.row-hr-destinations {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin: 20px 0;
}

.row-hr-sources-edit {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin: 20px 0;
}

.row-hr-destinations-edit {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin: 20px 0;
}

#add-sources-form .dynamic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

#add-sources-form .dynamic-row input {
    flex: 1;
    margin-right: 10px;
    padding: 5px;
}

#add-destinations-form .dynamic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

#add-destinations-form .dynamic-row input {
    flex: 1;
    margin-right: 10px;
    padding: 5px;
}

#add-sources-form-edit .dynamic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

#add-sources-form-edit .dynamic-row input {
    flex: 1;
    margin-right: 10px;
    padding: 5px;
}

#add-destinations-form-edit .dynamic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

#add-destinations-form-edit .dynamic-row input {
    flex: 1;
    margin-right: 10px;
    padding: 5px;
}

.remove-icon {
    font-size: 24px;
    font-weight: bold;
    color: red;
    cursor: pointer;
}

.dimmed {
    opacity: 0.01;
}

.dimmed-bright {
    opacity: 1;
}

.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal content box */
.confirm-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 300px;
    font-size: 18px;
}

/* Buttons styling */
#confirm-no {
    margin: 10px;
    padding: 10px;
    background-color: white;
    color: rgb(131, 114, 91);
    border: 2px solid rgb(131, 114, 91);  /* Specify border width and style */
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#confirm-yes {
    margin: 10px;
    padding: 10px;
    background-color: rgb(131, 114, 91);
    color: white;
    border: 2px solid rgb(131, 114, 91);  /* Specify border width and style */
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#confirm-yes:hover{
    background-color: #003896;
}

#confirm-no:hover {
    background-color: #003896;
    transition: 0.5s;
    color: white;
    border: 2px solid #003896;
}

.error {
    color: red;
}

.input-error {
    border: 1px solid red !important;
}

.datatable-pagination-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem;
    justify-content: center;
    margin-top: 20px !important;
    padding: 0;
    list-style: none;
}

.datatable-pagination-list-item {
    flex: 0 0 auto;
}

.datatable-pagination-list-item-link {
    display: inline-block;
}

/* Text truncation for table cells to prevent button overlap */
.categories-table td {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: break-word;
}

/* Specific styling for the Immediate Action column */
.categories-table td:nth-child(6) {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ensure action buttons don't get truncated */
.categories-table td:last-child {
    max-width: none;
    overflow: visible;
    white-space: normal;
    text-align: center;
    min-width: 80px;
}
