body{
    background:#EEF7F3;
    font-family:"Segoe UI",Arial,sans-serif;
    color:#2F3E46;
}

/* ==========================
   Navbar
========================== */

.navbar{

    background:linear-gradient(
        90deg,
        #0A3D22 0%,      /* Xanh lá đậm */
        #0F5A35 25%,     /* Vùng tối chiếm 1/4 */
        #0B7A52 55%,
        #16A56C 80%,
        #39CC8E 100%
    ) !important;

    box-shadow:0 3px 12px rgba(0,0,0,.18);

}

.card{
    border:none;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

/* ==========================
   Sidebar
========================== */

.sidebar{

    width:210px;

    background:linear-gradient(
        90deg,
        #0A3D22 0%,
        #0B4729 18%,
        #0D5633 36%,
        #0F6841 55%,
        #137C52 72%,
        #189164 86%,
        #1FA06F 100%
    );

    box-shadow: inset -1px 0 rgba(255,255,255,.08);

    min-height:calc(100vh - 60px);

    flex-shrink:0;

    padding:20px 15px;

}

.sidebar .nav-link{

    color:#EAF8F3;

    border-radius:10px;

    padding:11px 15px;

    transition:.25s;

}

.sidebar .nav-link:hover{

    background:rgba(255,255,255,.18);

    transform:translateX(4px);

}

.sidebar .nav-link.active{

    background:rgba(255,255,255,.32);

    color:#FFFFFF;

    font-weight:700;

    border-left:4px solid #FFFFFF;

    padding-left:11px;

}

.sidebar .nav-link i{

    margin-right:10px;

    color:#D8FFF4;

}

/* ==========================
   Layout
========================== */

.app-layout{
    display:flex;
    min-height:calc(100vh - 60px);
}

/* ==========================
   Content
========================== */

.app-content{

    flex:1;

    padding:25px;

    background:#f5f6f8;

}

/* ==========================================
   Dashboard
========================================== */

.dashboard{

    position:relative;

    min-height:700px;

    overflow:hidden;

}

.dashboard-content{

    position:relative;

    z-index:3;
}

.dashboard-watermark{

    position:absolute;

    right:4%;

    bottom:28%;

    width:300px;

    text-align:right;

    z-index:2;

}

/* Logo */
.watermark-logo img{

    width:100px;

    height:auto;

    display:inline-block;

    margin-bottom:8px;      /* Trước 18px -> giảm còn 8px */

	opacity:.7;  

}

/* Version */
.watermark-version{

    margin-top:0;

    margin-bottom:4px;      /* Thêm khoảng cách nhỏ với slogan */

    font-size:15px;

    color:#8D9CAD;

    text-align:right;

}

/* Slogan */
.watermark-slogan{

    margin-top:0;

    font-size:16px;

    font-style:italic;

    color:#8D9CAD;

    white-space:nowrap;

    text-align:right;

    line-height:1.2;

}

.dashboard-overlay{

    position:absolute;

    inset:0;

    background:rgba(255,255,255,.55);

    z-index:1;

}

.dashboard-bg{

    position:absolute;

    inset:0;

    background:url("../images/dashboard-bg.jpg")
               center center
               no-repeat;

    background-size:cover;

    opacity:.35;

    z-index:0;

}


/* ==========================
   Nút tìm kiếm Dashboard
========================== */

.btn-search{

    background:#35B77C;

    border-color:#35B77C;

    color:#fff;

}

.btn-search:hover{

    background:#2FA56F;

    border-color:#2FA56F;

    color:#fff;

}

.btn-search:focus,
.btn-search:active{

    background:#289864 !important;

    border-color:#289864 !important;

    box-shadow:0 0 0 .25rem rgba(53,183,124,.25);

}

.navbar-logo{

    width:42px;

    height:42px;

    margin-right:12px;

}

.navbar-title{

    color:#FFFFFF;

    font-size:20px;

    font-weight:600;

    letter-spacing:.5px;

}

.navbar-app-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.navbar-slogan {
    margin-top: 3px;
    font-size: 0.68rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.navbar .form-control{

    border-radius:20px;

    border:none;

}

/* ==========================
   User Dropdown
========================== */

.dropdown-menu{

    border:0;

    border-radius:10px;

    box-shadow:0 8px 20px rgba(0,0,0,.15);

}

.navbar .dropdown-menu .dropdown-item{

    padding:10px 18px;

    transition:background-color .15s ease,
               color .15s ease;

}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus{

    background-color:#9ED9B0;

    color:#0A3D22;

}

.navbar .dropdown-menu .dropdown-item:active{

    background-color:#7FCB96;

    color:#0A3D22;

}


/* =================================
   Chuẩn hoá Nút bấm CHÍNH (xanh lá)
==================================== */

.btn-app{

    background:linear-gradient(
        90deg,
        #0A3D22 0%,
        #0F5A35 25%,
        #0B7A52 55%,
        #16A56C 80%,
        #39CC8E 100%
    );

    border:none;

    color:#fff;

    border-radius:8px;

    padding:8px 18px;

    font-weight:500;

    transition:.25s;
	
    display:inline-flex;

    align-items:center;

    justify-content:center;
	

}

.btn-app:hover{

    filter:brightness(1.08);

    color:#fff;

}


.btn-app:focus{

    box-shadow:0 0 0 .25rem rgba(22,165,108,.25);

    color:#fff;

}

/* =================================
   Chuẩn hoá Nút bấm PHỤ (xanh lá)
==================================== */

/* =================================
   NÚT ĐÓNG / PHỤ
================================= */

.btn-app-secondary{

    background:#E9ECEF;

    border:1px solid #C8CED3;

    color:#495057;

    border-radius:8px;

    padding:8px 18px;

    transition:.25s;

}

.btn-app-secondary:hover{

    background:#DDE2E6;

    border-color:#B8C0C7;

    color:#343A40;

}

/* =================================
   Chuẩn hoá Nút bấm NGUY HIỂM (xanh lá)
==================================== */

.btn-app-danger{

    background:linear-gradient(
        90deg,
        #B91C1C,
        #DC2626
    );

    border:none;

    color:#fff;

}

/* =================================
   Chuẩn hoá Nút HỦY
================================= */

.btn-app-cancel{

    background:#DDE8E2;

    border:1px solid #B8CFC3;

    color:#2F3E46;

    border-radius:8px;

    padding:8px 18px;

    font-size:14px;

    font-weight:500;

    transition:.25s;

}


.btn-app-cancel:hover{

    background:#C7DCCF;

    border-color:#A8C5B5;

    color:#0A3D22;

}


.btn-app-cancel i{

    margin-right:8px;

}

/* ==========================
   Chuẩn hóa chữ Button
========================== */

.btn-app,
.btn-app-secondary,
.btn-app-danger{

    font-family:"Segoe UI",Arial,sans-serif;

    font-size:14px;

    font-weight:400 !important;

    letter-spacing:.2px;

    text-shadow:none;

}

.btn-app i,
.btn-app-secondary i,
.btn-app-danger i{

    margin-right:8px;

}

/* ==========================
   User Navbar
========================== */

.user-info{

    line-height:1.2;

    text-align:left;

    margin-left:8px;

}


.user-name{

    font-size:14px;

    font-weight:600;

}


.user-role{

    font-size:12px;

    opacity:.85;

}

/* =================================
   MODAL APP - HEADER CHUNG
================================= */

.modal-app .modal-header {

    background: linear-gradient(
        90deg,
        #0bc350 0%,
        #08b047 50%,
        #059c3e 100%
    );

    color: #ffffff;

    border-bottom: none;

}

.modal-app .modal-title {

    color:#ffffff !important;

    font-weight:600;

}


.modal-app .modal-title i {

    color:#ffffff !important;

}


.modal-app .btn-close {

    filter:brightness(0) invert(1);

    opacity:.9;

}


.modal-app .btn-close:hover {

    opacity:1;

}


/* =================================
   NÚT LƯU MODAL - DÙNG CHUNG
================================= */

.btn-save-app{

    background:linear-gradient(
        90deg,
        #0bc350 0%,
        #08b047 50%,
        #059c3e 100%
    );

    border:none;

    color:#fff;

    border-radius:8px;

    padding:8px 18px;

    font-family:"Segoe UI",Arial,sans-serif;

    font-size:14px;

    font-weight:400;

    letter-spacing:.2px;

    transition:.25s;

    display:inline-flex;

    align-items:center;

    justify-content:center;

}

.btn-save-app:hover{

    background:linear-gradient(
        90deg,
        #08b047 0%,
        #059c3e 100%
    );

    color:#fff;

}

.btn-save-app:focus{

    color:#fff;

    box-shadow:0 0 0 .25rem rgba(8,176,71,.25);

}

/* ==================================================
   DASHBOARD - THỐNG KÊ
================================================== */

.dashboard-search-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.dashboard-search-card .card-body {
    padding: 18px 24px;
}

.dashboard-search-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
}


/* ==================================================
   STAT CARDS
================================================== */

.dashboard-stat-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    padding: 20px 18px;
    min-height: 145px;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dashboard-stat-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #e9f8f0;
    color: #0b8f50;

    font-size: 21px;

    margin-bottom: 12px;
}

.dashboard-stat-number {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;

    color: #173b2b;
}

.dashboard-stat-label {
    margin-top: 6px;

    font-size: 13px;
    color: #6c757d;
}

.dashboard-stat-warning .dashboard-stat-icon {
    background: #fff4df;
    color: #d58b00;
}


/* ==================================================
   DASHBOARD PANEL
================================================== */

.dashboard-panel {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.dashboard-panel .card-header {
    background: #ffffff;
    border-bottom: 1px solid #edf0f2;

    padding: 16px 20px;

    color: #173b2b;
}


/* ==================================================
   DASHBOARD TABLE
================================================== */

.dashboard-table thead th {
    background: #f8faf9;

    border-bottom: 1px solid #edf0f2;

    font-size: 12px;
    font-weight: 600;

    color: #6c757d;

    padding: 12px 18px;
}

.dashboard-table tbody td {
    padding: 13px 18px;
    vertical-align: middle;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.warehouse-name {
    font-weight: 600;
    color: #234936;
}

.dashboard-stock-number {
    font-size: 16px;
    font-weight: 700;
    color: #0b8f50;
}

.transaction-badge {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 8px;

    background: #edf8f2;
    color: #16834d;

    font-size: 12px;
    font-weight: 600;
}

.dashboard-empty {
    padding: 35px 20px;
    text-align: center;

    color: #8a9298;
    font-size: 14px;
}

/* ==================================================
   WATERMARK
================================================== */

.dashboard-watermark {
    position: fixed;
    right: 25px;
    bottom: 20px;
    z-index: 1000;
    pointer-events: none;
    text-align: right;
}

.watermark-logo img {
    max-width: 110px;
    height: auto;
    opacity: 0.75;
}

.watermark-version {
    margin-top: 4px;
    font-size: 11px;
    color: #6c757d;
}

.watermark-slogan {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
}

/* Nội dung Dashboard nằm phía dưới watermark */

.dashboard-content {
    position: relative;
    z-index: 1;
}

/* ==================================================
   BIỂU ĐỒ TỒN KHO
================================================== */

.dashboard-stock-bar {
    height: 5px;
    width: 100%;

    margin-top: 8px;

    background: #edf2ef;

    border-radius: 10px;

    overflow: hidden;
}

.dashboard-stock-bar-fill {
    height: 100%;

    background: linear-gradient(
        90deg,
        #0bc350 0%,
        #08b047 50%,
        #059c3e 100%
    );

    border-radius: 10px;

    transition: width 0.4s ease;
}
/* ==================================================
   BIỂU ĐỒ DASHBOARD
================================================== */

.dashboard-chart {
    padding: 8px 2px;
}

.dashboard-chart-row {
    display: grid;
    grid-template-columns: 115px 1fr 55px;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-chart-row:last-child {
    margin-bottom: 0;
}

.dashboard-chart-label {
    font-size: 13px;
    font-weight: 600;
    color: #52635a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-chart-track {
    height: 5px;
    background: #edf2ef;
    border-radius: 5px;
    overflow: hidden;
}

.dashboard-chart-bar {
    height: 5px;
    background: #0b8f50;
    border-radius: 5px;
    transition: width .4s ease;
}

.dashboard-chart-value {
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: #173b2b;
}