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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

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

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #667eea;
}

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

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

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

.error-message {
    background-color: #fee;
    color: #c33;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 140px;
    width: auto;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d91 100%);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

/* Navigation */
.main-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .nav-title {
        font-size: 1.2rem;
    }
    
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-btn:hover .profile-avatar {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.profile-dropdown-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.profile-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-role {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
    text-transform: capitalize;
}

.profile-dropdown-divider {
    height: 1px;
    background: #dee2e6;
    margin: 0.5rem 0;
}

.profile-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #495057 !important;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.9rem;
}

.profile-dropdown-item:hover {
    background-color: #f8f9fa;
    color: #667eea !important;
}

.profile-dropdown-item.active {
    background-color: #e7e9fd;
    color: #667eea !important;
    font-weight: 500;
}

/* Ensure dropdown menu items don't inherit nav-link colors */
.profile-dropdown-menu a {
    color: #495057 !important;
}

.profile-dropdown-menu a:hover {
    color: #667eea !important;
}

.profile-dropdown-menu a.active {
    color: #667eea !important;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

@media (max-width: 767px) {
    .main-content {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
}

/* Filters */
.filters {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 767px) {
    .filters {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.filter-group input,
.filter-group button {
    height: 38px;
    box-sizing: border-box;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

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

/* Mobile-friendly table */
.mobile-table table {
    width: 100%;
    border-collapse: collapse;
}

.mobile-table .desktop-only {
    display: none;
}

.mobile-table .client-row {
    cursor: pointer;
    border-bottom: 2px solid #e9ecef;
    transition: background-color 0.2s;
}

.mobile-table .client-row:hover {
    background-color: #f8f9fa;
}

.mobile-table .client-row.expanded {
    background-color: #f0f4ff;
}

.mobile-table .client-main-info {
    padding: 1rem;
}

.mobile-table .client-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-table .expand-icon {
    font-size: 0.8rem;
    color: #667eea;
    transition: transform 0.2s;
    cursor: pointer;
    user-select: none;
    min-width: 16px;
}

.mobile-table .client-route {
    padding: 1rem;
    vertical-align: middle;
}

.mobile-table .route-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.mobile-table .client-account-type {
    padding: 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
    color: #6c757d;
}

.mobile-table .client-quote {
    padding: 1rem;
    text-align: right;
    vertical-align: middle;
    font-weight: 600;
    color: #667eea;
}

.mobile-table .client-details-row {
    background-color: #f8f9fa;
}

.mobile-table .client-details-content {
    padding: 1.5rem;
}

.mobile-table .client-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.mobile-table .detail-section h4 {
    margin: 0 0 0.75rem 0;
    color: #495057;
    font-size: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.mobile-table .detail-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.mobile-table .detail-item strong {
    color: #6c757d;
    margin-right: 0.5rem;
}

.mobile-table .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.mobile-table .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.mobile-table .btn-action {
    width: 90px;
    text-align: center;
    font-weight: 500;
    flex-shrink: 0;
}

.mobile-table .status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.mobile-table .status-badge.active {
    background-color: #d4edda;
    color: #155724;
}

.mobile-table .status-badge.archived {
    background-color: #f8d7da;
    color: #721c24;
}

/* Invoice status badges */
.status-badge.status-draft {
    background-color: #e9ecef;
    color: #495057;
}

.status-badge.status-sent {
    background-color: #cfe2ff;
    color: #084298;
}

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

.status-badge.status-paid {
    background-color: #d1e7dd;
    color: #0f5132;
}

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

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

.status-badge.status-cancelled {
    background-color: #e9ecef;
    color: #6c757d;
}

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

/* Desktop view - show full table */
@media (min-width: 768px) {
    .mobile-table .desktop-only {
        display: table-header-group;
    }
    
    .mobile-table .client-row td {
        padding: 0.75rem;
    }
    
    .mobile-table .client-main-info {
        padding: 0.75rem;
    }
    
    .mobile-table .client-route {
        padding: 0.75rem;
    }
    
    .mobile-table .client-account-type {
        padding: 0.75rem;
    }
    
    .mobile-table .client-quote {
        padding: 0.75rem;
    }
}

/* View Modal Styles */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    overflow-y: auto;
}

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

.view-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
}

.view-section h3 {
    margin: 0 0 0.75rem 0;
    color: #495057;
    font-size: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.view-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.view-item strong {
    color: #6c757d;
    margin-right: 0.5rem;
    display: inline-block;
    min-width: 120px;
}

.view-section-full {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.view-section-full h3 {
    margin: 0 0 0.75rem 0;
    color: #495057;
    font-size: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.view-section-full p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #495057;
}

.view-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

/* Button groups - align right and fill across */
.button-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.button-group .btn {
    flex: 0 0 auto;
}

/* Override for full-width buttons in forms */
.form-actions .btn,
.modal-footer .btn,
.view-modal-actions .btn {
    min-width: 140px;
}

/* Small buttons keep their size but still have min-width */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: 100px;
}

/* Action buttons in tables */
.btn-action {
    min-width: 90px;
}

/* Full-width buttons in mobile or specific contexts */
.btn-full-width {
    width: 100%;
    min-width: auto;
}

/* Edit Modal Form Improvements */
.modal-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.modal-form-section {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.modal-form-section h3 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

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

.modal-form-section .form-group:last-child {
    margin-bottom: 0;
}

.modal-form-section .checkbox-group {
    margin-bottom: 0.75rem;
}

.modal-form-section .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0;
}

.modal-form-section .checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.modal-form-section .checkbox-group span {
    user-select: none;
}

/* Button variants */
.btn-warning {
    background-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #ffb300;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

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

thead {
    background-color: #f8f9fa;
}

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

th {
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px;
}

th:hover {
    background-color: #e9ecef;
}

th.sortable::after {
    content: ' ↕';
    position: absolute;
    right: 8px;
    opacity: 0.5;
    font-size: 0.8em;
}

th.sort-asc::after {
    content: ' ↑';
    opacity: 1;
}

th.sort-desc::after {
    content: ' ↓';
    opacity: 1;
}

tr:hover {
    background-color: #f8f9fa;
}

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

.card-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #667eea;
}

/* Buttons */
.btn-secondary {
    background-color: #6c757d;
    color: white;
}

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

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

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

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

/* Map */
#map {
    height: 600px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: #667eea;
    position: relative;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.alert-info {
    background-color: #d1ecf1;
}

/* Detail Page Styles */
.detail-page {
    max-width: 1400px;
    margin: 0 auto;
}

.detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.detail-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.detail-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.detail-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #667eea;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section-title::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

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

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    transition: all 0.2s ease;
}

.detail-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    color: #212529;
    font-weight: 500;
}

.detail-value.empty {
    color: #adb5bd;
    font-style: italic;
}

/* Form Page Styles */
.form-page {
    max-width: 1400px;
    margin: 0 auto;
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.form-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #667eea;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

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

.form-group {
    margin-bottom: 0;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[readonly],
.form-group textarea[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-xs {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Service Cards */
.service-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.service-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.service-card.archived {
    opacity: 0.6;
    background: #e9ecef;
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.service-card-title {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
}

.service-card.archived .service-card-title {
    text-decoration: line-through;
    color: #6c757d;
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #e9ecef;
}

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

.info-table td {
    padding: 0.75rem;
    vertical-align: top;
}

.info-table td:first-child {
    font-weight: 600;
    color: #6c757d;
    width: 40%;
    font-size: 0.9rem;
}

.info-table td:last-child {
    color: #212529;
}

/* Responsive */
@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-header-actions {
        width: 100%;
    }
    
    .detail-header-actions .btn {
        flex: 1;
    }
    
    .detail-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    margin-left: 1rem;
}

.alert-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filters {
        flex-direction: column;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}

