/* Reset css and basic setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.container.add-form {
    max-width: 500px;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Button styles */
.actions {
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

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

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

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

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

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

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

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

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

.btn-small {
    padding: 4px 8px;
    font-size: 11px;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

thead {
    background-color: #343a40;
    color: white;
}

th, td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    font-size: 13px;
}

/* Row coloring */
.row-paid {
    background-color: #d4edda; /* green */
}
.row-warning {
    background-color: #fff3cd; /* orange/yellow */
}
.row-expired {
    background-color: #f8d7da; /* red */
}

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

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

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

/* Alerts / Notifications */
.alert {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: bold;
}

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

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Nowy układ */
.container-large {
    max-width: 98%;
}

.main-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.complete-invoices {
    flex: 1;
    min-width: 500px;
}

.incomplete-invoices {
    flex: 1;
    min-width: 450px;
    background-color: #fff5f5;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 6px;
    box-shadow: inset 0 0 5px rgba(220,53,69,0.1);
}

.incomplete-invoices .table-responsive {
    overflow-x: hidden;
}

.incomplete-invoices td,
.incomplete-invoices th {
    white-space: normal !important;
    word-break: break-word;
    padding: 8px;
    font-size: 13px;
}

.incomplete-invoices h2 {
    color: #dc3545;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f5c6cb;
    padding-bottom: 5px;
}

.complete-invoices h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

/* Kolumny bez zawijania */
.nowrap-col {
    white-space: nowrap !important;
    min-width: max-content;
}

/* Kolumny z długim tekstem (np. uwagi) */
.wrap-col {
    white-space: normal;
    min-width: 150px;
}

.actions-td {
    white-space: nowrap;
}

.actions-td a {
    display: inline-block;
    margin-bottom: 4px;
    width: 100%;
    text-align: center;
}
