.nms-mobile-hamburger,
.nms-sidebar-close {
    display: none;
}

@media (max-width: 1024px) {
    .nms-mobile-hamburger {
        padding: 0.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #F1F5F9;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 999;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .nms-mobile-hamburger:hover {
        background: #E2E8F0;
    }
    
    .nms-mobile-hamburger svg {
        display: block;
        width: 24px;
        height: 24px;
    }
    
    .nms-sidebar-close {
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s ease;
        margin-right: 8px;
    }
    
    .nms-sidebar-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nms-sidebar-close svg {
        display: block;
        width: 20px;
        height: 20px;
    }
    
    .nms-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 280px;
        height: 100vh;
        background: var(--nms-sidebar-bg);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        display: flex;
        flex-direction: column;
    }
    
    .nms-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .nms-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nms-sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .nms-content {
        margin-left: 0 !important;
        padding: 1rem !important;
        padding-top: calc(1rem + 60px) !important;
        width: 100%;
    }
    
    .nms-logo {
        padding: 16px 20px;
        min-height: 70px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .nms-logo .nms-logo-text {
        display: flex;
        flex-direction: column;
    }
    
    .nms-logo .nms-logo-img {
        max-width: 100%;
        height: auto;
        max-height: 50px;
    }
    
    .nms-menu {
        flex: 1;
        padding: 12px;
        overflow-y: auto;
    }
    
    .nms-menu-item {
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 15px;
    }
    
    .nms-menu-label {
        font-size: 15px;
    }
    
    .nms-menu-icon {
        width: 28px;
        height: 28px;
    }
    
    .nms-menu-section-title {
        font-size: 12px;
    }
    
    .nms-sidebar-footer {
        padding: 12px;
        border-top: 1px solid var(--nms-sidebar-border);
    }
    
    .nms-sidebar-footer .nms-toggle-btn {
        display: none;
    }
    
    .nms-sidebar .nms-logo-text,
    .nms-sidebar .nms-menu-label,
    .nms-sidebar .nms-menu-badge,
    .nms-sidebar .nms-menu-section-title {
        opacity: 1;
        width: auto;
    }
    
    .nms-sidebar .nms-menu-submenu {
        display: block;
    }
}

@media (max-width: 768px) {
    .nms-content {
        padding: 0.75rem !important;
        padding-top: calc(0.75rem + 56px) !important;
    }
    
    .nms-mobile-hamburger {
        width: 42px;
        height: 42px;
        top: 10px;
        left: 10px;
    }
    
    .nms-mobile-hamburger svg {
        width: 22px;
        height: 22px;
    }
    
    .nms-sidebar {
        width: 85%;
        max-width: 300px;
    }
    
    .nms-logo {
        padding: 14px 16px;
    }
    
    .nms-menu-item {
        padding: 12px 14px;
    }
    
    .nms-sidebar-close {
        width: 32px;
        height: 32px;
    }
    
    .nms-sidebar-close svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .nms-content {
        padding: 0.5rem !important;
        padding-top: calc(0.5rem + 52px) !important;
    }
    
    .nms-mobile-hamburger {
        width: 40px;
        height: 40px;
        top: 8px;
        left: 8px;
    }
    
    .nms-mobile-hamburger svg {
        width: 20px;
        height: 20px;
    }
    
    .nms-sidebar {
        width: 85%;
    }
    
    .nms-menu-item {
        padding: 12px;
        font-size: 14px;
    }
    
    .nms-menu-label {
        font-size: 14px;
    }
    
    .nms-menu-icon {
        width: 24px;
        height: 24px;
    }
    
    .nms-menu-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 1024px) {
    .nms-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .nms-table {
        min-width: 600px;
        font-size: 14px;
    }
    
    .nms-table th,
    .nms-table td {
        padding: 10px 12px;
    }
    
    .nms-table-actions {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .nms-table .nms-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .nms-search-box {
        padding: 1rem;
    }
    
    .nms-search-form {
        flex-direction: column;
    }
    
    .nms-search-input {
        width: 100%;
    }
    
    .nms-search-form .nms-btn {
        width: 100%;
    }
    
    .nms-form-card {
        padding: 1rem;
    }
    
    .nms-form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nms-form-group {
        width: 100%;
    }
    
    .nms-form-group label {
        font-size: 14px;
    }
    
    .nms-form-group input,
    .nms-form-group select,
    .nms-form-group textarea {
        padding: 12px;
        font-size: 15px;
    }
    
    .nms-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .nms-form-actions .nms-btn {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }
    
    .nms-card {
        padding: 1rem;
    }
    
    .nms-header {
        padding: 1.25rem;
    }
    
    .nms-header h1 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .nms-search-box {
        padding: 0.75rem;
    }
    
    .nms-form-card {
        padding: 0.75rem;
    }
    
    .nms-form-group input,
    .nms-form-group select,
    .nms-form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .nms-table {
        min-width: 500px;
        font-size: 13px;
    }
    
    .nms-table th,
    .nms-table td {
        padding: 8px 10px;
    }
    
    .nms-table-actions {
        flex-direction: column;
    }
    
    .nms-table .nms-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .nms-stat-card {
        padding: 1rem;
    }
    
    .nms-stat-value {
        font-size: 28px;
    }
    
    .nms-stat-label {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .nms-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .nms-stat-card {
        padding: 0.875rem;
    }
    
    .nms-stat-value {
        font-size: 24px;
    }
}