/* ... (předchozí styly) ... */

/* Print Button in Header */
.btn-print-link {
    background-color: #f39c12;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-right: 10px;
    vertical-align: middle;
}

.btn-print-link:hover {
    background-color: #d35400;
}

/* Year Selector Container to align items */
.year-selector {
    float: right;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.year-selector select {
    padding: 5px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ... (zbytek stylů) ... */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

h1, h2, h3 {
    color: #2c3e50;
}

.container {
    max-width: 1400px; /* Rozšířeno pro více sloupců */
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

/* Form Styles */
.form-section {
    background: #eef2f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #dcdde1;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9em;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

.btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

.btn:hover {
    background-color: #219150;
}

.btn-reset {
    background-color: #95a5a6;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    margin-top: 15px;
}

/* Header Company Info & Actions */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.company-header {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

.company-header strong {
    font-size: 1.2em;
    color: #2c3e50;
}

.company-logo {
    max-height: 80px;
    margin-bottom: 10px;
    display: block;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #2980b9;
}

.btn-logout {
    background-color: #e74c3c;
    color: white;
    text-decoration: none; /* Důležité: zrušení podtržení */
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.btn-logout:hover {
    background-color: #c0392b;
}

/* Tabs Styles */
.tabs-container {
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tabs li {
    margin-right: 5px;
    margin-bottom: -2px;
}

.tabs a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #555;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    font-weight: 600;
    transition: background-color 0.2s;
}

.tabs a:hover {
    background-color: #e9ecef;
}

.tabs a.active {
    background-color: #fff;
    color: #27ae60;
    border: 2px solid #ddd;
    border-bottom: 2px solid #fff;
    position: relative;
    z-index: 1;
}

/* Summary Boxes */
.summary-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 5px;
}

.summary-box {
    flex: 1;
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    border-left: 5px solid #27ae60;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.summary-box.year-box {
    border-left-color: #2980b9;
}

.summary-box.tax-box {
    border-left-color: #e67e22;
}

.summary-label {
    font-size: 0.85em;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9em;
}

th, td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #2c3e50;
    color: white;
    white-space: nowrap;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Cancelled Row Style */
tr.row-cancelled {
    background-color: #f9e7e7; /* Světle červená */
    color: #aaa;
    text-decoration: line-through;
}

tr.row-cancelled td strong {
    text-decoration: none; /* Číslo platby zůstane čitelné */
    color: #c0392b;
}

tr.row-cancelled .cancel-reason {
    text-decoration: none;
    font-size: 0.85em;
    color: #c0392b;
    font-weight: bold;
    display: block;
    margin-top: 2px;
}

.storno-label {
    color: #c0392b;
    font-weight: bold;
    font-size: 0.8em;
    text-decoration: none;
}

/* Actions */
.actions-cell {
    white-space: nowrap;
    text-align: center;
}

.btn-icon {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 1.1em;
    padding: 5px;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: #2c3e50;
}

.btn-icon.btn-danger:hover {
    color: #e74c3c;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Filter inputs */
.filter-input {
    width: 90%;
    padding: 4px;
    margin-top: 5px;
    font-size: 0.85em;
    border: 1px solid #ccc;
    border-radius: 3px;
    color: #333;
}

.error {
    color: #e74c3c;
    background: #fadbd8;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.success {
    color: #27ae60;
    background: #d5f5e3;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.logout-link {
    float: right;
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
}

/* Footer Spacer */
.footer-spacer {
    height: 50px;
}
