/* Preview buttonn in PDF template editor */
.preview-button {
    margin-left: 5px;
    padding: 5px 3px 5px 3px;
    font-size: 12px;
    font-weight: bold;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #EFF2FA), color-stop(0.6, #CFE2EA), color-stop(0.97, #FFFFFE), color-stop(0.99, #ace));
    border: 1px solid #111;
    border-radius: 3px;
    background-color: #ACE;
    border: 1px solid yellowgreen;
    border-bottom: 1px solid #ace;
    color: #00529B;
    order-radius: 4px;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    white-space: nowrap;
}
.preview-button:hover, .preview-button:focus {
    cursor: pointer;
    background-color: #ACE;
    border: 1px solid yellowgreen;
}
/* PDF template editor */
.template-editor {
    width: 90%;
    height: auto;
    padding: 5px;
    margin-left: 5%;
    margin-right: 5%;
    background: #fff;
}
.template-editor .html table {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    overflow: auto;
    table-layout:fixed;
}
.template-editor .html table b,.template-editor .html table th,
.template-editor .html table td,.template-editor .html table tr,
.template-editor .html table p, .template-editor .html table span {
    font-size: 12px !important;
}
.heading-row {
    font-size: 14px;
    font-weight: bold;
}
.preview_pdf_num {
    margin-left: 5px;
}
.blink_me {
    color: red;
    font-size: 20px;
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

fieldset {
    border: 2px solid #d4d4d4;
    border-radius: 4px;
}
#autocomplete-container {
    position: relative;
}
.ui-autocomplete {
    position: absolute;
    left: 0;
    top: inherit !important;
    width: 15.5%;
    z-index: 1000;
    float: left;
    display: none;
    min-width: 160px;
    padding: 4px 0;
    margin: 0 0 10px 25px;
    list-style: none;
    background-color: #ffffff;
    border-color: #ccc;
    border-color: rgba(0, 0, 0, 0.2);
    border-style: solid;
    border-width: 1px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box;
    *border-right-width: 2px;
    *border-bottom-width: 2px;
}

.ui-menu-item > a.ui-corner-all {
    display: block;
    padding: 3px 15px;
    clear: both;
    font-weight: normal;
    line-height: 18px;
    color: #555555;
    white-space: nowrap;
    text-decoration: none;
}

.ui-state-hover, .ui-state-active {
    cursor: pointer;
    color: #ffffff !important;
    text-decoration: none;
    background-color: #0088cc;
    border-radius: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    background-image: none;
}
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    height: 70%;
    overflow: auto;
}
/* Modal Heading */
.modal-heading {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #4f5152;
    text-align: center;
    margin-bottom: 10px;
}
/* Modal body */
.modal-body {
    text-align: center;
}
/* Modal table */
.modal-table {
    color: #1f4a75;
    border-collapse: collapse;
    padding: 5px;
}
.modal-table th, .modal-table td {
    width: 22.5%;
    text-align: left;
    border: 1px solid #bbbbbb;
    font-size: 16px;
}
.modal-table th:first-child, .modal-table td:first-child {
    width: 10%;
    text-align: center;
}
.modal-table th {
    background-color: #dadada;
}
.modal-table thead th {
    position: sticky;
    top: 0;
}
.modal-table tbody td {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
.modal-table tr:hover > td:first-child {
    cursor: pointer;
    background-color: #2958d6;
}
.modal-table tr:first-child:hover > td:first-child {
    cursor: initial;
}
.modal-table tr:hover > td {
    background-color: #0A246A;
    color: #ffffff;
}

.modal-table th > input[type=text] {
    width: 99%;
}
.select-item {
    font-size: 20px;
    font-weight: bold;
    border: 1px solid grey;
    padding: 0 25% 0 25%;
    background-color: #a5a5a5;
    border-radius: 10px;
}
.select-item:hover {
    font-size: 20px;
    font-weight: bold;
}
/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
input:read-only {
    background-color: #dedede;
}
.error-input {
    border: 1px solid red !important;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}