:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #16181d;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --danger: #dc2626;
    --success: #16a34a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--primary);
    text-decoration: none;
}

.rr-layout {
    min-height: 100vh;
    display: flex;
}

.rr-sidebar {
    width: 250px;
    background: #101827;
    color: #fff;
    padding: 22px;
    flex-shrink: 0;
}

.rr-brand {
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 8px;
}

.rr-user {
    color: #cbd5e1;
    font-size: 13px;
    margin-bottom: 28px;
}

.rr-sidebar nav {
    display: grid;
    gap: 8px;
}

.rr-sidebar nav a {
    color: #e5e7eb;
    padding: 11px 12px;
    border-radius: 12px;
}

.rr-sidebar nav a:hover {
    background: rgba(255,255,255,0.08);
}

.rr-main {
    width: 100%;
    padding: 28px;
}

.rr-page-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.rr-page-head h1 {
    margin: 0 0 6px;
    font-size: 30px;
}

.rr-page-head p {
    margin: 0;
    color: var(--muted);
}

.rr-eyebrow {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin-bottom: 6px;
}

.rr-grid {
    display: grid;
    gap: 18px;
}

.rr-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rr-card,
.rr-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.rr-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 14px;
}

.rr-card strong {
    font-size: 28px;
}

.rr-two-col {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
}

.rr-panel h2 {
    margin: 0 0 18px;
}

.rr-form {
    display: grid;
    gap: 10px;
}

label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 12px;
    font: inherit;
    background: #fff;
}

button,
.rr-public-btn {
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    padding: 12px 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
}

button:hover,
.rr-public-btn:hover {
    background: var(--primary-dark);
}

.rr-table-wrap {
    overflow-x: auto;
}

.rr-table {
    width: 100%;
    border-collapse: collapse;
}

.rr-table th,
.rr-table td {
    text-align: left;
    border-bottom: 1px solid var(--border);
    padding: 12px 10px;
    vertical-align: top;
}

.rr-table th {
    color: var(--muted);
    font-size: 13px;
}

.rr-alert {
    padding: 13px 15px;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    background: #fff;
}

.rr-alert-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.rr-alert-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.rr-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.rr-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.rr-login-card h1 {
    margin: 16px 0 6px;
}

.rr-login-card p {
    color: var(--muted);
    margin-top: 0;
}

.rr-login-card form {
    display: grid;
    gap: 12px;
}

.rr-public {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.rr-public-card {
    width: 100%;
    max-width: 620px;
    background: #fff;
    border-radius: 24px;
    padding: 34px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.rr-muted {
    color: var(--muted);
    margin-top: 20px;
}

@media (max-width: 900px) {
    .rr-layout {
        display: block;
    }

    .rr-sidebar {
        width: 100%;
    }

    .rr-main {
        padding: 18px;
    }

    .rr-grid-3,
    .rr-two-col {
        grid-template-columns: 1fr;
    }
}


/* DODAJ NA KRAJ assets/app.css */

.rr-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rr-filter {
    display: grid;
    grid-template-columns: 220px 120px 1fr auto auto;
    gap: 10px;
    margin-bottom: 16px;
}

.rr-btn-light {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 13px;
    display: inline-block;
    font-weight: 700;
}

.rr-btn-danger {
    background: var(--danger);
}

.rr-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.rr-section-head h2 {
    margin-bottom: 4px;
}

.rr-section-head p {
    color: var(--muted);
    margin: 0;
}

.rr-text-right {
    text-align: right !important;
}

.rr-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.rr-badge-blue {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

.rr-badge-green {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.rr-badge-yellow {
    background: #fef9c3;
    color: #854d0e;
    border-color: #fde68a;
}

.rr-badge-gray {
    background: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
}

.rr-badge-red {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.rr-public-wide {
    width: 100%;
    max-width: 1180px;
    background: #fff;
    border-radius: 24px;
    padding: 34px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.rr-public-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.rr-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    color: var(--muted);
}

.rr-dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 999px;
    margin-right: 6px;
    vertical-align: -1px;
}

.rr-dot-free {
    background: #dcfce7;
}

.rr-dot-busy {
    background: #fee2e2;
}

.rr-cal-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.rr-cal {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}

.rr-cal h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.rr-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.rr-cal-head {
    margin-bottom: 6px;
}

.rr-cal-head span {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.rr-cal-day {
    display: grid;
    place-items: center;
    min-height: 34px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
}

.rr-cal-empty {
    background: transparent;
}

.rr-cal-free {
    background: #dcfce7;
    color: #166534;
}

.rr-cal-busy {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 900px) {
    .rr-form-row,
    .rr-filter,
    .rr-cal-wrap,
    .rr-public-hero {
        grid-template-columns: 1fr;
        display: grid;
    }
}

/* DODAJ NA KRAJ assets/app.css */
.rr-sidebar small { color: #94a3b8; }
.rr-filter-small { grid-template-columns: 220px 1fr auto auto; }
@media (max-width: 900px) { .rr-filter-small { grid-template-columns: 1fr; display: grid; } }


/* DODAJ NA KRAJ assets/app.css */

.rr-mb {
    margin-bottom: 20px;
}

.rr-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rr-filter-fin {
    grid-template-columns: 1fr 140px auto;
}

.rr-positive {
    color: var(--success);
}

.rr-negative {
    color: var(--danger);
}

.rr-muted {
    color: var(--muted);
}

.rr-sidebar small {
    color: #94a3b8;
}

@media (max-width: 900px) {
    .rr-grid-4,
    .rr-filter-fin {
        grid-template-columns: 1fr;
    }
}
/* DODAJ NA KRAJ assets/app.css */

.rr-mb {
    margin-bottom: 20px;
}

.rr-mt {
    margin-top: 20px;
}

.rr-filter-calendar {
    grid-template-columns: 1fr 110px 130px auto;
}

.rr-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.rr-link-list {
    display: grid;
    gap: 12px;
}

.rr-link-list div {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
}

.rr-link-list span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.rr-admin-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.rr-admin-cal-head {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    padding: 8px 4px;
}

.rr-admin-cal-day {
    min-height: 130px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 9px;
}

.rr-admin-cal-empty {
    background: transparent;
    border: 0;
}

.rr-admin-cal-today {
    outline: 2px solid var(--primary);
}

.rr-admin-cal-date {
    font-weight: 800;
    margin-bottom: 6px;
}

.rr-admin-cal-free {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
}

.rr-admin-cal-event {
    display: block;
    border-radius: 12px;
    padding: 7px 8px;
    margin-top: 6px;
    color: #111827;
    border: 1px solid var(--border);
    font-size: 12px;
}

.rr-admin-cal-event strong,
.rr-admin-cal-event span,
.rr-admin-cal-event small {
    display: block;
}

.rr-admin-cal-event small {
    opacity: .75;
}

.rr-cal-admin-paid {
    background: #dbeafe;
    border-color: #bfdbfe;
}

.rr-cal-admin-confirmed {
    background: #dcfce7;
    border-color: #bbf7d0;
}

.rr-cal-admin-pending {
    background: #fef9c3;
    border-color: #fde68a;
}

.rr-cal-admin-blocked {
    background: #e5e7eb;
    border-color: #cbd5e1;
}

.rr-cal-admin-other {
    background: #f8fafc;
}

@media (max-width: 1000px) {
    .rr-admin-calendar {
        display: block;
    }

    .rr-admin-cal-head,
    .rr-admin-cal-empty {
        display: none;
    }

    .rr-admin-cal-day {
        min-height: auto;
        margin-bottom: 10px;
    }

    .rr-filter-calendar,
    .rr-calendar-nav {
        grid-template-columns: 1fr;
        display: grid;
    }
}

/* =========================================================
   RBI RENT - KALENDAR FIX
   Ovaj blok mora biti NA KRAJU app.css
   ========================================================= */

.rr-main {
    min-width: 0;
}

.rr-panel {
    overflow: visible;
}

.rr-filter.rr-filter-calendar {
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) 110px 130px auto !important;
    align-items: end !important;
    gap: 10px !important;
}

.rr-calendar-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
}

.rr-admin-calendar {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
}

.rr-admin-cal-head {
    display: block !important;
    color: var(--muted) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-align: center !important;
    padding: 10px 4px !important;
}

.rr-admin-cal-day {
    display: block !important;
    min-height: 138px !important;
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 10px !important;
    overflow: hidden !important;
}

.rr-admin-cal-empty {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.rr-admin-cal-today {
    outline: 2px solid var(--primary) !important;
}

.rr-admin-cal-date {
    font-weight: 800 !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
}

.rr-admin-cal-free {
    display: inline-block !important;
    background: #dcfce7 !important;
    color: #166534 !important;
    border-radius: 999px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.rr-admin-cal-event {
    display: block !important;
    border-radius: 12px !important;
    padding: 7px 8px !important;
    margin-top: 6px !important;
    color: #111827 !important;
    border: 1px solid var(--border) !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    overflow: hidden !important;
}

.rr-admin-cal-event strong,
.rr-admin-cal-event span,
.rr-admin-cal-event small {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.rr-admin-cal-event small {
    opacity: .75 !important;
}

.rr-cal-admin-paid {
    background: #dbeafe !important;
    border-color: #bfdbfe !important;
}

.rr-cal-admin-confirmed {
    background: #dcfce7 !important;
    border-color: #bbf7d0 !important;
}

.rr-cal-admin-pending {
    background: #fef9c3 !important;
    border-color: #fde68a !important;
}

.rr-cal-admin-blocked {
    background: #e5e7eb !important;
    border-color: #cbd5e1 !important;
}

.rr-cal-admin-other {
    background: #f8fafc !important;
}

.rr-link-list {
    display: grid !important;
    gap: 12px !important;
}

.rr-link-list div {
    background: #f8fafc !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
}

.rr-link-list span {
    display: block !important;
    color: var(--muted) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

@media (max-width: 1000px) {
    .rr-filter.rr-filter-calendar,
    .rr-calendar-nav {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .rr-admin-calendar {
        display: block !important;
    }

    .rr-admin-cal-head,
    .rr-admin-cal-empty {
        display: none !important;
    }

    .rr-admin-cal-day {
        min-height: auto !important;
        margin-bottom: 10px !important;
    }
}

/* DODAJ NA KRAJ assets/app.css */

.rr-public-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.rr-public-form-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.rr-public-form-card h2 {
    margin-top: 0;
}

.rr-public-form-card p {
    color: var(--muted);
    margin-top: -6px;
    margin-bottom: 16px;
}

.rr-filter-upiti {
    grid-template-columns: 1fr 220px auto auto;
}

.rr-action-stack {
    display: grid;
    gap: 8px;
    min-width: 150px;
}

.rr-btn-small {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
}

@media (max-width: 1000px) {
    .rr-public-grid {
        grid-template-columns: 1fr;
    }

    .rr-public-form-card {
        position: static;
    }

    .rr-filter-upiti {
        grid-template-columns: 1fr;
    }
}

/* DODAJ NA KRAJ assets/app.css */

.rr-public-contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 24px;
}

.rr-public-contact-card h2 {
    margin: 0 0 4px;
}

.rr-public-contact-card p {
    margin: 0;
    color: var(--muted);
}

.rr-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.rr-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 800;
    white-space: nowrap;
}

.rr-contact-wa {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.rr-contact-viber {
    background: #ede9fe;
    border-color: #ddd6fe;
    color: #5b21b6;
}

.rr-contact-fb {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
}

.rr-contact-ig {
    background: #fce7f3;
    border-color: #fbcfe8;
    color: #9d174d;
}

@media (max-width: 900px) {
    .rr-public-contact-card {
        grid-template-columns: 1fr;
    }

    .rr-contact-buttons {
        justify-content: flex-start;
    }
}

/* =========================================================
   JAVNI PROFIL OBJEKTA - LJEPŠI IZGLED
   Dodaj na kraj assets/app.css
   ========================================================= */

.rr-public-wide {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.rr-public-hero-pretty {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 30px;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.rr-public-hero-content h1 {
    margin: 8px 0 10px;
    font-size: 42px;
    line-height: 1.05;
}

.rr-public-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 16px;
    margin: 0;
}

.rr-public-location i {
    color: var(--primary);
    font-size: 18px;
}

.rr-public-contact-card-pretty {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 26px;
}

.rr-public-contact-card-pretty h2 {
    margin: 0 0 6px;
    font-size: 30px;
}

.rr-public-contact-card-pretty p {
    margin: 0;
    color: var(--muted);
    max-width: 620px;
}

.rr-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.rr-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: #111827;
    font-weight: 800;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.rr-contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.rr-contact-btn i {
    font-size: 16px;
}

.rr-contact-wa {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.rr-contact-viber {
    background: #ede9fe;
    border-color: #ddd6fe;
    color: #5b21b6;
}

.rr-contact-fb {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.rr-contact-ig {
    background: #fce7f3;
    border-color: #fbcfe8;
    color: #be185d;
}

.rr-public-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rr-public-section-title i {
    color: var(--primary);
}

.rr-public-form-card-pretty {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}

.rr-public-form-card-pretty h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 8px;
}

.rr-public-form-card-pretty h2 i {
    color: var(--primary);
}

.rr-public-form-card-pretty p {
    color: var(--muted);
    margin-bottom: 18px;
}

.rr-public-form-card-pretty .rr-form input,
.rr-public-form-card-pretty .rr-form textarea {
    background: #ffffff;
}

.rr-public-form-card-pretty .rr-form button {
    width: 100%;
}

@media (max-width: 1000px) {
    .rr-public-hero-content h1 {
        font-size: 34px;
    }

    .rr-public-contact-card-pretty {
        grid-template-columns: 1fr;
    }

    .rr-contact-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .rr-public-wide {
        padding: 18px 14px 32px;
    }

    .rr-public-hero-pretty,
    .rr-public-contact-card-pretty,
    .rr-public-form-card-pretty {
        border-radius: 18px;
        padding: 18px;
    }

    .rr-public-hero-content h1 {
        font-size: 28px;
    }

    .rr-contact-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   JAVNI PROFIL - SLIKA, KOMPAKTNI KONTAKTI I DATUM DD.MM.YYYY
   Dodaj NA KRAJ assets/app.css
   ========================================================= */

.rr-public-wide-compact {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 18px 42px;
}

.rr-public-top-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 18px;
    margin-bottom: 22px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.rr-public-top-image {
    min-height: 190px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.rr-public-top-image img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    display: block;
    object-fit: cover;
}

.rr-public-photo-placeholder {
    min-height: 190px;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 48px;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.rr-public-top-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.rr-public-top-content h1 {
    margin: 8px 0 8px;
    font-size: 40px;
    line-height: 1.05;
}

.rr-public-location {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 15px;
    margin: 0 0 16px;
}

.rr-public-location i {
    color: var(--primary);
}

.rr-contact-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 4px;
}

.rr-contact-compact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: #f8fafc;
    color: #111827;
    border-radius: 999px;
    padding: 9px 12px;
    font-weight: 800;
    font-size: 14px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.rr-contact-compact a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.rr-contact-compact i {
    font-size: 16px;
}

.rr-contact-compact .rr-cc-wa {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.rr-contact-compact .rr-cc-viber {
    background: #ede9fe;
    border-color: #ddd6fe;
    color: #5b21b6;
}

.rr-contact-compact .rr-cc-fb {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.rr-contact-compact .rr-cc-ig {
    background: #fce7f3;
    border-color: #fbcfe8;
    color: #be185d;
}

.rr-public-grid-compact {
    align-items: start;
}

.rr-public-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
}

.rr-public-section-title i {
    color: var(--primary);
}

.rr-public-form-card-pretty {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}

.rr-public-form-card-pretty h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 8px;
}

.rr-public-form-card-pretty h2 i {
    color: var(--primary);
}

.rr-public-form-card-pretty p {
    color: var(--muted);
    margin-bottom: 18px;
}

.rr-public-form-card-pretty .rr-form input,
.rr-public-form-card-pretty .rr-form textarea {
    background: #ffffff;
}

.rr-public-form-card-pretty .rr-form button {
    width: 100%;
}

.rr-current-photo {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    background: #f8fafc;
}

.rr-current-photo img {
    width: 170px;
    height: 105px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.rr-check-inline {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--text);
    font-weight: 700;
}

.rr-check-inline input {
    width: auto;
}

.rr-help {
    color: var(--muted);
    margin-top: -6px;
}

@media (max-width: 1000px) {
    .rr-public-top-card {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .rr-public-top-content h1 {
        font-size: 34px;
    }
}

@media (max-width: 760px) {
    .rr-public-wide-compact {
        padding: 14px 12px 30px;
    }

    .rr-public-top-card {
        grid-template-columns: 1fr;
        border-radius: 20px;
        padding: 14px;
    }

    .rr-public-top-image,
    .rr-public-top-image img,
    .rr-public-photo-placeholder {
        min-height: 210px;
    }

    .rr-public-top-content h1 {
        font-size: 30px;
    }

    .rr-contact-compact a {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .rr-current-photo {
        grid-template-columns: 1fr;
    }

    .rr-current-photo img {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .rr-contact-compact a {
        flex-basis: 100%;
    }
}

/* =========================================================
   DATE PICKER - JAVNA FORMA UPITA
   Dodaj NA KRAJ assets/app.css
   ========================================================= */

.rr-date-picker {
    cursor: pointer;
    background: #ffffff;
}

.flatpickr-calendar {
    border-radius: 18px !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18) !important;
    border: 1px solid var(--border) !important;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

.flatpickr-day {
    border-radius: 10px !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.flatpickr-day.today {
    border-color: var(--primary) !important;
}

.flatpickr-months .flatpickr-month {
    background: #f8fafc !important;
    color: var(--text) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-weight: 800 !important;
}

/* =========================================================
   RBI RENT DASHBOARD V1
   Dodaj NA KRAJ assets/app.css
   ========================================================= */

.rr-dashboard-filter {
    grid-template-columns: 1fr 130px auto;
}

.rr-dashboard-card strong {
    font-size: 25px;
}

.rr-dashboard-list .rr-section-head strong {
    font-size: 26px;
}

.rr-dashboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.rr-dashboard-item:last-child {
    border-bottom: 0;
}

.rr-dashboard-item strong {
    display: block;
    color: var(--text);
}

.rr-dashboard-item span {
    color: var(--muted);
    font-size: 13px;
}

.rr-dashboard-item:hover strong {
    color: var(--primary);
}

.rr-dashboard-item-static:hover strong {
    color: var(--text);
}

.rr-dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, .8fr);
    gap: 20px;
}

.rr-month-bars {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    padding-top: 12px;
}

.rr-month-bar {
    text-align: center;
}

.rr-month-chart {
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px 6px;
    margin-bottom: 8px;
}

.rr-month-col {
    width: 12px;
    min-height: 6px;
    border-radius: 999px 999px 4px 4px;
    display: inline-block;
}

.rr-month-col-rez {
    background: #bfdbfe;
}

.rr-month-col-money {
    background: #bbf7d0;
}

.rr-month-bar strong {
    display: block;
    font-size: 13px;
}

.rr-month-bar small {
    color: var(--muted);
    font-size: 11px;
}

.rr-chart-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
}

.rr-legend-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: -1px;
}

.rr-legend-rez {
    background: #bfdbfe;
}

.rr-legend-money {
    background: #bbf7d0;
}

@media (max-width: 1100px) {
    .rr-dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .rr-month-bars {
        overflow-x: auto;
        grid-template-columns: repeat(12, 70px);
        padding-bottom: 8px;
    }
}

@media (max-width: 900px) {
    .rr-dashboard-filter {
        grid-template-columns: 1fr;
    }

    .rr-dashboard-item {
        align-items: flex-start;
        display: grid;
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   ADMIN / ROLE DASHBOARD V1
   Dodaj NA KRAJ assets/app.css
   ========================================================= */

.rr-admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 20px;
}

.rr-quick-actions {
    display: grid;
    gap: 10px;
}

.rr-quick-actions a {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: #f8fafc;
    border-radius: 14px;
    font-weight: 800;
    color: var(--text);
}

.rr-quick-actions a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.rr-role-info {
    display: grid;
    gap: 10px;
}

.rr-role-info p {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.rr-dashboard-filter {
    grid-template-columns: 1fr 130px auto;
}

.rr-dashboard-card strong {
    font-size: 25px;
}

.rr-dashboard-card small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.rr-dashboard-list .rr-section-head strong {
    font-size: 26px;
}

.rr-dashboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.rr-dashboard-item:last-child {
    border-bottom: 0;
}

.rr-dashboard-item strong {
    display: block;
    color: var(--text);
}

.rr-dashboard-item span {
    color: var(--muted);
    font-size: 13px;
}

.rr-dashboard-item:hover strong {
    color: var(--primary);
}

.rr-dashboard-item-static:hover strong {
    color: var(--text);
}

.rr-dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, .8fr);
    gap: 20px;
}

.rr-month-bars {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    padding-top: 12px;
}

.rr-month-bar {
    text-align: center;
}

.rr-month-chart {
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px 6px;
    margin-bottom: 8px;
}

.rr-month-col {
    width: 12px;
    min-height: 6px;
    border-radius: 999px 999px 4px 4px;
    display: inline-block;
}

.rr-month-col-rez {
    background: #bfdbfe;
}

.rr-month-col-money {
    background: #bbf7d0;
}

.rr-month-bar strong {
    display: block;
    font-size: 13px;
}

.rr-month-bar small {
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 1100px) {
    .rr-admin-dashboard-grid,
    .rr-dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .rr-month-bars {
        overflow-x: auto;
        grid-template-columns: repeat(12, 70px);
        padding-bottom: 8px;
    }
}

@media (max-width: 900px) {
    .rr-dashboard-filter {
        grid-template-columns: 1fr;
    }

    .rr-dashboard-item {
        align-items: flex-start;
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MOJRENT BRANDING
   Dodaj NA KRAJ assets/app.css
   ========================================================= */

.rr-brand {
    letter-spacing: -0.03em;
}

.rr-sidebar-powered {
    margin-top: 24px;
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.58);
    font-size: 12px;
}

.rr-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.rr-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.rr-login-brand h1 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -0.05em;
}

.rr-login-brand p {
    margin: 4px 0 0;
    color: var(--muted);
}

.rr-login-powered {
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* =========================================================
   MOJRENT LOGIN CENTER FIX
   Dodaj NA KRAJ assets/app.css ako želiš i CSS varijantu.
   login.php iz ovog paketa već ima inline fallback.
   ========================================================= */

body.rr-login-page {
    margin: 0 !important;
    min-height: 100vh !important;
    display: grid !important;
    place-items: center !important;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%) !important;
    padding: 24px !important;
    box-sizing: border-box !important;
}

.rr-login-wrap {
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 auto !important;
}

.rr-login-card {
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 24px !important;
    padding: 28px !important;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.14) !important;
    box-sizing: border-box !important;
}

.rr-login-brand {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 24px !important;
}

.rr-brand-mark {
    width: 50px !important;
    height: 50px !important;
    border-radius: 16px !important;
    display: grid !important;
    place-items: center !important;
    background: var(--primary, #16a34a) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
}

.rr-login-card button {
    width: 100% !important;
}

/* MOJRENT ADMIN DASHBOARD FIX V3 - dodaj na kraj app.css */
.rr-admin-dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.8fr);gap:20px}.rr-quick-actions{display:grid;gap:10px}.rr-quick-actions a{display:block;padding:14px 16px;border:1px solid var(--border);background:#f8fafc;border-radius:14px;font-weight:800;color:var(--text)}.rr-role-info{display:grid;gap:10px}.rr-role-info p{margin:0;padding:12px 14px;border-radius:14px;background:#f8fafc;border:1px solid var(--border)}.rr-dashboard-card strong{font-size:25px}.rr-dashboard-card small{display:block;color:var(--muted);margin-top:4px}.rr-dashboard-item{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--border);color:var(--text)}.rr-dashboard-item strong{display:block;color:var(--text)}.rr-dashboard-item span{color:var(--muted);font-size:13px}.rr-sidebar-powered{margin-top:24px;padding:12px 14px;border-top:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.58);font-size:12px}@media(max-width:1100px){.rr-admin-dashboard-grid{grid-template-columns:1fr}}

/* =========================================================
   REZERVACIJE DATEPICKER FIX
   Dodaj NA KRAJ assets/app.css
   ========================================================= */

.rr-date-picker {
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat right 12px center !important;
    padding-right: 42px !important;
}

.flatpickr-calendar {
    border-radius: 18px !important;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .18) !important;
    border: 1px solid #e5e7eb !important;
    overflow: hidden !important;
    font-family: inherit !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--primary, #16a34a) !important;
    border-color: var(--primary, #16a34a) !important;
}

/* =========================================================
   MOJRENT MOBILE MENU + ICON V1
   Dodaj NA KRAJ assets/app.css
   ========================================================= */

.rr-brand-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rr-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.rr-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    flex: 0 0 auto;
}

.rr-brand {
    letter-spacing: -0.04em;
}

.rr-sidebar-close {
    display: none;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.rr-mobile-topbar {
    display: none;
}

.rr-mobile-backdrop {
    display: none;
}

.rr-sidebar-powered {
    margin-top: 24px;
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.58);
    font-size: 12px;
}

/* Mobile / tablet */
@media (max-width: 920px) {
    body {
        padding-top: 68px;
    }

    .rr-mobile-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1200;
        height: 68px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 14px;
        background: rgba(255, 255, 255, .94);
        border-bottom: 1px solid #e5e7eb;
        backdrop-filter: blur(14px);
        box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
        box-sizing: border-box;
    }

    .rr-mobile-menu-btn {
        width: 44px;
        height: 44px;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: #ffffff;
        display: grid;
        place-items: center;
        gap: 0;
        padding: 10px;
        cursor: pointer;
        flex: 0 0 auto;
    }

    .rr-mobile-menu-btn span {
        display: block;
        width: 20px;
        height: 2px;
        background: #111827;
        border-radius: 999px;
        margin: 2px 0;
        transition: transform .2s ease, opacity .2s ease;
    }

    body.rr-sidebar-open .rr-mobile-menu-btn span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    body.rr-sidebar-open .rr-mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    body.rr-sidebar-open .rr-mobile-menu-btn span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .rr-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        color: #111827;
        text-decoration: none;
    }

    .rr-mobile-brand img {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .rr-mobile-brand strong {
        font-size: 20px;
        letter-spacing: -0.04em;
    }

    .rr-layout {
        display: block !important;
        min-height: auto !important;
    }

    .rr-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1300 !important;
        width: 292px !important;
        max-width: 86vw !important;
        height: 100vh !important;
        overflow-y: auto !important;
        transform: translateX(-105%) !important;
        transition: transform .22s ease !important;
        box-shadow: 24px 0 70px rgba(15, 23, 42, .24) !important;
    }

    body.rr-sidebar-open .rr-sidebar {
        transform: translateX(0) !important;
    }

    .rr-sidebar-close {
        display: grid;
        place-items: center;
    }

    .rr-mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1250;
        background: rgba(15, 23, 42, .46);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
        display: block;
    }

    body.rr-sidebar-open .rr-mobile-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .rr-main {
        width: 100% !important;
        margin: 0 !important;
        padding: 18px 14px 28px !important;
        box-sizing: border-box;
    }

    body.rr-sidebar-open {
        overflow: hidden;
    }
}

/* =========================================================
   MOJRENT MOBILE X + LOGIN LOGO FIX V1
   Dodaj NA KRAJ assets/app.css
   ========================================================= */

/* X dugme u mobilnom sidebaru - centriranje */
.rr-sidebar-close {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    min-height: 62px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, .12) !important;
    color: #ffffff !important;
    font-size: 44px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    place-items: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* Na desktopu ga drži skrivenim */
@media (min-width: 921px) {
    .rr-sidebar-close {
        display: none !important;
    }
}

/* Na mobitelu ga prikaži kao flex, da X bude tačno u sredini */
@media (max-width: 920px) {
    .rr-sidebar-close {
        display: flex !important;
        transform: translateY(0) !important;
    }

    .rr-brand-wrap {
        align-items: center !important;
    }
}

/* Login logo ako CSS iz login.php ne bude dovoljan */
.rr-login-logo {
    width: 56px !important;
    height: 56px !important;
    border-radius: 18px !important;
    flex: 0 0 auto !important;
    display: block !important;
    box-shadow: 0 12px 28px rgba(22, 163, 74, .22) !important;
}

/* =========================================================
   MOJRENT MOBILE RESPONSIVE FIX V1
   Dodaj NA KRAJ assets/app.css
   Cilj: da sadržaj na mobitelu ne širi stranicu udesno.
   ========================================================= */

/* Globalna zaštita od horizontalnog izlaska */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

/* Glavni layout */
.rr-layout,
.rr-main,
.rr-panel,
.rr-card,
.rr-table-wrap,
.rr-form,
.rr-two-col,
.rr-grid,
.rr-dashboard-main-grid,
.rr-admin-dashboard-grid {
    min-width: 0;
    max-width: 100%;
}

/* Forme i filteri */
.rr-form input,
.rr-form select,
.rr-form textarea,
.rr-filter input,
.rr-filter select,
.rr-filter button,
.rr-form button {
    max-width: 100%;
    min-width: 0;
}

/* Tabele neka nikad ne šire cijelu stranicu */
.rr-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rr-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

.rr-table td,
.rr-table th {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Mobilni prikaz */
@media (max-width: 920px) {
    body {
        overflow-x: hidden !important;
    }

    .rr-main {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        overflow-x: hidden !important;
    }

    .rr-page-head {
        display: block !important;
    }

    .rr-page-head h1 {
        font-size: 28px !important;
        line-height: 1.1 !important;
        overflow-wrap: anywhere;
    }

    .rr-page-head p {
        overflow-wrap: anywhere;
    }

    .rr-two-col,
    .rr-grid,
    .rr-grid-2,
    .rr-grid-3,
    .rr-grid-4,
    .rr-dashboard-main-grid,
    .rr-admin-dashboard-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .rr-panel,
    .rr-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 16px !important;
        overflow-x: hidden !important;
    }

    .rr-form-row,
    .rr-filter,
    .rr-dashboard-filter,
    .rr-filter-calendar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .rr-form input,
    .rr-form select,
    .rr-form textarea,
    .rr-filter input,
    .rr-filter select,
    .rr-filter button,
    .rr-form button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .rr-form-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .rr-section-head {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: start !important;
    }

    .rr-section-head a,
    .rr-section-head button {
        width: 100%;
        text-align: center;
    }

    .rr-dashboard-item {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: start !important;
    }

    .rr-dashboard-item > * {
        min-width: 0;
    }

    /* Tabele na mobitelu kao kartice, bez skrolanja desno */
    .rr-table-wrap {
        overflow-x: visible !important;
    }

    .rr-table,
    .rr-table thead,
    .rr-table tbody,
    .rr-table tr,
    .rr-table th,
    .rr-table td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .rr-table thead {
        display: none !important;
    }

    .rr-table tr {
        background: #ffffff;
        border: 1px solid var(--border, #e5e7eb);
        border-radius: 16px;
        padding: 12px;
        margin-bottom: 12px;
        box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
        overflow: hidden;
    }

    .rr-table td {
        border: 0 !important;
        padding: 8px 0 !important;
        text-align: left !important;
        overflow-wrap: anywhere;
    }

    .rr-table td + td {
        border-top: 1px solid #f1f5f9 !important;
    }

    .rr-text-right {
        text-align: left !important;
    }

    .rr-table td a,
    .rr-table td small,
    .rr-table td strong,
    .rr-table td span {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    /* Kalendar u adminu */
    .rr-admin-calendar {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .rr-admin-cal-head,
    .rr-admin-cal-day {
        min-width: 0 !important;
        padding: 6px !important;
        font-size: 12px !important;
    }

    .rr-admin-cal-event {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Javna stranica i kalendari */
    .rr-public-wide,
    .rr-public-grid,
    .rr-public-top-card,
    .rr-cal-wrap {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .rr-public-grid,
    .rr-public-top-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .rr-cal-wrap {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    .rr-cal,
    .rr-cal-grid {
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* Uži telefoni */
@media (max-width: 520px) {
    .rr-main {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .rr-panel,
    .rr-card {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    .rr-page-head h1 {
        font-size: 25px !important;
    }

    .rr-badge {
        white-space: normal !important;
        display: inline-flex !important;
        max-width: 100% !important;
    }

    .rr-admin-cal-head {
        font-size: 10px !important;
    }

    .rr-admin-cal-day {
        min-height: 74px !important;
    }
}

/* =========================================================
   MOJRENT ADMIN MOBILE FIX - OBJEKTI + KORISNICI V1
   Dodaj NA KRAJ assets/app.css
   Ovo ide nakon svih prethodnih mobile/responsive CSS pravila.
   ========================================================= */

/* Najjača zaštita od horizontalnog skrolanja */
@media (max-width: 920px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .rr-layout,
    .rr-main {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .rr-main {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Admin stranice Objekti/Korisnici imaju formu + veliku tabelu */
    .rr-two-col {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .rr-two-col > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 14px !important;
    }

    .rr-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
        padding: 14px !important;
    }

    .rr-form,
    .rr-form-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 10px !important;
    }

    .rr-form label,
    .rr-form input,
    .rr-form select,
    .rr-form textarea,
    .rr-form button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Tabele na admin Objekti/Korisnici pretvori u kartice */
    .rr-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .rr-table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .rr-table thead {
        display: none !important;
    }

    .rr-table tbody,
    .rr-table tr,
    .rr-table td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .rr-table tr {
        margin: 0 0 12px 0 !important;
        padding: 12px !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .06) !important;
        overflow: hidden !important;
    }

    .rr-table td {
        border: 0 !important;
        padding: 8px 0 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .rr-table td + td {
        border-top: 1px solid #f1f5f9 !important;
    }

    .rr-table td strong,
    .rr-table td small,
    .rr-table td span,
    .rr-table td a {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        white-space: normal !important;
    }

    .rr-table td form {
        width: 100% !important;
        max-width: 100% !important;
    }

    .rr-table td button,
    .rr-btn-small {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 6px !important;
        text-align: center !important;
    }

    .rr-table td a {
        display: inline-block !important;
        max-width: 100% !important;
    }

    .rr-badge {
        white-space: normal !important;
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }

    /* Dugi javni linkovi / emailovi / URL-ovi ne smiju širiti karticu */
    a[href^="/o/"],
    a[href*="mailto:"],
    a[href*="http"] {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    /* Page header na admin stranama */
    .rr-page-head,
    .rr-section-head {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .rr-page-head h1,
    .rr-section-head h2 {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }
}

/* Ekstra uski telefoni */
@media (max-width: 420px) {
    .rr-main {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .rr-panel {
        padding: 12px !important;
        border-radius: 14px !important;
    }

    .rr-table tr {
        padding: 10px !important;
        border-radius: 14px !important;
    }
}

/* =========================================================
   MOJRENT ADMIN OBJEKTI + NAPLATA + UPLATE PERIODI V2
   Dodaj NA KRAJ assets/app.css
   ========================================================= */

.rr-link-button {
    border: 0 !important;
    background: transparent !important;
    color: var(--primary, #16a34a) !important;
    padding: 0 !important;
    margin-left: 10px !important;
    font: inherit !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    text-decoration: underline !important;
}

.rr-danger-link {
    color: #dc2626 !important;
}

.rr-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #111827;
    text-decoration: none;
    font-weight: 800;
}

.rr-inline-payment-form {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(130px, 1fr) minmax(110px, 1fr) minmax(120px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.rr-inline-payment-form input,
.rr-inline-payment-form select {
    width: 100%;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 9px 10px;
}

.rr-inline-payment-form button {
    white-space: nowrap;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--primary, #16a34a);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 920px) {
    .rr-inline-payment-form {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
    }

    .rr-inline-payment-form input,
    .rr-inline-payment-form select,
    .rr-inline-payment-form button {
        width: 100% !important;
        max-width: 100% !important;
    }

    .rr-link-button {
        display: inline-block !important;
        margin-left: 0 !important;
        margin-top: 8px !important;
    }
}

/* MOJRENT EMAIL UPITI V1 - dodaj na kraj assets/app.css */
.rr-email-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800}.rr-email-status-ok{color:#15803d}.rr-email-status-error{color:#b91c1c}

/* =========================================================
   MOJRENT INTER DESIGN SYSTEM V1
   Dodaj NA KRAJ assets/app.css
   Font se učitava iz header.php preko Google Fonts linka.
   ========================================================= */

:root {
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-soft: #dcfce7;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f8fafc;
    --card: #ffffff;
}

html,
body,
button,
input,
select,
textarea {
    font-family: var(--font-main) !important;
}

body {
    color: var(--text);
    background: var(--bg);
    letter-spacing: -0.01em;
}

.rr-brand,
.rr-mobile-brand strong,
h1,
h2,
h3 {
    letter-spacing: -0.04em;
}

.rr-panel,
.rr-card {
    border: 1px solid var(--border);
    border-radius: 22px;
}

button,
.rr-btn,
.rr-btn-secondary,
input,
select,
textarea {
    font-family: var(--font-main) !important;
}

.rr-table th {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.rr-table td {
    letter-spacing: -0.01em;
}


/* MojRent stabilizacija v1 */
.rr-action-stack details summary {
    cursor: pointer;
    font-weight: 800;
}
.rr-table details pre {
    font-size: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
}


/* =========================================================
   MOJRENT DASHBOARD + UPITI V2
   ========================================================= */

.rr-page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.rr-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rr-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rr-dashboard-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rr-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.rr-section-head h2 {
    margin-bottom: 4px;
}

.rr-section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.rr-btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.rr-btn-light:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.rr-dashboard-card small {
    display: block;
    color: var(--muted);
    margin-top: 6px;
    font-size: 13px;
}

.rr-dashboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.rr-dashboard-item:last-child {
    border-bottom: 0;
}

.rr-dashboard-item strong {
    display: block;
    margin-bottom: 4px;
}

.rr-dashboard-item span {
    color: var(--muted);
    font-size: 13px;
}

.rr-dashboard-item-static {
    color: var(--text);
}

.rr-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px !important;
    font-weight: 900;
    white-space: nowrap;
}

.rr-badge-gray {
    background: #f1f5f9;
    color: #475569;
}

.rr-badge-green {
    background: #dcfce7;
    color: #166534 !important;
}

.rr-badge-blue {
    background: #dbeafe;
    color: #1d4ed8 !important;
}

.rr-badge-yellow {
    background: #fef3c7;
    color: #92400e !important;
}

.rr-badge-red {
    background: #fee2e2;
    color: #991b1b !important;
}

.rr-source-list {
    display: grid;
    gap: 14px;
}

.rr-source-row {
    display: grid;
    gap: 8px;
}

.rr-source-row > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.rr-source-row strong {
    font-weight: 900;
}

.rr-source-row span {
    color: var(--muted);
    font-size: 13px;
}

.rr-source-bar {
    height: 9px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.rr-source-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--success);
}

.rr-health-list {
    display: grid;
    gap: 12px;
}

.rr-health-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.rr-health-list > div:last-child {
    border-bottom: 0;
}

.rr-health-list span {
    color: var(--muted);
}

.rr-text-danger {
    color: #991b1b;
}

.rr-text-success {
    color: #166534;
}

.rr-text-warning {
    color: #92400e;
}

.rr-source-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    font-weight: 900;
    font-size: 12px;
    margin-bottom: 5px;
}

.rr-table-upiti td {
    min-width: 120px;
}

.rr-action-stack {
    display: grid;
    gap: 8px;
}

.rr-btn-small {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 10px;
}

.rr-filter-upiti {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
}

.rr-filter-upiti > * {
    width: auto;
    min-width: 170px;
}

.rr-filter-upiti button,
.rr-filter-upiti .rr-btn-light {
    min-width: 110px;
}

@media (max-width: 1100px) {
    .rr-grid-4,
    .rr-grid-5,
    .rr-dashboard-main-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .rr-page-head,
    .rr-section-head {
        flex-direction: column;
    }

    .rr-page-actions {
        width: 100%;
    }

    .rr-page-actions .rr-btn-light {
        width: 100%;
    }

    .rr-grid-4,
    .rr-grid-5,
    .rr-dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .rr-filter-upiti {
        display: grid;
        grid-template-columns: 1fr;
    }

    .rr-filter-upiti > *,
    .rr-filter-upiti button,
    .rr-filter-upiti .rr-btn-light {
        width: 100%;
        min-width: 0;
    }

    .rr-table-upiti,
    .rr-table-upiti thead,
    .rr-table-upiti tbody,
    .rr-table-upiti th,
    .rr-table-upiti td,
    .rr-table-upiti tr {
        display: block;
    }

    .rr-table-upiti thead {
        display: none;
    }

    .rr-table-upiti tr {
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 12px;
        margin-bottom: 12px;
        background: #fff;
    }

    .rr-table-upiti td {
        border-bottom: 0;
        padding: 8px 0;
        min-width: 0;
    }

    .rr-table-upiti td::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
        margin-bottom: 4px;
    }
}


/* =========================================================
   MOJRENT ICAL V3
   ========================================================= */

.rr-ical-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rr-form-grid .rr-field-wide {
    grid-column: 1 / -1;
}

.rr-field-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rr-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 750;
}

.rr-check input[type="checkbox"] {
    width: auto;
    min-width: 18px;
    height: 18px;
}

.rr-url-cell {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

.rr-details {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    background: #fff;
}

.rr-details summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--primary);
}

.rr-mini-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    min-width: 240px;
}

.rr-mini-form label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 900;
}

.rr-btn-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

.rr-table-ical td {
    min-width: 130px;
}

@media (max-width: 900px) {
    .rr-ical-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .rr-table-ical,
    .rr-table-ical thead,
    .rr-table-ical tbody,
    .rr-table-ical th,
    .rr-table-ical td,
    .rr-table-ical tr {
        display: block;
    }

    .rr-table-ical thead {
        display: none;
    }

    .rr-table-ical tr {
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 12px;
        margin-bottom: 12px;
        background: #fff;
    }

    .rr-table-ical td {
        border-bottom: 0;
        padding: 8px 0;
        min-width: 0;
    }

    .rr-table-ical td::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
        margin-bottom: 4px;
    }

    .rr-url-cell {
        max-width: 100%;
        white-space: normal;
        word-break: break-all;
    }
}


/* =========================================================
   MOJRENT UPITI CRM V4
   ========================================================= */

.rr-badge-purple {
    background: #f3e8ff;
    color: #7e22ce !important;
}

.rr-badge-orange {
    background: #ffedd5;
    color: #c2410c !important;
}

.rr-crm-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr);
    align-items: start;
}

.rr-crm-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.rr-crm-info-grid > div {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    background: #f8fafc;
}

.rr-crm-info-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 5px;
}

.rr-crm-info-grid strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}

.rr-crm-message {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.rr-crm-message span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 6px;
}

.rr-crm-message p {
    margin: 0;
    white-space: pre-wrap;
}

.rr-crm-email-status {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.rr-crm-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.rr-crm-note-form,
.rr-crm-side-form {
    display: grid;
    gap: 10px;
}

.rr-crm-note-form label,
.rr-crm-side-form label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.rr-timeline {
    display: grid;
    gap: 14px;
}

.rr-timeline-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.rr-timeline-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rr-timeline-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
}

.rr-timeline-item strong {
    display: block;
    margin-bottom: 3px;
}

.rr-timeline-item span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 7px;
}

.rr-timeline-item p {
    margin: 7px 0 0;
    color: var(--text);
}

@media (max-width: 1050px) {
    .rr-crm-layout {
        grid-template-columns: 1fr;
    }

    .rr-crm-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .rr-crm-info-grid {
        grid-template-columns: 1fr;
    }

    .rr-crm-contact-actions .rr-btn-light {
        width: 100%;
    }

    .rr-timeline-item {
        grid-template-columns: 34px 1fr;
    }

    .rr-timeline-icon {
        width: 34px;
        height: 34px;
    }
}


/* =========================================================
   MOJRENT LOGO + ZADACI V5
   ========================================================= */

.rr-brand-logo {
    width: 154px;
    max-height: 48px;
    height: auto;
    object-fit: contain;
    display: block;
}

.rr-mobile-logo {
    width: 130px;
    max-height: 42px;
    height: auto;
    object-fit: contain;
    display: block;
}

.rr-brand-link {
    min-height: 52px;
}

.rr-date-bs {
    letter-spacing: .02em;
}

.rr-zadaci-layout {
    grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
    align-items: start;
}

.rr-task-list {
    display: grid;
    gap: 14px;
}

.rr-task-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15,23,42,.05);
}

.rr-task-na_cekanju {
    border-left: 5px solid #f59e0b;
}

.rr-task-u_toku {
    border-left: 5px solid #2563eb;
}

.rr-task-zavrseno {
    border-left: 5px solid #16a34a;
}

.rr-task-otkazano {
    border-left: 5px solid #dc2626;
}

.rr-task-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.rr-task-head h3 {
    margin: 4px 0 4px;
    font-size: 18px;
    letter-spacing: -.04em;
}

.rr-task-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.rr-task-type {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.rr-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.rr-task-meta span {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 9px;
    color: var(--muted);
    font-size: 13px;
}

.rr-task-note {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    white-space: pre-wrap;
}

.rr-task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

@media (max-width: 1000px) {
    .rr-zadaci-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .rr-brand-logo {
        width: 138px;
    }

    .rr-mobile-logo {
        width: 118px;
    }

    .rr-task-head {
        flex-direction: column;
    }

    .rr-task-actions form,
    .rr-task-actions button {
        width: 100%;
    }

    .rr-task-meta {
        display: grid;
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOJRENT MODULI + REZERVACIJE V6
   ========================================================= */

.rr-single-object-box,
.rr-single-filter-label {
    border: 1px solid var(--border);
    background: #f8fafc;
    border-radius: 16px;
    padding: 13px 15px;
    color: var(--text);
}

.rr-single-object-box strong {
    display: block;
    font-size: 16px;
    margin-bottom: 3px;
}

.rr-single-object-box span,
.rr-single-object-box small {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.rr-single-filter-label {
    min-height: 42px;
    display: flex;
    align-items: center;
    font-weight: 900;
}

.rr-modules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rr-module-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: .18s ease;
}

.rr-module-card:hover {
    border-color: var(--success);
    box-shadow: 0 14px 35px rgba(15,23,42,.08);
}

.rr-module-card.is-active {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.rr-module-card.is-core {
    background: #f8fafc;
    cursor: not-allowed;
}

.rr-module-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.rr-module-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.rr-module-card input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 2px;
}

.rr-mt {
    margin-top: 18px;
}

@media (max-width: 800px) {
    .rr-modules-grid {
        grid-template-columns: 1fr;
    }

    .rr-module-card {
        padding: 14px;
    }
}


/* =========================================================
   MOJRENT LOGO KONTRAST + NAPLATA V7
   ========================================================= */

.rr-sidebar .rr-brand-link,
.rr-topbar .rr-mobile-brand {
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    padding: 10px 12px;
    min-height: 62px;
    box-shadow: 0 16px 40px rgba(0,0,0,.20);
}

.rr-sidebar .rr-brand-logo {
    width: 178px;
    max-height: 56px;
    object-fit: contain;
}

.rr-topbar .rr-mobile-logo {
    width: 150px;
    max-height: 50px;
    object-fit: contain;
}

.rr-sidebar {
    background: #0b172a;
}

.rr-naplata-table,
.rr-uplate-table {
    table-layout: auto;
    min-width: 1080px;
}

.rr-naplata-table th,
.rr-naplata-table td,
.rr-uplate-table th,
.rr-uplate-table td {
    padding: 14px 12px;
    vertical-align: top;
    line-height: 1.35;
}

.rr-naplata-table th,
.rr-uplate-table th {
    white-space: nowrap;
    font-size: 13px;
}

.rr-naplata-table td,
.rr-uplate-table td {
    font-size: 14px;
}

.rr-naplata-table input,
.rr-uplate-table input,
.rr-naplata-table select,
.rr-uplate-table select {
    min-height: 44px;
}

.rr-naplata-table .rr-pay-date,
.rr-uplate-table .rr-pay-date {
    width: 135px;
    min-width: 135px;
}

.rr-naplata-table td:nth-child(1),
.rr-naplata-table td:nth-child(2),
.rr-naplata-table td:nth-child(3) {
    min-width: 90px;
}

.rr-naplata-table td:nth-child(4),
.rr-naplata-table td:nth-child(5),
.rr-naplata-table td:nth-child(6) {
    min-width: 96px;
    white-space: nowrap;
}

.rr-naplata-table td:last-child {
    min-width: 680px;
}

.rr-naplata-table td:last-child form,
.rr-uplate-table td:last-child form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.rr-naplata-table td:last-child input[name="iznos"] {
    width: 120px;
    min-width: 120px;
}

.rr-naplata-table td:last-child input[name="nacin"] {
    width: 150px;
    min-width: 150px;
}

.rr-naplata-table td:last-child input[name="napomena"] {
    width: 180px;
    min-width: 180px;
}

.rr-naplata-table td:last-child button {
    min-width: 118px;
}

@media (max-width: 900px) {
    .rr-sidebar .rr-brand-link,
    .rr-topbar .rr-mobile-brand {
        min-height: 54px;
        padding: 8px 10px;
    }

    .rr-sidebar .rr-brand-logo {
        width: 150px;
    }

    .rr-topbar .rr-mobile-logo {
        width: 132px;
    }

    .rr-naplata-table,
    .rr-uplate-table {
        min-width: 0;
    }

    .rr-naplata-table,
    .rr-naplata-table thead,
    .rr-naplata-table tbody,
    .rr-naplata-table th,
    .rr-naplata-table td,
    .rr-naplata-table tr,
    .rr-uplate-table,
    .rr-uplate-table thead,
    .rr-uplate-table tbody,
    .rr-uplate-table th,
    .rr-uplate-table td,
    .rr-uplate-table tr {
        display: block;
    }

    .rr-naplata-table thead,
    .rr-uplate-table thead {
        display: none;
    }

    .rr-naplata-table tr,
    .rr-uplate-table tr {
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 14px;
        margin-bottom: 14px;
        background: #fff;
    }

    .rr-naplata-table td,
    .rr-uplate-table td {
        border-bottom: 0;
        padding: 8px 0;
        min-width: 0 !important;
        white-space: normal !important;
    }

    .rr-naplata-table td::before,
    .rr-uplate-table td::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
        margin-bottom: 4px;
    }

    .rr-naplata-table td:last-child,
    .rr-uplate-table td:last-child {
        min-width: 0;
    }

    .rr-naplata-table td:last-child form,
    .rr-uplate-table td:last-child form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .rr-naplata-table td:last-child input,
    .rr-naplata-table td:last-child button,
    .rr-uplate-table td:last-child input,
    .rr-uplate-table td:last-child button {
        width: 100% !important;
        min-width: 0 !important;
    }
}


/* =========================================================
   MOJRENT V8 - DATUMI, SOURCE LABELS, LOGO I NAPLATA
   ========================================================= */

.rr-sidebar {
    background: #07152a !important;
}

.rr-sidebar .rr-brand-wrap {
    display: block;
    margin-bottom: 22px;
}

.rr-sidebar .rr-brand-link {
    background: #ffffff !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    border-radius: 24px !important;
    padding: 16px 14px !important;
    min-height: 118px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.24) !important;
}

.rr-sidebar .rr-brand-logo {
    width: 224px !important;
    max-width: 100% !important;
    max-height: 104px !important;
    height: auto !important;
    object-fit: contain !important;
}

.rr-sidebar .rr-user {
    margin-top: 18px !important;
    margin-bottom: 30px !important;
    padding: 14px 14px !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.07) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    color: #ffffff !important;
    line-height: 1.35 !important;
}

.rr-sidebar .rr-user small {
    display: block;
    margin-top: 4px;
    color: #b6c5d8 !important;
}

/* Mobile: umjesto malog loga prikazuj ime i ulogu korisnika */
@media (max-width: 920px) {
    body {
        padding-top: 74px !important;
    }

    .rr-mobile-topbar {
        height: 74px !important;
        background: #07152a !important;
        border-bottom: 1px solid rgba(255,255,255,.10) !important;
        box-shadow: 0 14px 35px rgba(2,6,23,.22) !important;
        justify-content: space-between !important;
    }

    .rr-mobile-userbar {
        display: grid !important;
        gap: 2px !important;
        color: #ffffff !important;
        text-decoration: none !important;
        min-width: 0 !important;
    }

    .rr-mobile-userbar strong {
        color: #ffffff !important;
        font-size: 15px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: calc(100vw - 86px) !important;
    }

    .rr-mobile-userbar span {
        color: #b6c5d8 !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        text-transform: capitalize !important;
    }

    .rr-mobile-menu-btn {
        margin-left: auto !important;
        border-color: rgba(255,255,255,.20) !important;
        background: rgba(255,255,255,.08) !important;
    }

    .rr-mobile-menu-btn span {
        background: #ffffff !important;
    }

    .rr-sidebar .rr-brand-link {
        min-height: 108px !important;
    }

    .rr-sidebar .rr-brand-logo {
        width: 206px !important;
        max-height: 96px !important;
    }
}

/* Naplata: manje zbijeno i bez lomljenja riječi po slovima */
.rr-naplata-table,
.rr-uplate-table {
    table-layout: auto !important;
    min-width: 1240px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.rr-naplata-table th,
.rr-naplata-table td,
.rr-uplate-table th,
.rr-uplate-table td {
    padding: 16px 14px !important;
    line-height: 1.45 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    vertical-align: top !important;
}

.rr-naplata-table th,
.rr-uplate-table th {
    white-space: nowrap !important;
    font-size: 13px !important;
}

.rr-naplata-table td:nth-child(1),
.rr-naplata-table td:nth-child(2),
.rr-naplata-table td:nth-child(3),
.rr-naplata-table td:nth-child(4),
.rr-naplata-table td:nth-child(5),
.rr-naplata-table td:nth-child(6),
.rr-naplata-table td:nth-child(7) {
    white-space: nowrap !important;
}

.rr-naplata-table td:nth-child(2) {
    min-width: 150px !important;
}

.rr-naplata-table td:nth-child(8) {
    min-width: 700px !important;
}

.rr-inline-payment-form {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.rr-inline-payment-form input[name="iznos_uplate"] {
    width: 120px !important;
    min-width: 120px !important;
}

.rr-inline-payment-form input[name="datum_uplate"] {
    width: 145px !important;
    min-width: 145px !important;
}

.rr-inline-payment-form input[name="nacin_uplate"] {
    width: 150px !important;
    min-width: 150px !important;
}

.rr-inline-payment-form input[name="napomena_uplate"] {
    width: 190px !important;
    min-width: 190px !important;
}

.rr-inline-payment-form button {
    min-width: 125px !important;
}

@media (max-width: 900px) {
    .rr-naplata-table,
    .rr-uplate-table {
        min-width: 0 !important;
    }

    .rr-inline-payment-form {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .rr-inline-payment-form input,
    .rr-inline-payment-form button {
        width: 100% !important;
        min-width: 0 !important;
    }
}


/* =========================================================
   MOJRENT V9 - MOBILE MENU FIX
   ========================================================= */

/* Desktop logo stays visible, but not oversized */
.rr-sidebar .rr-brand-wrap {
    margin-bottom: 16px !important;
}

.rr-sidebar .rr-brand-link {
    min-height: 92px !important;
    padding: 12px 14px !important;
    border-radius: 20px !important;
}

.rr-sidebar .rr-brand-logo {
    width: 180px !important;
    max-height: 78px !important;
}

/* User card below logo: smaller and cleaner */
.rr-sidebar .rr-user {
    margin-top: 14px !important;
    margin-bottom: 24px !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
}

.rr-sidebar .rr-user strong,
.rr-sidebar .rr-user b {
    font-size: 15px !important;
    line-height: 1.25 !important;
}

.rr-sidebar .rr-user small,
.rr-sidebar .rr-user span {
    font-size: 12px !important;
    line-height: 1.25 !important;
}

/* Mobile menu: compact logo + remove duplicate X */
@media (max-width: 920px) {
    body {
        padding-top: 64px !important;
    }

    .rr-mobile-topbar {
        height: 64px !important;
        padding: 10px 14px !important;
        background: #07152a !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        z-index: 1002 !important;
    }

    .rr-mobile-userbar {
        display: grid !important;
        gap: 2px !important;
        min-width: 0 !important;
        text-decoration: none !important;
    }

    .rr-mobile-userbar strong {
        max-width: calc(100vw - 90px) !important;
        color: #fff !important;
        font-size: 14px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .rr-mobile-userbar span {
        color: #b6c5d8 !important;
        font-size: 11px !important;
        line-height: 1.1 !important;
        font-weight: 800 !important;
        text-transform: capitalize !important;
    }

    .rr-mobile-menu-btn {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        margin-left: 12px !important;
        border-radius: 14px !important;
        z-index: 1004 !important;
        background: rgba(255,255,255,.08) !important;
        border: 1px solid rgba(255,255,255,.16) !important;
    }

    .rr-mobile-menu-btn span {
        width: 20px !important;
        height: 2px !important;
        background: #fff !important;
    }

    /* Kad je meni otvoren, prikazuje se samo gornje-desno X dugme */
    body.rr-menu-open .rr-mobile-menu-btn,
    .rr-sidebar.is-open ~ .rr-mobile-menu-btn {
        display: flex !important;
    }

    .rr-sidebar {
        width: min(82vw, 330px) !important;
        padding: 26px 20px 26px !important;
        overflow-y: auto !important;
    }

    .rr-sidebar .rr-brand-link {
        min-height: 76px !important;
        padding: 10px 12px !important;
        border-radius: 18px !important;
        margin-bottom: 0 !important;
    }

    .rr-sidebar .rr-brand-logo {
        width: 150px !important;
        max-height: 62px !important;
    }

    .rr-sidebar .rr-user {
        margin-top: 14px !important;
        margin-bottom: 22px !important;
        padding: 12px 13px !important;
        border-radius: 16px !important;
    }

    .rr-sidebar nav,
    .rr-sidebar .rr-nav {
        margin-top: 0 !important;
    }

    .rr-sidebar nav a,
    .rr-sidebar .rr-nav a {
        font-size: 17px !important;
        line-height: 1.2 !important;
        padding: 12px 14px !important;
        margin-bottom: 4px !important;
        border-radius: 14px !important;
    }

    /*
      U starim verzijama CSS-a se hamburger dugme prikazivalo i kao veliki X u samom sidebaru.
      Ovo skriva taj duplikat ako browser zbog starog layouta smjesti button unutar/uz sidebar.
    */
    .rr-sidebar .rr-mobile-menu-btn,
    .rr-sidebar button[aria-label="Otvori meni"],
    .rr-sidebar button[aria-label="Zatvori meni"] {
        display: none !important;
    }
}

/* Extra narrow phones */
@media (max-width: 420px) {
    .rr-sidebar {
        width: 78vw !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .rr-sidebar .rr-brand-logo {
        width: 138px !important;
        max-height: 58px !important;
    }

    .rr-sidebar .rr-brand-link {
        min-height: 70px !important;
    }

    .rr-sidebar nav a,
    .rr-sidebar .rr-nav a {
        font-size: 16px !important;
        padding-top: 11px !important;
        padding-bottom: 11px !important;
    }
}


/* =========================================================
   MOJRENT V10 - BRAND BOJE
   Katalog paleta:
   #18B6AE teal
   #139B95 teal dark
   #13253E navy
   ========================================================= */

:root {
    --primary: #18B6AE !important;
    --primary-dark: #139B95 !important;
    --success: #18B6AE !important;
    --success-dark: #139B95 !important;
    --accent: #18B6AE !important;
    --navy: #13253E !important;
    --dark: #13253E !important;
    --sidebar: #13253E !important;
    --text: #13253E !important;
    --muted: #64748b !important;
    --border: #e2e8f0 !important;
    --bg: #f6f8fb !important;
}

body {
    color: #13253E !important;
    background: #f6f8fb !important;
}

a {
    color: #139B95;
}

a:hover {
    color: #18B6AE;
}

button,
.rr-btn,
button[type="submit"],
input[type="submit"] {
    background: #18B6AE !important;
    border-color: #18B6AE !important;
}

button:hover,
.rr-btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: #139B95 !important;
    border-color: #139B95 !important;
}

.rr-btn-light {
    color: #13253E !important;
    border-color: #dbe5ea !important;
    background: #ffffff !important;
}

.rr-btn-light:hover {
    color: #139B95 !important;
    border-color: #18B6AE !important;
    background: #f0fdfa !important;
}

.rr-sidebar,
.rr-mobile-topbar {
    background: #13253E !important;
}

.rr-sidebar nav a:hover,
.rr-sidebar nav a.active,
.rr-sidebar .rr-nav a:hover,
.rr-sidebar .rr-nav a.active {
    background: rgba(24, 182, 174, .14) !important;
    color: #ffffff !important;
}

.rr-sidebar nav a::before,
.rr-sidebar .rr-nav a::before {
    background: #18B6AE !important;
}

.rr-sidebar .rr-user {
    background: rgba(24, 182, 174, .09) !important;
    border-color: rgba(24, 182, 174, .22) !important;
}

.rr-card,
.rr-panel {
    border-color: #e2e8f0 !important;
}

.rr-eyebrow {
    color: #139B95 !important;
}

.rr-dashboard-card strong,
.rr-page-head h1,
.rr-panel h2,
h1, h2, h3 {
    color: #13253E !important;
}

.rr-badge-green,
.rr-source-chip {
    background: rgba(24, 182, 174, .12) !important;
    color: #139B95 !important;
}

.rr-source-bar i,
.rr-progress i {
    background: #18B6AE !important;
}

.rr-alert-success {
    background: #e6fffb !important;
    border-color: rgba(24, 182, 174, .25) !important;
    color: #0f766e !important;
}

.rr-module-card.is-active {
    background: #e6fffb !important;
    border-color: rgba(24, 182, 174, .35) !important;
}

.rr-timeline-icon {
    background: #e6fffb !important;
    color: #139B95 !important;
}

.rr-task-zavrseno {
    border-left-color: #18B6AE !important;
}

.rr-mobile-menu-btn {
    background: rgba(24, 182, 174, .13) !important;
    border-color: rgba(24, 182, 174, .28) !important;
}

.rr-mobile-userbar span,
.rr-sidebar .rr-user small {
    color: #bdecea !important;
}

/* Forms */
input:focus,
select:focus,
textarea:focus {
    border-color: #18B6AE !important;
    box-shadow: 0 0 0 4px rgba(24, 182, 174, .12) !important;
    outline: none !important;
}

/* Login */
.rr-login-page {
    background:
        radial-gradient(circle at top left, rgba(24,182,174,.20), transparent 35%),
        linear-gradient(135deg, #13253E 0%, #0e1d33 50%, #139B95 130%) !important;
}

.rr-login-card button {
    background: linear-gradient(135deg, #18B6AE, #139B95) !important;
}

/* Public/app table accents */
.rr-table th {
    color: #13253E !important;
}

.rr-table a {
    color: #139B95 !important;
}


/* =========================================================
   MOJRENT V12 - PAKETI I PUBLIC COLOR FIX
   ========================================================= */

.rr-packages-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.rr-package-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(24,182,174,.08), transparent 48%),
        #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 188px;
}

.rr-package-card span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(24,182,174,.12);
    color: #139B95;
    font-weight: 900;
    font-size: 12px;
    margin-bottom: 12px;
}

.rr-package-card strong {
    display: block;
    color: #13253E;
    font-size: 24px;
    letter-spacing: -.04em;
    margin-bottom: 8px;
}

.rr-package-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 14px;
}

.rr-package-card small {
    display: block;
    margin-top: 14px;
    color: #139B95;
    font-weight: 900;
}

.rr-package-form {
    display: grid;
    grid-template-columns: 140px 120px minmax(180px, 1fr) 110px;
    gap: 10px;
    align-items: center;
}

.rr-paketi-table {
    min-width: 1050px;
}

.rr-paketi-table td,
.rr-paketi-table th {
    vertical-align: top;
    padding: 14px 12px;
}

@media (max-width: 1100px) {
    .rr-packages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rr-package-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .rr-packages-grid {
        grid-template-columns: 1fr;
    }

    .rr-paketi-table,
    .rr-paketi-table thead,
    .rr-paketi-table tbody,
    .rr-paketi-table th,
    .rr-paketi-table td,
    .rr-paketi-table tr {
        display: block;
    }

    .rr-paketi-table thead {
        display: none;
    }

    .rr-paketi-table tr {
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 14px;
        margin-bottom: 14px;
        background: #fff;
    }

    .rr-paketi-table td {
        border-bottom: 0;
        padding: 8px 0;
    }

    .rr-paketi-table td::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
        margin-bottom: 5px;
    }
}


/* =========================================================
   MOJRENT V13 - JAVNI LINKOVI I PUBLIC CALENDAR FIX
   ========================================================= */

.rr-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.rr-info-grid > div {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fbfc;
}

.rr-info-grid strong {
    display: block;
    margin-bottom: 8px;
    color: #13253E;
}

.rr-info-grid code {
    display: block;
    white-space: normal;
    word-break: break-all;
    background: #ffffff;
    border: 1px solid rgba(19,37,62,.10);
    border-radius: 10px;
    padding: 8px;
    color: #139B95;
    font-weight: 800;
}

.rr-public-link-list {
    display: grid;
    gap: 16px;
}

.rr-public-link-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(19,37,62,.05);
}

.rr-public-link-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.rr-public-link-head h3 {
    margin: 0 0 5px;
    color: #13253E;
    letter-spacing: -.04em;
}

.rr-public-link-head p {
    margin: 0;
    color: var(--muted);
}

.rr-public-missing {
    padding: 10px 12px;
    border-radius: 14px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 800;
    margin-bottom: 14px;
}

.rr-link-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 100px 90px;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.rr-link-row label,
.rr-link-grid-small label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 900;
}

.rr-link-row input,
.rr-link-grid-small input {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    background: #f8fbfc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
}

.rr-link-grid-small {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rr-link-grid-small > div > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 8px;
    margin-top: 6px;
}

.rr-copy-btn {
    min-height: 42px;
    border-radius: 12px;
    padding: 8px 10px;
}

.rr-public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

@media (max-width: 1050px) {
    .rr-info-grid,
    .rr-link-grid-small {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rr-link-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .rr-info-grid,
    .rr-link-grid-small {
        grid-template-columns: 1fr;
    }

    .rr-public-link-head {
        flex-direction: column;
    }

    .rr-link-grid-small > div > div {
        grid-template-columns: 1fr;
    }

    .rr-public-actions .rr-btn-light,
    .rr-copy-btn {
        width: 100%;
    }
}


/* =========================================================
   MOJRENT V14 - IZVJEŠTAJI
   ========================================================= */

.rr-report-title {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(19,37,62,.10);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(24,182,174,.10), #ffffff);
    color: #13253E;
}

.rr-report-title span {
    color: #139B95;
    font-weight: 900;
}

.rr-report-money-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rr-report-money-grid > div,
.rr-report-sources > div {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fbfc;
}

.rr-report-money-grid span,
.rr-report-sources span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 5px;
}

.rr-report-money-grid strong,
.rr-report-sources strong {
    display: block;
    color: #13253E;
    font-size: 18px;
    letter-spacing: -.03em;
}

.rr-report-sources {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rr-report-table {
    min-width: 1080px;
}

.rr-report-table th,
.rr-report-table td {
    white-space: nowrap;
    vertical-align: top;
}

.rr-report-table td:first-child,
.rr-report-table th:first-child {
    white-space: normal;
    min-width: 180px;
}

@media (max-width: 820px) {
    .rr-report-money-grid,
    .rr-report-sources {
        grid-template-columns: 1fr;
    }

    .rr-report-table,
    .rr-report-table thead,
    .rr-report-table tbody,
    .rr-report-table th,
    .rr-report-table td,
    .rr-report-table tr {
        display: block;
    }

    .rr-report-table thead {
        display: none;
    }

    .rr-report-table tr {
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 14px;
        margin-bottom: 14px;
        background: #fff;
    }

    .rr-report-table td {
        border-bottom: 0;
        padding: 7px 0;
        white-space: normal;
    }

    .rr-report-table td::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
        margin-bottom: 4px;
    }
}

@media print {
    .rr-sidebar,
    .rr-mobile-topbar,
    .rr-mobile-backdrop,
    .rr-page-actions,
    .rr-no-print,
    .rr-sidebar-powered {
        display: none !important;
    }

    .rr-layout {
        display: block !important;
    }

    .rr-main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .rr-panel,
    .rr-card,
    .rr-report-title {
        box-shadow: none !important;
        break-inside: avoid;
    }

    body {
        background: #ffffff !important;
    }
}


/* =========================================================
   MOJRENT V15 - OBAVIJESTI
   ========================================================= */

.rr-obavijest-list {
    display: grid;
    gap: 12px;
}

.rr-obavijest-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(19,37,62,.04);
}

.rr-obavijest-card-stack {
    display: grid;
}

.rr-obavijest-card strong {
    display: block;
    color: #13253E;
    margin-bottom: 4px;
}

.rr-obavijest-card span {
    display: block;
    color: #139B95;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 3px;
}

.rr-obavijest-card small {
    display: block;
    color: var(--muted);
    line-height: 1.35;
}

.rr-obavijest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rr-obavijest-logline {
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.rr-inline-form {
    display: inline-flex;
    margin: 0;
}

.rr-btn-small {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.rr-obavijesti-table {
    min-width: 980px;
}

.rr-obavijesti-table th,
.rr-obavijesti-table td {
    vertical-align: top;
}

@media (max-width: 760px) {
    .rr-obavijest-card {
        display: grid;
        grid-template-columns: 1fr;
    }

    .rr-obavijest-actions,
    .rr-inline-form,
    .rr-inline-form button {
        width: 100%;
    }
}


/* =========================================================
   MOJRENT V17 - AUTOMATSKE OBAVIJESTI + WP WIDGET
   ========================================================= */

.rr-cron-info code {
    font-size: 12px;
}

.rr-link-row-embed {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.rr-link-row-embed input {
    font-size: 12px;
}

@media (max-width: 680px) {
    .rr-link-row-embed {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOJRENT V26 - STABILAN DROPDOWN MENI + MAIN CONTENT FIX
   ========================================================= */

.rr-layout {
    min-height: 100vh !important;
    display: flex !important;
    width: 100% !important;
}

.rr-sidebar {
    flex: 0 0 270px !important;
    width: 270px !important;
}

.rr-main {
    display: block !important;
    flex: 1 1 auto !important;
    width: calc(100% - 270px) !important;
    min-width: 0 !important;
    min-height: 100vh !important;
    padding: 28px !important;
    background: var(--bg) !important;
    overflow: visible !important;
}

.rr-dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.rr-dropdown-menu > a,
.rr-nav-dd-toggle,
.rr-nav-dd-panel a {
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 13px !important;
    text-decoration: none !important;
}

.rr-dropdown-menu > a,
.rr-nav-dd-panel a {
    padding: 10px 12px !important;
    color: rgba(255,255,255,.80) !important;
    font-weight: 800 !important;
    border: 1px solid transparent !important;
}

.rr-dropdown-menu > a:hover,
.rr-nav-dd-panel a:hover {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
}

.rr-dropdown-menu a.is-active,
.rr-nav-dd-panel a.is-active {
    background: rgba(24,182,174,.18) !important;
    color: #fff !important;
    border-color: rgba(24,182,174,.32) !important;
}

.rr-nav-dd {
    display: block !important;
}

.rr-nav-dd-toggle {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 11px 12px !important;
    border: 0 !important;
    background: rgba(255,255,255,.045) !important;
    color: rgba(255,255,255,.88) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-align: left !important;
    cursor: pointer !important;
}

.rr-nav-dd-toggle:hover {
    background: rgba(255,255,255,.09) !important;
    color: #fff !important;
}

.rr-nav-dd-toggle b {
    display: inline-grid !important;
    place-items: center !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.10) !important;
    color: rgba(255,255,255,.86) !important;
    line-height: 1 !important;
    transition: transform .18s ease !important;
}

.rr-nav-dd-panel {
    display: none !important;
    gap: 3px !important;
    padding: 5px 0 8px 12px !important;
    margin-left: 12px !important;
    border-left: 1px solid rgba(255,255,255,.12) !important;
}

.rr-nav-dd.is-open .rr-nav-dd-panel {
    display: grid !important;
}

.rr-nav-dd.is-open .rr-nav-dd-toggle b {
    transform: rotate(180deg) !important;
    background: rgba(24,182,174,.22) !important;
}

.rr-nav-dd-panel a {
    min-height: 36px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
}

/* Ukloni staru globalnu PWA traku ako je ostala iz cache-a. */
.rr-push-topbar {
    display: none !important;
}

.rr-push-list {
    display: grid;
    gap: 10px;
}

.rr-push-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(19,37,62,.08);
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    color: #13253E;
}

.rr-push-item:hover {
    border-color: rgba(24,182,174,.35);
    background: #f8fbfc;
}

.rr-push-item strong {
    display: block;
    margin-bottom: 4px;
}

.rr-push-item p {
    margin: 0 0 5px;
    color: #64748b;
}

.rr-push-item small {
    color: #94a3b8;
}

.rr-push-item > span {
    color: #139B95;
    font-weight: 900;
    white-space: nowrap;
}

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

/* Owner lite dashboard from v23 */
.rr-owner-lite {
    max-width: 1180px;
    margin: 0 auto;
}

.rr-owner-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at left top, rgba(24,182,174,.14), transparent 42%),
        linear-gradient(135deg, #ffffff 0%, #f8fbfc 100%);
    border: 1px solid rgba(19,37,62,.08);
    box-shadow: 0 18px 44px rgba(19,37,62,.06);
}

.rr-owner-hero h1 {
    margin: 0 0 5px;
    font-size: clamp(26px, 2vw + 18px, 42px);
    line-height: 1.05;
    color: #13253E;
}

.rr-owner-hero p {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
}

.rr-owner-primary-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #18B6AE, #139B95);
    color: #fff !important;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(24,182,174,.22);
}

.rr-owner-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.rr-owner-stat {
    display: block;
    min-height: 126px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(19,37,62,.08);
    box-shadow: 0 14px 34px rgba(19,37,62,.055);
    text-decoration: none;
    color: #13253E;
}

.rr-owner-stat span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.rr-owner-stat strong {
    display: block;
    color: #13253E;
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1;
    letter-spacing: -.05em;
    margin-bottom: 8px;
}

.rr-owner-stat small {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.3;
}

.rr-owner-actions {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 10px;
}

.rr-owner-action {
    min-height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(19,37,62,.10);
    border-radius: 15px;
    background: #fff;
    color: #13253E;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(19,37,62,.04);
}

.rr-owner-action.is-primary {
    color: #fff;
    background: linear-gradient(135deg, #18B6AE, #139B95);
    border-color: #18B6AE;
}

.rr-owner-panel {
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(19,37,62,.08);
    box-shadow: 0 16px 40px rgba(19,37,62,.055);
}

.rr-owner-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.rr-owner-panel-head h2 {
    margin: 0 0 4px;
    color: #13253E;
    font-size: 24px;
    letter-spacing: -.045em;
}

.rr-owner-panel-head p {
    margin: 0;
    color: #64748b;
}

.rr-owner-panel-head a {
    font-weight: 900;
    color: #139B95;
    white-space: nowrap;
}

.rr-owner-subtitle {
    margin: 14px 0 8px;
    color: #139B95;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.rr-owner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #eef2f7;
    text-decoration: none;
    color: #13253E;
}

.rr-owner-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
}

.rr-owner-empty {
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 800;
    text-align: center;
}

.rr-analytics-hub {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rr-analytics-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 18px 44px rgba(19,37,62,.07);
    text-decoration: none;
    color: #13253E;
}

.rr-analytics-card span {
    width: fit-content;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(24,182,174,.10);
    color: #139B95;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.rr-analytics-card strong {
    font-size: 22px;
    letter-spacing: -.04em;
}

.rr-analytics-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    flex: 1;
}

.rr-analytics-card em {
    color: #139B95;
    font-style: normal;
    font-weight: 900;
}

@media (max-width: 980px) {
    .rr-layout {
        display: block !important;
    }

    .rr-sidebar {
        width: 286px !important;
        flex-basis: auto !important;
    }

    .rr-main {
        width: 100% !important;
        padding: 18px 14px 28px !important;
    }

    .rr-owner-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rr-analytics-hub {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .rr-owner-hero {
        display: block;
        padding: 18px;
    }

    .rr-owner-primary-btn {
        width: 100%;
        margin-top: 14px;
    }

    .rr-owner-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .rr-owner-stat {
        min-height: 112px;
        padding: 14px;
        border-radius: 18px;
    }

    .rr-owner-stat strong {
        font-size: 24px;
    }

    .rr-owner-actions {
        grid-template-columns: 1fr;
    }

    .rr-owner-panel {
        padding: 16px;
        border-radius: 20px;
    }

    .rr-owner-panel-head {
        display: block;
    }

    .rr-owner-panel-head a {
        display: inline-flex;
        margin-top: 8px;
    }

    .rr-owner-item {
        display: block;
    }
}
