#webfusion-sprava-wrapper {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

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

#webfusion-sprava-wrapper h1,
#webfusion-sprava-wrapper h2,
#webfusion-sprava-wrapper h3,
#webfusion-sprava-wrapper h4,
#webfusion-sprava-wrapper h5,
#webfusion-sprava-wrapper h6 {
    color: #333 !important;
    margin: 0 !important;
}

.wf-sprava-form-row {
    margin-bottom: 15px;
}

.wf-sprava-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.wf-sprava-form-row input[type="text"],
.wf-sprava-form-row select,
.wf-sprava-form-row textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: #333;
}

.wf-sprava-form-row textarea {
    min-height: 80px;
    resize: vertical;
}

.wf-sprava-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.wf-sprava-btn-primary {
    background: #239a93;
    color: #fff;
}

.wf-sprava-btn-primary:hover {
    background: #1d7f79;
}

.wf-sprava-btn-danger {
    background: #dc3545;
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
}

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

.wf-sprava-btn-success {
    background: #239a93;
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
}

.wf-sprava-btn-success:hover {
    background: #1d7f79;
}

.wf-sprava-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wf-sprava-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.wf-sprava-table thead th:nth-child(1) { width: 18%; }
.wf-sprava-table thead th:nth-child(2) { width: 21%; }
.wf-sprava-table thead th:nth-child(3) { width: 9%; }
.wf-sprava-table thead th:nth-child(4) { width: 12%; }
.wf-sprava-table thead th:nth-child(5) { width: 18%; }
.wf-sprava-table thead th:nth-child(6) { width: 10%; }
.wf-sprava-table thead th:nth-child(7) { width: 12%; }

.wf-sprava-table tbody td:nth-child(1) {
    font-weight: 600;
}

.wf-sprava-table thead {
    background: #333;
}

.wf-sprava-table th {
    padding: 10px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid #239a93;
    font-size: 12px;
}

.wf-sprava-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
    color: #333;
}

.wf-sprava-table tbody tr:hover:not(.wf-sprava-detail-row) {
    background: #f5f5f5;
}

.wf-sprava-loading {
    text-align: center;
    color: #666;
    font-style: italic;
}

.wf-sprava-tarif-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.wf-sprava-tarif-badge.tarif-1375 {
    background: #239a93;
}

.wf-sprava-tarif-badge.tarif-1721 {
    background: #3b82f6;
}

.wf-sprava-tarif-badge.tarif-1722 {
    background: #8b5cf6;
}

.wf-sprava-tarif-badge.tarif-1727 {
    background: #f59e0b;
}

.wf-sprava-tarif-badge.tarif-2191 {
    background: #10b981;
}


.wf-sprava-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.wf-sprava-action-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #666;
}

.wf-sprava-action-btn:hover {
    background: #f5f5f5;
    border-color: #999;
    transform: translateY(-1px);
}

.wf-sprava-action-btn svg {
    display: block;
}

.wf-sprava-edit-btn:hover {
    color: #239a93;
    border-color: #239a93;
}

.wf-sprava-extend-btn:hover {
    color: #3b82f6;
    border-color: #3b82f6;
}

.wf-sprava-delete-btn:hover {
    color: #dc3545;
    border-color: #dc3545;
}


.wf-sprava-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.wf-sprava-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.wf-sprava-modal-content h3 {
    color: #333;
    margin-top: 0;
}

.wf-sprava-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.wf-sprava-modal-close:hover {
    color: #333;
}

.wf-sprava-upcoming-renewals {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wf-sprava-upcoming-renewals h3 {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    color: #333 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.wf-sprava-renewals-section {
    margin-bottom: 15px;
}

.wf-sprava-renewals-section:last-child {
    margin-bottom: 0;
}

.wf-sprava-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px 0 !important;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.wf-sprava-expired-title {
    background: #fef2f2;
    color: #dc3545 !important;
    border-left: 3px solid #dc3545;
}

.wf-sprava-expired-title svg {
    color: #dc3545;
    width: 14px;
    height: 14px;
}

.wf-sprava-upcoming-title {
    background: #f0f9ff;
    color: #239a93 !important;
    border-left: 3px solid #239a93;
}

.wf-sprava-upcoming-title svg {
    color: #239a93;
    width: 14px;
    height: 14px;
}

.wf-sprava-renewals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.wf-sprava-minimal-box {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 6px 10px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    font-size: 12px;
    transition: background 0.15s;
}

.wf-sprava-minimal-box:hover {
    background: #f5f5f5;
}

.wf-sprava-expired-box {
    border-left: 3px solid #dc3545;
    background: #fef9f9;
}

.wf-sprava-expired-box:hover {
    background: #fef2f2;
}

.wf-sprava-warning-box {
    border-left: 3px solid #f59e0b;
}

.wf-sprava-minimal-web {
    font-weight: 500 !important;
    color: #333 !important;
    font-size: 12px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-sprava-minimal-date {
    color: #666 !important;
    font-size: 11px !important;
    white-space: nowrap;
}

.wf-sprava-minimal-days {
    font-weight: 600 !important;
    color: #16a34a !important;
    font-size: 11px !important;
    white-space: nowrap;
}

.wf-sprava-expired-days {
    color: #dc3545 !important;
}

.wf-sprava-warning-days {
    color: #d97706 !important;
}

.wf-sprava-no-renewals {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 20px;
}

.wf-sprava-detail-row {
    background: #fafafa;
}

.wf-sprava-detail-row td {
    padding: 8px 10px;
    font-size: 12px;
    color: #666;
    border-top: none !important;
}

.wf-sprava-detail-row:hover {
    background: #fafafa !important;
}

.wf-sprava-detail-cell {
    border-right: 1px solid #e5e5e5;
}

.wf-sprava-detail-cell-last {
    border-right: none;
}

.wf-sprava-detail-cell strong {
    color: #333;
    font-weight: 600;
    margin-right: 8px;
}



.wf-sprava-select-edit {
    width: 100%;
    padding: 4px 8px;
    border: 2px solid #239a93;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
}

.wf-sprava-edit-input {
    width: 100%;
    padding: 4px 8px;
    border: 2px solid #239a93;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
}

.wf-sprava-edit-textarea {
    width: 100%;
    min-height: 60px;
    padding: 4px 8px;
    border: 2px solid #239a93;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    resize: vertical;
}

.wf-sprava-table tbody td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wf-sprava-detail-row td {
    white-space: normal !important;
    overflow: visible !important;
}

@media (max-width: 768px) {
    .wf-sprava-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .wf-sprava-table {
        font-size: 11px;
    }

    .wf-sprava-table th,
    .wf-sprava-table td {
        padding: 6px;
    }

    .wf-sprava-actions {
        flex-wrap: wrap;
        gap: 4px;
    }

    .wf-sprava-upcoming-renewals {
        padding: 12px;
    }

    .wf-sprava-section-title {
        font-size: 11px !important;
        padding: 4px 8px;
    }

    .wf-sprava-renewals-grid {
        grid-template-columns: 1fr;
    }

    .wf-sprava-minimal-box {
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 5px 8px;
    }

    .wf-sprava-minimal-web,
    .wf-sprava-minimal-date,
    .wf-sprava-minimal-days {
        font-size: 11px !important;
    }

    .wf-sprava-minimal-date {
        grid-column: 1;
        grid-row: 2;
    }

    .wf-sprava-minimal-days {
        grid-column: 2;
        grid-row: 1 / 3;
    }
}
