/**
 * Napoj Plugin Styles
 */

/* General Styles */
.napoj-sklop-list,
.napoj-podsklop-list,
.napoj-cilji-list,
.napoj-scenariji-list,
.napoj-koncepti-list {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.napoj-sklop-list h3,
.napoj-podsklop-list h3,
.napoj-cilji-list h3,
.napoj-scenariji-list h3,
.napoj-koncepti-list h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

/* List Styles */
.napoj-sklop-list ul,
.napoj-podsklop-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.napoj-sklop-list li,
.napoj-podsklop-list li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.napoj-sklop-list li:hover,
.napoj-podsklop-list li:hover {
    background: #e8f4fd;
}

/* Table Styles */
.napoj-table {
    min-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.napoj-table th {
    background-color: #0073aa;
    color: #ffffff;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border: 1px solid #005177;
    border-bottom: 2px solid #005177;
    box-sizing: border-box;
}

.napoj-table td {
    padding: 12px;
    border-top: 1px solid #e1e1e1;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    box-sizing: border-box;
}


.napoj-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}
.napoj-table tbody {
    height: 100%;
}

.napoj-table tbody tr:hover {
    background-color: #e8f4fd;
}

/* Scenariji naslov and sklop cell styles */
#scenariji-table .scenariji-naslov-cell {
    min-width: 200px;
    max-width: 350px;
    font-weight: 700;
}
#scenariji-table .scenariji-sklop-cell {
    min-width: 180px;
    max-width: 250px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    white-space: normal;
}
#scenariji-table .scenariji-sklop-label {
    font-weight: 600;
    margin-bottom: 2px;
}
#scenariji-table .scenariji-podsklop-label {
    font-size: 0.9em;
    color: #666;
}
#scenariji-table{
    border-collapse: collapse;
}
#scenariji-table td{
    vertical-align: top;
    min-height: 60px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}
#scenariji-table td > * {
    vertical-align: middle;
}
/* File download icons container */
#scenariji-table .scenariji-files-cell {
    vertical-align: top;
    width: 110px;
    overflow: hidden;
}
#scenariji-table .scenariji-files-container {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1;
}
#scenariji-table .scenariji-files-container a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 4px 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 1;
}
#scenariji-table .scenariji-files-container a svg {
    width: 20px;
    height: 20px;
    display: block;
}
#scenariji-table .scenariji-files-container a:hover {
    transform: scale(1.15);
    opacity: 0.9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#scenariji-table .scenariji-files-container a:active {
    transform: scale(0.95);
}
#scenariji-table .scenariji-files-container .scenariji-no-pdf,
#scenariji-table .scenariji-files-container .scenariji-no-zip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    cursor: not-allowed;
    flex-shrink: 0;
    line-height: 1;
}


/* Responsive table */
@media screen and (max-width: 768px) {
    .napoj-table {
        font-size: 12px;
    }

    .napoj-table th,
    .napoj-table td {
        padding: 8px 6px;
    }

    .napoj-table th {
        font-size: 11px;
    }
}

/* Table container */
.napoj-table-container {
    overflow-x: auto;
    max-width: 100%;
    margin: 20px 0;
}

/* RINOS tooltip */
.koncept-opis {
    position: relative;
    cursor: help;
}

.rinos-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-top: 4px;
    min-width: 200px;
    max-width: 300px;
    word-wrap: break-word;
}

.koncept-opis:hover .rinos-tooltip {
    display: block;
}

/* Koncepti modal styles */
#koncepti-cilji-modal,
#koncepti-scenariji-modal {
    display: none;
    position: absolute;
    z-index: 9999;
    max-width: 360px;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid rgba(0, 115, 170, 0.2);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

#koncepti-cilji-modal::before,
#koncepti-scenariji-modal::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 24px;
    border: 8px solid transparent;
    border-bottom-color: #ffffff;
}

.koncepti-cilji-modal-header,
.koncepti-scenariji-modal-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    font-size: 15px;
    font-weight: 700;
    color: #0073aa;
}

.koncepti-cilji-modal-content,
.koncepti-scenariji-modal-content {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.koncepti-cilji-list,
.koncepti-scenariji-list {
    display: grid;
    gap: 12px;
}

.koncepti-cilji-item,
.koncepti-scenariji-item {
    padding: 12px 14px;
    background: #f8fbff;
    border: 1px solid #e3f0ff;
    border-radius: 10px;
}

.koncepti-cilji-item-title {
    margin-bottom: 6px;
    font-weight: 600;
    color: #1f3d6b;
}

.koncepti-cilji-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.koncepti-cilji-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #0073aa;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.koncepti-cilji-pill--secondary {
    background: #deeaf7;
    color: #1f3d6b;
}

.koncepti-cilji-empty,
.koncepti-scenariji-empty {
    color: #6c757d;
    font-style: italic;
}

/* Cell content styling */
.napoj-table .cilj-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #111;
    font-style: normal;
}

#cilji-table .cilj-content,
#cilji-table th.cilji-col-opis {
    min-width: 300px;
    width: 35%;
}

#cilji-table th.cilji-col-opis {
    background: #0073aa;
}

#koncepti-table .koncept-opis,
#koncepti-table .opis-column {
    width: 30%;
    min-width: 250px;
}

.napoj-table .koncept-content {
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 4px 0;
    font-size: 13px;
    color: #111;
    font-style: normal;
    max-height: 5em;
    transition: max-height 1s ease-in-out;
}
.napoj-table .koncept-content:hover {
    line-clamp: unset;
    -webkit-line-clamp: unset;
    max-height: 500rem; /* big enough to show full text */
    transition: max-height 1s ease-in-out;
}

/* Scenariji list styling */
.napoj-scenariji-list .scenarija-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.napoj-scenariji-list .scenarija-item h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
    font-size: 20px;
    font-weight: 600;
}

.napoj-scenariji-list .scenarija-item p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.napoj-scenariji-list .scenarija-item strong {
    color: #333;
    font-weight: 600;
}

/* Cilji Table Styles */
.cilji-table-container {
    margin-top: 20px;
}

.cilji-table-container h5 {
    margin-bottom: 10px;
    color: #495057;
    font-size: 1em;
    font-weight: 600;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}

.cilji-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.cilji-table th {
    background: #0073aa;
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.cilji-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.cilji-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.cilji-table tbody tr:hover {
    background: #e8f4fd;
}

.cilji-table td:first-child {
    font-weight: 500;
    color: #2c3e50;
}

.no-cilji-message {
    color: #6c757d;
    font-style: italic;
}

/* Download Links */
.napoj-download-link {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #28a745;
    transition: all 0.3s ease;
}

.napoj-download-link:hover {
    color: #218838;
    border-bottom-color: #218838;
    text-decoration: none;
}

.napoj-download-link:before {
    content: "📎 ";
    margin-right: 5px;
}

/* Cilji Table Controls */
.cilji-controls,
.koncepti-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.control-group select {
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

.control-group span {
    color: #6c757d;
    font-size: 14px;
}

/* Sortable Headers */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sortable:hover,
.sortable.sorted-asc,
.sortable.sorted-desc {
    background-color: #005177;
    color: #ffffff;
}

.sortable .sort-indicator {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    transition: border-color 0.2s ease;
}

.sortable.sorted-asc .sort-indicator,
.sortable:hover .sort-indicator {
    border-bottom: 5px solid #ffe066;
}

.sortable.sorted-desc .sort-indicator {
    border-top: 5px solid #ffe066;
}

.napoj-table .row-select-cell {
    width: 48px;
    text-align: center;
}

.napoj-table .row-select-cell input.cilji-row-checkbox,
.napoj-table .row-select-cell input.koncept-row-checkbox {
    margin: 0;
    transform: scale(1.1);
}

.napoj-table .row-select-header {
    width: 48px;
    text-align: center;
}

.napoj-table tr.row-selected {
    background-color: #e8f4ff;
}

.napoj-table #koncepti-table-body tr.row-selected {
    background-color: #e8f4ff;
}

.napoj-table .koncept-content {
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 4px 0;
    font-size: 13px;
    color: #111;
    font-style: normal;
    max-height: 5em;
    transition: max-height 0.5s ease-in-out, color 0.2s ease, outline 0.2s ease;
    cursor: help;
}

.napoj-table .koncept-content:hover,
.napoj-table .koncept-content:focus {
    line-clamp: unset;
    -webkit-line-clamp: unset;
    max-height: 500rem;
    color: #0d3f6d;
    outline-offset: 3px;
}

/* Pagination */
.cilji-pagination,
.koncepti-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
}

.pagination-btn {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: 1px solid #0073aa;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #005177;
    border-color: #005177;
}

.pagination-btn:disabled {
    background: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

#pagination-info {
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

/* Scenarija Section Styles */
.scenarija-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.scenarija-section h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #495057;
    font-size: 1em;
    font-weight: 600;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}

/* Form Styles */
.napoj-cilj-form-wrapper,
.napoj-scenarija-form-wrapper {
    max-width: 800px;
    margin: 20px 0;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.napoj-cilj-form-wrapper h3,
.napoj-scenarija-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="file"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group select[multiple] {
    min-height: 120px;
}

.required-mark {
    color: #dc3232;
}

.field-description {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 6px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Radio group */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    font-size: 14px;
}

.radio-label input[type="radio"] {
    margin-right: 6px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Podsklopi multi-select */
.napoj-podsklopi-multiselect {
    min-height: 100px;
}

/* Cilji dropdown - same as koncept dropdown */
.cilji-dropdown-wrapper {
    position: relative;
}

.cilji-dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ddd;
    border-top: none;
    max-height: calc(5 * 46px);
    overflow-y: auto;
    background: white;
    border-radius: 0 0 4px 4px;
    display: none;
}

.cilji-dropdown.active {
    display: block;
}

.cilji-option {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    overflow-y: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    display: block;
}

.cilji-option:hover,
.cilji-option.highlighted {
    background-color: #e8f4fd;
}

.cilji-option.selected {
    background-color: #0073aa;
    color: white;
}

.cilji-option:last-child {
    border-bottom: none;
}

.cilji-option mark {
    background-color: #fff3a5;
    padding: 0 2px;
}

.selected-cilji-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cilji-tag {
    display: inline-flex;
    align-items: center;
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.cilji-tag .remove-cilji {
    margin-left: 6px;
    cursor: pointer;
    font-weight: bold;
}

.cilji-tag .remove-cilji:hover {
    color: #ffcccc;
}

.form-submit {
    text-align: center;
    margin-top: 25px;
}

/* Fuzzy search filter for dropdown */
.napoj-search-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 8px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.napoj-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Custom dropdown container */
.koncept-dropdown-wrapper {
    position: relative;
}

.koncept-dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ddd;
    border-top: none;
    max-height: calc(5 * 46px);
    overflow-y: auto;
    background: white;
    border-radius: 0 0 4px 4px;
    display: block;
}

.koncept-option {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    overflow-y: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    display: block;
}

.koncept-option:hover,
.koncept-option.highlighted {
    background-color: #e8f4fd;
}

.koncept-option.selected {
    background-color: #0073aa;
    color: white;
}

.koncept-option:last-child {
    border-bottom: none;
}

.koncept-option mark {
    background-color: #fff3cd;
    padding: 0;
    margin: 0;
    display: inline;
}

.button.button-primary {

    background: #0073aa;
    border: none;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button.button-primary:hover {
    background: #005177;
}

.button.button-primary:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.button.button-secondary {
    border: none;
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#cilji-print-btn {
    background: #17a2b8;
}
#cilji-print-btn:hover {
    background: #117a8b;
}
#cilji-export-xlsx-btn {
    background: #28a745;
}
#cilji-export-xlsx-btn:hover {
    background: #218838;
}
#cilji-export-ods-btn, #cilji-export-ods-btn:hover {
    background: #17a2b8;
}
#cilji-export-csv-btn, #cilji-export-csv-btn:hover {
    background: #6c757d;
}

#koncepti-print-btn {
    background: #17a2b8;
}
#koncepti-print-btn:hover {
    background: #117a8b;
}
#koncepti-export-xlsx-btn {
    background: #28a745;
}
#koncepti-export-xlsx-btn:hover {
    background: #218838;
}
#koncepti-export-ods-btn, #koncepti-export-ods-btn:hover {
    background: #17a2b8;
}
#koncepti-export-csv-btn, #koncepti-export-csv-btn:hover {
    background: #6c757d;
}

/* Form messages */
#napoj-form-message,
#napoj-scenarija-form-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
}

#napoj-form-message.success,
#napoj-scenarija-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#napoj-form-message.error,
#napoj-scenarija-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Small text */
small {
    font-size: 12px;
    color: #666;
}

/* ===== FILTER STYLES ===== */
.cilji-filters,
.koncepti-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
}

.cilji-filter-group,
.koncepti-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    box-sizing: border-box;
    min-width: 0;
}

.cilji-filter-group label,
.koncepti-filter-group label {
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.cilji-search-input,
.koncepti-search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
}
.pagination-input{
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.pagination-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.cilji-search-input:focus,
.koncepti-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.cilji-filter-select,
.cilji-filter-multiselect,
.koncepti-filter-select,
.koncepti-filter-multiselect {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
}

.cilji-filter-select:focus,
.cilji-filter-multiselect:focus,
.koncepti-filter-select:focus,
.koncepti-filter-multiselect:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.cilji-filter-multiselect,
.koncepti-filter-multiselect {
    min-width: 150px;
    min-height: 40px;
}

/* Search mode radio buttons */
.cilji-search-modes {
    flex-basis: 100%;
    margin-bottom: 10px;
}

.cilji-search-modes fieldset {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 0;
    background: #fff;
}

.cilji-search-modes legend {
    font-weight: 600;
    color: #333;
    padding: 0 5px;
    margin-bottom: 5px;
}

.cilji-search-mode {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 20px;
    cursor: pointer;
    font-weight: normal;
    color: #333;
}

.cilji-search-mode input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.cilji-search-hint {
    display: block;
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 4px;
}

/* Search mode buttons */
.cilji-search-modes {
    flex-basis: 100%;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.cilji-mode-btn {
    padding: 10px 20px;
    border: 2px solid #0073aa;
    background: #fff;
    color: #0073aa;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cilji-mode-btn:hover {
    background: #0073aa;
    color: #fff;
}

.cilji-mode-btn-active {
    background: #0073aa;
    color: #fff;
}

/* Filter views */
.cilji-filter-view {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.cilji-view-hidden {
    display: none;
}

.cilji-fuzzy-view {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cilji-reset-group,
.koncepti-reset-group,
.scenariji-reset-group {
    flex-basis: 100%;
    margin-top: 10px;
    justify-content: flex-end;
}

#cilji-reset-filters,
#koncepti-reset-filters,
#scenariji-reset-filters {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background: #dc3545;
    color: white;
    transition: background-color 0.2s ease;
}

#cilji-reset-filters::before,
#koncepti-reset-filters::before,
#scenariji-reset-filters::before {
    content: "\21BA\00a0";
    font-size: 16px;
}

#cilji-reset-filters:hover,
#koncepti-reset-filters:hover,
#scenariji-reset-filters:hover {
    background: #c82333;
}

/* ===== SEARCH HIGHLIGHTING ===== */
mark {
    background-color: #fff3cd;
    color: #333;
    padding: 0;
    margin: 0;
    border-radius: 2px;
    font-weight: 600;
    display: inline;
}

/* ===== SCENARIJI TABLE SPECIFIC ===== */
.scenariji-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
}

.scenariji-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    box-sizing: border-box;
    min-width: 0;
}

.scenariji-filter-group label {
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.scenariji-search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
}

.scenariji-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.scenariji-filter-multiselect {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    min-width: 150px;
    min-height: 40px;
    box-sizing: border-box;
    max-width: 100%;
}

.scenariji-filter-multiselect:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

#scenariji-reset-filters {
    padding: 8px 16px;
    height: auto;
    background: #dc3545;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#scenariji-reset-filters:hover {
    background: #c82333;
}

.scenariji-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.scenariji-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
}

.scenariji-download-cell {
    text-align: center;
    vertical-align: middle;
}
.scenariji-download-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.scenariji-download-cell a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 4px 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    line-height: 1;
}
.scenariji-download-cell a:hover {
    transform: scale(1.15);
    opacity: 0.9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.scenariji-download-cell a svg {
    width: 20px;
    height: 20px;
    display: block;
}
.scenariji-koncepti-cell {
    cursor: pointer;
    position: relative;
}
.scenariji-cilji-cell {
    cursor: pointer;
    position: relative;
}

.cilji-count-badge {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.cilji-hover-hint {
    color: #0073aa;
    font-size: 12px;
    margin-left: 4px;
    font-style: italic;
}

/* ===== SCENARIJI CILJI MODAL ===== */
.napoj-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.napoj-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.napoj-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.napoj-modal-close:hover,
.napoj-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#scenariji-modal-title {
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.cilji-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cilji-modal-list li {
    padding: 12px;
    margin-bottom: 10px;
    background: #f8fbff;
    border: 1px solid #e3f0ff;
    border-radius: 8px;
}

.cilji-modal-list li strong {
    display: block;
    color: #1f3d6b;
    margin-bottom: 6px;
}

.cilji-modal-list .cilji-meta {
    display: inline-block;
    margin-right: 10px;
    padding: 3px 8px;
    background: #e8f4fd;
    border-radius: 4px;
    font-size: 12px;
    color: #0073aa;
}

/* Export buttons */
#scenariji-print-btn {
    background: #17a2b8;
}
#scenariji-export-xlsx-btn, #scenariji-export-xlsx-btn:hover {
    background: #28a745;
}
#scenariji-export-ods-btn, #scenariji-export-ods-btn:hover {
    background: #17a2b8;
}
#scenariji-export-csv-btn, #scenariji-export-csv-btn:hover {
    background: #6c757d;
}

/* Red PDF icon */
.scenariji-download-pdf svg {
    stroke: #dc3545 !important;
}

/* Orange ZIP icon */
.scenariji-download-zip svg {
    stroke: #e67e22 !important;
}

/* Selected row */
.scenariji-row-selected {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107 !important;
}

.scenariji-row-selected:hover {
    background-color: #ffe69c !important;
}

/* Scenarij details panel */
.scenariji-details {
    margin-top: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scenariji-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.scenariji-detail-header h4 {
    margin: 0;
    color: #0073aa;
    font-size: 24px;
    font-weight: 600;
}

.scenariji-detail-close {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    background: #6c757d;
    color: #fff;
    border: 2px solid #6c757d;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scenariji-detail-close:hover {
    background: #5a6268;
    border-color: #545b62;
    transform: scale(1.05);
}

.scenariji-detail-close:active {
    transform: scale(0.98);
}

.scenariji-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
}

.scenariji-detail-section {
    background: #f8f9fa;
    padding: 24px 28px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.scenariji-detail-section--wide {
    grid-column: span 2;
}

.scenariji-detail-grid > .scenariji-detail-section:not(.scenariji-detail-section--wide) {
    align-self: stretch;
}

.scenariji-detail-section > h5 {
    flex-shrink: 0;
}

.scenariji-detail-section > .detail-field {
    flex: 1;
}

.scenariji-detail-section h5 {
    margin: 0 0 18px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
}

.detail-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    line-height: 1.6;
    align-items: flex-start;
}

.detail-field:last-child {
    margin-bottom: 0;
}

.detail-field label {
    font-weight: 600;
    color: #333;
    min-width: 140px;
    flex-shrink: 0;
    font-size: 15px;
    margin-bottom: 8px;
}

.detail-field span {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.detail-field--rich {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.detail-field--rich label {
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.rich-text-content {
    color: #444;
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 15px;
}

.rich-text-content p {
    margin: 0 0 14px 0;
}

.rich-text-content ul, .rich-text-content ol {
    margin: 0 0 14px 24px;
}

.rich-text-content li {
    margin-bottom: 6px;
}

.status-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-draft {
    background: #e2e3e5;
    color: #383d41;
}

.status-published {
    background: #d4edda;
    color: #155724;
}

.status-osnutek {
    background: #e2e3e5;
    color: #383d41;
}

.status-objavljen {
    background: #d4edda;
    color: #155724;
}

.scenariji-detail-files {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.scenariji-detail-files a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.scenariji-detail-files a:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.scenariji-detail-files a:active {
    transform: scale(0.98);
}

.scenariji-detail-files .no-file {
    color: #999;
    font-style: italic;
    font-size: 13px;
}

.scenariji-detail-cilji {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.scenariji-detail-cilji li {
    padding: 18px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.scenariji-detail-cilji .cilj-text {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.scenariji-detail-cilji .cilj-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.scenariji-detail-cilji .meta-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f4fd;
    color: #0073aa;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .scenariji-detail-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }
    
    .scenariji-detail-section {
        min-height: auto;
    }
    
    .scenariji-detail-section--wide {
        grid-column: span 1;
    }
    
    .detail-field {
        flex-direction: column;
    }
    
    .detail-field label {
        min-width: auto;
        margin-bottom: 4px;
    }
}

/* Checkbox selection styles */
.row-select-cell {
    width: 40px;
    text-align: center;
}

/* Predmeti cell with hover tooltip */
.predmeti-cell {
    position: relative;
}

.predmeti-visible {
    display: inline;
}

.predmeti-ellipsis {
    color: #999;
    font-size: 12px;
    cursor: default;
}

.predmeti-tooltip {
    display: none;
    position: absolute;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    z-index: 99999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    max-width: 300px;
    white-space: normal;
    pointer-events: none;
}

.predmeti-tooltip::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 15px;
    border: 6px solid transparent;
    border-top-color: #333;
}

.row-select-cell input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
    cursor: pointer;
}

#scenariji-select-all {
    transform: scale(1.2);
    cursor: pointer;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .napoj-cilj-form-wrapper,
    .napoj-scenarija-form-wrapper {
        margin: 10px;
        padding: 20px;
    }

    .napoj-sklop-list,
    .napoj-podsklop-list,
    .napoj-cilji-list,
    .napoj-scenariji-list {
        margin: 10px;
        padding: 15px;
    }

    .napoj-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .napoj-table {
        min-width: 600px;
    }

    /* Scenarija responsive styles */
    .napoj-scenariji-list .scenarija-item {
        margin-bottom: 20px;
        padding: 15px;
    }

    .scenarija-section {
        margin-bottom: 15px;
        padding: 12px;
    }

    .napoj-scenariji-list .scenarija-item h4 {
        font-size: 18px;
    }

    /* Download links responsive */
    .napoj-download-link {
        display: inline-block;
        margin-top: 5px;
        word-break: break-all;
    }

    /* Cilji table responsive */
    .cilji-table-container {
        margin-top: 15px;
    }

    .cilji-table th,
    .cilji-table td {
        padding: 8px 4px;
        font-size: 13px;
    }

    .cilji-table th:nth-child(4),
    .cilji-table th:nth-child(5),
    .cilji-table td:nth-child(4),
    .cilji-table td:nth-child(5) {
        display: none;
    }

    /* ===== FILTERS RESPONSIVE ===== */
    .cilji-filters,
    .koncepti-filters,
    .scenariji-filters {
        padding: 12px;
        gap: 10px;
        overflow: hidden;
    }

    .cilji-filter-group,
    .koncepti-filter-group,
    .scenariji-filter-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        padding: 4px 0;
        overflow: hidden;
    }

    .cilji-filter-group label,
    .koncepti-filter-group label,
    .scenariji-filter-group label {
        white-space: normal;
        margin-bottom: 2px;
        font-size: 13px;
    }

    .cilji-search-input,
    .koncepti-search-input,
    .scenariji-search-input,
    .cilji-filter-select,
    .cilji-filter-multiselect,
    .koncepti-filter-select,
    .koncepti-filter-multiselect,
    .scenariji-filter-multiselect {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    select[multiple] {
        overflow-x: hidden;
    }

    /* Filter views */
    .cilji-filter-view {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        gap: 10px;
        overflow: hidden;
    }

    .cilji-fuzzy-view {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    /* Search mode buttons */
    .cilji-search-modes {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    .cilji-mode-btn {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 12px 20px;
        box-sizing: border-box;
    }

    .cilji-search-modes fieldset {
        padding: 8px 10px;
        box-sizing: border-box;
        max-width: 100%;
    }

    .cilji-search-mode {
        display: flex;
        margin-right: 0;
        margin-bottom: 4px;
    }

    /* Reset button */
    .cilji-reset-group,
    .koncepti-reset-group,
    .scenariji-reset-group {
        flex-basis: auto;
        width: 100%;
        max-width: 100%;
        margin-top: 6px;
    }

    #cilji-reset-filters,
    #koncepti-reset-filters,
    #scenariji-reset-filters {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 12px 24px;
        box-sizing: border-box;
    }

    /* Napoj wrapper (toggle + sections) */
    .napoj-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .napoj-wrapper .napoj-label {
        white-space: normal;
    }

    .napoj-toggle {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .napoj-toggle label {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
        font-size: 13px;
        box-sizing: border-box;
    }

    .napoj-section {
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    .napoj-section .cilji-filter-group,
    .napoj-section .koncepti-filter-group,
    .napoj-section .scenariji-filter-group {
        padding: 2px 0;
    }

    /* ===== CONTROLS RESPONSIVE ===== */
    .cilji-controls,
    .koncepti-controls,
    .scenariji-controls {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .control-group {
        flex-wrap: wrap;
        width: 100%;
        gap: 6px;
    }

    .control-group:first-child {
        justify-content: center;
    }

    .control-group:last-child {
        justify-content: center;
    }

    .control-group .button,
    .control-group .button-secondary,
    .control-group button[id$="-print-btn"],
    .control-group button[id$="-export-xlsx-btn"],
    .control-group button[id$="-export-ods-btn"],
    .control-group button[id$="-export-csv-btn"] {
        padding: 8px 12px;
        font-size: 11px;
        white-space: nowrap;
    }

    /* ===== PAGINATION RESPONSIVE ===== */
    .cilji-pagination,
    .koncepti-pagination,
    .scenariji-pagination {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    .pagination-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .pagination-jump {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .pagination-jump label {
        font-size: 13px;
        white-space: nowrap;
    }

    .pagination-jump input[type="number"] {
        width: 4rem !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    #pagination-info {
        font-size: 13px;
    }

    #cilji-go-page,
    #koncepti-go-page,
    #scenariji-go-page {
        display: none;
    }
}

/* Cilji modal styles */
#cilji-scenariji-modal {
    display: none;
    position: absolute;
    z-index: 9999;
    max-width: 360px;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid rgba(0, 115, 170, 0.2);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

#cilji-scenariji-modal::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 24px;
    border: 8px solid transparent;
    border-bottom-color: #ffffff;
}

.cilji-scenariji-modal-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    font-size: 15px;
    font-weight: 700;
    color: #0073aa;
}

.cilji-scenariji-modal-content {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.cilji-scenariji-list {
    display: grid;
    gap: 12px;
}

.cilji-scenariji-item {
    padding: 12px 14px;
    background: #f8fbff;
    border-radius: 8px;
    border-left: 3px solid #0073aa;
}

.cilji-scenariji-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.cilji-scenariji-item-meta {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.cilji-scenariji-pill {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f4fc;
    border-radius: 12px;
    font-size: 12px;
    color: #0073aa;
}

.cilji-scenariji-pill--secondary {
    background: #f0f0f0;
    color: #666;
}

.napoj-wrapper {
    font-family: sans-serif;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-sizing: border-box;
    max-width: 100%;
}

.napoj-wrapper input[type="radio"] {
    display: none;
}

.napoj-label {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    white-space: nowrap;
}

.napoj-toggle {
    display: inline-flex;
    border: 1px solid #ccc;
    border-radius: 999px;
    overflow: hidden;
    vertical-align: middle;
    box-sizing: border-box;
}

.napoj-toggle label {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    background: #f2f2f2;
    transition: 0.2s;
    box-sizing: border-box;
}

.napoj-toggle label.toggle-label {
    cursor: pointer;
}

.napoj-toggle label.toggle-label.active {
    background: #0073aa;
    color: white;
}

.napoj-section {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.napoj-section.active {
    display: flex;
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        margin: 0;
        padding: 15px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        font-size: 11px;
        line-height: 1.4;
        color: #333;
        background: #fff;
    }
    h1 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 18px;
        color: #333;
    }
    table.napoj-table {
        width: 100%;
        border-collapse: collapse;
        margin: 10px 0;
        background: #fff;
        font-size: 10px;
    }
    table.napoj-table th {
        background-color: #0073aa !important;
        color: #ffffff !important;
        padding: 8px 6px;
        text-align: left;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 9px;
        border: 1px solid #005177;
    }
    table.napoj-table td {
        padding: 6px;
        border: 1px solid #ddd;
        vertical-align: top;
        word-wrap: break-word;
    }
    table.napoj-table tr:nth-child(even) {
        background-color: #f8f9fa;
    }
    a {
        color: #0073aa;
        text-decoration: none;
    }
}

