/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
}

/* ===== Layout Styles ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar Styles ===== */
.sidebar {
    width: 260px;
    background: #1f2937;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #374151;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f3f4f6;
    margin: 0;
}

.sidebar-subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0.25rem 0 0 0;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-group {
    margin-bottom: 2rem;
}

.nav-group-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 0 1.5rem 0.5rem;
    letter-spacing: 0.05em;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    background: #374151;
    color: #f3f4f6;
}

.nav-link.active {
    background: #3b82f6;
    color: white;
}

.nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #60a5fa;
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.nav-text {
    flex: 1;
}

.nav-badge {
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-left: auto;
}

.nav-badge.warning {
    background: #f59e0b;
}

.nav-badge.success {
    background: #10b981;
}

/* ===== Main Content Area ===== */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    background: #f8fafc;
}

/* ===== Mobile Menu Toggle ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 24px;
    margin-bottom: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.header-date {
    font-size: 14px;
    color: #6b7280;
}

/* ===== Welcome Banner ===== */
.welcome-banner {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(59, 130, 246, 0.05) 100%
    );
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(
        circle at 2px 2px,
        rgba(0, 0, 0, 0.05) 1px,
        transparent 0
    );
    background-size: 20px 20px;
    opacity: 0.3;
}

.welcome-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.welcome-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.separator {
    color: rgba(107, 114, 128, 0.7);
    font-size: 12px;
}

.login-time {
    color: rgba(107, 114, 128, 0.7);
    font-size: 12px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-size: 12px;
    color: #10b981;
    font-weight: 500;
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s ease-in-out;
}

.stat-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stat-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: rgba(107, 114, 128, 0.7);
    margin-bottom: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 4px;
}

.stat-subtitle {
    font-size: 12px;
    color: rgba(107, 114, 128, 0.7);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

/* Icon Colors */
.icon-primary {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.icon-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.icon-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.icon-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Text Colors */
.text-success {
    color: #10b981;
}

.text-warning {
    color: #f59e0b;
}

.text-error {
    color: #ef4444;
}

/* ===== Action Buttons ===== */
.actions-section {
    margin-bottom: 32px;
}

.actions-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ===== Charts Section ===== */
.charts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.chart-header {
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.chart-subtitle {
    font-size: 14px;
    color: #6b7280;
}

.chart-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 16px;
    border: 2px dashed #d1d5db;
}

/* ===== Recent Activities ===== */
.activities-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.activities-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
}

.activities-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.view-all-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

.activity-list {
    space-y: 16px;
}

.activity-item {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon svg {
    width: 16px;
    height: 16px;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    color: #374151;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #9ca3af;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .welcome-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .welcome-banner {
        padding: 16px;
    }

    .stat-card {
        padding: 16px;
    }

    .chart-card {
        padding: 16px;
    }

    .activities-section {
        padding: 16px;
    }

    /* Responsive Sidebar */
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .header-content {
        display: flex;
        align-items: center;
    }
}

/* ===== Page Layout Styles ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.page-title-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.page-subtitle {
    color: #6b7280;
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 1rem;
}

/* ===== Filters Section ===== */
.filters-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.filter-input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===== Table Styles ===== */
.table-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.table-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.table-info {
    color: #6b7280;
    font-size: 0.875rem;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    white-space: nowrap;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-info strong {
    color: #111827;
    margin-bottom: 0.25rem;
}

.item-code {
    color: #6b7280;
    font-size: 0.75rem;
}

.batch-code {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
}

.quantity {
    font-weight: 500;
    color: #059669;
}

.quantity-out {
    font-weight: 500;
    color: #dc2626;
}

.destination-info {
    display: flex;
    flex-direction: column;
}

.destination-info strong {
    color: #111827;
    margin-bottom: 0.25rem;
}

.destination-type {
    color: #6b7280;
    font-size: 0.75rem;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-processed {
    background: #dbeafe;
    color: #2563eb;
}

.status-completed {
    background: #dcfce7;
    color: #16a34a;
}

.btn-icon.btn-success {
    background: #16a34a;
    color: white;
}

.btn-icon.btn-success:hover {
    background: #15803d;
}

.btn-icon.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-icon.btn-warning:hover {
    background: #d97706;
}

/* Distribution specific styles */
.destination-address {
    color: #9ca3af;
    font-size: 0.75rem;
    font-style: italic;
}

.items-summary {
    display: flex;
    flex-direction: column;
}

.items-summary strong {
    color: #111827;
    margin-bottom: 0.25rem;
}

.total-quantity {
    color: #6b7280;
    font-size: 0.75rem;
}

.status-scheduled {
    background: #dbeafe;
    color: #2563eb;
}

.status-in-transit {
    background: #fed7af;
    color: #ea580c;
}

.status-delivered {
    background: #dcfce7;
    color: #16a34a;
}

.status-cancelled {
    background: #fecaca;
    color: #dc2626;
}

.status-draft {
    background: #f3f4f6;
    color: #6b7280;
}

/* Large modal */
.large-modal {
    width: 95%;
    max-width: 900px;
}

/* Form sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-small {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Distribution items */
.distribution-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.distribution-item:last-child {
    margin-bottom: 0;
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.btn-icon.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-icon.btn-primary:hover {
    background: #2563eb;
}

.btn-icon.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-icon.btn-secondary:hover {
    background: #4b5563;
}

.btn-icon.btn-error {
    background: #ef4444;
    color: white;
}

.btn-icon.btn-error:hover {
    background: #dc2626;
}

/* ===== Pagination ===== */
.pagination-container {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.per-page-select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

.pagination-number {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.pagination-number:hover {
    background: #f3f4f6;
}

.pagination-number.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* ===== Modal Styles ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* ===== Form Styles ===== */
.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input[readonly] {
    background: #f9fafb;
    color: #6b7280;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* ===== Transactions Page Styles ===== */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary-info h4 {
    margin: 0 0 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.summary-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 4px;
}

.summary-subtitle {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-icon svg {
    width: 24px;
    height: 24px;
}

.summary-icon.icon-success {
    background: var(--success-light);
    color: var(--success-color);
}

.summary-icon.icon-error {
    background: var(--error-light);
    color: var(--error-color);
}

.summary-icon.icon-warning {
    background: var(--warning-light);
    color: var(--warning-color);
}

.summary-icon.icon-primary {
    background: var(--primary-light);
    color: var(--primary-color);
}

.filters-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(31, 81, 255, 0.1);
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.transaction-id {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-type {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    display: inline-block;
}

.type-stock-in {
    background: var(--success-light);
    color: var(--success-color);
}

.type-stock-out {
    background: var(--error-light);
    color: var(--error-color);
}

.type-distribution {
    background: var(--warning-light);
    color: var(--warning-color);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-code {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.quantity {
    color: var(--success-color);
    font-weight: 500;
}

.quantity-out {
    color: var(--error-color);
    font-weight: 500;
}

.quantity-dist {
    color: var(--warning-color);
    font-weight: 500;
}

.party-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.party-type {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.transaction-stock-in {
    border-left: 3px solid var(--success-color);
}

.transaction-stock-out {
    border-left: 3px solid var(--error-color);
}

.transaction-distribution {
    border-left: 3px solid var(--warning-color);
}

/* ===== Responsive Form ===== */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .filters-container {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
    }

    .table-container {
        font-size: 0.75rem;
    }

    .pagination-container {
        flex-direction: column;
        gap: 1rem;
    }

    .actions-cell {
        flex-direction: column;
    }

    .stats-summary {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .summary-card {
        padding: 16px;
    }

    .summary-number {
        font-size: 1.5rem;
    }
}
