/* =========================================================
   SAMS COMMON STYLESHEET
   Shared by: Dashboard, AssetCategory, MoveToScrap,
   BrandMaster, Employee, RaiseTicket
   (Kept 1:1 with the original Asset Category page styling
   — colors, spacing and components are NOT changed, only
   centralized here so every module looks identical.)
   ========================================================= */

body{
    background:#eef2f7;
    font-family:Segoe UI;
    overflow-x:hidden;
}

.wrapper{
    display:flex;
    min-height:100vh;
}

/* ---------- SIDEBAR ---------- */
.sidebar{
    width:240px;
    background:#2b2468;
    color:#fff;
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    z-index:1000;
}

.logo-area{
    padding:25px;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,.15);
}

.logo-area h4{
    margin:5px 0;
    font-weight:700;
}

.logo-area small{
    color:#c8c8ff;
}

.menu{
    margin:0;
    padding:0;
    list-style:none;
}

.menu li{
    border-bottom:1px solid rgba(255,255,255,.05);
}

.menu li a{
    display:block;
    padding:15px 22px;
    color:#d8d8ff;
    text-decoration:none;
    font-size:15px;
}

.menu li a i{
    width:25px;
}

.menu li:hover{
    background:#4338ca;
}

.menu .active{
    background:#4f46e5;
}

/* ---------- MAIN AREA ---------- */
.main-area{
    margin-left:240px;
    width:calc(100% - 240px);
}

.top-header{
    background:#2b2468;
    padding:18px 30px;
    color:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.15);
}

.top-header h3{
    margin:0;
    font-size:22px;
    font-weight:600;
}

.user-box{
    display:flex;
    align-items:center;
    position:relative;
}

.user-img{
    width:42px;
    height:42px;
    margin-right:10px;
    border-radius:50%;
}

.content-wrapper{
    padding:25px;
}

.page-title{
    background:#fff;
    padding:18px 20px;
    border-radius:8px;
    margin-bottom:20px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

/* ---------- BUTTONS ---------- */
.btn-purple{
    background:#4f46e5;
    color:#fff;
    border:none;
}

.btn-purple:hover{
    background:#4338ca;
    color:#fff;
}

.dashboard-panel{
    border:none;
    border-radius:8px;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
}

.table-heading{
    background:#4f46e5 !important;
    color:#fff !important;
    font-size:16px;
    font-weight:600;
    padding:15px;
}

.no-padding{
    padding:0;
}

/* ---------- TABLE ---------- */
.custom-table{
    margin:0;
}

.custom-table thead{
    background:#4f46e5;
    color:#fff;
}

.custom-table th{
    background:#4338ca;
    color:#fff;
    text-align:center;
    vertical-align:middle;
    font-size:12px;
    white-space:nowrap;
    border:1px solid #5f56ec !important;
}

.custom-table td{
    vertical-align:middle;
    text-align:center;
    font-size:12px;
    white-space:nowrap;
}

.custom-table tbody tr:hover{
    background:#f4f6ff;
}

.table-responsive{
    overflow-x:auto;
}

.search-box{
    height:38px;
    border-radius:20px;
    padding-left:18px;
}

/* ---------- STATUS BADGES ---------- */
.status-active{
    background:#28a745;
    color:#fff;
    padding:5px 14px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
    display:inline-block;
}

.status-pending{
    background:#f0ad4e;
    color:#fff;
    padding:5px 14px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
    display:inline-block;
}

.status-progress{
    background:#5bc0de;
    color:#fff;
    padding:5px 14px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
    display:inline-block;
}

.status-closed{
    background:#28a745;
    color:#fff;
    padding:5px 14px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
    display:inline-block;
}

.status-scrap{
    background:#d9534f;
    color:#fff;
    padding:5px 14px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
    display:inline-block;
}

.btn-xs{
    padding:5px 10px;
    margin:0 2px;
}

/* ---------- TOOLBAR ---------- */
.toolbar{
    text-align:right;
    margin-bottom:0;
}

.toolbar .btn{
    margin-left:5px;
}

/* ---------- RIGHT SLIDE PANEL (Add Category, Add Brand, Add Employee) ---------- */
.right-panel{
    position:fixed;
    top:0;
    right:-420px;
    width:400px;
    height:100%;
    background:#fff;
    box-shadow:-5px 0 25px rgba(0,0,0,.25);
    transition:.35s;
    z-index:9999;
}

.right-panel.active{
    right:0;
}

.panel-header{
    background:#4f46e5;
    padding:18px 20px;
    color:#fff;
}

.panel-header h4{
    margin:0;
    font-weight:600;
    display:inline-block;
}

.close-panel{
    float:right;
    cursor:pointer;
    font-size:22px;
}

.panel-body{
    padding:25px;
    overflow-y:auto;
    height:calc(100% - 62px);
}

.panel-body label{
    font-weight:600;
    margin-bottom:8px;
}

.panel-body .form-control{
    height:42px;
    border-radius:6px;
}

.panel-body textarea{
    height:120px !important;
    resize:none;
}

.overlay{
    position:fixed;
    left:0;
    top:0;
    right:0;
    bottom:0;
    background:rgba(0,0,0,.35);
    display:none;
    z-index:9998;
}

.overlay.show{
    display:block;
}

/* ---------- CENTER MODAL (Add Asset, QR view, Scrap confirm, Ticket confirm) ---------- */
.modal-overlay{
    position:fixed;
    left:0;
    top:0;
    right:0;
    bottom:0;
    background:rgba(0,0,0,.45);
    display:none;
    align-items:flex-start;
    justify-content:center;
    z-index:10050;
    overflow-y:auto;
    padding:40px 15px;
}

.modal-overlay.show{
    display:flex;
}

.modal-box{
    background:#fff;
    width:100%;
    max-width:760px;
    border-radius:8px;
    box-shadow:0 10px 40px rgba(0,0,0,.3);
    overflow:hidden;
}

.modal-box.modal-sm{
    max-width:420px;
}

.modal-box .modal-head{
    background:#4f46e5;
    color:#fff;
    padding:14px 20px;
    font-size:17px;
    font-weight:600;
}

.modal-box .modal-head .close-modal{
    float:right;
    cursor:pointer;
    font-size:20px;
    line-height:1;
}

.modal-box .modal-body{
    padding:22px;
}

.modal-box .modal-body label{
    font-weight:600;
    font-size:13px;
    margin-bottom:5px;
}

.modal-box .modal-body .form-control{
    height:38px;
    border-radius:6px;
    font-size:13px;
}

.modal-box .modal-foot{
    padding:15px 22px;
    text-align:right;
    border-top:1px solid #eee;
}

/* ---------- QR MODAL ---------- */
.qr-wrap{
    text-align:center;
    padding:10px 0 5px;
}

.qr-wrap #qrcode{
    display:inline-block;
    padding:12px;
    border:1px solid #eee;
    border-radius:8px;
}

.qr-asset-no{
    font-weight:700;
    margin-top:10px;
    font-size:15px;
    color:#2b2468;
}

/* ---------- HISTORY DROPDOWN (Dashboard) ---------- */
.history-toggle{
    position:relative;
    cursor:pointer;
    margin-left:18px;
    color:#fff;
}

.history-toggle .badge-count{
    background:#d9534f;
    color:#fff;
    border-radius:50%;
    font-size:10px;
    padding:2px 5px;
    position:absolute;
    top:-6px;
    right:-8px;
}

.history-dropdown{
    position:absolute;
    right:0;
    top:38px;
    width:340px;
    background:#fff;
    color:#333;
    border-radius:8px;
    box-shadow:0 8px 25px rgba(0,0,0,.25);
    display:none;
    z-index:9997;
    max-height:340px;
    overflow-y:auto;
}

.history-dropdown.show{
    display:block;
}

.history-dropdown .hd-head{
    background:#4f46e5;
    color:#fff;
    padding:10px 15px;
    font-size:14px;
    font-weight:600;
    border-radius:8px 8px 0 0;
}

.history-item{
    padding:10px 15px;
    border-bottom:1px solid #f0f0f0;
    font-size:12px;
}

.history-item:last-child{
    border-bottom:none;
}

.history-item .hi-vendor{
    font-weight:700;
    color:#2b2468;
    display:block;
}

.history-item .hi-idle{
    color:#d9534f;
    font-size:11px;
}

/* ---------- MISC ---------- */
.checkbox-col{
    width:36px;
}

.toast-msg{
    position:fixed;
    top:20px;
    right:20px;
    background:#28a745;
    color:#fff;
    padding:12px 20px;
    border-radius:6px;
    box-shadow:0 4px 15px rgba(0,0,0,.2);
    z-index:10100;
    display:none;
    font-size:13px;
}

.toast-msg.show{
    display:block;
}
