/* OP Manager Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
}

#sidebar {
    z-index: 1040;
    transition: transform 0.3s ease;
}

#sidebar .nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-bottom: 2px;
}

#sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#sidebar .nav-link.active {
    font-weight: 600;
}

.card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.card-header {
    font-weight: 600;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
}

.badge {
    font-weight: 500;
}

.btn-group-sm .btn {
    padding: 2px 8px;
}

.table-danger {
    background-color: rgba(220, 53, 69, 0.08) !important;
}

/* Sidebar overlay */
#sidebarOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1030;
}

/* Mobile responsive */
@media (max-width: 991.98px) {
    #sidebarToggle {
        display: inline-block !important;
    }

    #sidebar {
        transform: translateX(-100%);
    }

    #sidebar.show {
        transform: translateX(0);
    }

    #sidebarOverlay.show {
        display: block;
    }

    main {
        margin-left: 0 !important;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    main h4 {
        font-size: 1.1rem;
    }

    .btn-lg {
        padding: 0.4rem 1rem;
        font-size: 0.95rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-lg {
        max-width: calc(100% - 1rem);
    }
}

/* Small mobile */
@media (max-width: 575.98px) {
    .p-3 {
        padding: 0.75rem !important;
    }

    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs .nav-item {
        flex-shrink: 0;
    }
}
