/* ==========================================================
   公司管理弹窗样式
   Bootstrap 2.3.x 兼容
   ========================================================== */

body #company-modal.modal {
    width: 820px;
    margin-left: -410px;
    top: 10%;
    max-height: 80%;
    overflow: hidden;
}

#company-modal .modal-header {
    background: #f5f5f5;
    background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#e8e8e8));
    background: -webkit-linear-gradient(top, #ffffff 0%, #e8e8e8 100%);
    background: -moz-linear-gradient(top, #ffffff 0%, #e8e8e8 100%);
    background: -ms-linear-gradient(top, #ffffff 0%, #e8e8e8 100%);
    background: -o-linear-gradient(top, #ffffff 0%, #e8e8e8 100%);
    background: linear-gradient(to bottom, #ffffff 0%, #e8e8e8 100%);
    border-bottom: 1px solid #ccc;
    padding: 8px 15px;
    cursor: move;
}

#company-modal .modal-header h3 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 24px;
    text-shadow: 0 1px 0 #fff;
}

#company-modal .modal-header h3 i {
    color: #0088cc;
    margin-right: 6px;
}

#company-modal .modal-header .close {
    margin-top: 2px;
    font-size: 20px;
    line-height: 20px;
    opacity: 0.4;
    filter: alpha(opacity=40);
}

#company-modal .modal-header .close:hover {
    opacity: 0.8;
    filter: alpha(opacity=80);
}

#company-modal .modal-body {
    max-height: none;
    padding: 15px;
    overflow-y: auto;
    max-height: 480px;
}

#company-modal .modal-footer {
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 8px 15px;
    margin-bottom: 0;
    -webkit-border-radius: 0 0 6px 6px;
    -moz-border-radius: 0 0 6px 6px;
    border-radius: 0 0 6px 6px;
}

#company-modal .modal-footer .btn {
    margin-left: 6px;
    font-size: 12px;
    padding: 4px 14px;
}

.company-form-section {
    margin-bottom: 16px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.company-form-section:last-child {
    margin-bottom: 0;
}

.company-section-title {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    line-height: 20px;
    position: relative;
}

.company-section-title i {
    color: #0088cc;
    margin-right: 5px;
}

.company-list-count {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 12px;
    font-weight: normal;
    color: #999;
}

.company-form-row {
    margin-bottom: 10px;
    min-height: 30px;
}

.company-form-row:last-child {
    margin-bottom: 0;
}

.company-form-label {
    float: left;
    width: 80px;
    text-align: right;
    padding-top: 6px;
    font-size: 12px;
    color: #555;
    line-height: 18px;
}

.company-form-control {
    margin-left: 90px;
    font-size: 12px;
}

.company-form-control input[type="text"] {
    font-size: 12px;
    padding: 4px 6px;
    height: 24px;
    line-height: 24px;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.company-form-control .input-medium {
    width: 180px;
}

.company-form-control .input-xlarge {
    width: 460px;
}

.company-form-hint {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    color: #999;
    line-height: 28px;
    vertical-align: middle;
}

.company-list-wrapper {
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    overflow: hidden;
}

.company-list-table {
    margin-bottom: 0;
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

.company-list-table thead th {
    background: #f0f0f0;
    background: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#e8e8e8));
    background: -webkit-linear-gradient(top, #f8f8f8 0%, #e8e8e8 100%);
    background: -moz-linear-gradient(top, #f8f8f8 0%, #e8e8e8 100%);
    background: -ms-linear-gradient(top, #f8f8f8 0%, #e8e8e8 100%);
    background: -o-linear-gradient(top, #f8f8f8 0%, #e8e8e8 100%);
    background: linear-gradient(to bottom, #f8f8f8 0%, #e8e8e8 100%);
    font-weight: bold;
    color: #444;
    text-shadow: 0 1px 0 #fff;
    border-bottom: 1px solid #ccc;
    padding: 7px 8px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}

.company-list-table tbody td {
    padding: 6px 8px;
    vertical-align: middle;
    font-size: 12px;
    color: #333;
    border-top: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.company-list-table tbody tr:hover td {
    background: #f0f7fd;
}

.company-list-table .col-seq {
    width: 45px;
    min-width: 45px;
}

.company-list-table .col-code {
    width: 95px;
    min-width: 95px;
}

.company-list-table .col-name {
    text-align: left;
}

.company-list-table .col-user {
    width: 75px;
    min-width: 75px;
}

.company-list-table .col-date {
    width: 95px;
    min-width: 95px;
}

.company-list-table .col-action {
    width: 125px;
    min-width: 125px;
}

.company-list-table tbody td.col-name {
    text-align: left;
}

.company-list-table .btn {
    padding: 2px 8px;
    font-size: 11px;
    margin-right: 3px;
}

.company-list-table .btn:last-child {
    margin-right: 0;
}

.company-list-table .label {
    font-size: 11px;
    padding: 2px 6px;
    font-weight: normal;
}

.company-list-loading td {
    color: #999;
    padding: 20px 8px !important;
    background: #fff !important;
}

.company-list-empty td {
    color: #999;
    padding: 20px 8px !important;
    background: #fff !important;
    font-style: italic;
}

.create-company-row {
    margin-bottom: 10px;
}

.create-company-link {
    color: #0088cc;
    font-size: 12px;
    text-decoration: none;
}

.create-company-link:hover {
    color: #005580;
    text-decoration: underline;
}

.create-company-link i {
    margin-right: 4px;
}

.company-progress-container {
    margin-top: 16px;
    padding: 12px;
    background: #f0f7fd;
    border: 1px solid #b8d6f5;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.company-progress-header {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #d9eaf7;
    line-height: 20px;
}

.company-progress-header i {
    color: #0088cc;
    margin-right: 5px;
}

.company-progress-bar-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.company-progress-bar {
    height: 20px;
    background: #e0e0e0;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #ccc;
}

.company-progress-fill {
    height: 100%;
    background: #0088cc;
    background: -webkit-gradient(linear, left top, left bottom, from(#00a8ff), to(#0066cc));
    background: -webkit-linear-gradient(top, #00a8ff 0%, #0066cc 100%);
    background: -moz-linear-gradient(top, #00a8ff 0%, #0066cc 100%);
    background: -ms-linear-gradient(top, #00a8ff 0%, #0066cc 100%);
    background: -o-linear-gradient(top, #00a8ff 0%, #0066cc 100%);
    background: linear-gradient(to bottom, #00a8ff 0%, #0066cc 100%);
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.company-progress-percent {
    position: absolute;
    right: 5px;
    top: 50%;
    margin-top: -10px;
    font-size: 12px;
    font-weight: bold;
    color: #0088cc;
}

.company-progress-details {
    font-size: 12px;
}

.company-progress-step,
.company-progress-table,
.company-progress-action {
    margin-bottom: 4px;
    line-height: 18px;
}

.company-progress-step:last-child,
.company-progress-table:last-child,
.company-progress-action:last-child {
    margin-bottom: 0;
}

.company-progress-label {
    display: inline-block;
    width: 70px;
    color: #666;
    font-weight: normal;
}

.company-progress-value {
    color: #333;
    font-weight: bold;
}

@media (max-width: 767px) {
    #company-modal {
        width: 90%;
        margin-left: -45%;
        left: 50%;
    }

    .company-form-control .input-xlarge {
        width: 100%;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .company-form-control .input-medium {
        width: 140px;
    }
}
