/* Header Styles */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.mobile-toggle {
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.user-info i {
    font-size: 1.2rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.logo i {
    font-size: 1.5rem;
    color: #3498db;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

.menu-section {
    padding: 1rem 1.5rem 0.5rem;
}

.menu-section-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #bdc3c7;
    font-weight: 600;
    letter-spacing: 1px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover {
    background: rgba(52, 152, 219, 0.1);
    color: white;
    border-left-color: #3498db;
}

.sidebar-menu li a.active {
    background: rgba(52, 152, 219, 0.2);
    color: white;
    border-left-color: #3498db;
}

.sidebar-menu li a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
}

.badge-warning {
    background: #f39c12;
    color: white;
}

.badge-danger {
    background: #e74c3c;
    color: white;
}

.badge-success {
    background: #27ae60;
    color: white;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.system-info {
    color: #95a5a6;
    font-size: 0.8rem;
}

/* Main Content Adjustments */
.main-content {
    margin-left: 280px;
    padding: 0;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.content-header {
    background: white;
    padding: 2rem;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-header h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.mobile-shift {
        margin-left: 280px;
    }
    
    .header-left h1 {
        font-size: 1.2rem;
    }
    
    .user-info span {
        display: none;
    }
    
    .header {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .main-content.mobile-shift {
        margin-left: 0;
    }
    
    .header-right {
        gap: 0.5rem;
    }
}

/* Scrollbar for sidebar */
.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Login Styles */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.login-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Layout Styles */
.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    transition: margin-left 0.3s;
}

/* Header */
.header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    color: #333;
    font-size: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background: #2c3e50;
    color: white;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #34495e;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: #34495e;
    color: white;
}

.sidebar-menu li a i {
    margin-right: 0.5rem;
    width: 20px;
}

/* Content */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

/* Forms */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 800px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
    color: white;
}

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

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

/* Tables */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

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

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

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

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

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.normal {
    background: #d4edda;
    color: #155724;
}

.status-badge.low-stock {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.approved {
    background: #d1ecf1;
    color: #0c5460;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Activity List */
.activity-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.activity-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-type {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.activity-type.success {
    background: #d4edda;
    color: #155724;
}

.activity-type.warning {
    background: #fff3cd;
    color: #856404;
}

.activity-time {
    color: #666;
    font-size: 0.9rem;
}

/* Filters */
.filters {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.filter-form .form-row {
    align-items: end;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar .menu-text {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .activity-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Toast Notifications */
.alert-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.alert-toast.show {
    transform: translateX(0);
}

.alert-toast .alert {
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Categories Specific Styles */
.category-name {
    font-weight: 600;
    color: #2c3e50;
}

.category-description {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-count-badge {
    background: #e8f4fd;
    color: #3498db;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.text-muted {
    color: #95a5a6 !important;
    font-style: italic;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.3rem;
    flex-wrap: nowrap;
}

.btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-width: auto;
}

.btn-disabled {
    background: #bdc3c7 !important;
    color: #7f8c8d !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* Status Badges */
.status-badge.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-state i {
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

/* Table Summary */
.table-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Responsive Table */
@media (max-width: 768px) {
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .category-description {
        max-width: 200px;
    }
}

/* Filter Form Improvements */
.filter-form .form-row {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-form .form-group {
    flex: 1;
    min-width: 200px;
}

/* Hover Effects */
.data-table tr:hover .action-buttons {
    opacity: 1;
}

.action-buttons {
    opacity: 0.8;
    transition: opacity 0.2s;
}



/* Items Specific Styles */
.item-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2c3e50;
    background: #f8f9fa;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
}

.item-name {
    max-width: 250px;
}

.item-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.3rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-badge {
    background: #e8f4fd;
    color: #3498db;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.type-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.type-consumable {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.type-returnable {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Stock Information */
.stock-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-quantity {
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
}

.stock-quantity.in-stock {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.stock-quantity.low-stock {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    cursor: pointer;
}

.low-stock-icon {
    color: #e74c3c;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.low-stock-text {
    color: #e74c3c;
    font-weight: 600;
}

/* Enhanced Action Buttons for Items */
.action-buttons {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.action-buttons .btn-sm {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    min-width: auto;
}

/* Status Badges for Items */
.status-badge.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Price Styling */
.price {
    font-weight: 600;
    color: #27ae60;
}

/* Responsive Design for Items Table */
@media (max-width: 1024px) {
    .item-name {
        max-width: 200px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.2rem;
    }
}

@media (max-width: 768px) {
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .item-description {
        max-width: 150px;
    }
    
    .filters .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters .form-group {
        min-width: auto;
    }
}

/* Hover Effects for Interactive Elements */
.stock-quantity.low-stock:hover {
    background: #f1b0b7;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.action-buttons .btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Empty State Enhancement */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-state i {
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Table Summary Enhancement */
.table-summary {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-weight: 600;
    color: #2c3e50;
}



/* Form Container Styles */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
}

.form-container h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

/* Form Group Enhancements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Form Help Text */
.form-help {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-help .char-count {
    font-weight: 500;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.form-actions .btn {
    min-width: 140px;
}

.btn-outline {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
}

.btn-outline:hover {
    background: #6c757d;
    color: white;
}

/* Form Tips Section */
.form-tips {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 2rem;
    border-left: 4px solid #3498db;
}

.form-tips h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-tips h4 i {
    color: #f39c12;
}

.form-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.form-tips li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #495057;
}

.form-tips li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

/* Alert List Styles */
.alert ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.alert li {
    margin-bottom: 0.25rem;
}

/* Responsive Design for Forms */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        min-width: auto;
        width: 100%;
    }
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success State */
.form-group.success input {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Character Count Colors */
.char-count.warning {
    color: #f39c12;
    font-weight: bold;
}

.char-count.danger {
    color: #e74c3c;
    font-weight: bold;
}






/* Inventory Transaction Styles */
.quantity-received {
    color: #27ae60;
    font-weight: bold;
    background: #d4edda;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.quantity-issued {
    color: #e74c3c;
    font-weight: bold;
    background: #f8d7da;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.low-stock-badge {
    background: #f39c12;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.out-of-stock-badge {
    background: #e74c3c;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Requisition Status Badges */
.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-approved {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-issued {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

/* Recent Transactions */
.recent-transactions {
    margin-top: 2rem;
}

.recent-transactions h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Form Help Enhancements */
.form-help strong {
    color: #2c3e50;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .recent-transactions .data-table {
        font-size: 0.85rem;
    }
    
    .quantity-received,
    .quantity-issued {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}







/* Info Card Styles */
.info-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.info-card-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.info-card-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.info-card-body {
    padding: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-item label {
    font-weight: 600;
    color: #6c757d;
    margin: 0;
}

.info-item span {
    color: #2c3e50;
    font-weight: 500;
}

.item-count {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stock-value {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.stock-value.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-value.low-stock {
    background: #f8d7da;
    color: #721c24;
}

.stock-value i {
    margin-left: 0.5rem;
}

/* Info Note Styles */
.info-note {
    background: #e8f4fd;
    border: 1px solid #b6e0fe;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

.info-note.warning {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.info-note i {
    color: #3498db;
    margin-top: 0.1rem;
}

.info-note.warning i {
    color: #f39c12;
}

.info-note span {
    color: #2c3e50;
    line-height: 1.4;
}

/* Form Validation States */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Text Colors */
.text-warning {
    color: #f39c12 !important;
    font-weight: 600;
}

/* Responsive Design for Edit Pages */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Button Enhancements */
.btn-danger {
    background: #e74c3c;
    border: 1px solid #e74c3c;
}

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

/* Form Row Responsive */
@media (max-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}




/* Reports Specific Styles */
.report-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.report-filters .form-row {
    align-items: flex-end;
}

.report-summary {
    margin-bottom: 2rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.summary-icon.warning {
    background: #f39c12;
}

.summary-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
}

.summary-content p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

.report-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.report-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.report-header h2 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.report-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: #6c757d;
}

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

.report-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.report-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.report-table tfoot {
    background: #f8f9fa;
    font-weight: bold;
}

.report-table tfoot td {
    border-top: 2px solid #dee2e6;
}

/* Transaction Type Badges */
.transaction-type {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.transaction-type.receive {
    background: #d4edda;
    color: #155724;
}

.transaction-type.issue {
    background: #f8d7da;
    color: #721c24;
}

/* Shortage Styling */
.shortage {
    color: #e74c3c;
    font-weight: bold;
}

/* Charts Section */
.charts-section {
    margin-top: 2rem;
}

.chart-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-card h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    text-align: center;
}

/* Print Styles */
@media print {
    .sidebar, .header, .report-filters, .charts-section, .header-actions {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .report-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .report-table {
        font-size: 12px;
    }
    
    .report-table th,
    .report-table td {
        padding: 0.5rem;
    }
}

/* Responsive Design for Reports */
@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        grid-template-columns: 1fr;
    }
    
    .report-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .report-filters .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-actions {
        display: flex;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .header-actions .btn {
        flex: 1;
    }
}

/* Loading State for Reports */
.report-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #6c757d;
}

.report-loading i {
    font-size: 2rem;
    margin-right: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}









/* Requisition Create Specific Styles */
.requisition-header {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3498db;
}

.readonly-field {
    background: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
}

.items-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header h3 {
    color: #2c3e50;
    margin: 0;
}

.items-table-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.items-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #e9ecef;
}

.items-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f8f9fa;
}

.items-table tr:last-child td {
    border-bottom: none;
}

.items-table select,
.items-table input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.items-table select:focus,
.items-table input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.item-select {
    min-width: 200px;
}

.quantity-input {
    text-align: center;
    max-width: 80px;
}

.item-notes {
    font-size: 0.85rem;
}

.remove-item {
    padding: 0.3rem 0.5rem !important;
}

/* Stock Info Styles */
.stock-info {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.stock-info.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-info.low-stock {
    background: #fff3cd;
    color: #856404;
}

.stock-info.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* Items Summary */
.items-summary {
    background: #e8f4fd;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-row strong {
    color: #2c3e50;
    font-size: 1rem;
}

/* Form Tips Enhancement */
.form-tips {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.form-tips h4 {
    color: #856404;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-tips h4 i {
    color: #f39c12;
}

.form-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.form-tips li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #856404;
}

.form-tips li:before {
    content: "💡";
    position: absolute;
    left: 0.5rem;
}

/* Responsive Design for Requisition Create */
@media (max-width: 768px) {
    .items-table-container {
        overflow-x: auto;
    }
    
    .items-table {
        min-width: 600px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .summary-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .requisition-header .form-row {
        flex-direction: column;
    }
}

/* Hover Effects */
.items-table tr:hover {
    background: #f8f9fa;
}

.remove-item:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Animation for new rows */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-row {
    animation: slideIn 0.3s ease;
}

/* Button Styles Enhancement */
.btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
}

/* Validation Styles */
.quantity-input:invalid {
    border-color: #e74c3c;
}

.item-select:invalid {
    border-color: #e74c3c;
}





/* Requisition View Specific Styles */
.requisition-header-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.requisition-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.meta-item span {
    color: #2c3e50;
    font-size: 1rem;
}

.req-number {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #3498db;
    font-size: 1.1rem;
}

.requisition-notes {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    margin-bottom: 1.5rem;
}

.requisition-notes label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: block;
}

.requisition-notes p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
}

.requisition-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Items Summary */
.items-summary {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.summary-item {
    background: #e8f4fd;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.summary-item strong {
    color: #2c3e50;
}

/* Requisition Items Table */
.requisition-items-table td {
    vertical-align: middle;
}

.quantity-requested {
    color: #3498db;
    font-weight: 600;
}

.quantity-issued {
    color: #27ae60;
    font-weight: 600;
}

.quantity-pending {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
}

.quantity-pending.pending {
    background: #fff3cd;
    color: #856404;
}

.quantity-pending.completed {
    background: #d4edda;
    color: #155724;
}

/* Completion Status */
.completion-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar {
    flex: 1;
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #27ae60;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: #6c757d;
    min-width: 40px;
    text-align: right;
}

/* Issue History */
.issue-history-section {
    margin-top: 2rem;
}

.issue-history-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.close {
    color: #6c757d;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #2c3e50;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .form-actions {
    border-top: none;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Print Styles for Requisition */
@media print {
    .sidebar, .header, .requisition-actions, .issue-item-btn, .header-actions {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .requisition-header-card,
    .requisition-items-section,
    .issue-history-section {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .btn {
        display: none !important;
    }
}

/* Responsive Design for Requisition View */
@media (max-width: 768px) {
    .requisition-meta {
        grid-template-columns: 1fr;
    }
    
    .requisition-actions {
        flex-direction: column;
    }
    
    .requisition-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .items-summary {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .completion-status {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .progress-text {
        text-align: left;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Hover Effects */
.issue-item-btn:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Status Badges for Requisition */
.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-approved {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-issued {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}


/* Requisition Approval Styles */
.pending-count {
    background: #f39c12;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulk-actions-bar {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.bulk-actions-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bulk-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulk-checkbox input[type="checkbox"] {
    margin: 0;
}

.bulk-buttons {
    display: flex;
    gap: 0.5rem;
}

.selected-count {
    color: #6c757d;
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

.quantity-total {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.quick-stats .stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.quick-stats .stat-card h3 {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.quick-stats .stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

/* User Management Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin {
    background: #e74c3c;
    color: white;
}

.role-manager {
    background: #f39c12;
    color: white;
}

.role-staff {
    background: #3498db;
    color: white;
}

/* Status Badges for Users */
.status-badge.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Badge Styles */
.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-primary {
    background: #3498db;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #212529;
}

/* Row Selection Styles */
.requisition-row {
    transition: background-color 0.2s ease;
}

.requisition-row:hover {
    background-color: #f8f9fa !important;
}

.requisition-checkbox {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bulk-actions-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .bulk-buttons {
        justify-content: center;
    }
    
    .selected-count {
        text-align: center;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.2rem;
    }
}

/* Print Styles */
@media print {
    .bulk-actions-bar,
    .requisition-actions,
    .action-buttons {
        display: none !important;
    }
    
    input[type="checkbox"] {
        display: none !important;
    }
}

/* Animation for bulk actions */
@keyframes highlight {
    0% { background-color: #d4edda; }
    100% { background-color: transparent; }
}

.highlight-row {
    animation: highlight 2s ease;
}





/* User Edit Specific Styles */
.activity-count {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.password-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.password-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.password-section .section-header h3 {
    color: #2c3e50;
    margin: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

/* Password Strength Meter */
.password-strength {
    margin: 1rem 0;
}

.strength-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
}

/* Password Tips */
.password-tips {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin-top: 1rem;
}

.password-tips h4 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.password-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
}

.password-tips li {
    padding: 0.25rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.password-tips li:before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

/* Form Validation States */
.form-group.error input,
.form-group.error select {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.form-group.success input {
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.1);
}

/* Responsive Design for User Edit */
@media (max-width: 768px) {
    .password-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Text Colors */
.text-warning {
    color: #f39c12 !important;
    font-weight: 600;
}

/* Info Note Styles */
.info-note.warning {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.info-note.warning i {
    color: #f39c12;
}

/* Disabled Field Styles */
select:disabled {
    background: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
}

/* Pattern Validation Message */
input:invalid {
    border-color: #e74c3c;
}

input:valid {
    border-color: #27ae60;
}










/* Purchase Requisition Specific Styles */
.purchase-details-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3498db;
}

.purchase-details-section h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

/* Purchase Items Table */
.purchase-items-table th,
.purchase-items-table td {
    vertical-align: middle;
}

.unit-price-input,
.quantity-input {
    text-align: center;
    max-width: 100px;
}

.total-price {
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    display: block;
}

.specifications-input {
    font-size: 0.85rem;
}

/* Priority Badges */
.priority-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-low {
    background: #d4edda;
    color: #155724;
}

.priority-medium {
    background: #fff3cd;
    color: #856404;
}

.priority-high {
    background: #f8d7da;
    color: #721c24;
}

.priority-urgent {
    background: #e74c3c;
    color: white;
}

/* Supplier Info */
.supplier-info {
    background: #e8f4fd;
    padding: 1rem;
    border-radius: 6px;
    margin: 0.5rem 0;
}

.supplier-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.supplier-details {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Budget and Department */
.budget-info {
    background: #fff3cd;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin: 0.25rem 0;
}

.department-info {
    background: #d1ecf1;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin: 0.25rem 0;
}

/* Table Footer for Totals */
.items-table tfoot {
    background: #f8f9fa;
    font-weight: bold;
}

.items-table tfoot td {
    border-top: 2px solid #dee2e6;
    padding: 1rem;
}

/* Responsive Design for Purchase Requisitions */
@media (max-width: 768px) {
    .purchase-details-section .form-row {
        flex-direction: column;
    }
    
    .items-table-container {
        overflow-x: auto;
    }
    
    .items-table {
        min-width: 800px;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Print Styles for Purchase Requisitions */
@media print {
    .purchase-details-section {
        border: 1px solid #ddd;
        background: white;
    }
    
    .btn {
        display: none !important;
    }
}

/* Hover Effects for Purchase Items */
.item-row:hover {
    background-color: #f8f9fa;
}

/* Animation for New Rows */
@keyframes highlightPurchase {
    0% { background-color: #d4edda; }
    100% { background-color: transparent; }
}

.item-row.highlight {
    animation: highlightPurchase 1s ease;
}









/* Purchase View Specific Styles */
.supplier-section {
    background: #e8f4fd;
    padding: 1.5rem;
    border-radius: 6px;
    margin: 1rem 0;
    border-left: 4px solid #3498db;
}

.supplier-section h4 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.supplier-details {
    line-height: 1.6;
}

.supplier-details strong {
    font-size: 1.1rem;
    color: #2c3e50;
    display: block;
    margin-bottom: 0.5rem;
}

/* Purchase Items Table */
.purchase-items-table th,
.purchase-items-table td {
    vertical-align: middle;
}

.unit-price,
.total-price {
    font-weight: 600;
    color: #2c3e50;
}

.specifications {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Activity Timeline */
.activity-history-section {
    margin-top: 2rem;
}

.activity-timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #6c757d;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #6c757d;
}

.timeline-marker.approved {
    background: #27ae60;
    box-shadow: 0 0 0 2px #27ae60;
}

.timeline-marker.ordered {
    background: #3498db;
    box-shadow: 0 0 0 2px #3498db;
}

.timeline-marker.delivered {
    background: #2ecc71;
    box-shadow: 0 0 0 2px #2ecc71;
}

.timeline-content {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.timeline-content strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.timeline-user {
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Profile Styles */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-content h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
}

.stat-content p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* Security Tips */
.security-tips {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.security-tips h4 {
    color: #856404;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-tips h4 i {
    color: #f39c12;
}

.security-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-tips li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #856404;
}

.security-tips li:before {
    content: "🔒";
    position: absolute;
    left: 0.5rem;
}

/* Section Help */
.section-help {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Username Styling */
.username {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2c3e50;
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .activity-timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
    
    .supplier-details {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .requisition-actions,
    .btn {
        display: none !important;
    }
    
    .requisition-header-card,
    .requisition-items-section,
    .activity-history-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}



















