* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1002;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.login-header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.login-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.login-form {
    padding: 30px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.login-hint {
    margin-top: 20px;
    text-align: center;
    color: #999;
    font-size: 0.8rem;
}

.main-body {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    color: white;
}

.sidebar-header h1 {
    font-size: 1.2rem;
}

.user-info {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-info span:first-child {
    font-weight: 600;
    color: #333;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.role-badge.admin {
    background: #ff6b6b;
    color: white;
}

.role-badge.approver {
    background: #ffa502;
    color: white;
}

.role-badge.operator {
    background: #2ed573;
    color: white;
}

.sidebar-nav {
    padding: 10px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    gap: 12px;
    position: relative;
    font-size: 0.9rem;
}

.nav-item:hover {
    background: #f0f4ff;
    color: #667eea;
    padding-left: 25px;
}

.nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 4px 0 15px rgba(102, 126, 234, 0.3);
}

.nav-item.logout:hover {
    background: #ffeaa7;
    color: #d63031;
}

.nav-icon {
    font-size: 1.1rem;
}

.nav-section {
    padding: 10px 20px;
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

.nav-badge {
    position: absolute;
    right: 20px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
}

.has-badge {
    padding-right: 45px;
}

.main-content {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h2 {
    color: #333;
}

.page-info {
    color: #999;
    font-size: 0.9rem;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.btn-view {
    background: #6c757d;
    color: white;
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-view:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(108, 117, 141, 0.3);
}

.btn-edit {
    background: #00bcd4;
    color: white;
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-edit:hover {
    background: #00acc1;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 188, 212, 0.3);
}

.btn-submit {
    background: #2196f3;
    color: white;
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-submit:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
}

.btn-delete {
    background: #ff6b6b;
    color: white;
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-delete:hover {
    background: #ee5253;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.btn-approve {
    background: #2ed573;
    color: white;
}

.btn-reject {
    background: #ff6b6b;
    color: white;
}

.btn-full {
    width: 100%;
}

.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: #dff9fb;
    color: #00b894;
    border: 1px solid #81ecec;
}

.alert-error {
    background: #ffeaa7;
    color: #d63031;
    border: 1px solid #fdcb6e;
}

.filter-bar {
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.filter-bar form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.filter-select {
    padding: 10px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-input {
    padding: 10px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-input.search-input {
    width: 220px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    padding-left: 40px;
}

.data-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow-x: auto;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
    table-layout: fixed;
}

.data-table th,
.data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    white-space: nowrap;
}

.data-table th:nth-child(1) { width: 100px; }
.data-table th:nth-child(2) { width: 180px; }
.data-table th:nth-child(3) { width: 100px; }
.data-table th:nth-child(4) { width: 80px; }
.data-table th:nth-child(5) { width: 200px; }
.data-table th:nth-child(6) { width: 120px; text-align: right; }
.data-table th:nth-child(7) { width: 80px; }
.data-table th:nth-child(8) { width: 80px; }
.data-table th:nth-child(9) { width: 150px; }
.data-table th:nth-child(10) { width: 180px; }

.data-table td:nth-child(5) {
    white-space: normal;
    word-break: break-all;
}

.data-table td:nth-child(6) {
    text-align: right;
}

.data-table td:nth-child(9) {
    white-space: normal;
    word-break: break-all;
}

.data-table.log-table table {
    min-width: 900px;
}

.data-table.log-table th:nth-child(1) { width: 15% !important; }
.data-table.log-table th:nth-child(2) { width: 8% !important; }
.data-table.log-table th:nth-child(3) { width: 8% !important; }
.data-table.log-table th:nth-child(4) { width: 10% !important; }
.data-table.log-table th:nth-child(5) { width: 45% !important; }
.data-table.log-table th:nth-child(6) { width: 14% !important; }

.data-table.log-table td:nth-child(5) {
    white-space: normal;
    word-break: break-all;
}

.data-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.data-table tr:hover {
    background: #f8f9ff;
    transform: translateX(2px);
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tfoot {
    background: #fff3cd;
}

.data-table tfoot td {
    padding: 15px;
    font-weight: 600;
}

.summary-label {
    color: #856404;
    text-align: left;
}

.summary-amount {
    color: #856404;
    text-align: right;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.pagination-left {
    color: #666;
    font-size: 0.9rem;
}

.pagination-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-size-select {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

.pagination-links {
    display: flex;
    gap: 5px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #667eea;
    font-size: 0.85rem;
    transition: all 0.3s;
    min-width: 32px;
}

.page-link:hover:not(.disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-link.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-link.disabled {
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.upload-hint {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

.file-preview {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.file-preview a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

.file-preview a:hover {
    text-decoration: underline;
}

.item-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.item-group {
    flex: 1;
    min-width: 120px;
}

.item-group label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.item-group .form-control {
    width: 100%;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-content {
    background: white;
    padding: 40px 60px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.data-table tbody tr.category-material {
    background-color: #e8f5e9 !important;
}

.data-table tbody tr.category-salary {
    background-color: #e3f2fd !important;
}

.data-table tbody tr.category-transport {
    background-color: #fff3e0 !important;
}

.data-table tbody tr.category-accommodation {
    background-color: #fce4ec !important;
}

.data-table tbody tr.category-food {
    background-color: #f3e5f5 !important;
}

.data-table tbody tr.category-other {
    background-color: #f5f5f5 !important;
}

.data-table tbody tr.category-material:hover {
    background-color: #c8e6c9 !important;
}

.data-table tbody tr.category-salary:hover {
    background-color: #bbdefb !important;
}

.data-table tbody tr.category-transport:hover {
    background-color: #ffe0b2 !important;
}

.data-table tbody tr.category-accommodation:hover {
    background-color: #f8bbd9 !important;
}

.data-table tbody tr.category-food:hover {
    background-color: #e1bee7 !important;
}

.data-table tbody tr.category-other:hover {
    background-color: #e0e0e0 !important;
}

.empty-row {
    text-align: center;
    color: #999;
    padding: 40px !important;
}

.amount {
    font-weight: 600;
}

.amount.income {
    color: #2ed573;
}

.amount.expense {
    color: #ff4757;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-badge.draft {
    background: #f5f5f5;
    color: #888;
}

.status-badge.draft::before {
    background: #ccc;
}

.status-badge.submitted {
    background: #fff3e0;
    color: #ff9800;
}

.status-badge.submitted::before {
    background: #ff9800;
    animation: pulse 2s infinite;
}

.status-badge.approved {
    background: #e8f5e9;
    color: #4caf50;
}

.status-badge.approved::before {
    background: #4caf50;
}

.status-badge.rejected {
    background: #ffebee;
    color: #f44336;
}

.status-badge.rejected::before {
    background: #f44336;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.form-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.required {
    color: #ff4757;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.view-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.view-group label {
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
}

.view-group .view-value {
    font-size: 0.95rem;
    color: #333;
    word-break: break-all;
}

.view-group .view-value.amount {
    font-size: 1.2rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.summary-card.income {
    border-left: 5px solid #2ed573;
}

.summary-card.expense {
    border-left: 5px solid #ff4757;
}

.summary-card.balance {
    border-left: 5px solid #3742fa;
}

.summary-card.pending {
    border-left: 5px solid #ffa502;
}

.summary-card.rejected {
    border-left: 5px solid #e74c3c;
}

.summary-card h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.summary-card .sub-amount {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
}

.summary-card .amount {
    font-size: 2rem;
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dashboard-panel h3 {
    margin-bottom: 20px;
    color: #333;
}

.record-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.record-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.record-category {
    font-size: 0.8rem;
    color: #999;
}

.record-content {
    font-size: 0.9rem;
    color: #333;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 30px;
}

.approval-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.approval-section h3 {
    margin-bottom: 20px;
    color: #333;
}

.approval-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.approval-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
}

.approval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.approval-category {
    font-weight: 600;
    color: #666;
}

.approval-amount {
    font-size: 1.3rem;
    font-weight: 700;
}

.approval-content {
    margin-bottom: 15px;
}

.approval-content p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.approval-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 35px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.modal-content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.stats-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stats-panel h3 {
    margin-bottom: 20px;
    color: #333;
}

.category-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-label {
    width: 70px;
    font-size: 0.85rem;
    color: #666;
}

.chart-bar {
    flex: 1;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s;
}

.chart-value {
    width: 90px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        z-index: 1001;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-close-btn {
        display: flex;
    }

    .sidebar-header {
        position: relative;
    }

    .main-body {
        flex-direction: column;
    }

    .main-content {
        padding: 25px 15px;
        margin-top: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .view-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .filter-bar form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .filter-select,
    .filter-input,
    .filter-input.search-input {
        width: 100%;
        margin-right: 0;
    }

    .data-table {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .data-table thead {
        display: none;
    }

    .data-table table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
        min-width: auto;
        white-space: normal;
    }

    .data-table th,
    .data-table td {
        width: auto !important;
        text-align: left !important;
    }

    .data-table th:nth-child(n),
    .data-table td:nth-child(n) {
        width: auto !important;
        text-align: left !important;
        white-space: normal;
        word-break: normal;
    }

    .data-table tr {
        margin-bottom: 15px;
        border-radius: 10px;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        border-left: 4px solid #667eea;
    }

    .data-table tbody tr.category-material { border-left-color: #4caf50; }
    .data-table tbody tr.category-salary { border-left-color: #2196f3; }
    .data-table tbody tr.category-transport { border-left-color: #ff9800; }
    .data-table tbody tr.category-accommodation { border-left-color: #e91e63; }
    .data-table tbody tr.category-food { border-left-color: #9c27b0; }
    .data-table tbody tr.category-other { border-left-color: #9e9e9e; }

    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
    }

    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        font-size: 0.85rem;
        margin-right: 15px;
        text-align: left;
    }

    .data-table td:last-child {
        border-bottom: none;
    }

    .data-table tfoot tr {
        display: flex;
        flex-direction: column;
        border-left: 4px solid #ffc107;
    }

    .data-table tfoot td {
        width: 100%;
        text-align: left;
        padding: 10px 15px;
    }

    .data-table tfoot td::before {
        display: none;
    }

    .data-table .empty-row {
        text-align: center;
        padding: 30px !important;
    }

    .data-table .empty-row::before {
        display: none;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
    }

    .pagination-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .form-container {
        padding: 15px;
    }

    .form-grid .form-group[style*="grid-column"],
    .view-grid .view-group[style*="grid-column"] {
        grid-column: auto !important;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
    }

    .file-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .file-preview .checkbox-label {
        margin-left: 0 !important;
    }
}