/* owner-bundle.css - fonts + style + buttons + mobile + filter + calendar + hall + stats + flatpickr */

/* === fonts.css === */
/**
 * Lokalni fontovi - Plus Jakarta Sans (body 400/500, naslovi 600/700)
 * Variable font - samo 2 fajla umesto 8 (latin + latin-ext)
 * Bez poziva na Google API
 */
/* Plus Jakarta Sans Variable - latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Plus Jakarta Sans Variable - latin-ext (č, ć, š, ž, đ...) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* === style.css === */
/* Moj organizator - Main Stylesheet */
/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

/* Animated background pattern */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

.login-box {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: slideIn 0.5s ease-out;
}
@media (min-width: 768px) {
    .login-box {
        max-width: 520px;
    }
}
@media (min-width: 1200px) {
    .login-box {
        max-width: 560px;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box h1 {
    text-align: center;
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-box .subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.form-group input:hover {
    border-color: #2563eb;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #1d4ed8;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.error-message {
    color: #dc2626;
    background: #fef2f2;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: shake 0.5s ease-in-out;
}

.error-message::before {
    content: '';
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    margin-right: 0.5rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes navbar-overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes navbar-item-in {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.success-message {
    color: #059669;
    background: #d1fae5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #a7f3d0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.success-message::before {
    content: '✓';
    font-size: 1.2rem;
    flex-shrink: 0;
    background: #10b981;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    right: 1.5rem;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
    max-width: min(420px, calc(100vw - 2rem));
}

.toast {
    background: #0f172a;
    color: #f8fafc;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid #38bdf8;
    animation: toastSlideIn 0.25s ease-out;
}

.toast-message {
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    padding: 0 0.25rem;
}

.toast-close:hover {
    opacity: 1;
}

.toast-success {
    border-left-color: #22c55e;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-warning {
    border-left-color: #38bdf8;
}

.toast-info {
    border-left-color: #38bdf8;
}

.toast-hide {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dialog / Modal (zamenjuje alert) */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dialog-overlay.dialog-visible {
    opacity: 1;
}

.dialog-overlay.dialog-hide {
    opacity: 0;
}

.dialog-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    max-width: 420px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.dialog-visible .dialog-box {
    transform: scale(1);
}

.dialog-hide .dialog-box {
    transform: scale(0.95);
}

.dialog-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.dialog-message {
    margin: 0 0 1.5rem;
    white-space: pre-wrap;
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    white-space: pre-wrap;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.dialog-ok {
    min-width: 100px;
}

.dialog-actions-confirm .dialog-cancel,
.dialog-actions-confirm .dialog-confirm {
    min-width: 100px;
}

.dialog-error .dialog-title {
    color: #dc2626;
}

.dialog-warning .dialog-title {
    color: #d97706;
}

.dialog-success .dialog-title {
    color: #059669;
}

/* Highlight added list rows */
.soft-list-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.soft-list-item:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.hidden {
    display: none;
}

/* Container for dashboard pages */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem;
}

/* Nakon logovanja - širi layout za maksimalno iskorišćenje ekrana */
body:has(.navbar) .container {
    max-width: 94vw;
    width: 100%;
    padding: 1rem 1.25rem;
    box-sizing: border-box;
}

body:has(.navbar) .navbar-container {
    max-width: 94vw;
}

body:has(.navbar) .user-hall-header-content {
    max-width: 94vw;
}

/* Ensure canvas container has full width for user role */
.role-user .page-content,
.role-user .dashboard-content,
.role-user .canvas-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* Dashboard styles */
.page-content,
.dashboard-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 0.75rem;
}

.page-content h2,
.dashboard-content h2 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.page-content p,
.dashboard-content p {
    color: #6b7280;
    line-height: 1.6;
}

/* Card actions wrap - dugmad 100% širine */
.card-actions-wrap .card-actions,
.owner-dashboard-cards .owner-dashboard-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 0.5rem;
}
.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: #64748b;
}
.breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.breadcrumbs-item:not(.breadcrumbs-item-current)::after {
    content: '›';
    margin-left: 0.35rem;
    color: #94a3b8;
    font-weight: 600;
}
.breadcrumbs-item-current::after {
    display: none;
}
.breadcrumbs-link {
    color: #64748b;
    text-decoration: none;
}
.breadcrumbs-link:hover {
    color: #1e40af;
}
.breadcrumbs-current {
    color: #1e40af;
    font-weight: 600;
}

.page-back-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.page-back-link:hover {
    color: #1e40af;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 0.5rem;
}
.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: #64748b;
    gap: 0.25rem;
}
.breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.breadcrumbs-link {
    color: #64748b;
    text-decoration: none;
}
.breadcrumbs-link:hover {
    color: #1e40af;
}
.breadcrumbs-current {
    color: #1e40af;
    font-weight: 600;
}
.breadcrumbs-sep {
    color: #94a3b8;
    user-select: none;
}

.page-header,
.dashboard-header {
    margin-bottom: 0.875rem;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* page-header sa naslovom + akcije u jednom redu (users, halls, employees) */
.page-header.page-header-flex,
.dashboard-header.dashboard-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Red: podnaslov + dugmad (documents, owners) */
.page-header-flex,
.dashboard-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.page-header-actions,
.dashboard-header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.page-header .page-header-actions,
.dashboard-header .dashboard-header-actions {
    margin-top: 1rem;
}

.page-header-content,
.dashboard-header-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.page-header h1,
.dashboard-header h1 {
    color: #1e40af;
    margin-bottom: 0.2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.page-subtitle,
.dashboard-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0.35rem 0 0 0;
}

.page-header .btn.btn-auto,
.page-header-flex .btn.btn-auto,
.page-header-actions .btn.btn-auto,
.dashboard-header .btn.btn-auto,
.dashboard-header-flex .btn.btn-auto,
.dashboard-header-actions .btn.btn-auto {
    white-space: nowrap;
}


.page-subtitle strong,
.dashboard-subtitle strong {
    color: #1e40af;
    font-weight: 600;
}

.page-header-instructions,
.dashboard-header-instructions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.instruction-card {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
}

.instruction-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.instruction-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
}

.instruction-text strong {
    color: #1e40af;
    font-weight: 600;
}

@media (max-width: 828px) {
    .page-header,
    .dashboard-header {
        padding: 0.625rem 0.875rem;
    }
    
    .page-header-instructions,
    .dashboard-header-instructions {
        flex-direction: column;
    }
    
    .instruction-card {
        min-width: 100%;
    }
}

/* Form Styles */
.form-container,
.owner-form {
    width: 100%;
}

#ownerStatus.status-inactive {
    border-color: #dc2626;
    background-color: #fef2f2;
}

#ownerStatus.status-inactive:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

#userStatus.user-status-inactive {
    border-color: #dc2626;
    background-color: #fef2f2;
}

#userStatus.user-status-inactive:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

/* Jedinstvene klase za form kontrole - savršeni inputi */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    min-height: 44px;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    font-family: inherit;
    color: #0f172a;
    box-sizing: border-box;
}

.form-input:disabled {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.form-input[readonly] {
    background: #f8fafc;
    color: #64748b;
    cursor: text;
    border-color: #e2e8f0;
}

.date-input[readonly] {
    cursor: pointer;
}

.form-input.is-invalid,
.form-input[aria-invalid="true"] {
    border-color: #dc2626;
    background: #fef2f2;
}

.form-input.is-invalid:focus,
.form-input[aria-invalid="true"]:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* form-select - native dropdown (koristiti uz form-input) */
.form-select {
    min-height: 44px;
    cursor: pointer;
    appearance: auto;
}

/* form-autocomplete - searchable dropdown (data-autocomplete), JS generiše .custom-select */
.form-autocomplete {
    /* Stilovi u filter-inputs.css */
}

.form-input:hover {
    border-color: #2563eb;
}

select.form-input,
.form-group select,
select {
    text-align: left;
}
select option {
    text-align: left;
}

.form-input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-input::placeholder {
    color: #94a3b8;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
    padding: 0.75rem 1rem;
}

/* Način plaćanja - radio opcije (single-event, onetime request) */
.payment-method-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.payment-option:has(input:checked) {
    border-color: #3b82f6;
    background: #eff6ff;
}

.payment-option input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: #3b82f6;
    flex-shrink: 0;
    outline: none;
    box-shadow: none;
}
.payment-option input[type="radio"]:focus {
    outline: none;
    box-shadow: none;
}

.payment-option span {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.4;
}

.payment-method-hint {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.payment-option-recommended {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
}

.payment-option-recommended:hover {
    border-color: #2563eb !important;
    background: #dbeafe !important;
}

/* Kompaktni input za tabele (inline edit) */
.form-input-inline {
    width: 100%;
    padding: 0.5rem 0.75rem;
    min-height: 36px;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
    background: #fff;
    font-family: inherit;
    color: #0f172a;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input-inline:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-input-inline::placeholder {
    color: #94a3b8;
}

/* Date input component */
.date-input {
    min-height: 44px;
    padding-right: 2.25rem;
    background-color: #ffffff;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #0f172a;
}

.date-input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.date-input::-webkit-calendar-picker-indicator {
    opacity: 0.7;
    cursor: pointer;
    padding-left: 0.35rem;
}

.date-input:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.form-hint {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Password validation rules list */
.password-rules {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}

.password-rules li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.password-rules li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: 700;
}

.password-rules li.valid {
    color: #16a34a;
}

.password-rules li.valid::before {
    content: '✓';
    color: #16a34a;
}

.password-rules li.invalid {
    color: #dc2626;
    font-weight: 500;
}

/* Password input with show/hide toggle */
.password-input-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.password-input-wrapper .form-input,
.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    padding-right: 2.75rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s;
}

.password-toggle-btn:hover {
    color: #1e293b;
}

.password-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.loading {
    color: #6b7280;
    font-size: 1rem;
}

/* Sekcijski loading sa spinnerom (učitavanje podataka) */
.section-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: #64748b;
    font-size: 1rem;
}
.section-loading::before {
    content: '';
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: ajax-loading-spin 0.7s linear infinite;
}

/* Loading red u tabeli */
tr.loading-row td {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}
tr.loading-row td::before {
    content: '';
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: ajax-loading-spin 0.7s linear infinite;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: #666;
    font-size: 1.25rem;
}

.empty-state p {
    margin: 0;
    color: #999;
    font-size: 0.95rem;
}

/* Owner Meni page - refined layout */
.owner-menus-page .page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
}
.owner-menus-page .page-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 0.35rem;
}
.owner-menus-page .filter-sort-section {
    margin-bottom: 1.25rem;
}
.owner-menus-page .empty-state {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.owner-menus-page .empty-state h3 {
    color: #334155;
    font-size: 1.25rem;
    font-weight: 600;
}
.owner-menus-page .empty-state p {
    color: #64748b;
}

/* Navigation Bar - ispod svih dijaloga (overlay 1050, modali 1051+) */
.navbar {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    color: white;
    padding: 0;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.35), 0 1px 3px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.menu-open {
    overflow: visible;
}

.navbar-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
}

.navbar-header {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    z-index: 110;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                background 0.25s ease;
}
@media (min-width: 993px) {
    .navbar-toggle {
        display: none !important;
    }
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                opacity 0.3s ease,
                background 0.2s ease;
}

.navbar-toggle span:nth-child(1) {
    transform-origin: left center;
}

.navbar-toggle span:nth-child(3) {
    transform-origin: left center;
}

.navbar-toggle:hover span {
    background: rgba(255, 255, 255, 0.9);
}

.navbar-logo {
    color: white;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    transition: opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.navbar-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.navbar-logo-img {
    width: 28px;
    height: 28px;
    min-width: 24px;
    min-height: 24px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.navbar-logo:hover {
    opacity: 0.8;
}

.navbar-menu,
.navbar-user-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Razmak između stavki */
.navbar-menu > * + * {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
}
/* Separator samo između linkova (ne između dugmadi - dropdown toggle, Odjavi se) */
.navbar-menu > a.navbar-link + a.navbar-link {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-link-icon {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.15em;
    margin-right: 0.35rem;
}

.navbar-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.navbar-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: white;
}

.navbar-link.active {
    background: rgba(255, 255, 255, 0.22);
    color: white;
    font-weight: 600;
}

/* Navbar dropdown (owner menu groups) */
.navbar-dropdown {
    position: relative;
}
.navbar-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.navbar-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}
.navbar-dropdown.active > .navbar-dropdown-toggle {
    background: rgba(255, 255, 255, 0.22);
    font-weight: 600;
}
.navbar-dropdown-arrow {
    font-size: 0.6em;
    opacity: 0.8;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar-dropdown.open .navbar-dropdown-arrow {
    transform: rotate(180deg);
}
.navbar-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(30, 58, 138, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    padding: 0.4rem 0;
    margin-top: 0.35rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.25s;
    z-index: 110;
}
.navbar-dropdown:hover .navbar-dropdown-menu,
.navbar-dropdown.open .navbar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s;
}
.navbar-dropdown-link {
    display: block;
    padding: 0.55rem 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.18s ease;
    margin: 0 0.25rem;
    border-radius: 6px;
}
.navbar-dropdown-link:hover {
    background: rgba(255, 255, 255, 0.18);
}
.navbar-dropdown-link.active {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}
.navbar-dropdown-divider {
    padding: 0.5rem 1.1rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.25rem;
}
.navbar-dropdown-divider:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.navbar-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1.25rem;
}

/* When there's no menu (user role), push logout to the right */
.navbar-menu-wrapper.user-navbar {
    justify-content: flex-end;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    margin-left: auto;
}

.navbar-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.navbar-user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
}

.navbar-user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Navbar - show mobile menu on tablets and smaller */
@media (max-width: 1052px) {
    /* Zaključaj scroll kad je meni otvoren */
    body:has(.navbar.menu-open) {
        overflow: hidden;
        touch-action: none;
    }
    /* Z-index: overlay < menu < header (X dugme uvek klikabilno) */
    .navbar.menu-open {
        z-index: 1002;
    }
    .navbar.menu-open .navbar-header {
        position: relative;
        z-index: 1003;
    }

    .navbar-container {
        position: relative;
        flex-wrap: wrap;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .navbar-header {
        width: 100%;
        flex: 1 1 100%;
        justify-content: space-between;
    }
    
    .navbar-toggle {
        display: flex;
        flex-shrink: 0;
        border-radius: 12px;
    }
    .navbar-toggle:active {
        transform: scale(0.94);
    }
    /* Rotacija celog ikona kad se otvori - X postaje + (90°) */
    .navbar-toggle.active {
        background: rgba(255, 255, 255, 0.12);
        transform: rotate(90deg);
    }
    .navbar-toggle.active:active {
        transform: rotate(90deg) scale(0.94);
    }
    
    /* Hamburger → X: elastic morph (cubic-bezier za blagi overshoot) */
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Full-screen overlay sa blur efektom */
    .navbar.menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 1000;
        opacity: 0;
        animation: navbar-overlay-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        pointer-events: auto;
    }
    
    .navbar-menu-wrapper {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        min-width: 100%;
        margin-left: 0;
        background: linear-gradient(180deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
        flex-direction: column;
        padding: calc(60px + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
        padding-top: calc(70px + env(safe-area-inset-top));
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
        gap: 0.5rem;
        box-sizing: border-box;
        z-index: 1002;
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        pointer-events: none;
        transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                    visibility 0s linear 0.4s;
    }
    
    .navbar-menu-wrapper.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
        transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                    visibility 0s linear 0s;
    }
    
    .navbar-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.25rem;
        justify-content: flex-start;
        flex: 0 0 auto;
    }
    /* Staggered slide-in animacija za stavke menija */
    .navbar-menu-wrapper.active .navbar-menu > * {
        animation: navbar-item-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        opacity: 0;
    }
    .navbar-menu-wrapper.active .navbar-menu > *:nth-child(1) { animation-delay: 0.05s; }
    .navbar-menu-wrapper.active .navbar-menu > *:nth-child(2) { animation-delay: 0.1s; }
    .navbar-menu-wrapper.active .navbar-menu > *:nth-child(3) { animation-delay: 0.15s; }
    .navbar-menu-wrapper.active .navbar-menu > *:nth-child(4) { animation-delay: 0.2s; }
    .navbar-menu-wrapper.active .navbar-menu > *:nth-child(5) { animation-delay: 0.25s; }
    .navbar-menu-wrapper.active .navbar-menu > *:nth-child(6) { animation-delay: 0.3s; }
    .navbar-menu-wrapper.active .navbar-menu > *:nth-child(7) { animation-delay: 0.35s; }
    .navbar-menu-wrapper.active .navbar-menu > *:nth-child(8) { animation-delay: 0.4s; }
    .navbar-menu-wrapper.active .navbar-menu > *:nth-child(9) { animation-delay: 0.45s; }
    .navbar-menu-wrapper.active .navbar-menu > *:nth-child(10) { animation-delay: 0.5s; }
    .navbar-menu-wrapper.active .navbar-user,
    .navbar-menu-wrapper.active .navbar-user-links > * {
        animation: navbar-item-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s forwards;
        opacity: 0;
    }
    /* Mobile: razmak između stavki */
    .navbar-menu > * + * {
        margin-left: 0;
        margin-top: 0.25rem;
        padding-left: 0;
        padding-top: 0.5rem;
    }
    /* Mobile: separator samo između linkova (ne između dugmadi) */
    .navbar-menu > a.navbar-link + a.navbar-link {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .navbar-link {
        width: 100%;
        padding: 0.85rem 1.15rem;
        text-align: left;
        border-radius: 12px;
        font-size: 1rem;
        transition: background 0.2s ease, transform 0.15s ease;
    }
    .navbar-link:active {
        transform: scale(0.98);
    }
    
    .navbar-link:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    /* Mobile: dropdown as accordion */
    .navbar-dropdown {
        width: 100%;
    }
    .navbar-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.85rem 1.15rem;
        text-align: left;
        border-radius: 12px;
        transition: background 0.2s ease, transform 0.15s ease;
    }
    .navbar-dropdown-toggle:active {
        transform: scale(0.98);
    }
    .navbar-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.15);
        margin: 0.25rem 0 0 0.5rem;
        padding: 0.25rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .navbar-dropdown.open .navbar-dropdown-menu {
        max-height: 300px;
    }
    .navbar-dropdown-link {
        padding: 0.7rem 1.15rem;
        border-radius: 10px;
        margin: 0 0.35rem;
        transition: background 0.2s ease, transform 0.15s ease;
    }
    .navbar-dropdown-link:active {
        transform: scale(0.98);
    }
    
    .navbar-user {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        padding: 1.25rem 0 0;
        margin-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    .navbar-user .btn {
        transition: transform 0.15s ease;
    }
    .navbar-user .btn:active {
        transform: scale(0.98);
    }
    
    .navbar-user-info {
        align-items: flex-start;
        width: 100%;
    }
    
}

/* Responsive */
@media (max-width: 828px) {
    .login-box {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
    
    .login-box h1 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .page-content,
    .dashboard-content {
        padding: 1rem;
    }
    
    /* Navbar - tighter padding */
    .navbar-container {
        padding: 0.75rem 1rem;
    }
    
    .navbar-menu-wrapper {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
}

@media (max-width: 540px) {
    .navbar-logo {
        font-size: 1.15rem;
    }
    
    .navbar-logo-wrap { padding: 3px; }
    .navbar-logo-img {
        width: 30px;
        height: 30px;
    }
    
    .navbar-container {
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-link {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .navbar-menu-wrapper {
        padding: 0.75rem;
    }
}

@media (max-width: 420px) {
    .navbar-logo {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.2;
    }
    
    .navbar-logo-wrap { padding: 2px; }
    .navbar-logo-img {
        width: 28px;
        height: 28px;
    }
    
    .navbar-container {
        padding: 0.5rem 0.5rem;
    }
    
    .navbar-user-name {
        font-size: 0.875rem;
    }
    
    .navbar-user-role {
        font-size: 0.75rem;
    }
    
}

/* ========================================
   TABLES - Data table styles
   ======================================== */

/* Table container for responsive scrolling */
.table-container {
    overflow-x: auto;
    margin: 1.5em 0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    padding: 0;
}

/* Data Table - Unified table style for all tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    margin: 1em 0;
    table-layout: auto;
    display: table;
}

.data-table thead {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    display: table-header-group;
}

.data-table thead th {
    padding: 1.2em 1.25em;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    white-space: nowrap;
    color: white;
    background: transparent;
    position: relative;
}

.data-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.data-table thead th.sortable a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 1.2em 1.25em;
    padding-right: 2em;
    position: relative;
    transition: background-color 0.2s ease;
}

.data-table thead th.sortable:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.data-table thead th.sortable:hover a {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Active sorted column */
.data-table thead th.sortable.sorted {
    background-color: rgba(255, 255, 255, 0.15);
}

.data-table thead th.sortable.sorted a {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 700;
}

.data-table thead th.sortable.sorted:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.data-table thead th.sortable.sorted:hover a {
    background-color: rgba(255, 255, 255, 0.2);
}

.data-table thead th.sortable a::after {
    content: ' ↕';
    position: absolute;
    right: 0.5em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.data-table thead th.sortable:hover a::after {
    opacity: 1;
}

.data-table thead th:first-child {
    border-top-left-radius: 8px;
}

.data-table thead th:last-child {
    border-top-right-radius: 8px;
}

.data-table tbody {
    display: table-row-group;
    background: white;
}

.data-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    background: white;
    display: table-row;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

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

.data-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.data-table tbody tr:nth-child(even):hover {
    background-color: #f1f3f5;
}

.data-table tbody td {
    padding: 1.2em 1.25em;
    color: #333;
    border: none;
    vertical-align: middle;
    font-size: 0.95em;
    display: table-cell;
    background: transparent;
}

.data-table tbody td:first-child {
    font-weight: 600;
    color: #666;
}

.data-table tbody td strong {
    color: #1e40af;
    font-weight: 600;
    font-size: 1em;
}

.data-table .table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.data-table .link-cell a {
    color: #1d4ed8;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.data-table .link-cell a:hover {
    color: #1e40af;
}

/* TreeTable - expandable rows with child templates */
.data-table.treetable .treetable-col-expand {
    padding: 0.5rem;
    text-align: center;
}

.data-table.treetable .treetable-cell-expand {
    padding: 0.5rem;
    text-align: center;
    vertical-align: middle;
}

.data-table.treetable .treetable-row-child {
    background: #f8fafc;
}

.data-table.treetable .treetable-row-child:hover {
    background: #f1f5f9;
}

.data-table.treetable .treetable-cell-indent {
    padding-left: 2rem;
}

.data-table.treetable .treetable-cell-indent a {
    font-weight: 500;
    color: #64748b;
}

.data-table.treetable .treetable-cell-indent a:hover {
    color: #1e40af;
}

.treetable-default-badge {
    font-size: 0.7rem;
    font-weight: 500;
    color: #059669;
    background: #d1fae5;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.treetable-no-templates {
    color: #94a3b8;
    font-size: 0.9rem;
}

.treetable-template-count {
    white-space: nowrap;
}

.text-muted {
    color: #64748b;
}

/* Badge variants (status labels) */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
}
.badge-secondary { background: #e2e8f0; color: #475569; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }

/* Responsive table styles */
@media (max-width: 828px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table,
    .table-container .job-table {
        min-width: 600px;
    }
    
    .data-table thead th {
        padding: 0.75em 1em;
        font-size: 0.9em;
    }
    .data-table thead th.sortable a {
        padding: 0.75em 1em;
        padding-right: 1.5em;
    }
    .data-table tbody td {
        padding: 0.75em 1em;
        font-size: 0.9em;
    }
    
    .data-table .btn-action {
        padding: 0.4em 0.8em;
        font-size: 0.85em;
    }
}

/* ========================================
   KPI / Stat kartice - globalne (dashboard, referral, itd.)
   ======================================== */

.kpi-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.kpi-card {
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-width: 140px;
}

.kpi-card.kpi-card-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    min-width: 180px;
}

.kpi-card .kpi-label {
    color: #64748b;
    font-size: 0.875rem;
}

.kpi-card.kpi-card-success .kpi-label {
    color: #047857;
}

.kpi-card .kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.kpi-card.kpi-card-success .kpi-value {
    color: #047857;
}

.form-panel {
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.form-panel .form-group { margin-bottom: 1rem; }
.form-panel .form-group:last-of-type { margin-bottom: 0; }

.form-panel .btn { margin-top: 1rem; }

.form-msg {
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.form-msg:empty { display: none; }
.form-msg.form-msg-success { color: #047857; }
.form-msg.form-msg-error { color: #dc2626; }

.page-content-max {
    max-width: 500px;
}

.page-content-max-700 {
    max-width: 700px;
}

.form-hint {
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
    color: #64748b;
}

.details-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.details-item summary {
    cursor: pointer;
    font-weight: 600;
}

.details-item p {
    margin: 0.75rem 0 0 0;
}

.table-year-row td {
    background: #e2e8f0;
    font-weight: 700;
    padding: 0.75rem;
}

.section-title {
    font-size: 1.125rem;
    margin: 2rem 0 1rem 0;
}

.admin-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin: 2rem 0 0.75rem 0;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e2e8f0;
}

.admin-section-title:first-of-type {
    margin-top: 0;
}

.filter-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-inline label {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.filter-inline select {
    min-width: 120px;
}

.copy-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.copy-input-row .form-input {
    flex: 1;
    min-width: 200px;
}

.copy-input-row .form-input[readonly] {
    background: #f8fafc;
    cursor: text;
}

.referral-url-block {
    margin-bottom: 1.5rem;
}

.referral-url-block .form-hint {
    margin-top: 0.5rem;
}

.referral-share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.referral-share-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-right: 0.25rem;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}

.btn-share:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-share .share-icon {
    width: 18px;
    height: 18px;
}

.btn-share-fb {
    background: #1877f2;
    color: #fff;
}

.btn-share-wa {
    background: #25d366;
    color: #fff;
}

.btn-share-tg {
    background: #0088cc;
    color: #fff;
}

@media (max-width: 540px) {
    .kpi-grid { flex-direction: column; }
    .kpi-card,
    .kpi-card.kpi-card-success { min-width: 0; width: 100%; }
}

/* ========================================
   PAGINATION - Pagination styles
   ======================================== */

.pagination-container {
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.pagination-info {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
    text-align: center;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e40af;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.pagination-btn:hover:not(:disabled) {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(7, 70, 130, 0.3);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(7, 70, 130, 0.2);
}

.pagination-btn:disabled,
.pagination-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #9ca3af;
}

.pagination-page-ellipsis {
    padding: 0 0.25rem;
    color: #9ca3af;
    font-weight: 600;
}

.pagination-pages {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e40af;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-page-btn:hover {
    background: #f8f9fa;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.pagination-page-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(7, 70, 130, 0.3);
}

.pagination-page-btn.active:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

/* Responsive pagination */
@media (max-width: 828px) {
    .pagination-controls {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .pagination-page-btn {
        min-width: 32px;
        height: 32px;
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 4px 0;
    min-width: 180px;
    z-index: 10001; /* Higher than modal (1000) and overlay (998) */
    font-size: 14px;
    user-select: none;
    pointer-events: auto; /* Ensure context menu can receive clicks */
}

.context-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
    color: #333;
}

.context-menu-item:hover {
    background-color: #f0f0f0;
}

.context-menu-item-danger {
    color: #dc3545;
}

.context-menu-item-danger:hover {
    background-color: #fee;
    color: #c82333;
}

.context-menu-item span {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.context-menu-item-label {
    cursor: default;
}

/* Modal & Overlay - iznad navbar-a (100), siva pozadina */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1050;
    display: none;
}

#gridModal {
    z-index: 1051; /* iznad overlay-a (1050) */
}

#editModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 1051;
    width: 650px;
    max-width: calc(100vw - 40px);
    max-height: 90vh;
    overflow: hidden;
    box-sizing: border-box;
    animation: modalSlideIn 0.3s ease-out;
}
#editModal.edit-modal-dialog {
    flex-direction: column;
    height: auto;
    max-height: 90vh;
}
@media (max-width: 828px) {
    #editModal {
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
        width: auto;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

#editModal .modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 24px 32px;
    border-radius: 16px 16px 0 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

#editModal .modal-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.modal-close:active {
    transform: scale(0.98);
}

#editModal .modal-body {
    padding: 32px;
}

#editModal .form-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
}

#editModal .form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#editModal .section-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

#editModal .form-group-modal {
    margin-bottom: 20px;
}

#editModal .form-group-modal:last-child {
    margin-bottom: 0;
}

#editModal .form-label-modal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
}

#editModal .label-icon {
    font-size: 1.2em;
    opacity: 0.8;
}

#editModal .required-star {
    color: #dc3545;
    font-weight: 700;
    margin-left: 2px;
}

#editModal .form-input-modal {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    min-height: 44px;
    font-size: 1rem;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    color: #0f172a;
}

#editModal .form-input-modal:hover {
    border-color: #2563eb;
}

#editModal .form-input-modal:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

#editModal .form-input-modal:disabled {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

#editModal .form-input-modal::placeholder {
    color: #94a3b8;
    opacity: 1;
}

#editModal .form-color-input {
    width: 100%;
    height: 50px;
    padding: 4px;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: #fafafa;
}

#editModal .form-color-input:hover {
    border-color: #2563eb;
    background: #fff;
}

#editModal .form-color-input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

#editModal .color-input-wrapper {
    width: 100%;
}

#editModal .table-color-palette {
    margin-top: 0.75rem;
}

#editModal .table-color-palette .palette-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

#editModal .table-color-palette .palette-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#editModal .table-color-palette .palette-swatch {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#editModal .table-color-palette .palette-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#editModal .table-color-palette .palette-swatch:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

#editModal .form-hint-modal {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 0.875em;
    line-height: 1.5;
    font-style: italic;
}

#editModal .row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 0;
}

#editModal .row > div {
    flex: 1;
    min-width: 0;
}

#editModal input[type="number"] {
    font-size: 1em;
    font-weight: 500;
}

#editModal .validation-error {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 6px;
    display: none;
    padding: 8px 12px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

#editModal .validation-error.show {
    display: block;
}

#editModal .modal-footer {
    background: #f8f9fa;
    padding: 20px 32px;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid #e9ecef;
}

#editModal .footer-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

/* Generic modal overlay (documents, etc.) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay .modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow: visible;
}
.modal-overlay .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
}
.modal-overlay .modal-header h3 { margin: 0; font-size: 1.25rem; }
.modal-overlay .modal-body { padding: 1.25rem; }
/* Modal sa dugim sadržajem - scroll unutar body da dropdown može da izađe */
.modal-overlay .modal-body.modal-body-scroll {
    max-height: 60vh;
    overflow-y: auto;
}
.modal-overlay .modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}
.modal-overlay .form-group { margin-bottom: 1rem; }
.modal-overlay .form-group label { display: block; margin-bottom: 0.25rem; font-weight: 500; }
.modal-overlay .form-group input,
.modal-overlay .form-group select { width: 100%; padding: 0.5rem 0.75rem; border-radius: 6px; border: 1px solid #ddd; }
.form-error { color: #dc2626; font-size: 0.9rem; margin-top: 0.5rem; }

/* Send document modal - lepši dizajn */
.send-document-modal-content {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.send-document-modal-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}
.send-document-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.send-document-modal-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.send-document-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}
.send-document-modal-close {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.9;
}
.send-document-modal-close:hover {
    opacity: 1;
}
.send-document-modal-body {
    padding: 1.5rem 1.5rem 1.25rem;
}
.send-document-main-question {
    margin: 0 0 1.25rem 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #1e293b;
    font-weight: 500;
}
.send-document-paid-option {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}
.send-document-paid-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: #334155;
}
.send-document-paid-label input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: #0ea5e9;
}
.send-document-paid-text {
    flex: 1;
}
.send-document-paid-hint {
    margin: 0.6rem 0 0 1.85rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.45;
}
.send-document-modal-footer {
    padding: 1rem 1.5rem 1.25rem;
    background: #f8fafc;
    gap: 0.75rem;
}

/* User Dashboard - Hall Cards */
.halls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.content-card,
.hall-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-card:hover,
.hall-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0ea5e9;
}

.card-header,
.hall-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-title,
.hall-card-title {
    color: #1e40af;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.card-status,
.hall-card-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.card-stats,
.hall-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.card-footer,
.hall-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.card-footer-info,
.hall-card-footer-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.card-footer-info-value,
.hall-card-footer-info-value {
    font-weight: 600;
    color: #1e40af;
}

.card-footer-updated,
.hall-card-footer-updated {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
}

.fill-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.fill-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.fill-bar-fill.low {
    background: #10b981;
}

.fill-bar-fill.medium {
    background: #f59e0b;
}

.fill-bar-fill.high {
    background: #ef4444;
}

/* User Dashboard Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.empty-state h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    color: #6b7280;
    margin: 0;
}

@media (max-width: 828px) {
    .halls-grid {
        grid-template-columns: 1fr;
    }
}

/* User Hall Page Styles */
.user-hall-header {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.user-hall-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-hall-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.user-hall-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.user-hall-stat-box {
    text-align: center;
    padding: 0.75rem 1.25rem;
    background: #f9fafb;
    border-radius: 8px;
    min-width: 100px;
}

.user-hall-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

/* Maks. gostiju 0 ili 1 - crvena boja na pregledima */
.user-hall-stat-box.max-guests-low .user-hall-stat-value,
input.max-guests-low,
.form-input.max-guests-low,
.hall-edit-input.max-guests-low {
    color: #dc2626 !important;
    font-weight: 700;
}
input.max-guests-low,
.form-input.max-guests-low,
.hall-edit-input.max-guests-low {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

.user-hall-stat-label {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.user-hall-fill-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: #f9fafb;
    border-radius: 8px;
}

.user-hall-fill-bar {
    width: 200px;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.user-hall-fill-progress {
    height: 100%;
    background: #10b981;
    transition: width 0.3s;
}

.user-hall-fill-progress.warning {
    background: #f59e0b;
}

.user-hall-fill-progress.danger {
    background: #ef4444;
}

.user-hall-actions {
    display: flex;
    gap: 0.75rem;
}

.user-hall-tutorial {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.user-info-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.hall-page .user-info-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    flex: none !important;
    flex-basis: auto !important;
}

.info-section-header {
    margin-bottom: 1.5rem;
}

.info-section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.info-content-full {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.info-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
}

.info-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

/* Card grid - admin, accounting index, generic */
.card-grid,
.dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card-grid.card-grid-sm,
.dashboard-card-grid.dashboard-card-grid-sm {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.dashboard-card {
    text-decoration: none;
    color: inherit;
}

.card-inner,
.dashboard-card-inner {
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover .card-inner,
.dashboard-card:hover .dashboard-card-inner {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-inner h3,
.dashboard-card-inner h3 {
    margin: 0 0 0.5rem 0;
    color: #3b82f6;
    font-size: 1.1rem;
}

.card-icon,
.icon-inline {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.2em;
    margin-right: 0.25rem;
}

.status-icon-svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
}

.card-inner p,
.dashboard-card-inner p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* Kartice za kreiranje – suptilna akcent boja */
.card--create .card-inner,
.card--create .dashboard-card-inner {
    border-left: 3px solid #10b981;
    background: linear-gradient(to right, #f0fdf4 0%, #fff 12%);
}

.card--create .card-inner h3,
.card--create .dashboard-card-inner h3 {
    color: #059669;
}

/* Option cards - unificirani izbor opcija (checkbox u kartici), npr. licence */
.option-cards-section {
    margin-top: 1.5rem;
}

.option-cards-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.option-cards-header > .option-cards-icon,
.option-cards-header > span:first-child {
    font-size: 1.5rem;
}

.option-cards-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.option-cards-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.option-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.option-card {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.option-card:hover {
    border-color: #94a3b8;
}

.option-card:has(input:checked),
.option-card.is-checked {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.option-card-icon,
.option-card > span:not(input) {
    font-size: 1.25rem;
}

.option-card-content,
.option-card > div {
    margin-top: 0.5rem;
}

.option-card p,
.option-card-content p,
.option-card-content > span {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: #64748b;
    display: block;
}

/* Menu type selector - izbor sadržaj vs link */
.menu-type-section {
    margin-top: 0.5rem;
}

.menu-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.menu-type-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.menu-type-option:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.menu-type-option:has(input:checked) {
    border-color: #3b82f6;
    background: #f0f9ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.menu-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.menu-type-option-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 1.5rem;
}

.menu-type-option:has(input:checked) .menu-type-option-icon {
    background: #dbeafe;
    color: #2563eb;
}

.menu-type-option-content {
    flex: 1;
    min-width: 0;
}

.menu-type-option-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    margin: 0;
}

.menu-type-option-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
}

@media (max-width: 540px) {
    .menu-type-grid {
        grid-template-columns: 1fr;
    }
}

.option-card-features {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: #64748b;
}

.guests-list {
    height: 640px;
    overflow-y: auto;
}

.guests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.guest-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    transition: box-shadow 0.2s;
}

.guest-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.guest-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.guest-details {
    font-size: 0.875rem;
    color: #666;
}

#tableGuestsModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 2rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: visible;
    z-index: 1001;
}

#tableGuestsTable {
    font-size: 0.9rem;
    width: 100%;
    border-collapse: collapse;
}

#tableGuestsTable tbody tr,
.table-guests-grid tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

#tableGuestsTable tbody tr:hover,
.table-guests-grid tbody tr:hover {
    background: #f9fafb;
}

.owner-guest-sort:hover {
    background: #e2e8f0;
}

#tableGuestsTable td {
    padding: 0.75rem;
    vertical-align: top;
}

.pagination-container {
    margin-top: 1.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-page-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

.pagination-page-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

#guestModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    z-index: 1002;
}

@media (max-width: 828px) {
    .user-hall-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-hall-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .user-info-section {
        padding: 1rem;
    }
    
    .guests-grid {
        grid-template-columns: 1fr;
    }
    
    .page-content > div[style*="grid-template-columns"],
    .dashboard-content > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .guests-list {
        height: auto;
        min-height: 200px;
        max-height: 400px;
    }
}

@media (max-width: 540px) {
    .guests-list {
        max-height: 320px;
    }
}

/* Owner edit - licence za pravno lice */
.owner-licenses-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    min-height: 100px;
    margin-bottom: 2rem;
}

.owner-licenses-table-wrap {
    overflow-x: auto;
}

.owner-licenses-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.owner-licenses-table thead tr {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
}

.owner-licenses-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.owner-licenses-table thead th.owner-licenses-actions-col {
    text-align: center;
    width: 1%;
    white-space: nowrap;
}

.owner-licenses-table tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.owner-licenses-table tbody tr:last-child td {
    border-bottom: none;
}

.owner-licenses-table .license-type-select,
.owner-licenses-table .date-input {
    width: 100%;
    min-width: 0;
}

.owner-licenses-actions-cell {
    text-align: center;
}

.owner-licenses-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.license-details-row {
    display: none;
    background: #f1f5f9;
}

.license-details-row.is-expanded {
    display: table-row;
}

.license-details-row td {
    padding: 1.25rem !important;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.license-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.license-detail-field {
    min-width: 0;
}

.license-detail-field-wide {
    grid-column: 1 / -1;
}

.license-detail-field-full {
    grid-column: 1 / -1;
}

.license-detail-field label {
    display: block;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.license-detail-field .form-input {
    width: 100%;
}

.license-details-hint {
    display: block;
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.owner-add-license-box {
    margin-top: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

.owner-payment-section {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.owner-payment-section-title {
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    color: #074682;
    font-size: 1.1rem;
}

.invoice-send-mode-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.invoice-send-mode-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.invoice-send-mode-option:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.invoice-send-mode-option input:checked + span {
    color: #1e40af;
}

.invoice-send-mode-option:has(input:checked) {
    border-color: #3b82f6;
    background: #eff6ff;
}

.invoice-send-mode-option input {
    margin-top: 0.2rem;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.invoice-send-mode-option span {
    font-size: 0.95rem;
    line-height: 1.5;
}

.owner-add-license-box h4 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
}

.owner-add-license-box p {
    margin: 0 0 0.75rem 0;
    color: #64748b;
}

@media (max-width: 828px) {
    .owner-licenses-table thead th,
    .owner-licenses-table tbody td {
        padding: 0.75rem;
    }
    .owner-licenses-actions {
        flex-direction: column;
    }
    .owner-licenses-actions .btn {
        width: 100%;
    }
}

/* Inline/filter checkbox - konzistentan stil */
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #475569;
}

.checkbox-inline input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

/* Owner edit - veliki checkbox sa labelom */
.owner-checkbox-group .owner-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.owner-checkbox-group .owner-checkbox-large {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    cursor: pointer;
}

.owner-checkbox-group .owner-checkbox-text small {
    color: #64748b;
}

/* License edit - Dodatne opcije sekcija */
.license-attributes-section {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.license-attributes-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.license-attributes-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.license-attributes-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e40af;
}

.license-attributes-desc {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

.license-attributes-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.license-option-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.license-option-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

.license-option-card:has(input:checked),
.license-option-card.is-checked {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.license-option-card input {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #3b82f6;
}

.license-option-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.license-option-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.license-option-content strong {
    font-size: 0.95rem;
    color: #1e293b;
}

.license-option-content span {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.3;
}

.license-option-features {
    margin: 0.5rem 0 0 0;
    padding-left: 1.1rem;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}

.license-option-features li {
    margin-bottom: 0.2rem;
}

.license-option-features li:last-child {
    margin-bottom: 0;
}

.accounting-msg {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
}
.accounting-msg.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.accounting-msg.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.accounting-result-header {
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    font-size: 0.95rem;
}
.accounting-result-header strong {
    color: #1e293b;
}

/* Owner users page - tabela responsive */
@media (max-width: 828px) {
    .owner-users-page .dashboard-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .owner-users-page .dashboard-header .btn { width: 100% !important; text-align: center !important; }
    .owner-users-page .table-wrap .data-table { min-width: 500px; font-size: 0.9rem; }
    .owner-users-page .table-wrap .data-table th,
    .owner-users-page .table-wrap .data-table td { padding: 0.5rem 0.75rem !important; }
}
@media (max-width: 540px) {
    .owner-users-page .container { padding: 0.75rem 1rem !important; }
    .owner-users-page .page-content,
    .owner-users-page .dashboard-content { padding: 1rem !important; }
    .owner-users-page .page-header h1,
    .owner-users-page .dashboard-header h1 { font-size: 1.25rem !important; }
    .owner-users-page .table-wrap .data-table { min-width: 450px; font-size: 0.85rem !important; }
    .owner-users-page .table-wrap .data-table th,
    .owner-users-page .table-wrap .data-table td { padding: 0.4rem 0.5rem !important; }
}

/* Owner employees page - tabela responsive */
@media (max-width: 828px) {
    .owner-employees-page .dashboard-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .owner-employees-page .dashboard-header .btn { width: 100% !important; text-align: center !important; }
    .owner-employees-page .table-wrap .data-table { min-width: 550px; font-size: 0.9rem; }
    .owner-employees-page .table-wrap .data-table th,
    .owner-employees-page .table-wrap .data-table td { padding: 0.5rem 0.75rem !important; }
    .owner-employees-page .table-wrap .data-table .btn-action { padding: 0.35rem 0.6rem !important; font-size: 0.8rem !important; }
}
@media (max-width: 540px) {
    .owner-employees-page .container { padding: 0.75rem 1rem !important; }
    .owner-employees-page .page-content,
    .owner-employees-page .dashboard-content { padding: 1rem !important; }
    .owner-employees-page .page-header h1,
    .owner-employees-page .dashboard-header h1 { font-size: 1.25rem !important; }
    .owner-employees-page .table-wrap .data-table { min-width: 480px; font-size: 0.85rem !important; }
    .owner-employees-page .table-wrap .data-table th,
    .owner-employees-page .table-wrap .data-table td { padding: 0.4rem 0.5rem !important; }
}

/* Global dashboard responsive - sve stranice u users/* */
@media (max-width: 828px) {
    .dashboard-page .page-header,
    .dashboard-page .dashboard-header,
    .page-header-flex,
    .dashboard-header-flex {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .dashboard-page .page-header .btn,
    .dashboard-page .dashboard-header .btn,
    .page-header-flex .btn,
    .dashboard-header-flex .btn,
    .page-header-flex > a.btn,
    .dashboard-header-flex > a.btn { width: 100% !important; text-align: center !important; }
    .dashboard-page [style*="display: flex"][style*="gap"] form:not(.filter-form) {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .dashboard-page .table-container .data-table { min-width: 500px; font-size: 0.9rem; }
    .dashboard-page .table-container .data-table th,
    .dashboard-page .table-container .data-table td { padding: 0.5rem 0.75rem !important; }
    .dashboard-page .info-card[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .dashboard-page .info-card[style*="display: flex"] .btn { width: 100% !important; }
    .dashboard-page .page-header-actions .btn,
    .dashboard-page .dashboard-header-actions .btn,
    .dashboard-page .page-header-actions a.btn,
    .dashboard-page .dashboard-header-actions a.btn { width: 100% !important; }
}
@media (max-width: 540px) {
    .dashboard-page .container { padding: 0.75rem 1rem !important; }
    .dashboard-page .page-content,
    .dashboard-page .dashboard-content { padding: 1rem !important; }
    .dashboard-page .page-header,
    .dashboard-page .dashboard-header,
    .page-header,
    .dashboard-header { padding: 0.5rem 0.75rem !important; }
    .dashboard-page .page-header h1,
    .dashboard-page .dashboard-header h1 { font-size: 1.25rem !important; }
    .dashboard-page .page-subtitle,
    .dashboard-page .dashboard-subtitle { font-size: 0.85rem !important; }
    .dashboard-page .table-container .data-table { min-width: 450px; font-size: 0.85rem !important; }
    .dashboard-page .table-container .data-table th,
    .dashboard-page .table-container .data-table td { padding: 0.4rem 0.5rem !important; }
}

/* Filter tabs card - full responsive layout (access logs, itd.) */
.filter-tabs-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem !important;
}
.filter-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.filter-tabs-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.filter-tabs-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Desktop: sve u jednom redu, filteri inline sa dugmadima */
@media (min-width: 1052px) {
    .filter-tabs-card {
        gap: 1rem;
    }
    .filter-tabs {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    .filter-tabs-label {
        flex-shrink: 0;
    }
    .filter-actions {
        flex-shrink: 0;
    }
}

/* Mobil: sve u kolonu, 100% širine */
@media (max-width: 540px) {
    .filter-tabs-buttons {
        flex-direction: column;
    }
    .filter-actions {
        width: 100%;
    }
}

/* Access logs - tabela responsive */
@media (max-width: 828px) {
    .owner-access-logs-page .table-wrap .data-table {
        min-width: 500px;
        font-size: 0.9rem;
    }
    .owner-access-logs-page .table-wrap .data-table th,
    .owner-access-logs-page .table-wrap .data-table td {
        padding: 0.5rem 0.75rem !important;
    }
}
@media (max-width: 540px) {
    .owner-access-logs-page .table-wrap .data-table {
        min-width: 450px;
        font-size: 0.85rem !important;
    }
    .owner-access-logs-page .table-wrap .data-table th,
    .owner-access-logs-page .table-wrap .data-table td {
        padding: 0.4rem 0.5rem !important;
    }
}

@media (max-width: 540px) {
    .owner-halls-page .filter-form .filter-group {
        flex-direction: column !important;
        width: 100% !important;
    }
    .owner-halls-page .filter-form .filter-group .btn,
    .owner-halls-page .filter-form .filter-group a.btn {
        width: 100% !important;
    }
    /* Radni dani filter */
    .owner-radni-dani-page .filter-form {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .owner-radni-dani-page .filter-form .filter-item {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    .owner-radni-dani-page .filter-form select,
    .owner-radni-dani-page .filter-form .form-input,
    .owner-radni-dani-page .filter-form .custom-select,
    .owner-radni-dani-page .filter-form .filter-select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    .owner-radni-dani-page .filter-form .btn,
    .owner-radni-dani-page .filter-form a.btn {
        width: 100% !important;
    }
}

/* Print - samo kad je body.canvas-print-mode (klik na Štampaj raspored) */
@media print {
    @page {
        size: A4 landscape;
        margin: 10mm;
    }
    /* Sakriveni elementi van canvasa - izvan stranice, bez prostora */
    body.canvas-print-mode * {
        position: absolute !important;
        left: -99999px !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }
    body.canvas-print-mode *:has(.canvas-print-wrapper),
    body.canvas-print-mode .canvas-print-wrapper,
    body.canvas-print-mode .canvas-print-wrapper *,
    body.canvas-print-mode #canvas-container,
    body.canvas-print-mode #canvas-container * {
        position: revert !important;
        left: revert !important;
        width: revert !important;
        height: revert !important;
        overflow: visible !important;
        visibility: visible !important;
    }
    body.canvas-print-mode #canvas-container {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100vh !important;
        border: none !important;
        background: #fff !important;
        box-shadow: none !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        page-break-inside: avoid !important;
    }
    body.canvas-print-mode #canvas-container #canvas {
        width: 2400px !important;
        height: 1500px !important;
        min-width: 2400px !important;
        min-height: 1500px !important;
        transform: translate(-50%, -50%) scale(0.42) !important;
        transform-origin: center center !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        overflow: visible !important;
    }
    body.canvas-print-mode #canvas-container .canvas-zoom-controls {
        display: none !important;
    }
}

/* Globalni AJAX spinner - overlay tokom fetch poziva */
.ajax-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.ajax-loading-overlay.ajax-loading-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.ajax-loading-overlay .ajax-loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ajax-loading-spin 0.7s linear infinite;
}
.ajax-loading-overlay .ajax-loading-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}
@keyframes ajax-loading-spin {
    to { transform: rotate(360deg); }
}

/* Spinner pri pripremi štampe (Štampaj raspored) */
.canvas-print-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}
.canvas-print-loading-overlay .canvas-print-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: canvas-print-spin 0.7s linear infinite;
}
.canvas-print-loading-overlay .canvas-print-loading-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}
@keyframes canvas-print-spin {
    to { transform: rotate(360deg); }
}

/* Canvas crop modal - osečite sliku pre štampe */
.canvas-crop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.canvas-crop-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.canvas-crop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
.canvas-crop-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}
.canvas-crop-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 0.25rem;
}
.canvas-crop-close:hover {
    color: #1e293b;
}
.canvas-crop-body {
    padding: 1rem;
    overflow: auto;
    flex: 1;
    min-height: 0;
}
.canvas-crop-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.canvas-crop-img {
    display: block;
    max-width: 85vw;
    max-height: 70vh;
    width: auto;
    height: auto;
}
.canvas-crop-box {
    position: absolute;
    left: 5%;
    top: 5%;
    width: 90%;
    height: 90%;
    border: 2px dashed #3b82f6;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
    cursor: move;
    box-sizing: border-box;
}
.canvas-crop-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border: 2px solid #fff;
    border-radius: 2px;
    cursor: nwse-resize;
}
.canvas-crop-handle.n { top: -6px; left: 50%; transform: translateX(-50%); cursor: n-resize; }
.canvas-crop-handle.s { bottom: -6px; left: 50%; transform: translateX(-50%); cursor: s-resize; }
.canvas-crop-handle.e { right: -6px; top: 50%; transform: translateY(-50%); cursor: e-resize; }
.canvas-crop-handle.w { left: -6px; top: 50%; transform: translateY(-50%); cursor: w-resize; }
.canvas-crop-handle.ne { top: -6px; right: -6px; cursor: ne-resize; }
.canvas-crop-handle.nw { top: -6px; left: -6px; cursor: nw-resize; }
.canvas-crop-handle.se { bottom: -6px; right: -6px; cursor: se-resize; }
.canvas-crop-handle.sw { bottom: -6px; left: -6px; cursor: sw-resize; }
.canvas-crop-options {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}
.canvas-crop-options-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.canvas-crop-options-row:last-child { margin-bottom: 0; }
.canvas-crop-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}
.canvas-crop-option input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}
.canvas-crop-option select {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    margin-left: 0.25rem;
}
.canvas-crop-grayscale-opts {
    gap: 1.5rem;
}
.canvas-crop-slider-label {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.canvas-crop-contrast,
.canvas-crop-threshold {
    width: 80px;
    vertical-align: middle;
}
.canvas-crop-rotate {
    display: flex;
    gap: 0.25rem;
}
.canvas-crop-rotate .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
}
.canvas-crop-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
}
.canvas-crop-footer-left {
    display: flex;
    gap: 0.5rem;
}
.canvas-crop-actions {
    display: flex;
    gap: 0.75rem;
}

/* === buttons.css === */
/**
 * Buttons - sav CSS za dugmad
 * Centralizovani stilovi za .btn, .edit-btn, .btn-action, modal dugmad, itd.
 */

/* ========== Base - tekst uvek na sredini ========== */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.btn,
a.btn,
.btn-action,
.btn-modal,
.zoom-btn,
.navbar-link,
.edit-btn {
    text-align: center;
}

button:not(.navbar-toggle),
input[type="submit"],
input[type="button"],
input[type="reset"],
.btn-action,
.btn-modal,
.edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========== .btn - osnovni stil ========== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.5;
    box-sizing: border-box;
    white-space: nowrap;
    min-width: auto;
    width: auto;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-auto {
    width: auto;
    min-width: 120px;
}

.btn-fit {
    width: fit-content;
    min-width: auto;
}

/* ========== Button Variants ========== */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.2);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.35);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.25);
}

.btn-light {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-light:hover:not(:disabled) {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-danger:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-success:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-warning:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-info:hover:not(:disabled) {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-info:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-calendar {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-calendar:hover:not(:disabled) {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
}

.btn-calendar:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-group .btn {
    margin: 0;
}

/* Button with icon spacing - flex-shrink: 0 prevents icon from collapsing in flex layouts */
.btn-icon,
.btn .lucide {
    flex-shrink: 0;
}
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon-only {
    padding: 0.75rem;
    min-width: auto;
    width: auto;
}

/* Outline variants */
.btn-outline-primary {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    box-shadow: none;
}

.btn-outline-primary:hover:not(:disabled) {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline-secondary {
    background: transparent;
    color: #64748b;
    border: 2px solid #64748b;
    box-shadow: none;
}

.btn-outline-secondary:hover:not(:disabled) {
    background: #64748b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.btn-outline-danger {
    background: transparent;
    color: #ef4444;
    border: 2px solid #ef4444;
    box-shadow: none;
}

.btn-outline-danger:hover:not(:disabled) {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ========== Menu link button (Otvori meni) ========== */
.btn-menu-link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-menu-link:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* ========== Card actions wrap ========== */
.card-actions-wrap .card-actions .btn,
.owner-dashboard-cards .owner-dashboard-card-actions .btn,
.card-actions-wrap .card-actions a.btn,
.owner-dashboard-cards .owner-dashboard-card-actions a.btn {
    width: 100% !important;
    text-align: center;
}

/* ========== Navbar ========== */
.navbar-user .btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
}

/* ========== Table action buttons ========== */
.data-table .btn-action {
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875em;
    white-space: nowrap;
    transition: all 0.2s;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-weight: 500;
}

.data-table .btn-action.btn-edit {
    background: #ffc107;
    color: #000;
}

.data-table .btn-action.btn-edit:hover {
    background: #ffb300;
}

.data-table .btn-action.btn-delete {
    background: #dc3545;
    color: white;
}

.data-table .btn-action.btn-delete:hover {
    background: #c82333;
}

.data-table .btn-action.btn-view {
    background: #17a2b8;
    color: white;
}

.data-table .btn-action.btn-view:hover {
    background: #138496;
}

/* TreeTable toggle */
.data-table.treetable .treetable-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    font-size: 1.1rem;
    min-width: 32px;
    min-height: 32px;
    color: #3b82f6;
    transition: transform 0.2s ease;
}

.data-table.treetable .treetable-toggle:hover:not(:disabled) {
    color: #1d4ed8;
}

.data-table.treetable .treetable-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* ========== Edit modal (#editModal) ========== */
#editModal .btn-modal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
    box-sizing: border-box;
}

#editModal .btn-primary-modal {
    background: #3b82f6;
    color: white;
}

#editModal .btn-primary-modal:hover {
    background: #2563eb;
}

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

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

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

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

/* ========== Edit page buttons (.edit-btn) ========== */
.edit-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.edit-btn-primary {
    background: #3b82f6;
    color: #fff;
}

.edit-btn-primary:hover {
    background: #2563eb;
}

.edit-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.edit-btn-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

.edit-btn-outline {
    background: #fff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.edit-btn-outline:hover {
    background: #f8fafc;
    color: #475569;
}

.edit-btn-danger {
    background: #ef4444;
    color: #fff;
}

.edit-btn-danger:hover {
    background: #dc2626;
}

/* ========== Landing - Demo button ========== */
.btn-demo {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    border: none;
    animation: demo-glow 2.5s ease-in-out infinite;
}

@keyframes demo-glow {
    0%, 100% { box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.55); }
}

.btn-demo:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
    color: white !important;
    animation: none;
}

.btn-demo:active {
    transform: translateY(0) scale(0.97);
}
.btn-demo:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
}

/* Landing - hero guest table remove */
.hero-guest-table .btn-remove {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
}

.hero-guest-table .btn-remove:hover {
    color: #b91c1c;
}

/* ========== Custom select (autocomplete) - trigger button ========== */
.custom-select-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    width: 100%;
    min-height: 44px;
    text-align: left;
    padding-right: 0.5rem;
    box-sizing: border-box;
}

/* ========== Filter tabs & actions ========== */
.filter-tabs-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tabs-buttons .btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
    align-items: center;
}

.filter-actions .btn,
.filter-actions a.btn,
.filter-actions button {
    min-height: 36px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

@media (max-width: 540px) {
    .filter-tabs-buttons .btn {
        width: 100%;
        text-align: center;
    }
    .filter-actions .btn {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* ========== Licenses ========== */
.owner-licenses-actions .btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
}

/* ========== Send document modal close ========== */
.send-document-modal-close {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.9;
}

.send-document-modal-close:hover {
    opacity: 1;
}

/* ========== Responsive overrides ========== */
@media (max-width: 1052px) {
    .navbar-user .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 828px) {
    .btn {
        width: 100%;
        justify-content: center;
    }
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    .btn-group .btn {
        width: 100%;
    }
    .btn-auto,
    .btn-fit {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .navbar-user .btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
}


/* === mobile.css === */
/**
 * Mobile & PWA optimizations
 * Touch targets, safe areas, responsive improvements
 */

/* Prevent text overflow - tekst ostaje unutar ekrana */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}
body, .container, .page-content, .navbar-container,
.page-header, .page-subtitle, h1, h2, h3, p, label {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.page-content {
  max-width: 100%;
}

/* Prevent overscroll bounce on iOS */
html {
  overscroll-behavior-y: none;
}

/* Remove tap highlight on touch devices */
a, button, .btn, .navbar-link, .zoom-btn, .template {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Minimum touch target 44x44px (Apple HIG) */
@media (pointer: coarse) {
  .btn:not(.btn-sm), .btn-lg,
  .navbar-toggle, .zoom-btn,
  .edit-btn {
    min-height: 44px;
    min-width: 44px;
  }
  .btn-sm, .navbar-link {
    min-height: 44px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .zoom-btn {
    min-width: 44px;
    min-height: 44px;
  }
  .checkbox-inline {
    min-height: 44px;
    padding: 0.5rem 0;
  }
}

/* Container padding and overflow on small screens */
@media (max-width: 540px) {
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    min-width: 0;
  }
  /* Radio strane - manji krugovi na telefonu */
  .guest-side-radio-label input[type="radio"],
  .form-group .guest-side-radios .guest-side-radio-label input[type="radio"] {
    width: 0.6rem !important;
    height: 0.6rem !important;
    min-width: 0.6rem !important;
    min-height: 0.6rem !important;
  }
}

/* License alert - sprečava overflow na tabletima */
.license-expiring-alert > div {
  min-width: 0;
  overflow-wrap: break-word;
}

/* iPad / tablet (768px-1024px) - sprečava overflow, lepši layout */
@media (max-width: 1024px) {
  body:has(.navbar) .container,
  .container {
    min-width: 0;
    box-sizing: border-box;
  }
  .page-content {
    min-width: 0;
    overflow-x: hidden;
  }
}
@media (max-width: 828px) {
  body:has(.navbar) .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    min-width: 0;
  }
  /* Tabele - horizontalni scroll unutar wrappera, ne izlaze van ekrana */
  .table-container,
  .table-wrap,
  .table-guests-grid-wrap,
  .events-table-wrapper,
  [class$="-table-wrap"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}

/* Sakrij fullscreen dugme na telefonu + kompaktne kontrole */
@media (max-width: 828px) {
  .canvas-zoom-controls [data-fullscreen-target] {
    display: none !important;
  }
  .canvas-zoom-controls {
    flex-wrap: nowrap !important;
    padding: 3px 5px !important;
    gap: 2px !important;
    top: 4px !important;
    right: 4px !important;
    white-space: nowrap !important;
  }
  .canvas-zoom-controls .zoom-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    font-size: 12px !important;
  }
  .canvas-zoom-controls .zoom-level {
    font-size: 10px !important;
    min-width: 30px !important;
  }
  .canvas-zoom-controls .canvas-bg-picker {
    gap: 2px !important;
  }
  .canvas-zoom-controls .canvas-bg-input {
    width: 20px !important;
    height: 20px !important;
  }
  .canvas-zoom-controls .canvas-bg-label {
    font-size: 0.6rem !important;
    display: none !important;
  }
}

/* Pseudo-fullscreen na mobilnom - popuni ceo ekran */
.canvas-container.pseudo-fullscreen,
.edit-canvas-wrap.pseudo-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh !important;
  min-height: -webkit-fill-available !important;
  max-width: 100vw !important;
  background: #f0f0f0 !important;
  z-index: 99999 !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* ===== Demo stranica - mobilna prilagođenost ===== */
@media (max-width: 828px) {
  .demo-page .demo-container {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    padding-top: max(90px, calc(90px + env(safe-area-inset-top)));
  }

  /* Inputi - veći touch target, font 16px sprečava zoom na iOS */
  .demo-page .form-input,
  .demo-page .form-select,
  .demo-page input[type="text"],
  .demo-page input[type="number"] {
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
    font-size: 16px !important;
    border-radius: 8px;
    -webkit-appearance: none;
    appearance: none;
  }
  .demo-page select.form-input,
  .demo-page .form-select {
    padding-right: 2.5rem !important;
  }

  /* Dugmad - veći touch target */
  .demo-page .btn {
    min-height: 48px !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 1rem;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .demo-page .btn-sm {
    min-height: 44px !important;
    padding: 0.6rem 1rem !important;
  }

  /* Brzo dodavanje - kolona na telefonu, full width */
  .demo-page .quick-add-guests-section > div:last-of-type {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .demo-page .quick-add-guests-section input.form-input,
  .demo-page .quick-add-guests-section .guest-side-radios-wrap {
    min-width: 0 !important;
    width: 100% !important;
  }
  .demo-page .quick-add-guests-section #quickAddGuestBtn {
    width: 100%;
    min-height: 48px !important;
  }
  .demo-page .guest-side-radios .guest-side-radio-label {
    min-height: 44px;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .demo-page .guest-side-radios input[type="radio"] {
    width: 0.65rem !important;
    height: 0.65rem !important;
    min-width: 0.65rem !important;
    min-height: 0.65rem !important;
  }

  /* Scene panel header - vertikalno na telefonu */
  .demo-page .scene-panel-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    padding-bottom: 1rem !important;
  }
  .demo-page .scene-panel-title {
    font-size: 1rem !important;
  }
  .demo-page .scene-sidebar-toggle-link {
    padding: 0.5rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  /* Scene panel actions - select i dugme u istom redu */
  .demo-page .scene-panel-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  .demo-page .scene-panel-actions .demo-example-select {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
    min-height: 48px !important;
  }
  .demo-page .scene-panel-actions .btn {
    min-height: 48px !important;
    flex-shrink: 0 !important;
  }
  .demo-page .assigned-hall-scene-panel {
    padding: 1rem max(1rem, env(safe-area-inset-right)) 1rem max(1rem, env(safe-area-inset-left)) !important;
  }
  .demo-page .demo-primer-hint {
    font-size: 0.85rem !important;
    padding: 0.6rem 0.75rem !important;
  }

  .demo-page .demo-banner {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
  .demo-page .demo-banner h2 {
    font-size: 1.1rem !important;
  }
  .demo-page .demo-banner p {
    font-size: 0.85rem !important;
  }

  .demo-page .user-hall-tutorial > div {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0.75rem 1rem !important;
  }
  .demo-page .user-hall-tutorial h4 {
    font-size: 0.9rem !important;
  }
  .demo-page .user-hall-tutorial div[style*="grid"] {
    font-size: 0.8rem !important;
  }

  .demo-page .quick-add-guests-section h3 {
    font-size: 0.95rem !important;
  }

  .demo-page .demo-guests-tables-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    box-sizing: border-box;
  }

  .demo-page .demo-guests-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0.5rem 0;
  }

  .demo-page .demo-guests-table {
    min-width: 420px;
  }

  .demo-page .demo-guests-tables-section > div:first-child > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  .demo-page .demo-guests-tables-section .demo-guests-tables-pagination {
    flex-direction: column !important;
  }
  .demo-page .demo-guests-tables-section .demo-guests-tables-pagination > div:last-child {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .demo-page .demo-guests-tables-section input[type="text"]#demoTablesSearchInput {
    font-size: 16px !important;
    padding: 0.75rem 1rem !important;
    min-height: 48px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .demo-page .demo-guests-tables-section .filter-actions .btn {
    width: 100%;
    min-height: 48px !important;
  }
  .demo-page .demo-guests-tables-section .checkbox-inline {
    min-height: 48px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
  }
  .demo-page .demo-guests-tables-section .checkbox-inline input[type="checkbox"] {
    min-width: 1.25rem;
    min-height: 1.25rem;
  }
  .demo-page .demo-guests-tables-section select#demoGuestConfirmedFilter {
    width: 100% !important;
    min-width: 0 !important;
  }
  .demo-page .demo-filters-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .demo-page .demo-filters-row .filter-group-3 {
    flex-wrap: wrap !important;
  }
  .demo-page .demo-filters-row > * {
    min-width: 0 !important;
    width: 100% !important;
  }
  .demo-page .demo-guests-tables-section #demoAssignSelectedToTableBtn {
    min-height: 48px !important;
  }
  .demo-page .demo-guests-tables-pagination .btn {
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
    flex: 1;
    min-width: 0;
  }
  .demo-page .demo-guests-tables-section > div:first-child > div:first-child > div:last-child {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .demo-page .demo-guests-tables-section > div:first-child > div:first-child > div:last-child .checkbox-inline {
    width: 100%;
  }
  .demo-page .demo-guests-tables-section > div:first-child > div:first-child > div:last-child #demoAssignSelectedToTableBtn {
    width: 100%;
  }

  .demo-page .info-card .templates-grid {
    gap: 0.5rem !important;
  }
  .demo-page .template {
    min-width: 44px;
    min-height: 44px;
  }
  .demo-page .template-label {
    font-size: 0.75rem;
  }

  .demo-page #canvas-container {
    min-height: 50vh;
    min-height: 50dvh;
  }
  .demo-page .canvas-zoom-controls {
    flex-wrap: nowrap !important;
    gap: 2px !important;
    padding: 3px 5px !important;
    white-space: nowrap !important;
  }
  .demo-page .canvas-zoom-controls .zoom-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    font-size: 12px !important;
  }
  .demo-page .canvas-bg-picker {
    width: auto !important;
  }
  .demo-page .canvas-bg-picker .canvas-bg-label {
    display: none !important;
  }
  .demo-page .canvas-bg-picker .canvas-bg-input {
    width: 20px !important;
    height: 20px !important;
  }
  .demo-page .canvas-zoom-controls .zoom-level {
    font-size: 10px !important;
    min-width: 30px !important;
  }

  /* Table guests dialog - cela površina telefona */
  #tableGuestsPanel.table-guests-dialog {
    border-radius: 0 !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 0 !important;
  }
  #tableGuestsPanel .table-guests-panel-inner {
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    grid-template-areas: "header" "body" !important;
    width: 100vw !important;
    border-radius: 0 !important;
    min-width: 100% !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }
  #tableGuestsPanel .table-guests-panel-header {
    grid-area: header !important;
    padding: 0.75rem 1rem !important;
    gap: 0.5rem !important;
    border-radius: 0 !important;
  }
  #tableGuestsPanel .table-guests-panel-header h4 {
    font-size: 1rem !important;
  }
  #tableGuestsPanel .table-guests-panel-notes {
    font-size: 0.8rem !important;
  }
  #tableGuestsPanel .table-guests-panel-header-actions label {
    font-size: 0.8rem !important;
  }
  #tableGuestsPanel .table-guests-panel-close-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.25rem !important;
  }
  #tableGuestsPanel .table-guests-panel-body {
    grid-area: body !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0.75rem 1rem !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  #tableGuestsPanel .table-guests-grid-wrap {
    flex: 0 0 auto !important;
    max-height: none !important;
  }
  #tableGuestsPanel .table-guests-add-row {
    grid-template-columns: 1fr !important;
  }
  #tableGuestsPanel .table-guests-add-row .guest-side-radios-wrap .guest-side-radios {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    min-height: 0 !important;
  }
  #tableGuestsPanel .table-guests-add-row .guest-side-radios-wrap .guest-side-radio-label {
    min-height: 0 !important;
    padding: 0.35rem 0 !important;
  }
  #tableGuestsPanel .table-guests-add-row .guest-side-radios-wrap input[type="radio"] {
    width: 0.5rem !important;
    height: 0.5rem !important;
    min-width: 0.5rem !important;
    min-height: 0.5rem !important;
    max-width: 0.6rem !important;
    max-height: 0.6rem !important;
    border-width: 0.1em !important;
    flex-shrink: 0;
  }
  #tableGuestsPanel .table-guests-add-row .add-row-field input,
  #tableGuestsPanel .table-guests-add-row .add-row-field .form-input-inline,
  #tableGuestsPanel .table-guests-add-row input,
  #tableGuestsPanel .table-guests-add-row select {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
    font-size: 16px !important;
  }
  #tableGuestsPanel .table-guests-add-row #tableGuestsAddBtn {
    width: 100%;
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
  }
  #tableGuestsPanel .table-guests-grid th,
  #tableGuestsPanel .table-guests-grid td {
    padding: 0.4rem 0.5rem !important;
    font-size: 0.8rem !important;
  }

  .demo-page #demoAssignToTableModal > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.5rem;
  }
  .demo-page #demoAssignToTableModal .form-input {
    min-height: 48px !important;
    font-size: 16px !important;
  }
  .demo-page #demoAssignToTableModal > div > div:last-child {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .demo-page #demoAssignToTableModal .btn {
    min-height: 48px !important;
    font-size: 16px !important;
    width: 100%;
  }

  /* Grid modal - inputi full width, veći touch target */
  .demo-page #gridModal .form-input,
  .demo-page #gridModal select.form-input {
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
    font-size: 16px !important;
  }
  .demo-page #gridModal .btn {
    min-height: 48px !important;
    padding: 0.75rem 1.25rem !important;
  }
  .demo-page #gridModal #gridForm {
    gap: 1rem;
  }
  .demo-page #gridModal > div > div:last-child {
    flex-direction: column !important;
  }
  .demo-page #gridModal > div > div:last-child .btn {
    width: 100%;
  }

  /* Edit element modal - full height i width na telefonu (display kontroliše JS) */
  #editModal.edit-modal-dialog {
    border-radius: 0 !important;
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    background: rgba(0, 0, 0, 0.65) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  #editModal.edit-modal-dialog .edit-modal-inner {
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    border-radius: 0 !important;
    grid-template-areas: "header" "body" !important;
    width: 100vw !important;
    min-width: 100% !important;
    max-width: 100vw !important;
    align-self: stretch !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25) !important;
    background: #fff !important;
  }
  #editModal.edit-modal-dialog .modal-header {
    grid-area: header !important;
    padding: 0.75rem 1rem !important;
    gap: 0.5rem !important;
    border-radius: 0 !important;
  }
  #editModal.edit-modal-dialog .modal-header h3 {
    font-size: 1rem !important;
  }
  #editModal.edit-modal-dialog .edit-modal-close-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.25rem !important;
  }
  #editModal.edit-modal-dialog .modal-body {
    grid-area: body !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0.75rem 1rem !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  #editModal.edit-modal-dialog .form-input-modal {
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
    font-size: 16px !important;
  }
  #editModal.edit-modal-dialog .btn-modal {
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
  }
  #editModal.edit-modal-dialog .modal-footer {
    border-radius: 0 !important;
  }
  #editModal.edit-modal-dialog .modal-footer .footer-actions {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  .demo-page .edit-grid-palette-btn {
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
  }

  .demo-page .demo-seo-section {
    padding: 1.5rem 0 !important;
    margin-top: 1.5rem !important;
  }
  .demo-page .demo-seo-section h2 {
    font-size: 1.1rem !important;
  }
  .demo-page .demo-seo-section p {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 540px) {
  .demo-page .demo-container {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    padding-top: max(90px, calc(90px + env(safe-area-inset-top)));
  }

  .demo-page .demo-guests-tables-section {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .demo-page .demo-banner h2 {
    font-size: 1rem !important;
  }
  .demo-page .demo-banner p {
    font-size: 0.8rem !important;
  }

  .demo-page .demo-guests-tables-section .demo-guests-table th,
  .demo-page .demo-guests-tables-section .demo-guests-table td {
    padding: 0.4rem 0.5rem !important;
    font-size: 0.8rem !important;
  }
  .demo-page .demo-guests-tables-section .demo-guests-table th:last-child,
  .demo-page .demo-guests-tables-section .demo-guests-table td:last-child {
    min-width: auto !important;
  }

  .demo-page .demo-guests-tables-section > div > div:first-child > div:last-child > div {
    flex-direction: column !important;
    width: 100%;
    align-items: stretch !important;
  }
  .demo-page .demo-guests-tables-section > div > div:first-child > div:last-child .btn {
    width: 100%;
  }

  #editModal.edit-modal-dialog .edit-modal-inner {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
  }
  #editModal.edit-modal-dialog .form-input-modal {
    min-height: 44px !important;
    font-size: 16px !important;
  }
  #editModal.edit-modal-dialog .btn-modal {
    min-height: 44px !important;
    width: 100% !important;
  }
  #editModal.edit-modal-dialog .modal-footer .footer-actions {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  #editModal.edit-modal-dialog .footer-actions .btn-modal {
    width: 100% !important;
  }
  #editModal.edit-modal-dialog .table-color-palette .palette-swatches {
    gap: 0.35rem !important;
  }
  #editModal.edit-modal-dialog .palette-swatch {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }

  .demo-page .assigned-hall-scene-panel {
    padding: 0.75rem max(0.75rem, env(safe-area-inset-right)) 0.75rem max(0.75rem, env(safe-area-inset-left)) !important;
  }
  .demo-page .scene-panel-header {
    gap: 0.5rem !important;
  }
  .demo-page .scene-panel-actions .btn {
    font-size: 0.9rem !important;
    padding: 0.6rem 0.5rem !important;
  }
}

/* Akcije u tabeli gostiju - kompaktnije na telefonu */
@media (max-width: 768px) {
  .user-guests-table td:nth-last-child(2) button,
  .owner-guests-table td:nth-last-child(2) button,
  .demo-guests-table td:nth-last-child(2) button,
  .table-guests-grid td:nth-last-child(2) button {
    padding: 0.25rem 0.4rem !important;
    font-size: 0.75rem !important;
  }
}




/* === filter-forms.css === */
/**
 * Filter Forms - jedinstveni CSS za filter kontejnere i forme
 * Uključuje: filter-bar, filter-section, filter-row, filter-item, filter-form, responsive grid
 * Učitati pre filter-inputs.css na stranicama sa filterima.
 */

/* ========== Filter bar - glavni kontejner ========== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    row-gap: 1rem;
    column-gap: 1rem;
    width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.filter-sort-section {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.filter-bar.filter-bar-column {
    flex-direction: column;
    align-items: stretch;
}

/* ========== Filter section - wrapper sa pozadinom ========== */
.filter-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    min-width: 0;
}

.filter-summary {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* ========== Filter row - red filtera ========== */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    row-gap: 1rem;
    column-gap: 1rem;
    width: 100%;
    min-width: 0;
}

/* ========== Filter group - label + control ========== */
.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
}

/* ========== Filter item - pojedinačni filter ========== */
.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 160px;
    margin-bottom: 0.25rem;
}

.filter-item label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

/* ========== Dugme „Ukloni filtere” - prikaži samo ako postoji izabran filter ========== */
.filter-form .filter-clear-filters-btn,
.filter-section .filter-clear-filters-btn {
    display: none;
}
.filter-form.has-active-filters .filter-clear-filters-btn,
.filter-section.has-active-filters .filter-clear-filters-btn {
    display: inline-flex;
}
.filter-form.has-active-filters a.filter-clear-filters-btn,
.filter-section.has-active-filters a.filter-clear-filters-btn {
    display: inline-flex;
}

/* ========== Filter control - input/select ========== */
.filter-control {
    min-width: 180px;
    flex: 1 1 180px;
}

.filter-item .filter-control,
.filter-item .form-input,
.filter-item .custom-select,
.filter-item .filter-select,
.filter-item .filter-select-native-wrap,
.filter-item select {
    min-height: 44px;
    min-width: 0;
    width: 100%;
}

/* ========== Filter grid - responsive 25% > 50% > 100% ========== */
.filter-bar > .filter-control,
.filter-bar > .filter-item,
.filter-bar > select,
.filter-bar > .select-with-clear-wrapper,
.filter-bar > .filter-select-native-wrap,
.filter-bar > input:not([type="hidden"]),
.filter-bar > button,
.filter-bar > a.btn,
.filter-bar > .filter-group,
.filter-form > .filter-control,
.filter-form > .filter-item,
.filter-form > select,
.filter-form > .select-with-clear-wrapper,
.filter-form > .filter-select-native-wrap,
.filter-form > input:not([type="hidden"]),
.filter-form > button,
.filter-form > a.btn,
.filter-form > .filter-group {
    flex: 0 0 calc(25% - 0.75rem) !important;
    min-width: 140px !important;
    max-width: calc(25% - 0.75rem) !important;
}

/* 50/50 layout - veći razmak između redova */
@media (max-width: 1052px) {
    .filter-bar,
    .filter-form {
        row-gap: 1.5rem;
    }
}

@media (max-width: 1052px) {
    .filter-bar > .filter-control,
    .filter-bar > .filter-item,
    .filter-bar > select,
    .filter-bar > .select-with-clear-wrapper,
    .filter-bar > .filter-select-native-wrap,
    .filter-bar > input:not([type="hidden"]),
    .filter-bar > button,
    .filter-bar > a.btn,
    .filter-bar > .filter-group,
    .filter-form > .filter-control,
    .filter-form > .filter-item,
    .filter-form > select,
    .filter-form > .select-with-clear-wrapper,
    .filter-form > .filter-select-native-wrap,
    .filter-form > input:not([type="hidden"]),
    .filter-form > button,
    .filter-form > a.btn,
    .filter-form > .filter-group {
        flex: 0 0 calc(50% - 0.5rem) !important;
        min-width: 140px !important;
        max-width: calc(50% - 0.5rem) !important;
    }
}

/* Mobil - veći razmak između redova */
@media (max-width: 650px) {
    .filter-bar,
    .filter-form {
        row-gap: 1.75rem;
    }
}

/* Full width: ispod 650px - jedan input po redu */
@media (max-width: 650px) {
    .filter-bar > .filter-control,
    .filter-bar > .filter-item,
    .filter-bar > select,
    .filter-bar > .select-with-clear-wrapper,
    .filter-bar > .filter-select-native-wrap,
    .filter-bar > input:not([type="hidden"]),
    .filter-bar > button,
    .filter-bar > a.btn,
    .filter-bar > .filter-group,
    .filter-form > .filter-control,
    .filter-form > .filter-item,
    .filter-form > select,
    .filter-form > .select-with-clear-wrapper,
    .filter-form > .filter-select-native-wrap,
    .filter-form > input:not([type="hidden"]),
    .filter-form > button,
    .filter-form > a.btn,
    .filter-form > .filter-group {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

/* ========== Filter dugmad - manja veličina, grupisana jedno pored drugog ========== */
.filter-section .btn,
.filter-section a.btn,
.filter-section button,
.filter-form .btn,
.filter-form a.btn,
.filter-form button[type="submit"],
.filter-form button[type="button"],
.filter-bar .btn,
.filter-bar a.btn,
.filter-bar button,
.filter-sort-section .btn,
.filter-sort-section a.btn,
.filter-sort-section button,
.filter-actions .btn,
.filter-actions a.btn,
.filter-actions button {
    min-height: 44px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    align-items: center;
}

/* Dugmad ne učestvuju u grid-u - ostaju kompaktna, jedno pored drugog */
.filter-form > button,
.filter-form > a.btn,
.filter-sort-section .filter-form > button,
.filter-sort-section .filter-form > a.btn {
    flex: 0 0 auto !important;
    min-width: auto !important;
    max-width: none !important;
}

/* filter-item.filter-actions - dva dugmeta jedno pored drugog, odvojena razmakom, širina 2 inputa */
.filter-item.filter-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    flex: 0 0 calc(50% - 0.5rem) !important;
    min-width: 280px !important;
    max-width: calc(50% - 0.5rem) !important;
}

.filter-item.filter-actions .btn,
.filter-item.filter-actions a.btn {
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 1052px) {
    .filter-item.filter-actions {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

/* filter-actions bez filter-item (access_logs, assigned_halls, itd.) */
.filter-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-actions .btn,
.filter-actions a.btn {
    flex: 1 1 0;
    min-width: 0;
}

/* Override btn-sm u filter kontekstu */
.filter-section .btn.btn-sm,
.filter-form .btn.btn-sm,
.filter-bar .btn.btn-sm,
.filter-sort-section .btn.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Očisti filtere - kompaktno dugme, ne raste kao ostala */
.filter-actions .filter-clear-filters-btn.btn-sm {
    min-height: 32px;
    flex: 0 0 auto;
    min-width: 0;
}

/* Filter row unutar filter bar / filter form - grid za items */
.filter-bar .filter-row .filter-item,
.filter-form .filter-row .filter-item,
.filter-form .filter-row .filter-group,
.filter-form .filter-row .filter-actions {
    flex: 0 0 calc(25% - 0.94rem) !important;
    min-width: 140px !important;
    max-width: calc(25% - 0.94rem) !important;
    width: auto !important;
}

.filter-bar .filter-row .filter-item:has(form),
.filter-form .filter-row .filter-item:has(form) {
    flex: 0 0 calc(25% - 0.6rem) !important;
    min-width: 280px !important;
    max-width: calc(25% - 0.75rem) !important;
}

@media (max-width: 1052px) {
    .filter-bar .filter-row .filter-item,
    .filter-form .filter-row .filter-item,
    .filter-form .filter-row .filter-group,
    .filter-form .filter-row .filter-actions {
        flex: 0 0 calc(50% - 0.5rem) !important;
        min-width: 140px !important;
        max-width: calc(50% - 0.5rem) !important;
    }
    .filter-bar .filter-row .filter-item:has(form),
    .filter-form .filter-row .filter-item:has(form) {
        flex: 0 0 calc(50% - 0.5rem) !important;
        min-width: 280px !important;
        max-width: calc(50% - 0.5rem) !important;
    }
}

/* Full width: ispod 650px - jedan input po redu */
@media (max-width: 650px) {
    .filter-bar .filter-row .filter-item,
    .filter-form .filter-row .filter-item,
    .filter-form .filter-row .filter-group,
    .filter-form .filter-row .filter-actions {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .filter-bar .filter-row .filter-item:has(form),
    .filter-form .filter-row .filter-item:has(form) {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

.filter-bar .filter-row .filter-item .filter-control,
.filter-bar .filter-row .filter-item .custom-select,
.filter-bar .filter-row .filter-item .filter-select,
.filter-bar .filter-row .filter-item select,
.filter-form .filter-row .filter-item .filter-control,
.filter-form .filter-row .filter-item .custom-select,
.filter-form .filter-row .filter-item .filter-select,
.filter-form .filter-row .filter-item select {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 0 !important;
}

.filter-bar .filter-row .filter-item input[type="date"],
.filter-form .filter-row .filter-item input[type="date"] {
    min-width: 140px !important;
    width: 100% !important;
    max-width: 100%;
}

/* ========== Filter form - forma sa datumima ========== */
.filter-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    row-gap: 1rem;
    column-gap: 1rem;
    min-width: 0;
    width: 100%;
}

/* filter-row: display contents - svi filter-itemi (inputi + dugmad) u istom redu, lome se zajedno */
.filter-form .filter-row,
.filter-bar .filter-row {
    display: contents;
}

.filter-form .filter-date-pair,
.filter-form .date-pair {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-width: 140px;
}

.filter-form .filter-date-pair input,
.filter-form .date-pair input {
    min-width: 140px;
    width: 100%;
    flex: 1;
}

.filter-date-label {
    font-size: 0.875rem;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ========== Labeli iznad inputa (kao na mobilnoj) - za formu pretrage ========== */
.filter-form.filter-form-labels-above {
    align-items: flex-end;
}
.filter-form-labels-above .filter-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.25rem;
}
.filter-form-labels-above .filter-item label {
    flex-shrink: 0;
    white-space: nowrap;
    display: block;
    align-self: flex-start;
}
/* Custom-select (nakon učitavanja JS) - block da label ostane iznad */
.filter-form-labels-above .filter-item .custom-select {
    display: block !important;
    width: 100%;
    min-height: 44px;
    align-self: stretch;
}
/* Native select [data-autocomplete] u filter-form-labels-above - samo layout (vizuelni stilovi u filter-inputs.css) */
.filter-form-labels-above .filter-item select[data-autocomplete] {
    width: 100%;
    align-self: stretch;
}

/* ========== Filter row - desktop inline, mobil stacked ========== */
@media (min-width: 1052px) {
    .filter-row {
        flex-wrap: wrap;
        align-items: center;
        gap: 1.25rem;
    }
    .filter-item {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        min-width: 0;
        flex: 1 1 auto;
    }
    .filter-form-labels-above .filter-item {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .filter-item label {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .filter-item .custom-select,
    .filter-item .filter-select,
    .filter-item select {
        min-width: 0;
        flex: 1 1 0;
        width: 100%;
    }
}

@media (min-width: 651px) and (max-width: 1051px) {
    .filter-row {
        flex-direction: row;
        flex-wrap: wrap;
        flex: 1 1 100%;
    }
    .filter-item {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: 140px;
        max-width: calc(50% - 0.5rem);
    }
}

/* Full width: ispod 650px - jedan input po redu */
@media (max-width: 650px) {
    .filter-row {
        flex-direction: column;
        flex: 1 1 100%;
    }
    .filter-item {
        flex: 1 1 100%;
        min-width: 100%;
        width: 100%;
    }
}

/* Filter bar - row layout kada ima filter-row (display: contents), da se sve lomi zajedno */
.filter-bar:has(.filter-row) {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar .filter-row {
    flex: 0 0 auto;
    width: 100%;
}

/* ========== filter-form-split: 50% polja + 50% filter-group-3 (3 checkboxa) ========== */
.filter-form-split .filter-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    width: 100%;
}
.filter-row-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex: 1 1 50%;
    min-width: 200px;
}
.filter-row-fields .filter-item {
    flex: 1 1 calc(33.333% - 0.5rem);
    min-width: 120px;
}
.filter-group-3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 50%;
    min-width: 200px;
}
.filter-group-3-checkbox {
    font-size: 0.9rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.filter-group-3-checkbox:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.filter-group-3-checkbox:has(input:checked) {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}
.filter-group-3-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    min-height: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #3b82f6;
    vertical-align: middle;
}
.filter-group-3-actions {
    margin-left: auto;
    flex: 0 0 auto;
}
/* Prilepljeno uz checkboxove - bez margin-left: auto */
.filter-group-3-actions-inline {
    margin-left: 0;
}
.filter-group-3-actions .btn {
    min-height: 32px;
}

/* guest-search-filter-dropdown u filter-form (user hall - Stol dropdown) */
.filter-form .filter-item .guest-search-filter-dropdown {
    width: 100%;
    min-width: 0;
}
.filter-form .filter-item .guest-search-filter-dropdown > button {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.filter-form .filter-item .guest-search-filter-dropdown > button:hover {
    border-color: #2563eb;
}
.filter-form .filter-item .guest-search-filter-dropdown > button:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.filter-form .filter-item .guest-search-filter-dropdown {
    position: relative;
}
.filter-form .filter-item .guest-table-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.08);
    padding: 0.5rem;
    z-index: 20;
    display: none;
}
.filter-form .filter-item .guest-table-dropdown-menu input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}
.filter-form .filter-item .guest-search-filter-dropdown > button .guest-table-dropdown-arrow {
    font-size: 0.75rem;
    color: #64748b;
}
.filter-form .filter-item #guestTableDropdownList {
    max-height: 220px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .filter-row-fields,
    .filter-group-3 {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

/* Filter/search forms - sprečava overflow na uskim ekranima */
@media (max-width: 828px) {
    .filter-sort-section form > div,
    .search-form > div {
        min-width: 0 !important;
        max-width: 100%;
    }
    .filter-sort-section input,
    .filter-sort-section .form-input,
    .search-form input,
    .search-form .form-input {
        max-width: 100%;
        min-width: 0;
    }
}


/* === filter-inputs.css === */
/**
 * Filter Inputs - jedinstveni CSS za sve input polja u filterima
 * Uključuje: native select/input, custom-select (autocomplete), filter-select, X dugmad, filter-has-value
 * Učitati zajedno sa filter-forms.css na stranicama sa filterima.
 */

/* ========== Filter section - stilovi za input/select u filter kontekstu ========== */
.filter-section .filter-bar select,
.filter-section .filter-bar input[type="date"],
.filter-section .filter-bar input[type="text"],
.filter-section .filter-bar input[type="search"],
.filter-section .filter-bar .date-input-clearable-wrapper input,
.filter-section .filter-bar .filter-select .select-trigger,
.filter-section .filter-bar .filter-multiselect .multiselect-trigger,
.filter-section .filter-bar .custom-select .custom-select-button,
.filter-section .filter-form .filter-select .select-trigger,
.filter-section .filter-form .filter-multiselect .multiselect-trigger,
.filter-section .filter-form .custom-select .custom-select-button {
    height: 44px;
}
.filter-section .filter-bar .filter-select .select-trigger,
.filter-section .filter-bar .filter-multiselect .multiselect-trigger,
.filter-section .filter-form select,
.filter-section .filter-form input[type="date"],
.filter-section .filter-form input[type="text"],
.filter-section .filter-form input[type="search"],
.filter-section .filter-form .date-input-clearable-wrapper input,
.filter-section .filter-form .filter-select .select-trigger,
.filter-section .filter-form .filter-multiselect .multiselect-trigger,
.filter-section .filter-bar .custom-select .custom-select-button,
.filter-section .filter-form .custom-select .custom-select-button {
    padding: 0.75rem 1rem;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    min-height: 44px;
    height: 44px;
    line-height: 1.5;
    box-sizing: border-box;
}

.filter-section .filter-bar select,
.filter-section .filter-bar input[type="text"],
.filter-section .filter-bar input[type="search"],
.filter-section .filter-form select,
.filter-section .filter-form input[type="text"],
.filter-section .filter-form input[type="search"] {
    min-width: 180px;
}

.filter-section .filter-bar select:hover,
.filter-section .filter-bar input:hover,
.filter-section .filter-bar .date-input-clearable-wrapper input:hover,
.filter-section .filter-bar .filter-select .select-trigger:hover,
.filter-section .filter-bar .filter-multiselect .multiselect-trigger:hover,
.filter-section .filter-form select:hover,
.filter-section .filter-form input:hover,
.filter-section .filter-form .date-input-clearable-wrapper input:hover,
.filter-section .filter-form .filter-select .select-trigger:hover,
.filter-section .filter-form .filter-multiselect .multiselect-trigger:hover,
.filter-section .filter-bar .custom-select .custom-select-button:hover,
.filter-section .filter-form .custom-select .custom-select-button:hover {
    border-color: #2563eb;
}

.filter-section .filter-bar select:focus,
.filter-section .filter-bar input:focus,
.filter-section .filter-bar .date-input-clearable-wrapper input:focus,
.filter-section .filter-bar .filter-select .select-trigger:focus,
.filter-section .filter-bar .filter-multiselect .multiselect-trigger:focus,
.filter-section .filter-form select:focus,
.filter-section .filter-form input:focus,
.filter-section .filter-form .date-input-clearable-wrapper input:focus,
.filter-section .filter-form .filter-select .select-trigger:focus,
.filter-section .filter-form .filter-multiselect .multiselect-trigger:focus,
.filter-section .filter-bar .custom-select .custom-select-button:focus,
.filter-section .filter-form .custom-select .custom-select-button:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* ========== X ikonica - dugme za čišćenje ========== */
.filter-clear-btn,
.select-clear-btn,
.date-clear-btn,
.custom-select-clear {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-clear-btn:hover,
.select-clear-btn:hover,
.date-clear-btn:hover,
.custom-select-clear:hover {
    background: transparent;
    color: #475569;
}

/* Autocomplete - spinner pri učitavanju (remote search) */
.custom-select-loading .custom-select-button {
    position: relative;
}
.custom-select-loading .custom-select-button::after {
    content: '';
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: custom-select-spin 0.6s linear infinite;
}
@keyframes custom-select-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}
.custom-select-loading .custom-select-options-list {
    position: relative;
    min-height: 2rem;
}
.custom-select-loading .custom-select-options-list:empty::before {
    content: '';
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.75rem auto;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: custom-select-spin 0.6s linear infinite;
}

/* Select sa X - native select */
.select-with-clear-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.select-with-clear-wrapper select {
    padding-right: 3.5rem;
    width: 100%;
    box-sizing: border-box;
}

.select-clear-btn {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Date input sa X */
.date-input-clearable-wrapper {
    position: relative;
    display: inline-block;
}

.date-input-clearable-wrapper .flatpickr-input,
.date-input-clearable-wrapper input[data-flatpickr],
.date-input-clearable-wrapper input {
    padding-right: 2.25rem;
}

.date-clear-btn {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Date wrapper u filterima - puna širina, usklađen layout */
.filter-section .filter-bar .date-input-clearable-wrapper,
.filter-section .filter-form .date-input-clearable-wrapper,
.filter-group .date-input-clearable-wrapper,
.filter-form .date-pair .date-input-clearable-wrapper {
    display: block;
    width: 100%;
    min-width: 140px;
    flex: 1 1 auto;
}

.filter-section .filter-bar .date-input-clearable-wrapper input,
.filter-section .filter-form .date-input-clearable-wrapper input,
.filter-group .date-input-clearable-wrapper input,
.filter-form .date-pair .date-input-clearable-wrapper input {
    width: 100%;
    min-height: 44px;
    padding-right: 2.25rem;
    box-sizing: border-box;
}

/* Custom select (autocomplete) i filter-select - X je u buttonu */
.custom-select-clear,
.filter-select .select-clear-btn {
    position: static;
    transform: none;
    flex-shrink: 0;
}

/* ========== Filter has value - samo promena boje, bez promene dimenzija ========== */
.filter-has-value .custom-select-button,
.filter-has-value .select-trigger,
.filter-has-value.form-input,
.filter-has-value.filter-multiselect .multiselect-trigger,
select.filter-has-value,
input.filter-has-value,
.date-input-clearable-wrapper.filter-has-value input,
/* Flatpickr: kada datum ima vrednost, stilizuj i alt input (vidljiv) */
.filter-item:has(input.filter-has-value) input.flatpickr-input {
    border: 2px solid #0284c7 !important;
    background: #f0f9ff !important;
}

.filter-has-value .custom-select-button:focus,
.filter-has-value .select-trigger:focus,
.filter-has-value.filter-multiselect .multiselect-trigger:focus,
select.filter-has-value:focus,
input.filter-has-value:focus,
.date-input-clearable-wrapper.filter-has-value input:focus,
.filter-item:has(input.filter-has-value) input.flatpickr-input:focus {
    border-color: #0369a1 !important;
}

label.checkbox-inline.filter-has-value {
    padding: 0.4rem 0.75rem;
    border: 2px solid #0284c7;
    border-radius: 6px;
    background: #f0f9ff;
    font-weight: 600;
}

/* ========== Custom Select (autocomplete) - searchable dropdown ========== */
.custom-select,
.form-autocomplete {
    position: relative;
    min-width: 200px;
    width: 100%;
    box-sizing: border-box;
}

/* .custom-select-button base u buttons.css */

.custom-select-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    display: none;
    z-index: 20;
    overflow: hidden;
    box-sizing: border-box;
}

.custom-select-options-list {
    max-height: 200px;
    overflow-y: auto;
}

.custom-select-no-results {
    padding: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
    text-align: left;
}

.custom-select.open .custom-select-options {
    display: block;
}

.custom-select-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    text-align: left;
}

.custom-select-option:hover {
    background: #f8fafc;
}

.custom-option-name {
    flex: 1;
    min-width: 0;
}

.custom-option-count,
.custom-select-count {
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
}

.custom-select .custom-select-button,
.custom-select .custom-select-label,
.custom-select .custom-select-option,
.custom-select .custom-select-search,
.custom-select .custom-select-no-results {
    text-align: left !important;
}

/* ========== Native select (bez data-autocomplete) - appearance:none, strelica, text-align:left ========== */
/* Samo obični selecti - data-autocomplete zadržava svoj postojeći izgled */
.filter-section .filter-bar select:not([data-autocomplete]),
.filter-section .filter-form select:not([data-autocomplete]) {
    appearance: none;
    cursor: pointer;
    color: #0f172a;
    text-align: left;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-color: #fff;
    padding: 0.625rem 2.25rem 0.625rem 1rem;
    line-height: 1.5;
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
}
.filter-section .filter-bar select:not([data-autocomplete]):hover,
.filter-section .filter-form select:not([data-autocomplete]):hover {
    border-color: #2563eb;
}
.filter-section .filter-bar select:not([data-autocomplete]):focus,
.filter-section .filter-form select:not([data-autocomplete]):focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* ========== data-autocomplete i filter-select-native - originalni izgled (ne dira) ========== */
.filter-section .filter-bar select[data-autocomplete],
.filter-section .filter-form select[data-autocomplete],
.filter-section .filter-bar select.filter-select-native,
.filter-section .filter-form select.filter-select-native {
    appearance: none;
    cursor: pointer;
    color: #0f172a;
    text-align: left;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-color: #fff;
    padding-top: 0.45rem;
    padding-bottom: 0.8rem;
    padding-left: 1rem;
    padding-right: 2.25rem;
    line-height: 1.5;
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
}
.filter-section .filter-bar select[data-autocomplete]:hover,
.filter-section .filter-form select[data-autocomplete]:hover,
.filter-section .filter-bar select.filter-select-native:hover,
.filter-section .filter-form select.filter-select-native:hover {
    border-color: #2563eb;
}
.filter-section .filter-bar select[data-autocomplete]:focus,
.filter-section .filter-form select[data-autocomplete]:focus,
.filter-section .filter-bar select.filter-select-native:focus,
.filter-section .filter-form select.filter-select-native:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Select sa X (data-clearable) - više mesta za dugme */
.filter-section .select-with-clear-wrapper select {
    padding-right: 3.5rem;
}

/* ========== select[data-autocomplete] svuda (van .filter-section) - isti izgled pre učitavanja JS ========== */
select[data-autocomplete] {
    appearance: none;
    cursor: pointer;
    color: #0f172a;
    text-align: left;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-color: #fff;
    padding-top: 0.45rem;
    padding-bottom: 0.8rem;
    padding-left: 1rem;
    padding-right: 2.25rem;
    line-height: 1.5;
    min-height: 44px;
    height: 44px;
    box-sizing: border-box;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    font-size: 1rem;
}
select[data-autocomplete]:hover {
    border-color: #2563eb;
}
select[data-autocomplete]:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* ========== Filter Select - searchable dropdown (KIF, Documents) ========== */
.filter-select-native-wrap {
    position: relative;
    min-width: 0;
    width: 100%;
    flex: 1 1 0;
    box-sizing: border-box;
}

.filter-select {
    position: relative;
    min-width: 0;
    width: 100%;
    flex: 1 1 0;
    box-sizing: border-box;
}

.filter-select .select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    width: 100%;
    min-height: 44px;
    height: 44px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.filter-select .select-trigger .select-label,
.filter-select .select-trigger > span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.filter-select .select-trigger:hover {
    border-color: #2563eb;
}

.filter-select .select-trigger::after {
    content: '▼';
    font-size: 0.65rem;
    color: #64748b;
    margin-left: 0.25rem;
}

.filter-select.open .select-options {
    display: block;
}

.filter-select .select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    display: none;
    z-index: 100;
    overflow: hidden;
    box-sizing: border-box;
}

/* Search input - filter-select i custom-select */
.filter-select .select-search,
.custom-select .custom-select-search {
    padding: 0.5rem 0.75rem;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.95rem;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    min-height: 38px;
    line-height: 1.5;
    text-align: left;
    border-radius: 8px 8px 0 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-select .select-search:focus,
.custom-select .custom-select-search:focus {
    outline: none;
    border-bottom-color: #3b82f6;
    box-shadow: 0 1px 0 0 #3b82f6;
}

.filter-select .select-search::placeholder,
.custom-select .custom-select-search::placeholder {
    color: #94a3b8;
}

.filter-select .select-search:hover,
.custom-select .custom-select-search:hover {
    border-bottom-color: #cbd5e1;
}

.filter-select .select-list {
    max-height: 220px;
    overflow-y: auto;
}

.filter-select .select-option {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    text-align: left;
}

.filter-select .select-option:hover {
    background: #f1f5f9;
}

.filter-select .select-no-results {
    padding: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
    text-align: left;
    display: none;
}

.filter-select .select-no-results.visible {
    display: block;
}

/* Modal - dropdown ne sme biti širi od inputa */
.modal-overlay .filter-select,
.modal-overlay .custom-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.modal-overlay .filter-select .select-options,
.modal-overlay .custom-select .custom-select-options {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

.modal-overlay .filter-select-native-wrap,
.modal-overlay .select-with-clear-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Veći razmak između X i strelice - lakši tap na mobilnom */
.filter-section .custom-select .custom-select-button {
    gap: 0.75rem;
}

/* Override - filter-select i custom-select pune širine u filter kontekstu */
.filter-bar .filter-select,
.filter-bar .custom-select,
.filter-form .filter-select,
.filter-form .custom-select,
.filter-item .filter-select,
.filter-item .custom-select {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* filter-item sa owner-search-select/custom-select - šira min širina za autocomplete (nazivi firmi)
   Uvek ista min-width (240px) da input ne raste nakon izbora vrednosti */
.filter-bar .filter-row .filter-item:has(.filter-select),
.filter-bar .filter-row .filter-item:has(.custom-select),
.filter-bar .filter-row .filter-item:has(.filter-multiselect),
.filter-bar .filter-row .filter-item:has(.filter-select-native-wrap),
.filter-bar .filter-row .filter-item:has(select[data-clearable]),
.filter-bar .filter-row .filter-item:has(select[data-replace-with-filter-select]),
.filter-form .filter-item:has(.filter-select),
.filter-form .filter-item:has(.custom-select),
.filter-form .filter-item:has(.filter-multiselect),
.filter-form .filter-item:has(.filter-select-native-wrap),
.filter-form .filter-item:has(select[data-clearable]),
.filter-form .filter-item:has(select[data-replace-with-filter-select]) {
    min-width: 240px !important;
}

/* ========== Filter multiselect (status, tip, itd.) ========== */
.filter-multiselect {
    position: relative;
    min-width: 0;
    width: 100%;
    flex: 1 1 0;
    box-sizing: border-box;
}
.filter-multiselect .multiselect-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    width: 100%;
    min-height: 44px;
    height: 44px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    font-family: inherit;
    text-align: left;
}
.filter-multiselect .multiselect-trigger:hover {
    border-color: #2563eb;
}
.filter-multiselect .multiselect-trigger::after {
    content: '▼';
    font-size: 0.65rem;
    color: #64748b;
    margin-left: 0.25rem;
}
.filter-multiselect .multiselect-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.filter-multiselect .multiselect-clear {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.filter-multiselect .multiselect-clear:hover {
    color: #475569;
}
.filter-multiselect.open .multiselect-dropdown {
    display: block;
}
.filter-multiselect .multiselect-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    display: none;
    z-index: 100;
    padding: 0.5rem 0;
    box-sizing: border-box;
}
.filter-multiselect .multiselect-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}
.filter-multiselect .multiselect-option:hover {
    background: #f1f5f9;
}
.filter-multiselect .multiselect-option input {
    margin: 0;
    cursor: pointer;
}

/* ========== Responsive - filter controls ========== */
@media (max-width: 828px) {
    .custom-select.filter-control,
    .select-with-clear-wrapper,
    .filter-select-native-wrap {
        min-width: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }
    .select-with-clear-wrapper select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

@media (max-width: 540px) {
    .custom-select.filter-control,
    .select-with-clear-wrapper,
    .filter-select-native-wrap {
        min-width: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }
    .select-with-clear-wrapper select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}



/* === calendar.css === */
/* Calendar Styles */

/* Google Calendar link input - responsive, ne prelazi viewport */
.calendar-google-card input[type="text"],
.calendar-google-card #googleCalendarLink {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    min-height: 500px;
}

.calendar-loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-header {
    background: #3b82f6;
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-day {
    background: white;
    min-height: 100px;
    padding: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #999;
}

.calendar-day.today {
    background: #e3f2fd;
    border: 2px solid #3b82f6;
}

.calendar-day-number {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-event {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event:hover {
    opacity: 0.8;
}

.calendar-event.status-draft {
    background: #6c757d;
}

.calendar-event.status-scheduled {
    background: #3b82f6;
}

.calendar-event.status-in_progress {
    background: #ffc107;
    color: #000;
}

.calendar-event.status-completed {
    background: #28a745;
}

.calendar-event.status-cancelled {
    background: #dc3545;
}

.calendar-event-lock {
    margin-left: 0.2rem;
    opacity: 0.95;
}

/* Godišnji pregled - 12 mini kalendara */
.yearly-calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.yearly-month-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.yearly-month-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-align: center;
}

.yearly-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.yearly-mini-header {
    font-size: 0.6rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    padding: 0.15rem 0;
}

.yearly-mini-day {
    font-size: 0.7rem;
    text-align: center;
    padding: 0.25rem;
    min-height: 22px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.yearly-mini-day.empty {
    background: transparent;
    cursor: default;
}

.yearly-mini-day:not(.empty):hover {
    background: #e2e8f0;
}

.yearly-mini-day.low {
    background: rgba(59, 130, 246, 0.35);
    color: #1e40af;
    font-weight: 600;
}

.yearly-mini-day.medium {
    background: rgba(59, 130, 246, 0.6);
    color: #fff;
    font-weight: 600;
}

.yearly-mini-day.high {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-weight: 700;
}

.yearly-mini-day.today {
    border: 2px solid #3b82f6;
    box-shadow: 0 0 0 1px #fff;
}

@media (max-width: 1200px) {
    .yearly-calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 828px) {
    .yearly-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .yearly-mini-day {
        font-size: 0.65rem;
        min-height: 18px;
        padding: 0.15rem;
    }
}

.table-lock-badge {
    margin-left: 0.35rem;
    font-size: 0.85em;
    vertical-align: middle;
}

/* Ograničena visina ćelija u tabeli događaja - sprečava razduženje reda */
.events-table-wrapper .table-cell-compact {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event-more {
    color: #1e40af;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Sortable table headers */
th.sortable {
    cursor: pointer;
    user-select: none;
}

th.sortable:hover {
    background: #f1f5f9;
}

/* Event Modal */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.event-modal.active {
    display: flex;
}

.event-modal-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.event-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.event-modal-header h3 {
    margin: 0;
    color: #1e40af;
}

.event-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.event-modal-close:hover {
    background: #f0f0f0;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-detail-item {
    display: flex;
    gap: 1rem;
}

.event-detail-label {
    font-weight: 600;
    color: #666;
    min-width: 120px;
}

.event-detail-value {
    flex: 1;
    color: #333;
}

.event-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.event-status-badge.status-draft {
    background: #6c757d;
    color: white;
}

.event-status-badge.status-scheduled {
    background: #3b82f6;
    color: white;
}

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

.event-status-badge.status-completed {
    background: #28a745;
    color: white;
}

.event-status-badge.status-cancelled {
    background: #dc3545;
    color: white;
}

/* Responsive - tablet */
@media (max-width: 1052px) {
    .calendar-nav form { margin-left: 0 !important; }
}

/* Responsive - mobile */
@media (max-width: 828px) {
    .calendar-navigation,
    .calendar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0.75rem !important;
        gap: 0.75rem !important;
    }
    .calendar-nav h2 {
        width: 100% !important;
        flex: none !important;
        text-align: center !important;
        margin: 0 !important;
        font-size: 1.25rem !important;
    }
    .calendar-nav a,
    .calendar-nav .btn,
    #calendarNavMonth a,
    #calendarNavMonth .btn,
    #calendarNavYear a,
    #calendarNavYear .btn {
        width: 100% !important;
        text-align: center !important;
    }
    #calendarNavMonth h2,
    #calendarNavYear h2 {
        width: 100% !important;
        flex: none !important;
        text-align: center !important;
        margin: 0 !important;
        font-size: 1.25rem !important;
    }
    .calendar-nav #calendarNavMonth,
    .calendar-nav #calendarNavYear,
    #calendarNavMonth,
    #calendarNavYear {
        flex-direction: column !important;
        width: 100% !important;
    }
    .calendar-view-toggle {
        flex-wrap: wrap !important;
    }
    .calendar-view-toggle .btn { min-width: 0; }
    .calendar-nav form,
    #calendarNavMonth form,
    #calendarNavYear form {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 0.35rem !important;
    }
    .calendar-nav form select,
    #calendarNavMonth form select,
    #calendarNavYear form select {
        min-width: 0 !important;
        width: auto !important;
        flex: 1 1 auto !important;
        max-width: 45% !important;
        min-height: 38px !important;
        height: 38px !important;
        padding: 0.3rem 0.5rem !important;
        font-size: 0.875rem !important;
    }
    .calendar-nav form button,
    #calendarNavMonth form button,
    #calendarNavYear form button { width: 100%; min-height: 38px !important; height: auto !important; padding: 0.35rem 0.5rem !important; font-size: 0.875rem !important; }
    .calendar-container {
        padding: 0.75rem !important;
        min-height: 400px;
    }
    .calendar-day-header {
        padding: 0.5rem !important;
        font-size: 0.75rem !important;
    }
    .calendar-day {
        min-height: 70px;
        padding: 0.25rem !important;
    }
    .calendar-day-number { font-size: 0.8rem !important; }
    .calendar-event {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.35rem !important;
        white-space: normal !important;
        line-height: 1.2;
    }
    .calendar-google-card {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .calendar-google-card > div:first-child { min-width: 0 !important; }
    .calendar-google-card #googleCalendarLink {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.8rem !important;
        padding: 0.5rem 0.6rem !important;
    }
    .calendar-google-card .btn { width: 100% !important; }
    .event-modal-content {
        width: 95% !important;
        max-width: none !important;
        padding: 1.25rem !important;
        margin: 1rem;
    }
    .event-detail-item {
        flex-direction: column !important;
        gap: 0.35rem !important;
    }
    .event-detail-label { min-width: 0 !important; }
    .event-modal-header h3 { font-size: 1.1rem !important; }
    .events-table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .events-table-wrapper .data-table {
        min-width: 600px;
        font-size: 0.9rem;
    }
    .events-table-wrapper .data-table th,
    .events-table-wrapper .data-table td {
        padding: 0.5rem 0.75rem !important;
    }
    .events-table-wrapper .data-table .btn-action {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
    .table-events-card { padding: 1rem !important; }
    .table-events-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .table-events-header > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .table-events-header .btn { width: 100% !important; text-align: center !important; }
}

/* Responsive - small mobile (telefon) */
@media (max-width: 540px) {
    .owner-calendar-page .container { padding: 0.75rem 1rem !important; min-width: 0; }
    .owner-calendar-page .dashboard-content { padding: 1rem !important; max-width: 100%; }
    /* Header sa dugmadima - sve u kolonu, 100% */
    .owner-calendar-page .calendar-events-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        padding: 0.75rem !important;
    }
    .owner-calendar-page .calendar-events-header > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .owner-calendar-page .calendar-events-header .btn {
        width: 100% !important;
        text-align: center !important;
    }
    /* Navigacija - view toggle i mesec/godina u kolonu */
    .owner-calendar-page .calendar-navigation,
    .owner-calendar-page .calendar-nav {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }
    .owner-calendar-page .calendar-view-toggle {
        flex-direction: column !important;
        width: 100% !important;
    }
    .owner-calendar-page .calendar-view-toggle .btn {
        width: 100% !important;
        text-align: center !important;
    }
    .owner-calendar-page .calendar-nav h2 {
        font-size: 1.1rem !important;
    }
    .owner-calendar-page .calendar-nav #calendarNavMonth,
    .owner-calendar-page .calendar-nav #calendarNavYear {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }
    .owner-calendar-page .calendar-nav #calendarNavMonth form,
    .owner-calendar-page .calendar-nav #calendarNavYear form {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        margin-left: 0 !important;
        gap: 0.35rem !important;
    }
    .owner-calendar-page .calendar-nav form select,
    .owner-calendar-page .calendar-nav form input {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        max-width: 45% !important;
        min-height: 38px !important;
        height: 38px !important;
        padding: 0.3rem 0.5rem !important;
        font-size: 0.875rem !important;
    }
    .owner-calendar-page .calendar-nav form button {
        flex: 1 1 auto !important;
        min-width: 80px !important;
        min-height: 38px !important;
        height: auto !important;
        padding: 0.35rem 0.5rem !important;
        font-size: 0.875rem !important;
    }
    /* Kalendar grid - horizontal scroll da se vide svi dani (Subota, Nedelja) */
    .owner-calendar-page .calendar-container {
        padding: 0.5rem !important;
        min-height: 350px;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .owner-calendar-page .calendar-grid {
        min-width: 350px;
        width: max-content;
    }
    .owner-calendar-page .calendar-day-header { padding: 0.35rem !important; font-size: 0.6rem !important; }
    .owner-calendar-page .calendar-day { min-height: 55px; }
    .owner-calendar-page .calendar-event { font-size: 0.55rem !important; padding: 0.1rem 0.2rem !important; }
    .owner-calendar-page .calendar-event-more { font-size: 0.55rem !important; }
    /* Godišnji pregled - 1 kolona na telefonu */
    .owner-calendar-page .yearly-calendar-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    /* Google Calendar kartica */
    .owner-calendar-page .calendar-google-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0.75rem !important;
    }
    .owner-calendar-page .calendar-google-card #googleCalendarLink {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.75rem !important;
        padding: 0.4rem 0.5rem !important;
    }
    .owner-calendar-page .calendar-google-card .btn {
        width: 100% !important;
    }
    /* Owner tabela događaja - 480px */
    .owner-events-table-page .container { padding: 0.75rem 1rem !important; min-width: 0; }
    .owner-events-table-page .dashboard-content { padding: 1rem !important; max-width: 100%; overflow-x: hidden; }
    .owner-events-table-page .table-events-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    .owner-events-table-page .table-events-header > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .owner-events-table-page .table-events-header .btn {
        width: 100% !important;
        text-align: center !important;
    }
    /* User kalendar (dashboard) - 480px */
    .user-calendar-page .container { padding: 0.75rem 1rem !important; min-width: 0; }
    .user-calendar-page .dashboard-content { padding: 1rem !important; max-width: 100%; overflow-x: hidden; }
    .user-calendar-page .calendar-view-toggle {
        flex-direction: column !important;
        width: 100% !important;
    }
    .user-calendar-page .calendar-view-toggle .btn {
        width: 100% !important;
        text-align: center !important;
    }
    .user-calendar-page #calendarNavMonth,
    .user-calendar-page #calendarNavYear {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }
    .user-calendar-page #calendarNavMonth form,
    .user-calendar-page #calendarNavYear form {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        margin-left: 0 !important;
        gap: 0.35rem !important;
    }
    .user-calendar-page #calendarNavMonth form select,
    .user-calendar-page #calendarNavYear form select,
    .user-calendar-page #calendarNavMonth form input,
    .user-calendar-page #calendarNavYear form input {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        max-width: 45% !important;
        min-height: 38px !important;
        height: 38px !important;
        padding: 0.3rem 0.5rem !important;
        font-size: 0.875rem !important;
    }
    .user-calendar-page #calendarNavMonth form button,
    .user-calendar-page #calendarNavYear form button {
        flex: 1 1 auto !important;
        min-width: 80px !important;
        min-height: 38px !important;
        padding: 0.35rem 0.5rem !important;
        font-size: 0.875rem !important;
    }
    .user-calendar-page .calendar-container {
        padding: 0.5rem !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .user-calendar-page .calendar-grid { min-width: 280px; }
    .user-calendar-page .calendar-day-header { padding: 0.35rem !important; font-size: 0.6rem !important; }
    .user-calendar-page .calendar-day { min-height: 55px; }
    .user-calendar-page .calendar-event { font-size: 0.55rem !important; padding: 0.1rem 0.2rem !important; }
    .user-calendar-page .yearly-calendar-grid { grid-template-columns: 1fr !important; }
    /* Modal - sve stranice sa kalendarom */
    .owner-calendar-page .event-modal-content,
    .owner-events-table-page .event-modal-content,
    .user-calendar-page .event-modal-content {
        margin: 0.5rem !important;
        padding: 1rem !important;
        width: calc(100% - 1rem) !important;
    }
    /* Fallback za ostale stranice */
    .container { padding: 0.75rem 1rem !important; }
    .dashboard-content { padding: 1rem !important; }
    .calendar-container {
        padding: 0.5rem !important;
        min-height: 350px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .calendar-grid { min-width: 280px; }
    .calendar-day-header { padding: 0.35rem !important; font-size: 0.65rem !important; }
    .calendar-day { min-height: 55px; }
    .calendar-event { font-size: 0.55rem !important; padding: 0.1rem 0.2rem !important; }
    .calendar-event-more { font-size: 0.55rem !important; }
    .event-modal-content { margin: 0.5rem !important; padding: 1rem !important; }
    .events-table-wrapper .data-table { min-width: 500px; font-size: 0.85rem !important; }
    .events-table-wrapper .data-table th,
    .events-table-wrapper .data-table td { padding: 0.4rem 0.5rem !important; }
    .table-events-card { padding: 0.75rem !important; }
}



/* === hall.css === */
/* Hall Page Specific Styles */

.hall-page {
  padding: 0;
}

@media (min-width: 769px) {
  body.hall-page .container {
    max-width: 94vw;
  }
}

/* ===== Assigned Hall Edit - Header (Grid) ===== */
.page-header.assigned-hall-edit-header {
  display: grid;
  grid-template-areas: "content actions";
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: flex-start;
  min-width: 0;
}
.assigned-hall-edit-header-content {
  grid-area: content;
  min-width: 0;
}
.assigned-hall-edit-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e40af;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.assigned-hall-edit-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.35rem;
}
.assigned-hall-edit-meta-label {
  color: #94a3b8;
  font-weight: 500;
}
.assigned-hall-edit-event-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.assigned-hall-edit-event-link:hover {
  color: #1e40af;
}
.assigned-hall-edit-meta-sep {
  color: #cbd5e1;
  margin: 0 0.15rem;
}
.assigned-hall-header-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  min-width: 0;
}
.assigned-hall-lock-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  min-width: 200px;
}
.assigned-hall-lock-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 0.25rem;
}
.assigned-hall-lock-desc {
  margin: 0 0 0.5rem 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}
@media (max-width: 992px) {
  .page-header.assigned-hall-edit-header {
    grid-template-areas: "content" "actions";
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .assigned-hall-header-actions {
    align-self: stretch;
    justify-content: flex-start;
  }
}

/* ===== Assigned Hall Edit - Tabovi ===== */
.assigned-hall-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.assigned-hall-tabs [role="tab"] {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.assigned-hall-tabs [role="tab"]:hover {
  color: #334155;
}
.assigned-hall-tabs [role="tab"][aria-selected="true"] {
  color: #1e40af;
  border-bottom-color: #1e40af;
}
.assigned-hall-tab-panels .tab-panel {
  display: none;
}
.assigned-hall-tab-panels .tab-panel.active {
  display: block;
}
.assigned-hall-section {
  margin-bottom: 1.5rem;
}
.assigned-hall-section:last-child {
  margin-bottom: 0;
}
.assigned-hall-collapsible {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.assigned-hall-collapsible summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #1e293b;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.assigned-hall-collapsible summary::-webkit-details-marker {
  display: none;
}
.assigned-hall-collapsible summary::before {
  content: '▶';
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.assigned-hall-collapsible[open] summary::before {
  transform: rotate(90deg);
}

/* ===== Assigned Hall Edit - Dizajn LEVO (veći), forma DESNO ===== */
.assigned-hall-edit-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.assigned-hall-main {
  flex: 1;
  min-width: 0;
}
/* Dizajn panel - LEVO, dominantan prostor */
.assigned-hall-scene-panel {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: flex 0.3s ease, min-width 0.3s ease, padding 0.3s ease;
}
.scene-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.scene-panel-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}
.scene-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.scene-sidebar-toggle-link {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  color: #475569;
  cursor: pointer;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.scene-sidebar-toggle-link:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}
.scene-panel-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.demo-page .scene-panel-actions {
  flex: 1;
  min-width: 0;
}
.demo-page .scene-panel-actions .demo-example-select {
  flex: 1;
  min-width: 120px;
}
.demo-page .scene-panel-actions .btn {
  flex-shrink: 0;
}
.scene-sidebar-toggle-btn .toggle-icon,
.scene-sidebar-show-btn .toggle-icon {
  display: inline-block;
  transition: transform 0.2s;
}
.scene-panel-content {
  overflow: hidden;
}
/* Na velikim ekranima: paleta levo, canvas full size desno */
@media (min-width: 1280px) {
  .assigned-hall-scene-panel .scene-panel-content {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: stretch;
    min-height: 0;
  }
  .assigned-hall-scene-panel .scene-panel-elements-column {
    flex-shrink: 0;
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
  }
  .assigned-hall-scene-panel .scene-panel-elements-palette {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .scene-panel-canvas-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.25rem;
  }
  .scene-panel-canvas-options .canvas-bg-picker {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .scene-panel-canvas-options .canvas-bg-label-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .scene-panel-canvas-options .canvas-bg-picker-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .scene-panel-canvas-options .canvas-bg-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .scene-panel-canvas-options .canvas-bg-swatch {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.5) inset;
  }
  .scene-panel-canvas-options .canvas-bg-swatch.is-active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
  }
  .scene-panel-canvas-options .canvas-chairs-toggle-label {
    font-size: 0.8rem;
  }
  .assigned-hall-scene-panel .scene-panel-elements-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e2e8f0;
  }
  .assigned-hall-scene-panel .scene-panel-elements-column .scene-panel-palette {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
  }
  .assigned-hall-scene-panel .scene-panel-elements-column .scene-panel-presence {
    margin-bottom: 0;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    border-top: 1px solid #e2e8f0;
  }
  .assigned-hall-scene-panel .scene-panel-elements-column .scene-panel-presence h4 {
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
  }
  .assigned-hall-scene-panel .scene-panel-elements-column #presenceOnlineList {
    max-height: 120px;
    font-size: 0.75rem;
  }
  .assigned-hall-scene-panel .scene-panel-elements-column .edit-palette-grid {
    flex-direction: column;
    gap: 0.4rem;
  }
  .assigned-hall-scene-panel .scene-panel-elements-column .template,
  .assigned-hall-scene-panel .scene-panel-elements-column .edit-grid-palette-btn {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    margin: 0 auto;
  }
  .assigned-hall-scene-panel .scene-panel-elements-column .template.wall,
  .assigned-hall-scene-panel .scene-panel-elements-column .template.wall.vertical {
    width: 64px !important;
    height: 28px !important;
    min-width: 64px !important;
    min-height: 28px !important;
  }
  .assigned-hall-scene-panel .scene-panel-elements-column .template.wall.vertical {
    width: 28px !important;
    height: 64px !important;
    min-width: 28px !important;
    min-height: 64px !important;
  }
  .assigned-hall-scene-panel .scene-panel-elements-column .template.door {
    width: 44px !important;
    height: 64px !important;
    min-width: 44px !important;
    min-height: 64px !important;
  }
  .assigned-hall-scene-panel .scene-panel-elements-column .template.zone {
    width: 64px !important;
    height: 40px !important;
    min-width: 64px !important;
    min-height: 40px !important;
  }
  .assigned-hall-scene-panel .scene-panel-elements-column .template.wedding {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    border-radius: 50% !important;
  }
  .assigned-hall-scene-panel .scene-panel-elements-column .template.wedding-square {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    border-radius: 6px !important;
  }
  .assigned-hall-scene-panel .scene-panel-elements-column .template-label {
    font-size: 0.7rem;
    bottom: -20px;
  }
  .assigned-hall-scene-panel .scene-panel-canvas-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .assigned-hall-scene-panel .scene-panel-canvas-column .scene-panel-canvas-wrap {
    flex: 1;
    min-height: 560px;
    height: auto;
    margin-bottom: 0.5rem;
  }
}
.scene-panel-palette {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}
.scene-panel-presence {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
/* Canvas - veliki, koristi prostor (panel je sticky pa možemo više vh) */
.scene-panel-canvas-wrap {
  width: 100%;
  margin-bottom: 0.75rem;
  min-height: 520px;
  height: clamp(520px, calc(100vh - 160px), 1000px);
}
.scene-panel-canvas-wrap .canvas-container {
  height: 100%;
  min-height: 480px;
}

/* Spinner pri učitavanju kanvasa */
.canvas-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.92);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  border-radius: inherit;
  transition: opacity 0.2s ease;
}
.canvas-loading-overlay.canvas-loading-done {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.canvas-loading-overlay .canvas-loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: canvas-loading-spin 0.7s linear infinite;
}
.canvas-loading-overlay .canvas-loading-text {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
}
@keyframes canvas-loading-spin {
  to { transform: rotate(360deg); }
}
.scene-panel-canvas-wrap .canvas-zoom-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
}
.scene-sidebar-show-btn {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-100%, -50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  border: 1px solid #e2e8f0;
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: #f8fafc;
  cursor: pointer;
  white-space: nowrap;
  z-index: 50;
  box-shadow: -2px 0 8px rgba(0,0,0,0.06);
  transition: background 0.2s, color 0.2s;
}
.scene-sidebar-show-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.assigned-hall-scene-panel.collapsed {
  flex: 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  padding: 0;
  margin: 0;
  border: none;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.assigned-hall-scene-panel.collapsed .scene-panel-header,
.assigned-hall-scene-panel.collapsed .scene-panel-content {
  display: none;
}
.assigned-hall-scene-panel.collapsed .scene-sidebar-show-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  writing-mode: horizontal-tb;
  left: 0;
  transform: translate(0, -50%);
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  border: 2px solid #0ea5e9;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.assigned-hall-scene-panel.collapsed .scene-sidebar-show-btn:hover {
  background: #f0f9ff;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

@media (min-width: 1024px) {
  .assigned-hall-edit-layout {
    flex-direction: column;
    gap: 1.5rem;
  }
  /* Dizajn: full width */
  .assigned-hall-scene-panel {
    width: 100%;
    max-width: none;
    position: sticky;
    top: 1rem;
  }
  .assigned-hall-main {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 1023px) {
  .assigned-hall-scene-panel {
    order: -1;
  }
  .assigned-hall-scene-panel.collapsed {
    min-height: 0;
    height: 0;
    margin: 0;
  }
  .assigned-hall-scene-panel.collapsed .scene-sidebar-show-btn {
    left: 0;
    transform: translate(0, -50%);
  }
}

/* Dugme Dodaj goste iz Excela - dovoljna širina za tekst */
#importGuestsBtn,
#ownerImportGuestsBtn {
  min-width: 220px;
  white-space: nowrap;
  padding: 0.5rem 1.25rem;
}

/* ===== Hall Edit Page - Redesign ===== */
.edit-page .container { max-width: none; padding: 0; }
body.edit-page { overflow-x: hidden; }
.edit-page { overflow-x: hidden; }
.edit-layout { max-width: 1600px; width: 100%; margin: 0 auto; padding: 1rem 1.25rem 2rem; background: #f8fafc; min-height: calc(100vh - 60px); box-sizing: border-box; }

/* Nakon logovanja - širi layout */
body:has(.navbar) .edit-layout { max-width: 94vw; }
.edit-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid #e2e8f0; }
.edit-back { color: #64748b; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.edit-back:hover { color: #1e40af; }
.edit-title { font-size: 1.35rem; font-weight: 600; color: #0f172a; margin: 0; }
.edit-loading { text-align: center; padding: 3rem; color: #64748b; font-size: 1rem; }
.edit-main { min-width: 0; }
.edit-form { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden; border: 1px solid #e2e8f0; max-width: 100%; min-width: 0; }
.edit-toolbar { background: #fff; padding: 1rem 1.25rem; border-bottom: 1px solid #e2e8f0; }
.edit-toolbar-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.edit-field { display: flex; flex-direction: column; gap: 0.35rem; flex-shrink: 0; }
.edit-field label { font-size: 0.8rem; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: 0.03em; }
.edit-input, .edit-select { padding: 0.5rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.95rem; min-width: 140px; max-width: 100%; transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; }
.edit-input:focus, .edit-select:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.edit-template-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: nowrap; }
.edit-template-row .edit-select { min-width: 140px; }
.edit-actions { display: flex; gap: 0.5rem; flex-wrap: nowrap; margin-left: auto; align-items: center; flex-shrink: 0; }
.edit-warning { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.25rem; background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; font-size: 0.875rem; margin: 0 1.25rem; margin-top: 0.75rem; border-radius: 8px; }
.edit-instructions, .edit-grid-section { margin: 0 1.25rem; margin-top: 0.75rem; padding: 0.75rem 1rem; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
.edit-instructions summary, .edit-grid-section summary { cursor: pointer; font-size: 0.9rem; font-weight: 600; color: #475569; list-style: none; }
.edit-instructions summary::-webkit-details-marker, .edit-grid-section summary::-webkit-details-marker { display: none; }
.edit-instructions summary::before, .edit-grid-section summary::before { content: '▸ '; display: inline-block; margin-right: 0.25rem; transition: transform 0.2s; }
.edit-instructions[open] summary::before, .edit-grid-section[open] summary::before { transform: rotate(90deg); }
.edit-instructions ol { margin: 0.5rem 0 0 1.25rem; padding: 0; font-size: 0.85rem; color: #64748b; line-height: 1.7; }
.edit-delete-info { padding: 0.75rem 1rem; background: #fef2f2; border-radius: 8px; border: 1px solid #fecaca; }
.edit-delete-info summary { cursor: pointer; font-size: 0.9rem; font-weight: 600; color: #991b1b; list-style: none; }
.edit-delete-info summary::-webkit-details-marker { display: none; }
.edit-delete-info summary::before { content: '▸ '; display: inline-block; margin-right: 0.25rem; transition: transform 0.2s; }
.edit-delete-info[open] summary::before { transform: rotate(90deg); }
.edit-delete-info ul { font-size: 0.85rem; color: #7f1d1d; line-height: 1.6; }
.edit-grid-palette-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; padding: 0;
  background: rgba(14, 165, 233, 0.12);
  border: 2px dashed #0ea5e9; border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.edit-grid-palette-btn::before {
  content: '';
  position: absolute;
  inset: 7px;
  background-image: radial-gradient(circle at center, #0369a1 40%, transparent 46%);
  background-size: 20% 20%;
  background-repeat: repeat;
}
.edit-grid-palette-btn:hover {
  transform: scale(1.05); box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  border-color: #0284c7; background: rgba(2, 132, 199, 0.18);
}
.edit-grid-palette-btn:hover::before {
  background-image: radial-gradient(circle at center, #0284c7 42%, transparent 48%);
}
.edit-grid-palette-btn .template-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.canvas-add-icon-btn::before { display: none; }
.canvas-add-icon-btn { flex-direction: column; gap: 0.2rem; }
.canvas-add-icon-btn .template-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; font-size: 0.65rem; line-height: 1; }
.canvas-add-icon-btn .template-icon-preview { width: 22px; height: 22px; flex-shrink: 0; }
#gridModal .grid-palette-swatch {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
#gridModal .grid-palette-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#gridModal .grid-palette-swatch:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
.edit-grid-form { margin-top: 1rem; display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)) auto; gap: 0.75rem; align-items: end; }
.edit-grid-fields { display: contents; }
.edit-grid-field { display: flex; flex-direction: column; gap: 0.25rem; }
.edit-grid-field label { font-size: 0.75rem; font-weight: 600; color: #64748b; }
.edit-grid-btn { grid-column: 5; grid-row: 2; justify-self: end; }
.edit-palette { padding: 1rem 1.25rem; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; min-width: 0; }
.edit-palette-label { font-size: 0.8rem; font-weight: 600; color: #64748b; white-space: nowrap; flex-shrink: 0; }
.edit-palette-grid { flex: 1; margin: 0; padding: 0; gap: 1rem; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; }
.edit-canvas-wrap { position: relative; width: 100%; max-width: 100%; height: clamp(560px, calc(100vh - 260px), 1000px); min-height: 560px; background: #f8fafc; border: 1px solid #e2e8f0; overflow: auto; box-sizing: border-box; }
.edit-canvas-wrap .canvas-zoom-controls { position: absolute; top: 12px; right: 12px; z-index: 20; display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; background: #fff; padding: 6px 10px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; white-space: nowrap; }
.canvas-bg-picker { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.canvas-bg-label { font-size: 0.75rem; color: #64748b; white-space: nowrap; cursor: pointer; font-weight: 500; }
.canvas-bg-input { width: 28px; height: 28px; padding: 2px; border: 1px solid #e2e8f0; border-radius: 6px; cursor: pointer; background: #fff; }
.canvas-bg-input::-webkit-color-swatch-wrapper { padding: 0; }
.canvas-bg-input::-webkit-color-swatch { border: none; border-radius: 4px; }
.canvas-bg-swatches { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.canvas-bg-swatch {
  width: 22px; height: 22px; min-width: 22px; min-height: 22px; padding: 0;
  border: 1px solid rgba(0,0,0,0.18); border-radius: 5px;
  cursor: pointer; background: #fff; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4) inset;
}
.canvas-bg-swatch:hover { transform: scale(1.08); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.canvas-bg-swatch.is-active { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35); }
/* Canvas - blag tačkasti pattern na pozadini */
.edit-page #canvas-container #canvas,
.hall-page #canvas-container #canvas { position: absolute; top: 0; left: 0; width: 2400px; height: 1500px; min-width: 2400px; min-height: 1500px; background-color: #f8fafc; background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px); background-size: 24px 24px; border-radius: 0; overflow: visible; box-sizing: border-box; border: none; }
.edit-error { padding: 1rem; margin: 1rem 1.25rem; background: #fee2e2; color: #b91c1c; border-radius: 8px; font-size: 0.9rem; }
.edit-success { padding: 1rem; margin: 1rem 1.25rem; background: #d1fae5; color: #065f46; border-radius: 8px; font-size: 0.9rem; }

/* Veliki ekran - sve u jedan red */
@media (min-width: 1100px) {
  .edit-toolbar-row { flex-wrap: nowrap; gap: 1rem; }
  .edit-field#templateSelectorWrap .edit-template-row .edit-select { min-width: 160px; }
  .edit-field#templateMaxGuestsWrap .edit-input { min-width: 80px; }
  .edit-field#templateMenuWrap .edit-select { min-width: 140px; }
  .edit-toolbar-row > .edit-field:first-child .edit-input { min-width: 160px; }
}

/* Tablet - ranije prelaz na vertikalni layout */
@media (max-width: 1052px) {
  .edit-toolbar-row { flex-direction: column; align-items: stretch; gap: 1rem; }
  .edit-field .edit-input, .edit-field .edit-select { min-width: 0; width: 100%; }
  .edit-template-row { flex-wrap: wrap; gap: 0.5rem; }
  .edit-template-row .edit-select { flex: 1; min-width: 200px; }
  .edit-actions { margin-left: 0; flex-wrap: wrap; gap: 0.5rem; }
  .edit-actions .edit-btn { flex: 1 1 calc(50% - 0.25rem); min-width: 140px; }
  .edit-grid-form { grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 0.6rem; }
  .edit-grid-btn { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
}

@media (max-width: 828px) {
  .edit-layout { padding: 0.75rem 1rem 1.5rem; }
  .edit-header { flex-wrap: wrap; gap: 0.5rem; }
  .edit-title { font-size: 1.15rem; }
  .edit-toolbar { padding: 0.75rem 1rem; }
  .edit-toolbar-row { flex-direction: column; align-items: stretch; gap: 1rem; }
  .edit-field .edit-input, .edit-field .edit-select { min-width: 0; width: 100%; }
  .edit-template-row { flex-wrap: wrap; gap: 0.5rem; }
  .edit-template-row .edit-select { flex: 1; min-width: 0; }
  .edit-template-row .edit-btn { min-height: 44px; min-width: 44px; padding: 0.5rem 0.75rem; }
  .edit-actions { margin-left: 0; flex-wrap: wrap; gap: 0.5rem; }
  .edit-actions .edit-btn { flex: 1 1 calc(50% - 0.25rem); min-width: 120px; min-height: 44px; }
  .edit-instructions, .edit-grid-section { margin: 0 0.75rem; padding: 0.5rem 0.75rem; }
  .edit-instructions ol { margin-left: 1rem; font-size: 0.8rem; }
  .edit-canvas-wrap { height: clamp(420px, 60vh, 700px); min-height: 420px; }
  .edit-grid-form { grid-template-columns: repeat(3, minmax(80px, 1fr)) auto; gap: 0.5rem; }
  .edit-grid-btn { grid-column: 4; grid-row: 3; font-size: 0.8rem; padding: 0.4rem 0.6rem; }
  .edit-palette { padding: 0.75rem 1rem; flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .edit-palette-label { font-size: 0.75rem; white-space: normal; }
  .edit-palette-grid { justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
  .edit-palette-grid .template { transform: none; }
  .edit-palette-grid .template.circle,
  .edit-palette-grid .template.rectangle { width: 56px; height: 56px; }
  .edit-palette-grid .template.wedding { width: 56px; height: 56px; border-radius: 50%; }
  .edit-palette-grid .template.wedding-square { width: 56px; height: 56px; border-radius: 6px; }
  .edit-palette-grid .template.door { width: 56px; height: 70px; }
  .edit-palette-grid .template.wall { width: 77px; height: 14px; }
  .edit-palette-grid .template.wall.vertical { width: 14px; height: 77px; }
  .edit-palette-grid .template.zone { width: 56px; height: 42px; }
  .edit-grid-palette-btn { width: 56px; height: 56px; }
  .edit-canvas-wrap .canvas-zoom-controls { top: 6px; right: 6px; padding: 4px 6px; gap: 3px; }
  .edit-canvas-wrap .zoom-btn { width: 28px; height: 28px; font-size: 14px; }
  .edit-canvas-wrap .zoom-level { font-size: 12px; min-width: 40px; }
  .edit-warning { margin: 0 0.75rem; padding: 0.5rem 0.75rem; font-size: 0.8rem; }
  .edit-error, .edit-success { margin: 0.75rem 1rem; padding: 0.75rem; font-size: 0.85rem; }
  #editModal { max-width: calc(100vw - 2rem); margin: 1rem; max-height: calc(100vh - 2rem); overflow: visible; }
  #editModal .modal-header { padding: 1rem 1.25rem; }
  #editModal .modal-body { padding: 1rem 1.25rem; max-height: calc(100vh - 12rem); overflow-y: auto; }
  #editModal .form-section { margin-bottom: 1.25rem; padding-bottom: 1rem; }
  #editModal .section-title { font-size: 1rem; margin-bottom: 0.75rem; }
  #editModal .modal-footer .footer-actions { flex-wrap: wrap; gap: 0.5rem; }
  #editModal .btn-modal { flex: 1 1 auto; min-width: 100px; }
}
@media (max-width: 540px) {
  .edit-layout { padding: 0.5rem 0.75rem 1rem; }
  .edit-title { font-size: 1rem; }
  .edit-toolbar { padding: 0.5rem 0.75rem; }
  .edit-grid-form { grid-template-columns: repeat(2, 1fr); }
  .edit-grid-field { min-width: 0; }
  .edit-grid-btn { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; }
  .edit-actions .edit-btn { flex: 1 1 100%; }
  .edit-palette-grid,
  .templates-grid.edit-palette-grid,
  .scene-panel-palette {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    justify-items: center;
  }
  .edit-palette-grid .template { transform: none; }
  .edit-palette-grid .template.circle,
  .edit-palette-grid .template.rectangle { width: 50px; height: 50px; }
  .edit-palette-grid .template.wedding { width: 50px; height: 50px; border-radius: 50%; }
  .edit-palette-grid .template.wedding-square { width: 50px; height: 50px; border-radius: 6px; }
  .edit-palette-grid .template.door { width: 50px; height: 62px; }
  .edit-palette-grid .template-wedding-icon { width: 18px; height: 18px; }
  .edit-palette-grid .template.wall { width: 68px; height: 12px; }
  .edit-palette-grid .template.wall.vertical { width: 12px; height: 68px; }
  .edit-palette-grid .template.zone { width: 50px; height: 38px; }
  .edit-grid-palette-btn { width: 50px; height: 50px; }
  .edit-canvas-wrap { height: clamp(360px, 55vh, 600px); min-height: 360px; }
  .edit-canvas-wrap .zoom-btn { width: 28px; height: 28px; min-width: 28px; min-height: 28px; }
  #editModal { margin: 0.5rem; max-width: calc(100vw - 1rem); }
  #editModal .modal-header { padding: 0.75rem 1rem; }
  #editModal .modal-header h3 { font-size: 1.1rem; }
  #editModal .modal-body { padding: 0.75rem 1rem; }
  #editModal .form-input-modal { min-height: 44px; font-size: 16px; }
  #editModal .btn-modal { width: 100%; min-height: 44px; padding: 0.6rem 1rem; }
  #editModal .modal-footer .footer-actions { flex-direction: column; gap: 0.5rem; }
  #editModal .footer-actions .btn-modal { width: 100%; }
  #editModal .table-color-palette .palette-swatches { gap: 0.35rem; }
  #editModal .palette-swatch { width: 28px; height: 28px; min-width: 28px; min-height: 28px; }
}
@media (max-width: 420px) {
  .edit-layout { padding: 0.5rem 0.5rem 0.75rem; }
  .edit-toolbar { padding: 0.5rem; }
  .edit-instructions, .edit-grid-section { margin: 0 0.5rem; padding: 0.5rem 0.6rem; }
  .edit-warning { margin: 0 0.5rem; padding: 0.5rem 0.6rem; }
  .edit-error, .edit-success { margin: 0.5rem; }
  .edit-palette { padding: 0.5rem; }
  .edit-palette-grid,
  .templates-grid.edit-palette-grid,
  .scene-panel-palette {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    justify-items: center;
  }
  .edit-palette-grid .template,
  .edit-palette-grid .edit-grid-palette-btn { transform: none; flex-shrink: 0; }
  .edit-palette-grid .template.circle,
  .edit-palette-grid .template.rectangle { width: 44px; height: 44px; }
  .edit-palette-grid .template.wedding { width: 44px; height: 44px; border-radius: 50%; }
  .edit-palette-grid .template.wedding-square { width: 44px; height: 44px; border-radius: 6px; }
  .edit-palette-grid .template-wedding-icon { width: 16px; height: 16px; }
  .edit-palette-grid .template.door { width: 44px; height: 55px; }
  .edit-palette-grid .template.wall { width: 60px; height: 10px; }
  .edit-palette-grid .template.wall.vertical { width: 10px; height: 60px; }
  .edit-palette-grid .template.zone { width: 44px; height: 34px; }
  .edit-palette-grid .edit-grid-palette-btn { width: 44px; height: 44px; }
  .edit-palette-label { white-space: normal; font-size: 0.7rem; }
  .edit-palette-grid .template:hover { transform: scale(1.02); }
  .edit-template-row { flex-direction: column; align-items: stretch; }
  .edit-template-row .edit-select { min-width: 0; }
  .edit-grid-form { gap: 0.4rem; }
  .edit-field .edit-input, .edit-field .edit-select { min-width: 0; width: 100%; }
  .edit-canvas-wrap .canvas-zoom-controls { flex-wrap: nowrap; padding: 4px 6px; gap: 3px; }
  .edit-canvas-wrap .zoom-btn { width: 28px; height: 28px; min-width: 28px; min-height: 28px; font-size: 14px; }
  .edit-canvas-wrap .zoom-level { font-size: 11px; min-width: 36px; }
  #editModal { margin: 0.5rem; max-width: calc(100vw - 1rem); }
}

/* Template styles - work both with and without .hall-page class */
.template {
  position: relative;
  margin: 0;
  border: 2px solid #333;
  cursor: grab;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.template:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.template.circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.template.rectangle {
  width: 80px;
  height: 80px;
  border-radius: 8px;
}

.template.wedding {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fce7f3 0%, #fbcfe8 40%, #f9a8d4 100%);
  border: 2px solid #e879f9;
  position: relative;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.25);
  color: #be185d;
}

.template.wedding::before {
  content: none;
}

.template.wedding-square {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(145deg, #fce7f3 0%, #fbcfe8 40%, #f9a8d4 100%);
  border: 2px solid #e879f9;
  position: relative;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.25);
  color: #be185d;
}

.template.wedding-square::before {
  content: none;
}

.template-wedding-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: inherit;
}

.template.door {
  width: 80px;
  height: 100px;
  border-radius: 6px;
  background: linear-gradient(165deg, #a0522d 0%, #8b4513 50%, #a0522d 100%);
  border: 2px solid #5c3a1a;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.template.door::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid #5c3a1a;
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(139, 69, 19, 0.5) 0%, rgba(101, 67, 33, 0.6) 100%);
}

.template.wall {
  width: 110px;
  height: 18px;
  background: transparent;
  border: none;
  position: relative;
}

.template.wall::before {
  content: '';
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  background: linear-gradient(145deg, #374151 0%, #4b5563 50%, #6b7280 100%);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.template.wall.vertical {
  width: 18px;
  height: 110px;
}

.template.wall.vertical::before {
  left: 50%;
  right: auto;
  top: 5px;
  bottom: 5px;
  width: 6px;
  height: auto;
  transform: translateX(-50%);
}

/* Template label styles */
.template-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75em;
  color: #666;
  white-space: nowrap;
  pointer-events: none;
}

/* Templates grid styles */
.templates-grid {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  gap: 1.5em;
  align-items: center;
  margin-bottom: 0;
}

.hall-page .main-nav {
  margin-bottom: 0;
}

.hall-header {
  background: #f8f9fa;
  padding: 1.5em 2em;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 1.5em;
}

.hall-header h1 {
  margin: 0 0 1em 0;
  font-size: 1.8em;
  color: #1e40af;
}

.hall-controls {
  display: flex;
  gap: 1em;
  align-items: center;
  flex-wrap: wrap;
}

/* Hall controls input - koristi .form-input */
.hall-controls input[type="text"] {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  min-height: 44px;
  font-size: 1rem;
  border: 2px solid #3b82f6;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hall-controls input[type="text"]:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.hall-controls input[type="text"]::placeholder {
  color: #94a3b8;
}

.hall-content {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  padding: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* Override #sidebar from style.css */
.hall-page #sidebar,
.hall-page .sidebar {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  flex: none !important;
  flex-basis: auto !important;
  background: #f8f9fa;
  padding: 1.5em 2em;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid #e9ecef;
  position: static !important;
  display: flex !important;
  flex-direction: row;
  gap: 2em;
  align-items: flex-start;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.hall-page .sidebar > h3 {
  width: 100%;
  flex-basis: 100%;
  margin: 0 0 1em 0;
  color: #1e40af;
  font-size: 1.2em;
}

.templates-grid {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  gap: 1.5em;
  align-items: center;
  margin-bottom: 0;
}

.hall-page .template {
  position: relative;
  margin: 0;
  border: 2px solid #333;
  cursor: grab;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hall-page .template:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hall-page .template.circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.hall-page .template.rectangle {
  width: 80px;
  height: 80px;
  border-radius: 8px;
}

.hall-page .template.wedding {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fce7f3 0%, #fbcfe8 40%, #f9a8d4 100%);
  border: 2px solid #e879f9;
  position: relative;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.25);
  color: #be185d;
}

.hall-page .template.wedding-square {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(145deg, #fce7f3 0%, #fbcfe8 40%, #f9a8d4 100%);
  border: 2px solid #e879f9;
  position: relative;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.25);
  color: #be185d;
}

.hall-page .template.wedding::before,
.hall-page .template.wedding-square::before {
  content: none;
}

.hall-page .template-wedding-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: inherit;
}

.hall-page .template.door {
  width: 80px;
  height: 100px;
  border-radius: 6px;
  background: linear-gradient(165deg, #a0522d 0%, #8b4513 50%, #a0522d 100%);
  border: 2px solid #5c3a1a;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hall-page .template.door::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid #5c3a1a;
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(139, 69, 19, 0.5) 0%, rgba(101, 67, 33, 0.6) 100%);
}

.hall-page .template.wall {
  width: 110px;
  height: 18px;
  background: transparent;
  border: none;
  position: relative;
}

.hall-page .template.wall::before {
  content: '';
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  background: #4b5563;
  border-radius: 6px;
}

.hall-page .template.wall.vertical {
  width: 18px;
  height: 110px;
}

.hall-page .template.wall.vertical::before {
  left: 50%;
  right: auto;
  top: 5px;
  bottom: 5px;
  width: 6px;
  height: auto;
  transform: translateX(-50%);
}

.template-label {
  display: none;
}

/* Compact template labels for horizontal layout */
.hall-page .sidebar .template-label {
  display: none;
}

.hall-page .hint {
  display: none; /* Hide hint in horizontal layout */
}

.hall-page .hint p {
  margin: 0.5em 0;
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
}

/* Hall Shape Controls - for future use if needed */
.hall-shape-controls {
  display: none; /* Hidden for now, can be shown if needed */
}

/* Hall Shape on Canvas */
.hall-shape {
  position: absolute;
  border: 3px dashed #3b82f6;
  background: rgba(7, 70, 130, 0.05);
  pointer-events: none;
  z-index: 1;
  box-sizing: border-box;
}

.hall-shape.hall-shape-circle {
  border-radius: 50%;
}

.hall-shape.hall-shape-square {
  /* Square is handled by width = height in JS */
  border-radius: 4px;
}

.hall-shape.active {
  pointer-events: auto;
  cursor: move;
}

.hall-shape.active:hover {
  border-color: #2563eb;
  background: rgba(7, 70, 130, 0.1);
}

/* Konzistentan drop-shadow za sve canvas elemente */
#canvas-container,
#canvas-container .canvas,
.hall-page #canvas-container .canvas,
.edit-page #canvas-container .canvas {
  --canvas-drop-shadow: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
  --canvas-drop-shadow-hover: drop-shadow(0 4px 12px rgba(0,0,0,0.22));
  user-select: none;
}

/* Make sure tables are always above hall shape */
.hall-shape ~ .table,
.canvas .table {
  position: absolute;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  cursor: move;
  z-index: 10 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  filter: var(--canvas-drop-shadow);
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  transition: filter 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  overflow: visible;
  box-sizing: border-box;
  user-select: none;
}

/* Tablecloth effect - fabric texture + gradient overlay */
.canvas .table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.42) 0%, 
      rgba(255, 255, 255, 0.12) 35%,
      rgba(255, 255, 255, 0) 50%, 
      rgba(0, 0, 0, 0.04) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Sjajna ivica - 3D highlight na gornjoj ivici */
.canvas .table::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 -1px 0 rgba(0, 0, 0, 0.04) inset;
  pointer-events: none;
  z-index: 2;
}

/* Hover effect - smoother lift */
.canvas .table:hover {
  filter: var(--canvas-drop-shadow-hover);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5),
              inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Selected state - clear feedback */
.canvas .table.selected {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.3));
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
  animation: table-selected-pulse 2s ease-in-out infinite;
}
@keyframes table-selected-pulse {
  0%, 100% { filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.3)); box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15); }
  50% { filter: drop-shadow(0 6px 16px rgba(37, 99, 235, 0.4)); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2); }
}

/* Over-capacity table (više gostiju nego mesta) */
.canvas .table.over-capacity {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
  filter: drop-shadow(0 2px 6px rgba(220, 38, 38, 0.15));
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
  animation: over-capacity-pulse 1.5s ease-in-out infinite;
}
@keyframes over-capacity-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.15); }
}

/* Circle tables - round with soft draped edge effect */
.canvas .table[data-shape="circle"] {
  border-radius: 50%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45),
              inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.canvas .table[data-shape="circle"]::before,
.canvas .table[data-shape="circle"]::after {
  border-radius: 50%;
}

.canvas .table[data-shape="circle"]::before {
  background: 
    radial-gradient(circle at 30% 30%, 
      rgba(255, 255, 255, 0.45) 0%, 
      rgba(255, 255, 255, 0.12) 40%,
      rgba(0, 0, 0, 0.04) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Rectangle tables - more rounded, elegant */
.canvas .table[data-shape="rectangle"] {
  border-radius: 14px;
}

.canvas .table[data-shape="rectangle"]::before,
.canvas .table[data-shape="rectangle"]::after {
  border-radius: 14px;
}

.canvas .table[data-shape="rectangle"]::before {
  background: 
    linear-gradient(145deg, 
      rgba(255, 255, 255, 0.42) 0%, 
      rgba(255, 255, 255, 0.08) 45%,
      rgba(0, 0, 0, 0.05) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Wedding tables - rose/pink palette (matches palette template) */
.canvas .table[data-shape="wedding"],
.canvas .table[data-shape="wedding"]::before,
.canvas .table[data-shape="wedding"]::after,
.canvas .table[data-shape="wedding-square"],
.canvas .table[data-shape="wedding-square"]::before,
.canvas .table[data-shape="wedding-square"]::after {
  border-radius: 14px;
}

.canvas .table.wedding-table,
.canvas .table[data-wedding="true"] {
  border: 2px solid #e879f9;
  filter: drop-shadow(0 4px 12px rgba(236, 72, 153, 0.25));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5),
              inset 0 -2px 4px rgba(0, 0, 0, 0.08);
  background: linear-gradient(145deg, 
    #fce7f3 0%, 
    #fbcfe8 40%,
    #f9a8d4 100%) !important;
}

.canvas .table.wedding-table::before,
.canvas .table[data-wedding="true"]::before {
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.5) 0%, 
    rgba(255, 255, 255, 0.15) 30%,
    rgba(255, 255, 255, 0) 50%, 
    rgba(236, 72, 153, 0.1) 100%);
}

.canvas .table.wedding-table::after,
.canvas .table[data-wedding="true"]::after {
  border: 1px solid rgba(255, 255, 255, 0.6);
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
}

/* Wedding table badge/icon - positioned on the left side (top-left corner) */
.canvas .table.wedding-table .wedding-icon,
.canvas .table[data-wedding="true"] .wedding-icon {
  position: absolute;
  top: -12px;
  left: -12px;
  background: linear-gradient(135deg, #fce7f3 0%, #f9a8d4 100%);
  color: #be185d;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e879f9;
  filter: drop-shadow(0 2px 6px rgba(236, 72, 153, 0.35));
  z-index: 30;
  pointer-events: none;
  line-height: 1;
}

.canvas .table.wedding-table .wedding-icon svg,
.canvas .table[data-wedding="true"] .wedding-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Wedding table hover effect */
.canvas .table.wedding-table:hover,
.canvas .table[data-wedding="true"]:hover {
  filter: drop-shadow(0 6px 16px rgba(236, 72, 153, 0.35));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6),
              inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px) scale(1.02);
}

/* Stolice sa brojevima – ko gde sedi */
.canvas-chair {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 25%, #f1f5f9 60%, #e2e8f0 100%);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
              0 1px 2px rgba(0, 0, 0, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.95);
  z-index: 15;
  pointer-events: none;
  line-height: 1.2;
  padding: 4px 5px;
  box-sizing: border-box;
  min-width: 28px;
  min-height: 28px;
  backdrop-filter: blur(1px);
}

.canvas-chair-num {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  line-height: 1;
  letter-spacing: -0.02em;
}

.canvas-chair-name {
  font-size: 8px;
  font-weight: 600;
  color: #475569;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  line-height: 1;
  letter-spacing: 0.01em;
}


.canvas-chairs-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.canvas-chairs-checkbox {
  margin: 0;
  cursor: pointer;
}

/* Resize handle for tables (owner/admin only) */
.canvas .table .resize-handle,
.canvas .door .resize-handle,
.canvas .wall .resize-handle {
  width: 12px;
  height: 12px;
  background: #555;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 3px;
  position: absolute;
  right: -2px;
  bottom: -2px;
  cursor: se-resize;
  z-index: 20;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease, filter 0.2s ease;
  pointer-events: auto;
}

.canvas .table .resize-handle:hover,
.canvas .door .resize-handle:hover,
.canvas .wall .resize-handle:hover {
  background: #666;
  transform: scale(1.2);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

/* Naziv elementa - kompaktno, pogodno za brojeve (1, 2, Sto 1...) */
.canvas .table .table-name {
  user-select: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1e293b;
  z-index: 20;
  pointer-events: none;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
  max-width: 90%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.95);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.08));
}
.canvas .table .table-name:empty {
  display: none;
}

/* Seat count badge - zaobljen, sa blagim hover efektom */
.canvas .table .table-seats-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 26px;
  width: max-content;
  height: 26px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 13px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.canvas .table:hover .table-seats-badge {
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}
.canvas .table .table-seats-badge.seats-badge-filled {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border-color: rgba(0, 0, 0, 0.12);
  filter: drop-shadow(0 2px 6px rgba(34, 197, 94, 0.35));
}
.canvas .table .table-seats-badge.seats-badge-over {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-color: rgba(0, 0, 0, 0.12);
  filter: drop-shadow(0 2px 6px rgba(239, 68, 68, 0.35));
}

/* Canvas icon - dekorativna ikonica, najveći z-index (--icon-size iz JS) */
.canvas .canvas-icon {
  position: absolute;
  width: var(--icon-size, 36px);
  height: var(--icon-size, 36px);
  min-width: 20px;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: move;
  color: #64748b;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  box-sizing: border-box;
  user-select: none;
}

.canvas .canvas-icon:hover {
  color: #334155;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.canvas .canvas-icon i {
  width: 70%;
  height: 70%;
  min-width: 16px;
  min-height: 16px;
}

.template.zone {
  background: rgba(14, 165, 233, 0.08);
  border: 2px dashed #0ea5e9;
  width: 80px;
  height: 60px;
  border-radius: 6px;
}

.template.canvas-icon-template {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  color: #64748b;
}

.template.canvas-icon-template:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #475569;
}

.template.canvas-icon-template .template-icon-preview {
  width: 24px;
  height: 24px;
}

.canvas .zone-block {
  user-select: none;
  position: absolute;
  background: rgba(14, 165, 233, 0.08);
  border: none;
  border-radius: 8px;
  z-index: 1;
  box-sizing: border-box;
  pointer-events: auto;
  overflow: visible;
  filter: drop-shadow(0 2px 6px rgba(14, 165, 233, 0.12));
}

/* Dashed border sa animacijom pomeranja crtice */
.canvas .zone-block::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 2px;
  background:
    linear-gradient(90deg, var(--zone-border-color, #0ea5e9) 50%, transparent 50%),
    linear-gradient(90deg, var(--zone-border-color, #0ea5e9) 50%, transparent 50%),
    linear-gradient(0deg, var(--zone-border-color, #0ea5e9) 50%, transparent 50%),
    linear-gradient(0deg, var(--zone-border-color, #0ea5e9) 50%, transparent 50%);
  background-size: 20px 2px, 20px 2px, 2px 20px, 2px 20px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: zone-dash 20s linear infinite;
  pointer-events: none;
}

@keyframes zone-dash {
  to {
    background-position: 20px 0, -20px 100%, 0 -20px, 100% 20px;
  }
}

.canvas .zone-block .zone-label {
  user-select: none;
  position: absolute;
  top: -18px;
  left: 12px;
  background: #ffffff;
  padding: 5px 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  border: 1px solid #94a3b8;
  border-radius: 999px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
  z-index: 10;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.canvas .zone-block .resize-handle {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #0ea5e9;
  border: 2px solid #ffffff;
  border-radius: 50%;
  cursor: se-resize;
  z-index: 2;
  pointer-events: auto;
}

/* Vrata - drvena tekstura, 3D efekat */
.canvas .door {
  user-select: none;
  position: absolute;
  background: linear-gradient(165deg,
    #a0522d 0%,
    #8b4513 15%,
    #6b3410 35%,
    #8b4513 50%,
    #6b3410 65%,
    #8b4513 85%,
    #a0522d 100%);
  border: 2px solid #5c3a1a;
  border-radius: 6px;
  cursor: move;
  z-index: 5 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: bold;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
              inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transform-origin: center center;
  box-sizing: border-box;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.canvas .door:hover {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
              inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.canvas .door.selected {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Unutrašnji okvir - staklo/panel vrata */
.canvas .door::before {
  content: '';
  position: absolute;
  top: 8%;
  left: 8%;
  right: 8%;
  bottom: 8%;
  border: 2px solid #5c3a1a;
  border-radius: 4px;
  background: linear-gradient(145deg,
    rgba(139, 69, 19, 0.4) 0%,
    rgba(101, 67, 33, 0.6) 50%,
    rgba(139, 69, 19, 0.3) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
/* Vrata sa prilagođenom bojom - unutrašnji okvir prati boju */
.canvas .door[data-fill-color]::before {
  border-color: var(--door-border, #5c3a1a);
  background: linear-gradient(145deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.06) 100%);
}

.canvas .wall {
  position: absolute;
  background: linear-gradient(145deg, #374151 0%, #4b5563 50%, #6b7280 100%);
  border-radius: 4px;
  cursor: move;
  z-index: 5;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.canvas .wall:hover {
  background: linear-gradient(145deg, #4b5563 0%, #6b7280 50%, #9ca3af 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  filter: brightness(1.05);
}

.canvas .wall.selected {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* SVG walls (parabola sa 3 tačke) */
.walls-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.walls-layer .wall-item {
  pointer-events: auto;
}

.walls-layer .wall-path {
  fill: none;
  stroke: url(#wallGradient) #4b5563;
  stroke-width: 8;
  stroke-linecap: round;
  cursor: move;
  pointer-events: stroke;
  filter: url(#wallShadow);
  transition: stroke 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}

.walls-layer .wall-path:hover {
  stroke: url(#wallGradientHover) #6b7280;
  stroke-width: 10;
  filter: url(#wallShadowHover);
}

.walls-layer .wall-handle {
  fill: #4b5563;
  stroke: #fff;
  stroke-width: 2;
  cursor: move;
  pointer-events: auto;
}

.walls-layer .wall-handle:hover {
  fill: #2563eb;
}

.walls-layer .wall-handle.control {
  fill: #6b7280;
}

/* Naziv vrata - kompaktno, kao kod stolova */
.canvas .door .door-name {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120%;
  text-align: center;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.08));
  z-index: 20;
}
.canvas .door .door-name:empty {
  display: none;
}

.canvas-container {
  user-select: none;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  height: clamp(560px, calc(100vh - 220px), 1400px) !important;
  min-height: 560px !important;
  flex: 1 1 100% !important;
  flex-basis: 100% !important;
  background: #fff;
  border-radius: 0;
  border: none;
  border-top: 2px solid #e9ecef;
  padding: 0;
  box-shadow: none;
  margin: 0;
  box-sizing: border-box;
  overflow: auto;
  position: relative;
}

.canvas-container:fullscreen,
.canvas-container.pseudo-fullscreen {
  overflow: auto !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  min-height: 100vh !important;
}

.canvas-container:fullscreen .canvas-zoom-controls,
.canvas-container.pseudo-fullscreen .canvas-zoom-controls {
  left: auto !important;
  right: 10px !important;
  transform: none !important;
  top: 20px !important;
}

@supports (-webkit-touch-callout: none) {
  .canvas-container:-webkit-full-screen,
  .canvas-container.pseudo-fullscreen {
    overflow: auto !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    min-height: 100vh !important;
  }

  .canvas-container:-webkit-full-screen .canvas-zoom-controls,
  .canvas-container.pseudo-fullscreen .canvas-zoom-controls {
    left: auto !important;
    right: 10px !important;
    transform: none !important;
    top: 20px !important;
  }
}

/* Canvas wrapper for centering */
.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Canvas zoom controls - inline, ne lomi se */
.canvas-zoom-controls {
  position: sticky;
  top: 10px;
  right: 10px;
  left: auto;
  margin-left: auto;
  width: fit-content;
  z-index: 1000;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid #ddd;
  white-space: nowrap;
}

.zoom-btn {
  background: #3b82f6;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.zoom-btn:hover {
  background: #2563eb;
}

.zoom-btn:active {
  background: #053a5f;
}

.zoom-btn-active,
.zoom-btn-toggle.zoom-btn-active {
  background: #1d4ed8;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.zoom-level {
  font-size: 14px;
  font-weight: 600;
  color: #1e40af;
  min-width: 50px;
  text-align: center;
  margin-left: 5px;
}

.hall-page #canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  border: 2px dashed #999;
  background: #f9f9f9;
  border-radius: 4px;
  overflow: visible;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  margin: auto;
  display: block;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.04), inset 0 -1px 2px rgba(255,255,255,0.5);
}

#canvasContent {
  position: absolute;
  left: 0;
  top: 0;
  width: 2400px;
  height: 1500px;
  transform-origin: 0 0;
}

.canvas-empty-placeholder {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.canvas-empty-placeholder-inner {
  font-size: 1rem;
  color: #64748b;
  text-align: center;
  padding: 1rem 1.5rem;
  background: rgba(241, 245, 249, 0.9);
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 1200px) {
  .hall-page .sidebar,
  .hall-page #sidebar {
    width: 100% !important;
    flex-wrap: wrap;
    gap: 1.5em;
  }

  .templates-grid {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1em;
  }

  .hall-page #canvas {
    min-height: 540px;
    height: calc(100vh - 260px);
  }

  .canvas-container {
    height: clamp(540px, calc(100vh - 260px), 1200px) !important;
    min-height: 540px !important;
  }
}

@media (max-width: 828px) {
  .hall-header {
    padding: 1em;
  }

  .hall-header h1 {
    font-size: 1.5em;
  }

  .hall-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .hall-controls input[type="text"] {
    min-width: 100%;
  }

  .hall-content {
    padding: 0 0.5em 1em 0.5em;
  }

  .hall-page .sidebar,
  .hall-page #sidebar {
    width: 100% !important;
    padding: 1em;
    gap: 1em;
  }

  .templates-grid {
    flex-wrap: wrap;
    gap: 0.75em;
  }

  .hall-page .template {
    width: 60px;
    height: 60px;
  }

  .hall-page .template.rectangle {
    width: 70px;
    height: 50px;
  }

  .hall-page #canvas {
    min-height: 440px;
    height: calc(100vh - 240px);
  }

  .canvas-container {
    padding: 1em;
    height: clamp(460px, 65vh, 800px) !important;
    min-height: 460px !important;
  }
}

/* Canvas / Demo page - Mobile responsive */
@media (max-width: 828px) {
  .hall-page .demo-container,
  .demo-page .demo-container {
    padding: 90px 0.75rem 0; /* 90px ispod fixed header-a */
    max-width: 100%;
    overflow-x: hidden;
  }

  .hall-page .page-content,
  .demo-page .page-content {
    padding: 0;
  }

  .demo-page .demo-banner {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .demo-page .demo-banner h2 {
    font-size: 1.1rem !important;
  }

  .demo-page .demo-banner p {
    font-size: 0.85rem !important;
  }

  .hall-page .user-hall-header,
  .demo-page .user-hall-header {
    padding: 1rem !important;
  }

  .hall-page .user-hall-header-content,
  .demo-page .user-hall-header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hall-page .user-hall-title,
  .demo-page .user-hall-title {
    font-size: 1.25rem !important;
  }

  .hall-page .user-hall-stats,
  .demo-page .user-hall-stats {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
  }

  .hall-page .user-hall-stat-box,
  .demo-page .user-hall-stat-box {
    min-width: 80px;
    padding: 0.5rem 0.75rem;
  }

  .hall-page .user-hall-stat-value,
  .demo-page .user-hall-stat-value {
    font-size: 1.25rem !important;
  }

  .hall-page .user-hall-fill-bar,
  .demo-page .user-hall-fill-bar {
    width: 120px !important;
    min-width: 100px;
  }

  .hall-page .user-hall-tutorial,
  .demo-page .user-hall-tutorial {
    margin-bottom: 1rem !important;
  }

  .hall-page .user-hall-tutorial > div,
  .demo-page .user-hall-tutorial > div {
    flex-direction: column !important;
    padding: 0.75rem !important;
    gap: 0.5rem !important;
  }

  .hall-page .user-hall-tutorial h4,
  .demo-page .user-hall-tutorial h4 {
    font-size: 0.9rem !important;
  }

  .hall-page .user-hall-tutorial div > div,
  .demo-page .user-hall-tutorial div > div {
    font-size: 0.8rem !important;
  }

  /* Templates palette - mobile, 4 po redu */
  .hall-page .info-card .templates-grid,
  .demo-page .info-card .templates-grid,
  .hall-page .templates-grid,
  .demo-page .templates-grid,
  .hall-page .edit-palette-grid,
  .hall-page .scene-panel-palette,
  .demo-page .edit-palette-grid,
  .demo-page .scene-panel-palette {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem !important;
    justify-items: center;
  }

  .hall-page .template,
  .demo-page .template {
    width: 50px !important;
    height: 50px !important;
  }

  .hall-page .template.rectangle,
  .demo-page .template.rectangle {
    width: 55px !important;
    height: 45px !important;
  }

  .hall-page .template.wedding,
  .demo-page .template.wedding {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
  }

  .hall-page .template.wedding-square,
  .demo-page .template.wedding-square {
    width: 50px !important;
    height: 50px !important;
    border-radius: 6px !important;
  }

  .hall-page .template.door,
  .demo-page .template.door {
    width: 50px !important;
    height: 60px !important;
  }

  .hall-page .template.wall,
  .demo-page .template.wall {
    width: 80px !important;
    height: 14px !important;
  }

  .hall-page .template.wall.vertical,
  .demo-page .template.wall.vertical {
    width: 14px !important;
    height: 80px !important;
  }

  .hall-page .template.zone,
  .demo-page .template.zone {
    width: 55px !important;
    height: 45px !important;
  }

  /* Canvas buttons row */
  .hall-page [id="generateExampleBtn"],
  .hall-page [id="clearDemoBtn"],
  .demo-page [id="generateExampleBtn"],
  .demo-page [id="clearDemoBtn"] {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
  }

  .hall-page .canvas-container,
  .demo-page .canvas-container {
    height: clamp(420px, 60vh, 700px) !important;
    min-height: 420px !important;
  }

  /* Zoom controls - kompaktno na telefonu */
  .canvas-zoom-controls {
    flex-wrap: nowrap !important;
    padding: 3px 5px !important;
    gap: 2px !important;
    top: 4px !important;
    right: 4px !important;
    white-space: nowrap !important;
  }

  .hall-page .canvas-zoom-controls .zoom-btn,
  .demo-page .canvas-zoom-controls .zoom-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    font-size: 12px !important;
  }

  .hall-page .canvas-zoom-controls .zoom-level,
  .demo-page .canvas-zoom-controls .zoom-level {
    font-size: 10px !important;
    min-width: 30px !important;
  }

  .hall-page .canvas-zoom-controls .canvas-bg-label,
  .demo-page .canvas-zoom-controls .canvas-bg-label {
    display: none !important;
  }

  .hall-page .canvas-zoom-controls .canvas-bg-input,
  .demo-page .canvas-zoom-controls .canvas-bg-input {
    width: 20px !important;
    height: 20px !important;
  }

  /* Guest list filters */
  .hall-page .info-card > div[style*="flex-wrap"]:not(.templates-grid),
  .demo-page .info-card > div[style*="flex-wrap"]:not(.templates-grid) {
    flex-direction: column;
  }

  /* Templates palette - 2-3 per row on mobile (ne menjamo flex-direction) */
  .hall-page .info-card .templates-grid,
  .demo-page .info-card .templates-grid,
  .hall-page .templates-grid,
  .demo-page .templates-grid {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  .hall-page #guestSearchInput,
  .demo-page #guestSearchInput {
    min-width: 100% !important;
  }

  .hall-page #guestTableDropdown,
  .demo-page #guestTableDropdown {
    min-width: 100% !important;
  }

  /* Raspored dana - inputi puna širina na mobilnom */
  #timelineAddRow {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  #timelineAddRow > div {
    min-width: 0 !important;
    width: 100% !important;
  }
  #timelineAddRow #timelineTimeInput,
  #timelineAddRow #timelineLabelInput {
    width: 100% !important;
    box-sizing: border-box;
  }

  .hall-page .info-card,
  .demo-page .info-card {
    padding: 1rem !important;
  }

  /* Guest list header + Export/Print buttons - responsive */
  .hall-page .guest-list-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .hall-page .guest-list-actions {
    flex-wrap: wrap !important;
    width: 100%;
  }

  .hall-page .guest-action-btn {
    flex: 1 1 auto !important;
    min-width: min(100%, 180px) !important;
    justify-content: center !important;
  }
}

@media (max-width: 540px) {
  .hall-page .demo-container,
  .demo-page .demo-container {
    padding: 90px 0.5rem 0; /* 90px ispod fixed header-a */
  }

  .hall-page .user-hall-stat-box,
  .demo-page .user-hall-stat-box {
    min-width: 70px;
    padding: 0.4rem 0.5rem;
  }

  .hall-page .user-hall-stat-value,
  .demo-page .user-hall-stat-value {
    font-size: 1.1rem !important;
  }

  .hall-page .user-hall-fill-indicator,
  .demo-page .user-hall-fill-indicator {
    flex-direction: column;
    align-items: stretch;
  }

  .hall-page .user-hall-fill-bar,
  .demo-page .user-hall-fill-bar {
    width: 100% !important;
  }

  /* Buttons stack on very small screens */
  .hall-page .canvas-actions,
  .demo-page .canvas-actions {
    flex-direction: column;
  }

  .hall-page #generateExampleBtn,
  .hall-page #clearDemoBtn,
  .demo-page #generateExampleBtn,
  .demo-page #clearDemoBtn {
    width: 100%;
  }

  .hall-page .canvas-container,
  .demo-page .canvas-container {
    height: clamp(380px, 55vh, 600px) !important;
    min-height: 380px !important;
  }

  .hall-page .template,
  .demo-page .template {
    width: 44px !important;
    height: 44px !important;
  }

  .hall-page .template.rectangle,
  .demo-page .template.rectangle {
    width: 50px !important;
    height: 40px !important;
  }

  .hall-page .template.wedding,
  .demo-page .template.wedding {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
  }

  .hall-page .template.wedding-square,
  .demo-page .template.wedding-square {
    width: 44px !important;
    height: 44px !important;
    border-radius: 6px !important;
  }

  .hall-page .template.door,
  .demo-page .template.door {
    width: 44px !important;
    height: 55px !important;
  }

  /* Na veoma uskim ekranima - dugmad Export/Štampaj u punu širinu */
  .hall-page .guest-list-actions {
    flex-direction: column !important;
  }

  .hall-page .guest-action-btn {
    width: 100% !important;
    min-width: 100% !important;
    justify-content: center !important;
  }

  #importGuestsBtn,
  #ownerImportGuestsBtn {
    min-width: 100% !important;
  }

  /* Kartice gostiju - sadržaj i dugmad Izmeni/Sto - omogući wrap */
  .hall-page .guest-item .guest-info > div {
    flex-wrap: wrap !important;
  }

  .hall-page .guest-item .guest-info > div > div:last-child {
    flex-wrap: wrap !important;
    flex-shrink: 1 !important;
  }
}

/* Checkbox za selekciju gostiju - povećana veličina */
.demo-guest-assign-cb,
.owner-guest-assign-checkbox,
.guest-assign-checkbox,
#ownerGuestSelectAllCheckbox,
#demoGuestSelectAllCheckbox,
#guestSelectAllCheckbox {
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  min-height: 1.35rem;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Checkbox u th - ista veličina kao u redovima (th može imati drugi font-size) */
.user-guests-table th input[type="checkbox"],
.owner-guests-table th input[type="checkbox"],
.demo-guests-table th input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  min-height: 1.35rem;
  box-sizing: border-box;
}

/* Red 1: stolovi + strane | Red 2: pretraga */
.guest-search-filter-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.guest-filter-tables-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}
.guest-filter-tables-row .guest-search-filter-select,
.guest-filter-tables-row .guest-search-filter-dropdown {
  flex: 1 1 100%;
  min-width: 0;
  box-sizing: border-box;
}
/* Inline stolovi + strane van telefona (541px = iznad max-width: 540px) */
@media (min-width: 541px) {
  .guest-filter-tables-row {
    flex-wrap: nowrap;
  }
  .guest-filter-tables-row .guest-search-filter-select,
  .guest-filter-tables-row .guest-search-filter-dropdown {
    flex: 1 1 0;
    min-width: 110px;
    max-width: 50%;
  }
}
/* Na velikom ekranu - kao 4 filtera u redu, svaki po 25% (gap 0.75rem između) */
@media (min-width: 1024px) {
  .guest-filter-tables-row .guest-search-filter-select,
  .guest-filter-tables-row .guest-search-filter-dropdown {
    flex: 0 0 calc((100% - 3 * 0.75rem) / 4);
    min-width: 0;
    max-width: none;
  }
}
.guest-filter-search-row {
  width: 100%;
}
.guest-filter-search-row .guest-search-filter-input {
  width: 100%;
  box-sizing: border-box;
}

/* Strana - radio dugmad (visina kao filteri, min 44px) */
/* Owner edit je unutar .form-group - .form-group input pregazi stilove; ovde ih vraćamo */
.form-group .guest-side-radios .guest-side-radio-label input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  padding: 0;
  border: 0.15em solid var(--guest-side-radio-border);
  border-radius: 50%;
  background-color: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.form-group .guest-side-radios {
  --guest-side-radio-color: #166534;
  --guest-side-radio-border: #94a3b8;
}
.form-group .guest-side-radios .guest-side-radio-label {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  grid-template-columns: 1.5rem auto;
}
.form-group .guest-side-radios .guest-side-radio-label:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.form-group .guest-side-radios .guest-side-radio-label:has(input:checked) {
  border-color: var(--guest-side-radio-color);
  background: #f0fdf4;
}
.form-group .guest-side-radios .guest-side-radio-label input[type="radio"]::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.12s ease-in-out;
  box-shadow: inset 1em 1em var(--guest-side-radio-color);
  background-color: CanvasText;
}
.form-group .guest-side-radios .guest-side-radio-label input[type="radio"]:checked {
  border-color: var(--guest-side-radio-color);
}
.form-group .guest-side-radios .guest-side-radio-label input[type="radio"]:checked::before {
  transform: scale(1);
}
.form-group .guest-side-radios .guest-side-radio-label input[type="radio"]:hover:not(:disabled) {
  border-color: var(--guest-side-radio-color);
}
.form-group .guest-side-radios .guest-side-radio-label input[type="radio"]:focus {
  outline: none;
}
.form-group .guest-side-radios .guest-side-radio-label input[type="radio"]:focus-visible {
  outline: max(2px, 0.15em) solid var(--guest-side-radio-color);
  outline-offset: max(2px, 0.15em);
}
.form-group .guest-side-radios .guest-side-radio-label {
  display: grid;
  gap: 0.5rem;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.3;
}
.guest-side-radios {
  --guest-side-radio-color: #166534;
  --guest-side-radio-border: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}
.guest-side-radio-label {
  display: grid;
  grid-template-columns: 1.5rem auto;
  gap: 0.5rem;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.3;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s, background-color 0.15s;
}
.guest-side-radio-label:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.guest-side-radio-label:has(input:checked) {
  border-color: var(--guest-side-radio-color);
  background: #f0fdf4;
}
.guest-side-radio-label input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  border: 0.15em solid var(--guest-side-radio-border);
  border-radius: 50%;
  background-color: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.guest-side-radio-label input[type="radio"]::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.12s ease-in-out;
  box-shadow: inset 1em 1em var(--guest-side-radio-color);
  background-color: CanvasText; /* Windows High Contrast Mode */
}
.guest-side-radio-label input[type="radio"]:checked {
  border-color: var(--guest-side-radio-color);
}
.guest-side-radio-label input[type="radio"]:checked::before {
  transform: scale(1);
}
.guest-side-radio-label input[type="radio"]:hover:not(:disabled) {
  border-color: var(--guest-side-radio-color);
}
.guest-side-radio-label input[type="radio"]:focus {
  outline: none;
}
.guest-side-radio-label input[type="radio"]:focus-visible {
  outline: max(2px, 0.15em) solid var(--guest-side-radio-color);
  outline-offset: max(2px, 0.15em);
}

/* Responsive - veći touch target na mobilnom (min 44px) */
@media (max-width: 540px) {
  .guest-side-radios,
  .form-group .guest-side-radios {
    gap: 0.5rem 1rem;
  }
  .guest-side-radio-label,
  .form-group .guest-side-radios .guest-side-radio-label {
    font-size: 1rem;
    min-height: 44px;
    padding: 0.5rem 0;
    align-items: center;
  }
  .guest-side-radio-label input[type="radio"],
  .form-group .guest-side-radios .guest-side-radio-label input[type="radio"] {
    width: 0.65rem;
    height: 0.65rem;
    min-width: 0.65rem;
    min-height: 0.65rem;
  }
}

/* Brzo dodaj rezervacije - poravnanje radio dugmadi i inputa u jednoj liniji */
.quick-add-guests-section .quick-add-guests-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.quick-add-guests-section .quick-add-guests-row > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.quick-add-guests-section .quick-add-guests-row > div > label,
.quick-add-guests-section .quick-add-guests-row > div > span {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0;
  display: block;
}
.quick-add-guests-section .quick-add-guests-row input[type="text"] {
  min-height: 44px;
  box-sizing: border-box;
}
.quick-add-guests-section .quick-add-guests-row .guest-side-radios-wrap .guest-side-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}
.quick-add-guests-section .quick-add-guests-row .guest-side-radios-wrap .guest-side-radio-label {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  align-items: center;
  margin: 0;
}
.quick-add-guests-section .quick-add-guests-row > button {
  flex-shrink: 0;
  min-height: 44px;
}

/* Demo: iste visine kao na ostalim stranicama (form-input ima drugačiji padding) */
.demo-page .quick-add-guests-section .quick-add-guests-row input.form-input {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
}
.demo-page .quick-add-guests-section .quick-add-guests-row .guest-side-radios-wrap .guest-side-radio-label {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  align-items: center;
}

/* Demo: dropdown Potvrda u liniji sa checkboxima - ne prelama u novi red, ista širina kao checkbox */
.demo-page .demo-filters-row .filter-group-3 {
  flex-wrap: nowrap;
}
.demo-page .filter-group-3 .demo-confirmed-filter-inline {
  align-self: center;
  min-height: 38px;
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  /* ista širina kao filter-group-3-checkbox */
  width: 11.5em;
  min-width: 11.5em;
  box-sizing: border-box;
}

/* Brzo dodaj rezervacije - mobilni: ime, prezime, napomena, strana, dugme - 100% širine, svako u novom redu */
@media (max-width: 540px) {
  .quick-add-guests-section {
    padding: 0.75rem 1rem !important;
    overflow-x: hidden;
    min-width: 0;
  }
  .quick-add-guests-section .quick-add-guests-row {
    flex-direction: column !important;
    align-items: stretch !important;
    min-width: 0;
    overflow-x: hidden;
  }
  .quick-add-guests-section .quick-add-guests-row > div {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: none !important;
  }
  .quick-add-guests-section .quick-add-guests-row input,
  .quick-add-guests-section .quick-add-guests-row select {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  .quick-add-guests-section .quick-add-guests-row > button {
    width: 100%;
  }
}
/* Input za pretragu gostiju - boja kao primary dugme */
#ownerGuestSearchInput,
#userTablesSearchInput,
#demoTablesSearchInput {
  background: #eff6ff;
  border: 2px solid #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}
#ownerGuestSearchInput:focus,
#userTablesSearchInput:focus,
#demoTablesSearchInput:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.guest-search-filter-input {
  padding: 0.6rem 0.9rem;
  border: 2px solid #64748b;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 0 0 1px rgba(100, 116, 139, 0.15);
}
.guest-search-filter-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.guest-search-filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.9rem;
}
.guest-search-filter-dropdown {
  position: relative;
}

/* Tabelarni pregled gostiju - 2 kolone (user hall, owner, demo) */
.user-guests-tables-grid,
.owner-guests-tables-grid,
.demo-guests-tables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.user-guests-table-wrap,
.owner-guests-table-wrap,
.demo-guests-table-wrap {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}
.user-guests-table,
.owner-guests-table,
.demo-guests-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.user-guests-table th,
.owner-guests-table th,
.demo-guests-table th {
  padding: 0.6rem 0.75rem;
  text-align: left;
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}
.user-guests-table td,
.owner-guests-table td,
.demo-guests-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}
.user-guests-table tbody tr:nth-child(even),
.owner-guests-table tbody tr:nth-child(even),
.demo-guests-table tbody tr:nth-child(even) {
  background: #f8fafc;
}
.user-guests-table tbody tr:last-child td,
.owner-guests-table tbody tr:last-child td,
.demo-guests-table tbody tr:last-child td {
  border-bottom: none;
}
.user-guests-table tbody tr:hover,
.owner-guests-table tbody tr:hover,
.demo-guests-table tbody tr:hover {
  background: #f1f5f9 !important;
}
.user-guests-table th.sortable,
.owner-guests-table th.sortable,
.demo-guests-table th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.user-guests-table th.sortable:hover,
.owner-guests-table th.sortable:hover,
.demo-guests-table th.sortable:hover {
  background: #f1f5f9;
}
.user-guests-table th.sortable .sort-icon,
.owner-guests-table th.sortable .sort-icon,
.demo-guests-table th.sortable .sort-icon {
  opacity: 0.5;
  font-size: 0.75em;
  margin-left: 0.25rem;
}
.user-guests-table th.sortable.sorted-asc .sort-icon::after,
.owner-guests-table th.sortable.sorted-asc .sort-icon::after,
.demo-guests-table th.sortable.sorted-asc .sort-icon::after {
  content: ' ↑';
  opacity: 1;
}
.user-guests-table th.sortable.sorted-desc .sort-icon::after,
.owner-guests-table th.sortable.sorted-desc .sort-icon::after,
.demo-guests-table th.sortable.sorted-desc .sort-icon::after {
  content: ' ↓';
  opacity: 1;
}
.user-guests-table th:nth-child(4),
.user-guests-table td:nth-child(4),
.owner-guests-table th:nth-child(4),
.owner-guests-table td:nth-child(4),
.demo-guests-table th:nth-child(4),
.demo-guests-table td:nth-child(4) {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-guests-table-wrap.no-napomena th:nth-child(5),
.user-guests-table-wrap.no-napomena td:nth-child(5),
.demo-guests-table-wrap.no-napomena th:nth-child(5),
.demo-guests-table-wrap.no-napomena td:nth-child(5) {
  display: none;
}
.user-guests-tables-grid.no-checkbox-column .user-guests-table th:first-child,
.user-guests-tables-grid.no-checkbox-column .user-guests-table td:first-child,
.owner-guests-tables-grid.no-checkbox-column .owner-guests-table th:first-child,
.owner-guests-tables-grid.no-checkbox-column .owner-guests-table td:first-child {
  display: none;
}

/* Akcije - ikonice ne smeju da se lome (predposlednja kolona) */
.user-guests-table td:nth-last-child(2),
.owner-guests-table td:nth-last-child(2),
.demo-guests-table td:nth-last-child(2),
.table-guests-grid td:nth-last-child(2) {
  white-space: nowrap;
  min-width: 140px;
}
.user-guests-table td:nth-last-child(2) button,
.owner-guests-table td:nth-last-child(2) button,
.demo-guests-table td:nth-last-child(2) button,
.table-guests-grid td:nth-last-child(2) button {
  white-space: nowrap;
  flex-shrink: 0;
}
/* Akcije - ikonice fiksne veličine (sprečava istezanje) */
.owner-guests-table td button .btn-icon,
.owner-guests-table td button .lucide,
.owner-guests-table td button svg,
.user-guests-table td button .btn-icon,
.user-guests-table td button .lucide,
.user-guests-table td button svg,
.demo-guests-table td button .btn-icon,
.demo-guests-table td button .lucide,
.demo-guests-table td button svg,
.table-guests-grid td button .btn-icon,
.table-guests-grid td button .lucide,
.table-guests-grid td button svg {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  flex-shrink: 0;
}

/* Kolona potvrde (✓) - minimalna širina */
.user-guests-table th:last-child,
.user-guests-table td:last-child,
.owner-guests-table th:last-child,
.owner-guests-table td:last-child,
.demo-guests-table th:last-child,
.demo-guests-table td:last-child,
.table-guests-grid th:last-child,
.table-guests-grid td:last-child {
  width: 2rem !important;
  min-width: 2rem !important;
  max-width: 2rem !important;
  padding: 0.25rem !important;
  text-align: center;
  white-space: nowrap;
}

/* Responsive: table-guests-grid u modalu - horizontalni scroll na uskim ekranima */
.table-guests-grid-wrap .table-guests-grid {
  min-width: 380px;
}

/* Drag & drop za zamenu mesta gostiju */
.table-guests-grid tbody tr[draggable="true"] {
  cursor: grab;
}
.table-guests-grid tbody tr[draggable="true"]:active {
  cursor: grabbing;
}
.table-guests-grid tbody tr.guest-drag-over {
  opacity: 0.6;
}
.table-guests-grid tbody tr.guest-drop-target {
  background: #dbeafe !important;
  box-shadow: inset 0 0 0 2px #3b82f6;
}
@media (max-width: 1052px) {
  .user-guests-tables-grid,
  .owner-guests-tables-grid,
  .demo-guests-tables-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .user-guests-tables-grid,
  .owner-guests-tables-grid,
  .demo-guests-tables-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Edit modal - isti pattern kao table-guests (full screen na mobilnom) ========== */
/* Icon picker modal */
.icon-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 1051;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
}

.icon-picker-modal-inner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.icon-picker-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.icon-picker-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.icon-picker-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  padding: 0.25rem;
  line-height: 1;
}

.icon-picker-modal-close:hover {
  color: #334155;
}

.icon-picker-modal-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.icon-picker-search {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 0.5rem;
}

.icon-picker-grid-item {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s ease;
}

.icon-picker-grid-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.icon-picker-grid-item i {
  width: 24px;
  height: 24px;
}

.icon-picker-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #64748b;
}

.icon-picker-modal-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.icon-picker-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.icon-picker-hint kbd {
  padding: 0.1rem 0.35rem;
  background: #e2e8f0;
  border-radius: 4px;
  font-size: 0.75rem;
}

.canvas-icon-placement-mode .canvas,
.canvas-icon-placement-mode #canvas-container {
  cursor: crosshair;
}

#editModal.edit-modal-dialog .edit-modal-inner {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
}
#editModal.edit-modal-dialog .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
#editModal.edit-modal-dialog .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#editModal.edit-modal-dialog .modal-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}
.edit-modal-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}
.edit-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ========== Table guests dialog (klik na sto) - zajednički za demo, user, owner ========== */
.table-guests-dialog {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1051;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.table-guests-panel-inner {
  background: white;
  max-width: 1320px;
  width: 98%;
  max-height: 92vh;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.table-guests-panel-header {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.table-guests-panel-header-title-wrap {
  flex: 1;
  min-width: 0;
}
.table-guests-panel-header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.table-guests-panel-notes {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  opacity: 0.95;
  font-style: italic;
  display: none;
}
.table-guests-panel-notes:not(:empty) {
  display: block;
}
.table-guests-panel-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.table-guests-panel-header-actions label {
  font-size: 0.9rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.table-guests-panel-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}
.table-guests-panel-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}
.table-guests-panel-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
}
.table-guests-add-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1.5fr auto;
  gap: 0.75rem 1rem;
  align-items: end;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.table-guests-add-row .guest-side-radios-wrap {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.35rem 0.5rem;
  align-items: end;
}
.table-guests-add-row .add-row-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.table-guests-add-row .add-row-field.add-row-field-napomena {
  min-width: 0;
}
.table-guests-add-row .add-row-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}
.table-guests-add-row .add-row-field input,
.table-guests-add-row .add-row-field .form-input-inline {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.table-guests-add-row .add-row-field input:focus,
.table-guests-add-row .add-row-field .form-input-inline:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
  outline: none;
}
.table-guests-add-row .guest-side-radios-wrap span {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}
.table-guests-add-row .guest-side-radios-wrap .guest-side-radios {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
}
.table-guests-add-row .guest-side-radios-wrap .guest-side-radio-label {
  white-space: nowrap;
  flex-shrink: 0;
}
.table-guests-add-row #tableGuestsAddBtn {
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
}
.table-guests-grid-wrap {
  max-height: 520px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: auto;
}
.table-guests-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table-guests-grid thead {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  z-index: 1;
}
.table-guests-grid th {
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #475569;
  font-size: 0.9rem;
  text-align: left;
}
.table-guests-grid th.table-guests-col-move,
.table-guests-grid th.table-guests-col-num {
  text-align: center;
  width: 2.5rem;
}
.table-guests-grid th.table-guests-col-actions {
  text-align: center;
  width: 180px;
}
.table-guests-grid th.table-guests-col-confirm {
  width: 2rem;
  min-width: 2rem;
  padding: 0.25rem;
  text-align: center;
}
.table-guests-grid td {
  padding: 0.65rem 1rem;
}
.table-guests-grid tbody tr:hover {
  background: #f8fafc;
}
@media (max-width: 768px) {
  .table-guests-add-row {
    grid-template-columns: 1fr;
  }
  .table-guests-add-row .guest-side-radios-wrap {
    grid-column: 1;
  }
  .table-guests-add-row .guest-side-radios-wrap .guest-side-radios {
    grid-template-columns: 1fr;
  }
}


/* === stats-guests.css === */
/**
 * Statistika gostiju - grafici i KPI kartice
 */
.stats-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stats-kpi-card {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}
.stats-kpi-card.stats-kpi-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}
.stats-kpi-card.stats-kpi-accent {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
.stats-kpi-card.stats-kpi-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.stats-kpi-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}
.stats-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.stats-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stats-chart-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}
.stats-chart-card.stats-chart-full {
    grid-column: 1 / -1;
}
.stats-chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.stats-treemap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 200px;
}
.stats-treemap-item {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 60px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.stats-treemap-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.stats-heatmap {
    display: grid;
    grid-template-columns: 80px repeat(12, 1fr);
    gap: 2px;
    font-size: 0.7rem;
}
.stats-heatmap-cell {
    padding: 0.35rem;
    text-align: center;
    border-radius: 4px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stats-heatmap-cell.stats-heatmap-header {
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
}
.stats-heatmap-cell.stats-heatmap-label {
    background: #f8fafc;
    font-weight: 500;
    color: #64748b;
}
.stats-heatmap-cell[data-level="0"] { background: #f1f5f9; color: #94a3b8; }
.stats-heatmap-cell[data-level="1"] { background: #e0f2fe; color: #0c4a6e; }
.stats-heatmap-cell[data-level="2"] { background: #7dd3fc; color: #0c4a6e; }
.stats-heatmap-cell[data-level="3"] { background: #38bdf8; color: white; }
.stats-heatmap-cell[data-level="4"] { background: #0ea5e9; color: white; }
.stats-heatmap-cell[data-level="5"] { background: #0284c7; color: white; }

.stats-table-section {
    margin-top: 2rem;
}
.stats-table-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .stats-charts-grid {
        grid-template-columns: 1fr;
    }
    .stats-heatmap {
        grid-template-columns: 60px repeat(12, 1fr);
        font-size: 0.65rem;
    }
}


/* === flatpickr.min.css === */
.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,0.08);box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,0.08)}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown 300ms cubic-bezier(.23,1,.32,1);animation:fpFadeInDown 300ms cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none !important;box-shadow:none !important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9);height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9)}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{/*
      /*rtl:begin:ignore*/left:0/*
      /*rtl:end:ignore*/}/*
      /*rtl:begin:ignore*/
/*
      /*rtl:end:ignore*/
.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{/*
      /*rtl:begin:ignore*/right:0/*
      /*rtl:end:ignore*/}/*
      /*rtl:begin:ignore*/
/*
      /*rtl:end:ignore*/
.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,0.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,0.1)}.numInputWrapper span:active{background:rgba(0,0,0,0.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,0.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,0.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,0.5)}.numInputWrapper:hover{background:rgba(0,0,0,0.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\0;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,0.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,0.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,0.5);background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,0.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}.dayContainer + .dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(57,57,57,0.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,0.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,0.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:bold}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}

