.project-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9998;
}

.project-overlay.show{
    opacity: 1;
    visibility: visible;
}

.project-sidebar{

    position: fixed;

    top: 0;
    right: -100%;

    width: 62vw;
    min-width: 850px;
    max-width: 1050px;

    height: 100vh;

    background: #fff;

    box-shadow: -5px 0 25px rgba(0,0,0,.15);

    transition: right .35s ease;

    display: flex;
    flex-direction: column;

    z-index: 9999;

}

.project-sidebar.show{

    right: 0;

}

.project-sidebar-header{

    height: 65px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 20px;

    border-bottom: 1px solid #e0e0e0;

    background: #fff;

    flex-shrink: 0;

}

.project-sidebar-title{

    font-size: 17px;
    font-weight: 600;
    color: #333;

    display: flex;
    align-items: center;
    gap: 10px;

}

.project-sidebar-title i{

    color: #153ab6;

}

.project-close{

    width: 36px;
    height: 36px;

    border: none;

    background: #f5f5f5;

    border-radius: 6px;

    cursor: pointer;

    transition: .2s;

}

.project-close:hover{

    background: #ececec;

}

.project-sidebar-body{

    flex: 1;

    overflow: auto;

    padding: 20px;

    background: #fafafa;

}
/* ========================================================================== */

.history-panel{
    background:#fff;
    border:1px solid #dcdcdc;
    border-radius:6px;
    padding:15px;
    box-shadow:0 2px 6px rgba(0,0,0,.05);
}

.history-head{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:15px;
    font-size:16px;
    font-weight:600;
    color:#333;
}

.history-head-icon i{
    color:#153ab6;
    font-size:18px;
}

.history-table-wrap{
    overflow-x:auto;
}

.history-table{
    width:100%;
    border-collapse:collapse;
}

.history-table th,
.history-table td{
    border:1px solid #e0e0e0;
    padding:10px 12px;
    font-size:14px;
    color:#4a4a4a;
    text-align:left;
    vertical-align:middle;
}

.history-table th{
    background:#f5f5f5;
    font-weight:600;
}

.history-table tbody tr:hover{
    background:#f9f9f9;
}

.history-name{
    font-weight:500;
}

.history-status{
    display:inline-block;
    padding:4px 8px;
    border-radius:12px;
    color:#fff;
    font-size:12px;
    font-weight:600;
}

.history-status-success{
    background:#16a34a;
}

.history-status-warning{
    background:#f59e0b;
}

.history-date{
    display:inline-block;
    padding:4px 8px;
    border-radius:4px;
    background:#f5f5f5;
    border:1px solid #e0e0e0;
}

.history-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border-radius:6px;
    border:1px solid #dcdcdc;
    text-decoration:none;
    transition:.15s ease;
}

.history-btn:hover{
    transform:translateY(-1px);
    background:#f0f3f8;
    border-color:#cfd6e4;
}

.history-btn i{
    font-size:14px;
}

.history-btn-download{
    background:#eef2ff;
    border-color:#d7dcff;
}

.history-btn-download i{
    color:#6366f1;
}

.history-btn-wa{
    background:#ecfdf3;
    border-color:#bbf7d0;
}

.history-btn-wa i{
    color:#16a34a;
}

.history-empty{
    padding:18px;
    text-align:center;
    background:#f8f9fa;
    border:1px solid #e0e0e0;
    border-radius:6px;
    color:#666;
}

@media (max-width: 480px){

    .project-sidebar{
        width:100%;
        min-width:100%;
        max-width:100%;
        right:-100%;
        border-radius:0;
        box-shadow:none;
    }

    .project-sidebar-header{
        height:56px;
        padding:0 14px;
    }

    .project-sidebar-title{
        font-size:15px;
        gap:8px;
    }

    .project-sidebar-title i{
        font-size:16px;
    }

    .project-close{
        width:32px;
        height:32px;
    }

    .project-sidebar-body{
        padding:12px;
    }

    .history-panel{
        padding:12px;
        border-radius:5px;
        box-shadow:none;
    }

    .history-head{
        margin-bottom:12px;
        font-size:15px;
        gap:8px;
    }

    .history-head-icon i{
        font-size:16px;
    }

    .history-table-wrap{
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
    }

    .history-table{
        min-width:760px;
    }

    .history-table th,
    .history-table td{
        padding:8px;
        font-size:12px;
        white-space:nowrap;
    }

    .history-status{
        padding:3px 7px;
        font-size:11px;
    }

    .history-date{
        padding:3px 7px;
        font-size:11px;
    }

    .history-btn{
        width:30px;
        height:30px;
    }

    .history-btn i{
        font-size:12px;
    }

    .history-empty{
        padding:14px;
        font-size:13px;
    }

}