/* Overlay */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    -webkit-transform: translate3d(0, 0, 0);
}

#loading {
    border: 1px solid #2a67ac;
    padding: 10px 10px 10px 60px;
    width: 300px;
    height: 100px;
    background: rgb(255, 255, 255) url('../images/FhHRx-Spinner.gif') 10px 50% no-repeat;
    position: fixed;
    display: none;
    z-index: 3000;
}

#loading h4 {
    margin: 3px 0 0 0;
    padding: 0;
    color: #d80;
}

.pull-right {
    float: right;
}

.non-local-image {
    display: inline-block;
    border: 3px dashed #eee;
    border-radius: 5px;
}

.non-local-image:after {
    background: url(../logo.php) center center no-repeat;
    background-size: cover;
    content: "";
    z-index: -1;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.3;
}

div.section-break {
    margin-top: 1em;
    margin-bottom: 0.5em;
    padding-top: 0.8em !important;
    border-top: 1px solid #ccc;
}

input.dp {
    width: 10em;
}

/* Custom css for datepicker */
.ui-datepicker-trigger {
    display: inline-block;
    border: 0;
    padding: 0;
    margin-left: 2px;
    position: relative;
    top: -2px;
    width: 16px;
    height: 16px;
    background: inherit;
}

.draft-saved {
    background-color: black;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px 6px;
    border-radius: 3px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    line-height: 14px;
    position: absolute;
    top: 3em;
    right: 0.5em;
}

.delete-draft:hover {
    background-color: #fc9f41 !important;
}

.notice_bar {
    margin: 0;
    padding: 5px 10px 5px 36px;
    height: 16px;
    line-height: 16px;
    border: 1px solid #0a0;
    background: url('../assets/default/images/icons/ok.png') 10px 50% no-repeat #e0ffe0;
}

.warning_bar {
    margin: 0;
    padding: 5px 10px 5px 36px;
    height: 16px;
    line-height: 16px;
    border: 1px solid #f26522;
    background: url('../assets/default/images/icons/alert.png') 10px 50% no-repeat #ffffdd;
}

.error_bar {
    margin: 0;
    padding: 5px 10px 5px 36px;
    height: 16px;
    line-height: 16px;
    border: 1px solid #a00;
    background: url('../assets/default/images/icons/error.png') 10px 50% no-repeat #fff0f0;
}

/* Modern osTicket form styling */
form {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
}

table.form_table,
table.form_table tbody,
table.form_table tr,
table.form_table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

table.form_table tr {
    margin-bottom: 20px !important;
}

label {
    display: block !important;
    margin-bottom: 8px !important;
    color: #111827 !important;
    font-weight: 500 !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 16px !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #111827 !important;
}

textarea {
    min-height: 140px !important;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: #2563EB !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25) !important;
}

input[type="submit"],
button[type="submit"] {
    background: #2563EB !important;
    color: #fff !important;
    padding: 14px 24px !important;
    border-radius: 8px !important;
    border: none !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}