/* 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; }

/* osTicket手机端响应式适配规则 */
@media (max-width: 768px) {
    /* 整体容器适配手机宽度 */
    .container, .wrap, #header, #footer {
        width: 100% !important;
        padding: 0 10px !important;
        margin: 0 !important;
    }
    /* 工单表单适配 */
    .form-group, .form-horizontal .control-group {
        width: 100% !important;
        float: none !important;
        margin-bottom: 15px !important;
    }
    .form-control, input[type="text"], textarea, select {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px !important;
        font-size: 14px !important;
    }
    /* 按钮适配 */
    .btn, input[type="submit"], input[type="button"] {
        width: 100% !important;
        padding: 10px !important;
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    /* 导航栏适配 */
    #nav, .navbar {
        display: block !important;
        width: 100% !important;
    }
    #nav ul, .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
    }
    #nav li, .navbar-nav li {
        width: 100% !important;
        margin: 5px 0 !important;
    }
    /* 工单列表适配 */
    .ticket-list, .table {
        width: 100% !important;
        overflow-x: auto !important;
    }
    .table th, .table td {
        padding: 8px 5px !important;
        font-size: 12px !important;
    }
    /* 隐藏非必要的电脑端元素 */
    .sidebar, .stats-box, .desktop-only {
        display: none !important;
    }
}