input[type=number]:focus {
    border: 3px solid #464646;
}
input[type=text]:focus {
    border: 3px solid #464646;
}
textarea:focus {
    border: 3px solid #464646;
}
select[id=customer_bank]:focus {
    border: 3px solid #464646;
}
select[id=route]:focus {
    border: 3px solid #464646;
}
select[id=bank_district]:focus {
    border: 3px solid #464646;
}
select[id=bank_branch]:focus {
    border: 3px solid #464646;
}
select[id=bank]:focus {
    border: 3px solid #464646;
}
.is-focused {
    border: 3px solid #464646;
    border-radius: 7px;
}
select[id=uid]:focus {
    border: 3px solid #464646;
}

.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 20px;
    height: 20px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.file-zone {
    width: 100%;
    max-height: 50px;
    padding-top: 25px;
    padding-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    font-size: 20px;
    cursor: pointer;
    color: #cccccc;
    border: 4px dashed #7A7A7A;
    border-radius: 10px;
    background-color: #E9E9E9;
}
.drop-zone {
    width: 100%;
    min-height: 200px;
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    font-size: 20px;
    cursor: pointer;
    color: #cccccc;
    border: 4px dashed #7A7A7A;
    border-radius: 10px;
}
.drop-zone__thumb {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ececec;
    background-size: cover;
    background-position: center;
}
.drop-zone__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.drop-zone__thumb::after {
    content: attr(data-label);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.75);
    font-size: 14px;
    text-align: center;
    white-space: nowrap;         /* Prevents the text from wrapping to a new line */
    overflow: hidden;            /* Hides overflow content */
    text-overflow: ellipsis;     /* Adds "..." when the text overflows */
    box-sizing: border-box;      /* Ensures padding doesn't affect layout */
}
.drop-zone--over {
    border-style: solid;
}
.drop-zone__input {
    display: none;
}
.drop-zone__error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}
.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
}
.delete-btn:hover {
    background-color: darkred;
}

.multi-line-truncated-text {
    display: -webkit-box;              /* Flexbox display */
    -webkit-box-orient: vertical;      /* Set the box orientation to vertical */
    -webkit-line-clamp: 2;             /* Number of lines to show before truncating */
    overflow: hidden;                  /* Hide overflowing text */
    text-overflow: ellipsis;           /* Show ellipsis for overflow */
    /* height: calc(1.2em * 2.5);           Adjust height according to line count and line height */
     line-height: 24px;                /* Set line height */
    /* min-height: 67px;                  Set max width of the container */
}

.multi-line-truncated-text-no-ellipsis {
    display: -webkit-box;              /* Flexbox display */
    -webkit-box-orient: vertical;      /* Set the box orientation to vertical */
    /*-webkit-line-clamp: 2;              Number of lines to show before truncating */
    overflow-y: scroll;                  /* Hide overflowing text */
    height: 150px;                  /* Set max width of the container */
    word-wrap: break-word;
    white-space: normal;
}

.thumbnail-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow: auto;
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.dt-button-collection .dropdown-item:active {
    background-color: var(--bs-primary);
    color: #fff;
}
