html,
body.renoscan-pro-body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: #eef3f8;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body.renoscan-pro-body * {
    box-sizing: border-box;
}

.rsp-app {
    width: 100vw;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    background: #eef3f8;
}

.rsp-sidebar {
    min-height: 100vh;
    background: #0f172a;
    color: #fff;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.rsp-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.rsp-brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    box-shadow: 0 18px 36px rgba(14, 165, 233, 0.28);
}

.rsp-brand strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
}

.rsp-brand span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 14px;
}

.rsp-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rsp-nav a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    padding: 14px 16px;
    border-radius: 14px;
}

.rsp-nav a.active,
.rsp-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.rsp-sidebar-bottom {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #94a3b8;
    font-size: 13px;
}

.rsp-sidebar-bottom a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 800;
}

.rsp-main {
    min-width: 0;
    padding: 34px;
    overflow-x: hidden;
}

.rsp-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff, #dff4ff);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
    margin-bottom: 22px;
}

.rsp-kicker {
    display: block;
    color: #0284c7;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 10px;
}

.rsp-hero h1 {
    margin: 0 0 8px;
    font-size: 42px;
    line-height: 1.05;
    color: #0f172a;
}

.rsp-hero p {
    margin: 0;
    color: #526173;
    font-size: 17px;
    line-height: 1.55;
    max-width: 780px;
}

.rsp-user {
    min-width: 230px;
    padding: 17px 18px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 20px;
}

.rsp-user span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 5px;
}

.rsp-user strong {
    color: #0f172a;
}

.rsp-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.rsp-stats article,
.rsp-card,
.rsp-projects,
.rsp-form-card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.rsp-stats article {
    padding: 22px;
    min-width: 0;
}

.rsp-stats span {
    display: block;
    color: #64748b;
    font-size: 14px;
    font-weight: 900;
}

.rsp-stats strong {
    display: block;
    margin: 10px 0 6px;
    color: #0f172a;
    font-size: 38px;
    line-height: 1;
}

.rsp-stats small {
    display: block;
    color: #94a3b8;
    line-height: 1.4;
}

.rsp-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.rsp-card {
    padding: 26px;
    min-width: 0;
}

.rsp-card-primary {
    background: linear-gradient(135deg, #0f172a, #19345a);
    color: #fff;
}

.rsp-card h2,
.rsp-projects h2,
.rsp-form-card h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 24px;
}

.rsp-card-primary h2 {
    color: #fff;
    font-size: 30px;
}

.rsp-card p {
    margin: 0 0 22px;
    color: #64748b;
    line-height: 1.58;
}

.rsp-card-primary p {
    color: rgba(255,255,255,0.82);
}

.rsp-card button,
.rsp-projects button,
.rsp-form button,
.rsp-login-box a,
.rsp-button-primary,
.rsp-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: #0ea5e9;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(14, 165, 233, 0.25);
}

.rsp-card:not(.rsp-card-primary) button,
.rsp-button-secondary {
    background: #e2e8f0;
    color: #0f172a;
    box-shadow: none;
}

.rsp-projects,
.rsp-form-card {
    padding: 26px;
}

.rsp-projects-head,
.rsp-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.rsp-projects p,
.rsp-section-head p {
    margin: 0;
    color: #64748b;
}

.rsp-empty {
    min-height: 165px;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 24px;
    color: #64748b;
}

.rsp-empty strong {
    color: #0f172a;
    font-size: 19px;
}

.rsp-alert {
    border-radius: 16px;
    padding: 14px 16px;
    font-weight: 800;
    margin-bottom: 18px;
}

.rsp-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.rsp-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.rsp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rsp-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rsp-form label span {
    color: #334155;
    font-weight: 900;
    font-size: 14px;
}

.rsp-form input,
.rsp-form select,
.rsp-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 13px 14px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.rsp-form input:focus,
.rsp-form select:focus,
.rsp-form textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
    background: #fff;
}

.rsp-span-2 {
    grid-column: 1 / -1;
}

.rsp-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.rsp-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.rsp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.rsp-table th {
    text-align: left;
    padding: 14px 12px;
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e2e8f0;
}

.rsp-table td {
    padding: 16px 12px;
    vertical-align: top;
    border-bottom: 1px solid #eef2f7;
    color: #334155;
}

.rsp-table td strong {
    display: block;
    color: #0f172a;
    margin-bottom: 5px;
}

.rsp-table td small {
    display: block;
    color: #64748b;
    line-height: 1.45;
}

.rsp-status {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 900;
    font-size: 13px;
}

.rsp-login-screen {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(14,165,233,0.25), transparent 35%),
        linear-gradient(135deg, #0f172a, #172554);
}

.rsp-login-box {
    width: min(520px, 100%);
    background: rgba(255,255,255,0.96);
    border-radius: 30px;
    padding: 44px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.32);
}

.rsp-login-mark {
    margin: 0 auto 18px;
}

.rsp-login-box h1 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 40px;
}

.rsp-login-box p {
    margin: 0 0 24px;
    color: #526173;
    line-height: 1.6;
}

@media (max-width: 1180px) {
    .rsp-app {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .rsp-main {
        padding: 24px;
    }

    .rsp-stats,
    .rsp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rsp-card-primary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .rsp-app {
        grid-template-columns: 1fr;
    }

    .rsp-sidebar {
        min-height: auto;
        padding: 20px;
    }

    .rsp-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rsp-sidebar-bottom {
        margin-top: 20px;
    }

    .rsp-main {
        padding: 18px;
    }

    .rsp-hero,
    .rsp-projects-head,
    .rsp-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .rsp-stats,
    .rsp-grid,
    .rsp-form-grid {
        grid-template-columns: 1fr;
    }

    .rsp-hero h1 {
        font-size: 34px;
    }

    .rsp-user {
        min-width: 0;
        width: 100%;
    }

    .rsp-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

.rsp-project-link {
    display: inline-block;
    color: #0f172a;
    font-weight: 900;
    text-decoration: none;
}

.rsp-project-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

.rsp-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 22px;
    margin-bottom: 22px;
}

.rsp-detail-main,
.rsp-detail-side,
.rsp-modules-grid article {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.rsp-detail-main {
    padding: 26px;
}

.rsp-detail-side {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rsp-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rsp-detail-grid > div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 17px;
}

.rsp-detail-grid span,
.rsp-status-box span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 7px;
}

.rsp-detail-grid strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.5;
    word-break: break-word;
}

.rsp-status-box {
    padding: 18px;
    border-radius: 20px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
}

.rsp-status-box strong {
    display: inline-flex;
    margin: 0 0 8px;
    color: #0369a1;
    font-size: 22px;
}

.rsp-status-box small {
    display: block;
    color: #475569;
}

.rsp-next-box {
    padding: 18px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.rsp-next-box h3 {
    margin: 0 0 12px;
    color: #0f172a;
}

.rsp-next-box ul {
    margin: 0;
    padding-left: 20px;
    color: #475569;
    line-height: 1.7;
}

.rsp-modules-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.rsp-modules-grid article {
    padding: 22px;
}

.rsp-modules-grid h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 20px;
}

.rsp-modules-grid p {
    margin: 0 0 18px;
    color: #64748b;
    line-height: 1.55;
}

.rsp-modules-grid button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 10px 15px;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 900;
    cursor: not-allowed;
}

@media (max-width: 1180px) {
    .rsp-detail-layout {
        grid-template-columns: 1fr;
    }

    .rsp-modules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .rsp-detail-grid,
    .rsp-modules-grid {
        grid-template-columns: 1fr;
    }
}

.rsp-status-box-light { background: #f8fafc; border-color: #e2e8f0; }
.rsp-status-box-light strong { color: #0f172a; }
.rsp-rooms-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.rsp-room-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rsp-room-card { border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 20px; padding: 18px; }
.rsp-room-card-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.rsp-room-card h3 { margin: 0 0 5px; color: #0f172a; font-size: 20px; }
.rsp-room-card-head span { color: #0284c7; font-weight: 900; font-size: 14px; }
.rsp-room-pill { background: #e0f2fe; color: #0369a1; border-radius: 999px; padding: 7px 10px; font-weight: 900; font-size: 13px; }
.rsp-room-card p { color: #475569; line-height: 1.55; margin: 0 0 14px; }
.rsp-room-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.rsp-room-meta div { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 12px; }
.rsp-room-meta span { display: block; color: #64748b; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.rsp-room-meta strong { color: #0f172a; font-size: 16px; }
.rsp-room-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rsp-room-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border: 0; border-radius: 999px; padding: 9px 13px; background: #e2e8f0; color: #0f172a; font-weight: 900; cursor: not-allowed; }
@media (max-width: 1180px) { .rsp-rooms-layout { grid-template-columns: 1fr; } }

.rsp-room-link {
    color: #0f172a;
    text-decoration: none;
    font-weight: 900;
}

.rsp-room-link:hover,
.rsp-inline-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

.rsp-inline-link {
    color: #0284c7;
    font-weight: 900;
    text-decoration: none;
}

.rsp-room-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    background: #0ea5e9;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(14, 165, 233, 0.18);
}

.rsp-room-workflow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.rsp-work-card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    padding: 24px;
}

.rsp-work-icon {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.rsp-work-card h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 21px;
}

.rsp-work-card p {
    margin: 0 0 18px;
    color: #64748b;
    line-height: 1.55;
}

.rsp-work-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 10px 15px;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 900;
    cursor: not-allowed;
}

@media (max-width: 1180px) {
    .rsp-room-workflow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .rsp-room-workflow {
        grid-template-columns: 1fr;
    }
}

.rsp-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .rsp-head-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.rsp-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .rsp-head-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.rsp-button-danger,
.rsp-delete-form button.rsp-button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: #dc2626;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(220, 38, 38, 0.22);
}

.rsp-delete-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 22px;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 26px;
    box-shadow: 0 18px 46px rgba(127, 29, 29, 0.08);
    padding: 28px;
}

.rsp-delete-icon {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    background: #fee2e2;
    color: #991b1b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
}

.rsp-delete-content h2 {
    margin: 0 0 10px;
    color: #7f1d1d;
    font-size: 30px;
}

.rsp-delete-content p {
    margin: 0 0 20px;
    color: #475569;
    line-height: 1.6;
}

.rsp-delete-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.rsp-delete-summary div {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 18px;
    padding: 14px;
}

.rsp-delete-summary span {
    display: block;
    color: #991b1b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.rsp-delete-summary strong {
    display: block;
    color: #111827;
    word-break: break-word;
}

.rsp-delete-form {
    max-width: 620px;
}

.rsp-delete-actions {
    justify-content: flex-start;
}

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

    .rsp-delete-summary {
        grid-template-columns: 1fr;
    }
}


/* v0.1.15 - korekcija gumba u header akcijama */
.rsp-head-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 220px;
}

.rsp-head-actions .rsp-button-secondary,
.rsp-head-actions .rsp-button-danger,
.rsp-head-actions .rsp-button-primary {
    width: 220px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    font-size: 17px;
}

.rsp-head-actions .rsp-button-danger {
    background: #dc2626;
    color: #ffffff;
}

@media (max-width: 760px) {
    .rsp-head-actions {
        width: 100%;
        align-items: stretch;
        min-width: 0;
    }

    .rsp-head-actions .rsp-button-secondary,
    .rsp-head-actions .rsp-button-danger,
    .rsp-head-actions .rsp-button-primary {
        width: 100%;
    }
}


/* v0.1.16 - brisanje prostorije */
.rsp-head-actions .rsp-button-danger {
    white-space: nowrap;
}

@media (min-width: 761px) {
    .rsp-head-actions {
        min-width: 240px;
    }

    .rsp-head-actions .rsp-button-secondary,
    .rsp-head-actions .rsp-button-danger,
    .rsp-head-actions .rsp-button-primary {
        width: 240px;
    }
}







/* v0.1.20 - čista sidebar ikona bez starog R wrappera */
.rsp-brand-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: block;
    object-fit: contain;
    border-radius: 14px;
    background: transparent !important;
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.18);
}

.rsp-login-icon {
    width: 96px;
    height: 96px;
    display: block;
    object-fit: contain;
    border-radius: 24px;
    margin: 0 auto 18px;
    background: transparent !important;
    box-shadow: 0 18px 42px rgba(14, 165, 233, 0.22);
}

/* neutraliziraj stari badge ako ga cache ili markup još povuče */
.rsp-brand-image,
.rsp-brand-mark.rsp-brand-image {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
}

.rsp-brand-image img,
.rsp-brand-mark.rsp-brand-image img {
    object-fit: contain !important;
    background: transparent !important;
}


/* v0.1.21 - hard fix: sidebar ikona ne smije nikad izaći iz 58x58 okvira */
.rsp-brand {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.rsp-brand-icon-wrap {
    display: block !important;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    overflow: hidden !important;
    flex: 0 0 58px !important;
    line-height: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.18) !important;
}

.rsp-brand-icon-wrap img,
.rsp-brand img.rsp-brand-icon,
img.rsp-brand-icon {
    display: block !important;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    object-fit: contain !important;
    border-radius: 14px !important;
    background: transparent !important;
}

.rsp-login-icon-wrap {
    display: block !important;
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    overflow: hidden !important;
    line-height: 0 !important;
    margin: 0 auto 18px !important;
    border-radius: 24px !important;
    background: transparent !important;
}

.rsp-login-icon-wrap img,
img.rsp-login-icon {
    display: block !important;
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    object-fit: contain !important;
    border-radius: 24px !important;
}

/* sigurnosno poništavanje bilo koje globalne slike u sidebaru */
.rsp-sidebar img {
    max-width: 58px !important;
    height: auto;
}


/* v0.1.22 - nova čista ikona bez bijelog/prljavog ruba */
.rsp-brand-icon-wrap,
.rsp-brand-icon-wrap img,
.rsp-brand img.rsp-brand-icon,
img.rsp-brand-icon {
    background: transparent !important;
}

.rsp-brand-icon-wrap {
    border-radius: 14px !important;
    overflow: hidden !important;
}

.rsp-brand-icon-wrap img,
.rsp-brand img.rsp-brand-icon,
img.rsp-brand-icon {
    object-fit: contain !important;
    border-radius: 14px !important;
}


/* v0.1.23 - koristi točno korisnikovu ikonu, bez dorade slike */
.rsp-brand-icon-wrap {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: transparent !important;
}

.rsp-brand-icon-wrap img,
img.rsp-brand-icon {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    object-fit: contain !important;
    border-radius: 14px !important;
    background: transparent !important;
}

.rsp-login-icon-wrap {
    width: 96px !important;
    height: 96px !important;
    overflow: hidden !important;
    border-radius: 24px !important;
}

.rsp-login-icon-wrap img,
img.rsp-login-icon {
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
    object-fit: contain !important;
    border-radius: 24px !important;
}


/* v0.1.31 - fotografije po prostoriji */
.rsp-photo-module {
    margin-top: 24px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(148,163,184,0.22);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.08);
}

.rsp-photo-upload {
    display: grid;
    gap: 12px;
    padding: 18px;
    margin: 18px 0 22px;
    border: 1px dashed rgba(37,99,235,0.35);
    border-radius: 18px;
    background: rgba(239,246,255,0.75);
}

.rsp-photo-upload label {
    font-weight: 800;
    color: #0f172a;
}

.rsp-photo-upload input[type="file"] {
    padding: 14px;
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 14px;
    background: #fff;
}

.rsp-photo-upload small {
    color: #64748b;
    line-height: 1.5;
}

.rsp-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

.rsp-photo-card {
    border: 1px solid rgba(148,163,184,0.22);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15,23,42,0.08);
}

.rsp-photo-card img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #e2e8f0;
}

.rsp-photo-meta {
    display: grid;
    gap: 6px;
    padding: 12px;
}

.rsp-photo-meta strong {
    font-size: 12px;
    line-height: 1.35;
    word-break: break-all;
    color: #0f172a;
}

.rsp-photo-meta span {
    font-size: 12px;
    color: #64748b;
}

.rsp-photo-card form {
    padding: 0 12px 12px;
}

.rsp-photo-delete {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .rsp-photo-module {
        padding: 18px;
        border-radius: 20px;
    }

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

    .rsp-photo-card img {
        height: 220px;
    }
}


/* v0.1.32 - foto upload modul jasnije vidljiv */
.rsp-photo-module {
    border: 2px solid rgba(37, 99, 235, 0.22) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,246,255,0.72)) !important;
}

.rsp-photo-module .rsp-section-head h2::before {
    content: "📷 ";
}

.rsp-photo-upload {
    border-width: 2px !important;
}

.rsp-photo-upload input[type="file"] {
    cursor: pointer;
}

.rsp-photo-upload .rsp-button-primary,
.rsp-photo-upload button[type="submit"] {
    width: fit-content;
    min-width: 190px;
}


/* v0.1.33 - foto modul forsirano umetnut u workflow grid */
.rsp-room-workflow .rsp-photo-module {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 0 0 24px 0 !important;
}

.rsp-room-workflow .rsp-photo-module .rsp-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.rsp-room-workflow .rsp-photo-upload {
    max-width: 760px;
}


/* v0.1.34 - foto upload stvarno prije workflow kartica */
.rsp-photo-module {
    margin-bottom: 28px !important;
}

.rsp-photo-module + .rsp-room-workflow {
    margin-top: 0 !important;
}


/* v0.1.35 - ne prikazuj tehničko ime datoteke korisniku */
.rsp-photo-meta strong {
    word-break: normal !important;
}


/* v0.1.36 - opis/oznaka fotografije */
.rsp-photo-caption-form {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px;
}

.rsp-photo-caption-form label {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rsp-photo-caption-form input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
}

.rsp-photo-caption-save {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
}


/* v0.1.37 - dropdown oznake fotografije */
.rsp-photo-caption-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-weight: 800;
}


/* v0.1.39 - centralno spremanje oznaka fotografija */
.rsp-photo-bulk-form {
    display: grid;
    gap: 18px;
}

.rsp-photo-bulk-actions {
    position: sticky;
    bottom: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px;
    border: 1px solid rgba(37,99,235,0.22);
    border-radius: 18px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 18px 38px rgba(15,23,42,0.14);
    backdrop-filter: blur(10px);
}

.rsp-photo-bulk-actions span {
    color: #64748b;
    font-weight: 700;
    font-size: 13px;
}

.rsp-photo-caption-form .rsp-photo-delete {
    margin-top: 4px;
}


/* v0.1.42 - mjerenja prostorije */
.rsp-measurement-module {
    margin: 24px 0;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(148,163,184,0.22);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.08);
}

.rsp-measurement-form {
    margin-top: 18px;
}

.rsp-measurement-form input[type="number"],
.rsp-measurement-form textarea {
    width: 100%;
}

@media (max-width: 720px) {
    .rsp-measurement-module {
        padding: 18px;
        border-radius: 20px;
    }
}


/* v0.1.44 - mjerenja u ekranu Uredi prostoriju */
.rsp-form-section-title {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(148,163,184,0.24);
}

.rsp-form-section-title h3 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #0f172a;
}

.rsp-form-section-title p {
    margin: 0;
    color: #64748b;
    font-weight: 600;
    line-height: 1.5;
}

.rsp-span-2 {
    grid-column: 1 / -1;
}


/* v0.1.45 - sažetak mjerenja u pregledu prostorije */
.rsp-measurement-summary-title {
    background: rgba(239,246,255,0.72) !important;
    border-color: rgba(37,99,235,0.18) !important;
}

.rsp-measurement-summary-title strong {
    font-size: 18px !important;
}


/* v0.1.46 - neograničene površine prostorije */
.rsp-surfaces-module {
    margin: 24px 0;
    background: rgba(255,255,255,0.96);
    border: 2px solid rgba(37,99,235,0.18);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.08);
}

.rsp-inline-surface-add {
    margin: 0;
}

.rsp-surfaces-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.rsp-surfaces-summary > div {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(148,163,184,0.24);
    background: rgba(239,246,255,0.72);
}

.rsp-surfaces-summary span,
.rsp-surface-grid span {
    display: block;
    color: #64748b;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
    margin-bottom: 6px;
}

.rsp-surfaces-summary strong {
    font-size: 26px;
    color: #0f172a;
}

.rsp-surfaces-list {
    display: grid;
    gap: 18px;
}

.rsp-surface-card {
    border: 1px solid rgba(148,163,184,0.24);
    border-radius: 20px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(15,23,42,0.07);
}

.rsp-surface-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.rsp-surface-card-head strong {
    font-size: 22px;
    color: #0f172a;
}

.rsp-surface-card-head span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(14,165,233,0.12);
    color: #0369a1;
    font-weight: 900;
}

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

.rsp-surface-grid input,
.rsp-surface-grid select,
.rsp-surface-grid textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
}

.rsp-surfaces-actions {
    position: sticky;
    bottom: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(37,99,235,0.22);
    border-radius: 18px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 18px 38px rgba(15,23,42,0.14);
    backdrop-filter: blur(10px);
}

.rsp-surfaces-actions span {
    color: #64748b;
    font-weight: 700;
    font-size: 13px;
}

.rsp-surface-delete {
    width: 100%;
    margin-top: 14px;
    justify-content: center;
}

@media (max-width: 720px) {
    .rsp-surfaces-module {
        padding: 18px;
        border-radius: 20px;
    }

    .rsp-surfaces-summary,
    .rsp-surface-grid {
        grid-template-columns: 1fr;
    }
}


/* v0.1.49 - fiksirani linkovi i poseban ekran površina */
.rsp-page-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.rsp-context-line {
    margin: 0 0 18px;
    color: #64748b;
    font-weight: 800;
}

.rsp-context-line strong {
    color: #0284c7;
}

.rsp-surfaces-edit-info {
    margin: 10px 0 8px;
    padding: 22px;
    border: 2px solid rgba(37,99,235,0.22);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(239,246,255,0.92), rgba(255,255,255,0.96));
}

.rsp-surfaces-edit-info h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #0f172a;
}

.rsp-surfaces-edit-info p {
    margin: 0 0 16px;
    color: #64748b;
    font-weight: 700;
    line-height: 1.5;
}

.rsp-surfaces-edit-info .rsp-button-primary,
.rsp-room-actions a.rsp-button-secondary {
    text-decoration: none;
}


/* v0.1.51 - zidovi/površine su izvor mjerenja */
.rsp-measurement-summary-title {
    background: rgba(240,249,255,0.82) !important;
}


/* v0.1.52 - čišći unos prostorije i stabilan flow površina */
.rsp-form-note {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(239,246,255,0.86);
    border: 1px solid rgba(37,99,235,0.18);
    color: #475569;
    font-weight: 800;
    line-height: 1.45;
}

.rsp-inline-surface-add .rsp-button-primary {
    white-space: normal;
    text-align: center;
    line-height: 1.15;
}


/* v0.1.53 - automatski izračun površine */
.rsp-field-hint {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}


/* v0.1.54 - čišće kategorije površina i odbici otvora */
.rsp-surfaces-summary-expanded {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rsp-surfaces-summary small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

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

@media (max-width: 720px) {
    .rsp-surfaces-summary-expanded {
        grid-template-columns: 1fr;
    }
}


/* v0.1.56 - površina je zaključani automatski izračun */
.rsp-surface-grid input[readonly][data-surface-area] {
    background: rgba(241,245,249,0.95) !important;
    color: #475569 !important;
    cursor: not-allowed;
}


/* v0.1.59 - spremanje je glavni gumb, brisanje je manji sekundarni gumb */
.rsp-surfaces-actions {
    justify-content: flex-start !important;
    padding: 20px !important;
}

.rsp-surfaces-actions .rsp-button-primary {
    min-width: 260px !important;
    min-height: 64px !important;
    justify-content: center !important;
    font-size: 18px !important;
    box-shadow: 0 18px 36px rgba(14,165,233,0.24) !important;
}

.rsp-surface-delete-small {
    width: auto !important;
    min-width: 180px !important;
    max-width: 260px !important;
    margin-top: 16px !important;
    margin-left: auto !important;
    padding: 12px 20px !important;
    min-height: 46px !important;
    font-size: 14px !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 24px rgba(220,38,38,0.18) !important;
}

@media (max-width: 720px) {
    .rsp-surfaces-actions .rsp-button-primary {
        width: 100% !important;
        min-width: 0 !important;
    }

    .rsp-surface-delete-small {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
    }
}


/* v0.1.60 - brisanje gore, spremanje veliko dolje */
.rsp-surface-head-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: auto !important;
}

.rsp-surface-head-actions > span {
    flex: 0 0 auto !important;
}

.rsp-surface-head-actions .rsp-surface-delete-small {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    min-height: 36px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 18px rgba(220,38,38,0.14) !important;
}

.rsp-surfaces-actions {
    display: block !important;
    padding: 22px !important;
}

.rsp-surfaces-actions .rsp-button-primary {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 76px !important;
    justify-content: center !important;
    font-size: 22px !important;
    border-radius: 999px !important;
    box-shadow: 0 22px 44px rgba(14,165,233,0.28) !important;
}

.rsp-surfaces-actions span {
    display: block !important;
    margin-top: 14px !important;
    text-align: center !important;
}

@media (max-width: 720px) {
    .rsp-surface-card-head {
        align-items: flex-start !important;
    }

    .rsp-surface-head-actions {
        flex-direction: column-reverse !important;
        align-items: flex-end !important;
        gap: 8px !important;
    }

    .rsp-surfaces-actions .rsp-button-primary {
        min-height: 66px !important;
        font-size: 19px !important;
    }
}


/* v0.1.61 - live calculation and locked calculated area */
.rsp-surface-grid input[readonly][data-surface-area] {
    background: rgba(241,245,249,0.95) !important;
    color: #475569 !important;
    cursor: not-allowed !important;
}


/* v0.1.67 - sažetak površina na karticama prostorija */
.rsp-room-meta-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.rsp-room-meta-expanded > div {
    min-height: 74px !important;
}

.rsp-room-surface-count {
    margin: 12px 0 0;
    color: #64748b;
    font-weight: 900;
    font-size: 14px;
}

@media (max-width: 720px) {
    .rsp-room-meta-expanded {
        grid-template-columns: 1fr !important;
    }
}


/* v0.1.68 - redoslijed i dupliciranje površina */
.rsp-surface-duplicate-small {
    padding: 8px 11px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}


/* v0.1.69 - usklađeni button stilovi */
.rsp-button-inline-surface {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    min-height: 48px !important;
    padding: 13px 24px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: #ffffff !important;
    font-weight: 950 !important;
    font-size: 16px !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.20) !important;
}

.rsp-button-inline-surface:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    filter: brightness(0.98);
}

.rsp-button-primary-small,
button.rsp-button-primary-small {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    border: 0 !important;
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.18) !important;
    cursor: pointer !important;
}

.rsp-button-primary-small:hover,
button.rsp-button-primary-small:hover {
    filter: brightness(0.98);
}

.rsp-surface-duplicate-small {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: #ffffff !important;
}


/* v0.1.71 - upozorenje kada površina za sanaciju prelazi ukupnu površinu */
.rsp-field-warning {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16) !important;
}


/* v0.1.72 - uređivanje projekta */
.rsp-project-edit-button {
    text-decoration: none !important;
    color: #ffffff !important;
}


/* v0.1.75 - mjerenja vlage */
.rsp-surface-moisture-small {
    text-decoration: none !important;
    color: #ffffff !important;
}

.rsp-surface-context {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 24px;
}

.rsp-surface-context > div {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(248, 250, 252, 0.82);
}

.rsp-surface-context span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.rsp-moisture-list {
    display: grid;
    gap: 12px;
}

.rsp-moisture-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    background: #ffffff;
}

.rsp-moisture-row strong {
    display: block;
    font-size: 22px;
    color: #0f172a;
    margin-bottom: 4px;
}

.rsp-moisture-row span,
.rsp-moisture-row small {
    display: block;
    color: #64748b;
    font-weight: 700;
}

.rsp-button-small {
    padding: 10px 14px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
}

@media (max-width: 760px) {
    .rsp-surface-context {
        grid-template-columns: 1fr;
    }

    .rsp-moisture-row {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* v0.1.78 - bolji razmak na ekranu mjerenja vlage */
.rsp-moisture-card .rsp-card-head {
    margin-bottom: 28px;
}

.rsp-moisture-card .rsp-alert {
    margin-top: 4px;
    margin-bottom: 28px;
}


/* v0.1.80 - plavi gumb za dodavanje mjerenja vlage */
.rsp-moisture-add-button {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.24) !important;
}
