﻿.invalid-message {
    display: block;
    color: #dc3545;
    font-size: 80%;
}
.none{
    display:none!important;
}


/* Absolute Center Spinner */
.loading {
    position: fixed;
    z-index: 999;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

    /* Transparent Overlay */
    .loading:before {
        content: '';
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0, .8));
        background: -webkit-radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0,.8));
    }

    /* :not(:required) hides these rules from IE9 and below */
    .loading:not(:required) {
        /* hide "loading..." text */
        font: 0/0 a;
        color: transparent;
        text-shadow: none;
        background-color: transparent;
        border: 0;
    }

        .loading:not(:required):after {
            content: '';
            display: block;
            font-size: 10px;
            width: 1em;
            height: 1em;
            margin-top: -0.5em;
            -webkit-animation: spinner 150ms infinite linear;
            -moz-animation: spinner 150ms infinite linear;
            -ms-animation: spinner 150ms infinite linear;
            -o-animation: spinner 150ms infinite linear;
            animation: spinner 150ms infinite linear;
            border-radius: 0.5em;
            -webkit-box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
            box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
        }

/* Animation */

@-webkit-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-moz-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-o-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Responsive Table-to-Card Design for Brochures */

    #brochures-table thead {
        display: none; /* Hide headers */
    }

    #brochures-table,
    #brochures-table tbody,
    #brochures-table tr,
    #brochures-table td {
        display: block;
        width: 100%;
    }

        #brochures-table tr {
            margin-bottom: 1rem;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 10px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            background: #fff;
        }

        #brochures-table td {
            border: none;
            padding: 8px 5px;
        }

            /* Add labels before each field for context */
            #brochures-table td:nth-child(1)::before {
                content: "Brochure Name";
                font-weight: 600;
                display: block;
                color: #495057;
                margin-bottom: 4px;
            }

            #brochures-table td:nth-child(2)::before {
                content: "Upload File";
                font-weight: 600;
                display: block;
                color: #495057;
                margin-bottom: 4px;
            }

            #brochures-table td:nth-child(3)::before {
                content: "Link";
                font-weight: 600;
                display: block;
                color: #495057;
                margin-bottom: 4px;
            }

            #brochures-table td:nth-child(4)::before {
                content: "Action";
                font-weight: 600;
                display: block;
                color: #495057;
                margin-bottom: 4px;
            }

        /* Adjust button alignment */
        #brochures-table .btn {
            width: 100%;
        }



/* Responsive Table-to-Card Design for Brochures (Edit Page) */

    #Editbrochures-table thead {
        display: none;
    }

    #Editbrochures-table,
    #Editbrochures-table tbody,
    #Editbrochures-table tr,
    #Editbrochures-table td {
        display: block;
        width: 100%;
    }

        #Editbrochures-table tr {
            margin-bottom: 1rem;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 10px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
            background: #fff;
        }

        #Editbrochures-table td {
            border: none !important;
            padding: 8px 6px;
        }

            #Editbrochures-table td:nth-child(1)::before {
                content: "Brochure Name";
                font-weight: 600;
                display: block;
                margin-bottom: 4px;
            }

            #Editbrochures-table td:nth-child(2)::before {
                content: "Existing File";
                font-weight: 600;
                display: block;
                margin-bottom: 4px;
            }

            #Editbrochures-table td:nth-child(3)::before {
                content: "Upload New File";
                font-weight: 600;
                display: block;
                margin-bottom: 4px;
            }

            #Editbrochures-table td:nth-child(4)::before {
                content: "Link";
                font-weight: 600;
                display: block;
                margin-bottom: 4px;
            }

            #Editbrochures-table td:nth-child(5)::before {
                content: "Action";
                font-weight: 600;
                display: block;
                margin-bottom: 4px;
            }

        #Editbrochures-table img {
            max-width: 100%;
            height: auto;
        }

        #Editbrochures-table .btn {
            width: 100%;
            margin-top: 5px;
        }



/* Responsive Table-to-Card Design for Brochures (Mobile View) */
/*@media (max-width: 768px) {
    #Editbrochures-table thead {
        display: none;*/ /* Hide table header */
    /*}

    #Editbrochures-table,
    #Editbrochures-table tbody,
    #Editbrochures-table tr,
    #Editbrochures-table td {
        display: block;
        width: 100%;
    }

        #Editbrochures-table tr {
            margin-bottom: 1rem;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 10px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
            background: #fff;
        }

        #Editbrochures-table td {
            border: none !important;
            padding: 8px 6px;
        }*/

            /* Add label before each field */
            /*#Editbrochures-table td:nth-child(1)::before {
                content: "Brochure Name";
                font-weight: 600;
                display: block;
                color: #495057;
                margin-bottom: 4px;
            }

            #Editbrochures-table td:nth-child(2)::before {
                content: "Existing File";
                font-weight: 600;
                display: block;
                color: #495057;
                margin-bottom: 4px;
            }

            #Editbrochures-table td:nth-child(3)::before {
                content: "Upload New File";
                font-weight: 600;
                display: block;
                color: #495057;
                margin-bottom: 4px;
            }

            #Editbrochures-table td:nth-child(4)::before {
                content: "Link";
                font-weight: 600;
                display: block;
                color: #495057;
                margin-bottom: 4px;
            }

            #Editbrochures-table td:nth-child(5)::before {
                content: "Action";
                font-weight: 600;
                display: block;
                color: #495057;
                margin-bottom: 4px;
            }*/

        /* Make buttons and images fit mobile width */
        /*#Editbrochures-table img {
            max-width: 100%;
            height: auto;
        }

        #Editbrochures-table .btn {
            width: 100%;
            margin-top: 5px;
        }*/

        /* Slight visual separation between label and input */
        /*#Editbrochures-table input.form-control,
        #Editbrochures-table input.form-control-file {
            margin-top: 2px;
        }
}*/