* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    height: 100vh;
}

.hidden {
    display: none !important;
}

.login-box {
    width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #1890ff;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #1890ff;
    color: white;
}

.btn-primary:hover {
    background-color: #40a9ff;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d9d9d9;
}

.btn-danger {
    background-color: #ff4d4f;
    color: white;
}

.btn-danger:hover {
    background-color: #ff7875;
}

.btn-warning {
    background-color: #faad14;
    color: white;
}

.btn-warning:hover {
    background-color: #ffc53d;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    margin-right: 5px;
}

.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.message.error {
    background-color: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.message.success {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    background-color: #001529;
    color: white;
}

.nav-brand {
    font-size: 18px;
    font-weight: bold;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 200px;
    height: calc(100vh - 60px);
    background-color: white;
    border-right: 1px solid #e8e8e8;
}

.menu {
    list-style: none;
}

.menu-item {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.menu-item:hover {
    background-color: #f0f0f0;
    color: #1890ff;
}

.menu-item.active {
    background-color: #e6f7ff;
    border-left-color: #1890ff;
    color: #1890ff;
}

.content {
    margin-left: 200px;
    padding: 20px;
    min-height: calc(100vh - 60px);
}

.module {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.module-header h2 {
    font-size: 20px;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    text-align: center;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-card h3 {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
}

.recent-section {
    margin-top: 30px;
}

.recent-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.pending-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fafafa;
    border-radius: 4px;
    border-left: 3px solid #1890ff;
}

.pending-info strong {
    display: block;
    margin-bottom: 5px;
}

.pending-info p {
    color: #666;
    margin-bottom: 3px;
}

.pending-info small {
    color: #999;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filters input,
.filters select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.filters input {
    flex: 1;
    max-width: 300px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.data-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background-color: #fafafa;
}

.empty-text {
    text-align: center;
    color: #999;
    padding: 40px !important;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-active,
.status-pending {
    background-color: #e6f7ff;
    color: #1890ff;
}

.status-approved,
.status-completed {
    background-color: #f6ffed;
    color: #52c41a;
}

.status-rejected,
.status-cancelled {
    background-color: #fff1f0;
    color: #ff4d4f;
}

.status-returned {
    background-color: #fff7e6;
    color: #faad14;
}

.status-inactive {
    background-color: #f5f5f5;
    color: #999;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    padding: 10px 0;
}

.detail-item label {
    display: block;
    color: #999;
    font-size: 12px;
    margin-bottom: 5px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.info-box {
    background-color: #fafafa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.info-box p {
    margin-bottom: 5px;
    color: #666;
}

.form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}
