/* Grundläggande reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 20px;
    background-color: #f5f6fa;
}

/* Logo i sidomenyn */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 200px;
    height: auto;
}

/* Gå till ärende sektion */
.goto-case {
    padding: 10px;
    margin-bottom: 20px;
}

.goto-case label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.goto-case input {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.goto-case button {
    width: 100%;
    padding: 8px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goto-case button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.goto-case .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

/* Meny */
.menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu a.active {
    background-color: #3498db;
}

/* Ta bort den översta menyn */
nav:not(.menu) {
    display: none;
}

/* Stilar för ändrade fält */
.changed {
    border: 2px solid #ff4444 !important;
    background-color: #fff5f5;
}

/* Indikator för osparade ändringar */
#unsavedChangesIndicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ff4444;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    font-weight: bold;
}

/* Sökformulär och resultat */
.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.search-container .form-group {
    margin-bottom: 15px;
}

.search-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.search-container .form-control {
    width: 150px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-container .btn-primary {
    padding: 8px 20px;
    margin-top: 10px;
}

/* Resultattabell */
.cases-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.cases-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.cases-table .id-column {
    width: 100px;
}

.cases-table .action-column {
    width: 80px;
    text-align: center;
}

.cases-table tr:hover {
    background-color: #f5f5f5;
}

.btn-link {
    color: #007bff;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 3px;
}

.btn-link:hover {
    background-color: #007bff;
    color: white;
}

.search-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
}

.no-results {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    color: #666;
}

/* Generella knappstilar */
.button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #0056b3;
}

.button.small {
    padding: 4px 8px;
    font-size: 0.9em;
}

.button.secondary {
    background-color: #6c757d;
}

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

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

.button.warning {
    background-color: #ffc107;
    color: #000;
}

.button.warning:hover {
    background-color: #e0a800;
}

.button.danger {
    background-color: #dc3545;
}

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

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

.button.info:hover {
    background-color: #138496;
}

/* Fakturasidans specifika stilar */
.invoice-page .button {
    margin: 2px;
}

.invoice-actions .button {
    margin-right: 5px;
}

/* Övriga knappstilar */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
    color: white;
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
}

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

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

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

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

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

.btn-warning {
    background-color: #ffc107;
    color: #000;
}

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

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

.btn-info:hover {
    background-color: #138496;
}

/* Modal */
.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: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 10px;
    top: 5px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Content */
.content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.dashboard-item i {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.dashboard-item h2 {
    margin-bottom: 10px;
    color: #333;
}

.dashboard-item p {
    color: #666;
}

/* Content */
.content h1 {
    margin-bottom: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    margin-bottom: 30px;
}

header h1 {
    color: #333;
    margin-bottom: 20px;
}

/* Tables */
.cases-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.cases-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Case details */
.case-details {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

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

.info-item {
    margin-bottom: 10px;
}

.info-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    color: #666;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.status-badge.inkommande {
    background-color: #ffc107;
    color: #000;
}

.status-badge.ankommen {
    background-color: #17a2b8;
    color: #fff;
}

.status-badge.klar {
    background-color: #28a745;
    color: #fff;
}

.status-badge.unpaid {
    background-color: #ffd700;
    color: #000;
}

.status-badge.paid {
    background-color: #28a745;
    color: #fff;
}

.status-badge.markulera {
    background-color: #ff6b6b;
    color: #fff;
}

.status-badge.refund {
    background-color: #4dabf7;
    color: #fff;
}

/* Work section */
.work-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.work-section textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

/* Shipping section */
.shipping-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.shipping-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

/* Actions grid */
.actions-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

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

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

/* Login form */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.error-message {
    color: #dc3545;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Filter sektion */
.filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.filters select,
.filters input {
    max-width: 200px;
}

/* Responsiv design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .cases-table {
        display: block;
        overflow-x: auto;
    }

    .filters {
        flex-direction: column;
    }

    .filters select,
    .filters input {
        max-width: 100%;
    }
}

/* Form sections och grid layout för ärendehantering */
.form-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Fältgrupper och storlekar */
.field-small {
    width: 150px !important;
}

.field-medium {
    width: 250px !important;
}

.field-large {
    width: 100% !important;
    grid-column: span 3;
}

/* Textareas för större innehåll */
textarea.field-large {
    min-height: 150px;
    resize: vertical;
}

/* Specifika fält och grupper */
.customer-info {
    grid-column: span 1;
}

.product-info {
    grid-column: span 1;
}

.case-info {
    grid-column: span 1;
}

/* Knapptabell och knappar för hantera ärende */
.button-table-container {
    margin-top: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.button-table-container > button {
    margin-bottom: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.button-table-container > button:hover {
    background-color: #0056b3;
}

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

.button-table th {
    background-color: #f8f9fa;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: bold;
}

.button-table td {
    padding: 10px;
    vertical-align: top;
}

.button-table button {
    width: 100%;
    margin-bottom: 5px;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.button-table button:hover {
    background-color: #0056b3;
}

/* Quick text selector */
.quick-text-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.quick-text-selector select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quick-text-selector button {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.quick-text-selector button:hover {
    background-color: #0056b3;
}

/* Case logs sektion */
.case-logs {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.case-logs h2 {
    margin-bottom: 15px;
}

#logList {
    list-style: none;
    padding: 0;
}

#logList li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

#logList li:last-child {
    border-bottom: none;
}

/* Header för ärendehantering */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Form inputs och labels */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

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

.checkbox-label:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Stripe Payment Styles */
.payment-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-info {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

#card-element {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.error-message {
    color: #dc3545;
    margin-top: 8px;
    font-size: 14px;
}

#submit-button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: #6772e5;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#submit-button:hover {
    background: #5469d4;
}

#submit-button:disabled {
    background: #aab7c4;
    cursor: not-allowed;
}

/* Faktura sida */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

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

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

.filters-container {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-buttons button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.filter-buttons button.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

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

.status-badge.unpaid {
    background-color: #ffd700;
    color: #000;
}

.status-badge.paid {
    background-color: #28a745;
    color: #fff;
}

.actions {
    display: flex;
    gap: 5px;
}

.button.small {
    padding: 4px 8px;
    font-size: 12px;
}

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

.button.warning {
    background-color: #ffc107;
    color: #000;
}

/* Filter buttons */
.filter-button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-button:hover {
    background-color: #e9ecef;
}

.filter-button.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

/* ReclaimIT Import Page */
.content-box {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.input-group .form-control {
    flex: 1;
    height: 46px;
    font-size: 16px;
    padding: 10px 12px;
    width: 300px;
}

.input-group .btn {
    min-width: 100px;
    height: 46px;
    font-size: 16px;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

.btn.loading {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn.loading .spinner {
    display: inline-block;
}

.btn .spinner {
    display: none;
}

/* User Management Styles */
body .user-management {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body .user-management h1 {
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

body .user-management h2 {
    margin: 20px 0;
    color: #444;
    font-size: 20px;
    font-weight: bold;
}

/* New User Form */
body .new-user-form {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

body .new-user-form .form-group {
    margin-bottom: 15px;
}

body .new-user-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

body .new-user-form input,
body .new-user-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

body .new-user-form input:focus,
body .new-user-form select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

body .new-user-form button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    width: auto;
}

body .new-user-form button:hover {
    background: #0056b3;
}

/* Existing Users Table */
body .users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 20px;
}

body .users-table th,
body .users-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

body .users-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

body .users-table tr:hover {
    background-color: #f5f5f5;
}

body .users-table select {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    width: auto;
}

/* Action Buttons */
body .users-table .action-buttons {
    display: flex;
    gap: 10px;
}

body .users-table button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
    width: auto;
}

body .users-table button.reset-password {
    background-color: #ffc107;
    color: #000;
}

body .users-table button.reset-password:hover {
    background-color: #e0a800;
}

body .users-table button.delete-user {
    background-color: #dc3545;
    color: white;
}

body .users-table button.delete-user:hover {
    background-color: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    body .users-table {
        display: block;
        overflow-x: auto;
    }

    body .new-user-form {
        padding: 15px;
    }

    body .users-table .action-buttons {
        flex-direction: column;
        gap: 5px;
    }

    body .users-table button {
        width: 100%;
    }
}

/* Norce Customer Search Styles */
.customer-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
}

.customer-header {
    margin-bottom: 20px;
}

.customer-header h3 {
    margin: 0 0 10px 0;
    color: #333;
}



.orders-section {
    margin-top: 20px;
}

.orders-section h4 {
    margin-bottom: 10px;
    color: #555;
}

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

.order-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f5f5f5;
    cursor: pointer;
    user-select: none;
}

.order-header:hover {
    background: #e9e9e9;
}

.order-details {
    padding: 15px;
    background: #fff;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

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

.item-info {
    flex: 1;
}

.item-info p {
    margin: 5px 0;
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

.error {
    color: #e74c3c;
    text-align: center;
    padding: 10px;
} 

/* Invoice Sync Styles */
.sync-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.status-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.status-success {
    border-left: 4px solid #28a745;
}

.status-warning {
    border-left: 4px solid #ffc107;
}

.status-error {
    border-left: 4px solid #dc3545;
}

.sync-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sync-results {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #28a745;
}

.info-section {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #007bff;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

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

.header-actions h1 {
    margin: 0;
}

.header-actions .button {
    margin-left: 10px;
} 