﻿
.error-text {
    color: red;
    font-size: 13px;
    margin-top: 8px;
    text-align: left;
}

.success-text {
    color: green;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}
.btn-download-report {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0b57d0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

    .btn-download-report img {
        width: 24px;
        height: 24px;
    }

    .btn-download-report:hover {
        text-decoration: underline;
    }
.right-align {
    display: flex;
    justify-content: flex-end; 
}

/* Error Message */
.error {
    color: red;
    font-size: 13px;
    display: block;
    margin-bottom: 10px;
}

/* Success Border */
.valid {
    border: 1px solid green !important;
}

/* Error Border */
.invalid {
    border: 1px solid red !important;
}
/* VALIDATION */
.validation-msg {
    padding: 10px;
    margin: 0 0 15px;
    border-radius: 5px;
    font-weight: bold;
    width: 100%;
    text-align: center;
}

    .validation-msg.error {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    .validation-msg.success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }
/* Existing Attachment Styles */
.existing-attachment {
    background: #e8f4ff;
    border: 1px solid #0a4edb;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 10px;
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.attachment-icon {
    font-size: 18px;
}

.attachment-link {
    color: #0a4edb;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
    word-break: break-all;
}

    .attachment-link:hover {
        text-decoration: underline;
    }

.remove-attachment {
    background: #ff5b5b;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

    .remove-attachment:hover {
        background: #e04a4a;
    }

/* UPLOAD BOX */
.upload-box {
    border: 2px dashed #9cb7c3;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

    .upload-box:hover {
        border-color: #0a4edb;
        background: #f0f7ff;
    }

    .upload-box.dragover {
        border-color: #0a4edb;
        background: #e8f4ff;
    }

.upload-icon {
    font-size: 32px;
    color: #5c95ab;
    margin-bottom: 10px;
}

.upload-box p {
    color: #5c95ab;
    font-size: 13px;
    margin: 4px 0;
}

.upload-hint {
    font-size: 11px !important;
    color: #999 !important;
}

.file-name {
    padding: 8px 12px;
    background: #e8f4ff;
    border-radius: 5px;
    font-size: 12px;
    color: #0a4edb;
    margin: 10px 0;
}

.countdown {
    padding-left: 3px;
}

.upload-section {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

    .upload-section label {
        text-align: left !important;
        width: 100%;
        display: block;
    }

.delCross {
    width: 100%;
    display: flex;
}

#loader {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    display: none;
}

    #loader.active {
        display: block;
    }

.loader-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

    .loader-wrap img {
        width: 60px;
        height: 60px;
    }
span.my-btn {
    background: #447180;
}

.my-btn:hover {
    opacity: .6;
    text-decoration: none;
}

.btn:hover {
    opacity: .6;
    text-decoration: none;
}
.btnBlue:hover {
    opacity: .6;
    text-decoration: none;
}
.btnGrey:hover {
    opacity: .6;
    text-decoration: none;
}
.tablwrap div.dt-buttons {
    float: right!important;
    margin-left: 15px;
}
.tablwrap .buttons-excel {
    border: 0px !important;
    padding: 0px 0 0 30px !important;
    color: #1356da !important;
    outline: none !important;
    margin: 0px !important;
    background: url(../images/xlsx-icon.png) no-repeat 0px 0px !important;
    height: 30px;
}
table.dataTable {
    padding-top: 15px!important;
}
.attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eaf2fb;
    border: 1px solid #d6e6f8;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 8px;
}

.attachment-text {
    display: flex;
    align-items: center;
    color: #0d6efd;
    font-size: 14px;
    word-break: break-all;
}

/* Paperclip using emoji */
.paperclip::before {
    content: "📎";
    margin-right: 8px;
    font-size: 16px;
}

/* Delete button */
.attachment-delete {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff5b5b;
    color: #fff;
    text-align: center;
    line-height: 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
    flex-shrink: 0;
}

    .attachment-delete:hover {
        background: #dc3545;
        transform: scale(1.1);
    }