﻿.decimal-input {
    height: 35px;
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #1e8180;
    background-color: #e5fdfd;
    padding: 6px 6px 6px 6px;
    border-radius: 10px;
}

    .decimal-input-with-label {
        padding: 6px 50px 6px 6px;
    }

    .decimal-input-red {
        border: 1px solid #851212;
        background-color: #eb9c9c;
    }

    .decimal-input-green {
        border: 1px solid #1e8138;
        background-color: #a3f9ba;
    }

.decimal-input-label {
    font-size: 18px;
    font-weight: bold;
    position: relative;
    right: 45px;
    height: 33px;
    padding-top: 7px;
    border-radius: 0px 10px 10px 0px;
}

.decimal-input:focus {
    border: 3px solid #0b2663;
    background-color: #8ec2f7;
}

.w-40 {
    width: 40%;
}

/* ============================================================
   UPITNIK MATRIX (pv-*) — stilovi za matricu kriterijuma u
   Прилог В/Г/... upitnicima (OpstePoslovanje, Bzr, PPDelovanje,
   PravniRizici, RizikIKTSistema, RizikLjudskiResursi,
   RizikOdEksplozije, RizikOdElementarnihNepogoda,
   RizikOdNeusaglasenosti, RizikOdPozara, RizikPoZivotnuSredinu)
   Koristi se u *_Upitnik_AddEdit.razor fajlovima.
   ============================================================ */

.pv-section-title-line { margin: 0 0 10px; padding-bottom: 0; border-bottom: 2px solid #1aa1b5; line-height: 1.2; }
.pv-section-title { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 9px 14px; background: linear-gradient(90deg, #eaf9fc 0%, #ffffff 100%); border: 1px solid #b9e2e9; border-left: 6px solid #1aa1b5; border-radius: 10px 10px 0 0; color: #111; font-size: 18px; font-weight: 800; line-height: 1.2; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.pv-section-title::before { content: attr(data-number); min-width: 46px; padding: 6px 8px; border-radius: 999px; background: #1aa1b5; color: #fff; font-size: 15px; font-weight: 800; text-align: center; }
.pv-section-hint { margin: 8px 0 6px; font-size: 14px; font-style: italic; color: #444; line-height: 1.35; }
.pv-section-info { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; padding: 8px 12px; background: #eaf9fc; border-left: 3px solid #1aa1b5; border-radius: 6px; font-size: 13.5px; color: #0c4a52; line-height: 1.35; }
.pv-section-info-icon { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: #1aa1b5; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; font-style: normal; }

.pv-matrix { margin-top: 10px; border: 1px solid #cfd8dc; border-radius: 10px; overflow: hidden; background: #fff; }
.pv-matrix-level-row { display: flex; align-items: stretch; border-bottom: 1px solid #d9d9d9; }
.pv-matrix-row { display: flex; align-items: stretch; border-bottom: 1px solid #d9d9d9; }
.pv-matrix-row:last-child { border-bottom: none; }
.pv-danger-options { display: grid; grid-template-columns: repeat(5, 1fr); flex: 1; gap: 0; }
.pv-danger-card { padding: 12px 10px; border-right: 1px solid #d9d9d9; background: #fff; display: flex; }
.pv-danger-card:last-child { border-right: none; }
.pv-danger-card.pv-is-empty { background: repeating-linear-gradient(45deg, #fbfbfb, #fbfbfb 5px, #f7f7f7 5px, #f7f7f7 10px); }
.pv-danger-level { display: block; padding: 7px 8px; border-radius: 7px; font-weight: 800; font-size: 13px; line-height: 1.2; text-align: center; width: 100%; }
.pv-danger-max { background: #ffe2df; color: #a32014; }
.pv-danger-high { background: #ffe9d6; color: #a55100; }
.pv-danger-medium { background: #fff4d6; color: #8a6100; }
.pv-danger-low { background: #eef8e8; color: #3f7b14; }
.pv-danger-min { background: #e4f6e8; color: #167a2f; }
.pv-subchoice { position: relative; display: block; width: 100%; padding: 11px 10px 11px 34px; border: 1px solid #d7d7d7; border-radius: 8px; background: #fff; cursor: pointer; line-height: 1.28; font-size: 14px; font-family: inherit; color: inherit; text-align: left; transition: 0.15s ease; }
.pv-subchoice::before { content: ""; position: absolute; top: 14px; left: 12px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c0c0c0; background: #fff; box-sizing: border-box; }
.pv-subchoice:hover { border-color: #1aa1b5; background: #f4fcfd; }
.pv-subchoice:hover::before { border-color: #1aa1b5; }
.pv-subchoice.is-selected { border-color: #0c6670; background: #eaf9fc; color: #0c6670; font-weight: 700; padding-right: 38px; box-shadow: 0 0 0 3px rgba(26, 161, 181, 0.18); }
.pv-subchoice.is-selected::before { border-color: #1aa1b5; background: #1aa1b5; box-shadow: inset 0 0 0 3px #fff; }
.pv-subchoice.is-selected::after { content: "✓"; position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: #1aa1b5; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.pv-subcriterion { display: inline; margin: 0 6px 0 0; font-weight: 800; font-size: 15px; white-space: nowrap; }

@media (max-width: 1000px) {
    .pv-matrix-level-row { display: none; }
    .pv-matrix-row { flex-direction: column; }
    .pv-danger-options { grid-template-columns: 1fr; }
    .pv-danger-card { border-right: none; border-bottom: 1px solid #d9d9d9; }
    .pv-danger-card:last-child { border-bottom: none; }
}

/* Stepen ranjivosti / Stepen izloženosti — kartice ispod matrice */
.pv-rating-box { margin: 14px 0 6px; padding: 14px; border: 2px solid #cfe6eb; border-radius: 10px; background: #f8fdfe; }
.pv-rating-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; font-weight: 800; color: #111; }
.pv-rating-icon { flex: 0 0 auto; display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #eaf9fc; color: #0a7c87; border: 1px solid #b9e2e9; align-items: center; justify-content: center; font-size: 13px; }
.pv-rating-options { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 8px; }
.pv-rating-card { position: relative; display: block; min-height: 70px; padding: 10px 9px 9px 12px; border: 1px solid #d5d5d5; border-radius: 8px; background: #fff; cursor: pointer; font-family: inherit; text-align: left; transition: 0.15s ease; }
.pv-rating-card:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); }
.pv-rating-card.is-selected { border-color: #1aa1b5; box-shadow: 0 0 0 3px rgba(26, 161, 181, 0.22); outline: 2px solid #1aa1b5; }
.pv-rating-card.is-selected::after { content: "✓"; position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: #1aa1b5; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.pv-rating-number { display: block; font-size: 18px; font-weight: 800; line-height: 1; }
.pv-rating-name { display: block; margin-top: 5px; font-weight: 700; }

/* Boje — rastuća skala za rаnjivost (1 = najgore -> crveno, 5 = najbolje -> zeleno) */
.pv-rating-ranjivost .pv-rating-card.pv-rating-level-1 { background: #ffe2df; border-color: #f2b4ad; color: #7d160e; }
.pv-rating-ranjivost .pv-rating-card.pv-rating-level-2 { background: #ffe9d6; border-color: #f2c49b; color: #7a3d00; }
.pv-rating-ranjivost .pv-rating-card.pv-rating-level-3 { background: #fff4d6; border-color: #ead184; color: #6d4d00; }
.pv-rating-ranjivost .pv-rating-card.pv-rating-level-4 { background: #eef8e8; border-color: #b9dca9; color: #2f6710; }
.pv-rating-ranjivost .pv-rating-card.pv-rating-level-5 { background: #e4f6e8; border-color: #9bd3a8; color: #0d6325; }

/* Boje — obrnuta skala za izloženost (1 = najmanje -> zeleno, 5 = najviše -> crveno) */
.pv-rating-izlozenost .pv-rating-card.pv-rating-level-1 { background: #e4f6e8; border-color: #9bd3a8; color: #0d6325; }
.pv-rating-izlozenost .pv-rating-card.pv-rating-level-2 { background: #eef8e8; border-color: #b9dca9; color: #2f6710; }
.pv-rating-izlozenost .pv-rating-card.pv-rating-level-3 { background: #fff4d6; border-color: #ead184; color: #6d4d00; }
.pv-rating-izlozenost .pv-rating-card.pv-rating-level-4 { background: #ffe9d6; border-color: #f2c49b; color: #7a3d00; }
.pv-rating-izlozenost .pv-rating-card.pv-rating-level-5 { background: #ffe2df; border-color: #f2b4ad; color: #7d160e; }

/* Opis (info-blok) ispod selektovane kartice */
.pv-rating-description { margin-top: 10px; padding: 10px 12px; border-left: 5px solid #1aa1b5; background: #fff; line-height: 1.35; border-radius: 0 8px 8px 0; }
.pv-rating-description strong { display: block; margin-bottom: 4px; }
.pv-rating-ranjivost .pv-rating-description-1 { border-left-color: #d93025; background: linear-gradient(to right, #ffe2df 0%, #fff7f6 38%, #ffffff 100%); }
.pv-rating-ranjivost .pv-rating-description-2 { border-left-color: #e8790f; background: linear-gradient(to right, #ffe9d6 0%, #fff6ee 38%, #ffffff 100%); }
.pv-rating-ranjivost .pv-rating-description-3 { border-left-color: #d6a400; background: linear-gradient(to right, #fff4d6 0%, #fffaf0 38%, #ffffff 100%); }
.pv-rating-ranjivost .pv-rating-description-4 { border-left-color: #74a944; background: linear-gradient(to right, #eef8e8 0%, #f8fcf5 38%, #ffffff 100%); }
.pv-rating-ranjivost .pv-rating-description-5 { border-left-color: #188038; background: linear-gradient(to right, #e4f6e8 0%, #f4fbf6 38%, #ffffff 100%); }
.pv-rating-izlozenost .pv-rating-description-1 { border-left-color: #188038; background: linear-gradient(to right, #e4f6e8 0%, #f4fbf6 38%, #ffffff 100%); }
.pv-rating-izlozenost .pv-rating-description-2 { border-left-color: #74a944; background: linear-gradient(to right, #eef8e8 0%, #f8fcf5 38%, #ffffff 100%); }
.pv-rating-izlozenost .pv-rating-description-3 { border-left-color: #d6a400; background: linear-gradient(to right, #fff4d6 0%, #fffaf0 38%, #ffffff 100%); }
.pv-rating-izlozenost .pv-rating-description-4 { border-left-color: #e8790f; background: linear-gradient(to right, #ffe9d6 0%, #fff6ee 38%, #ffffff 100%); }
.pv-rating-izlozenost .pv-rating-description-5 { border-left-color: #d93025; background: linear-gradient(to right, #ffe2df 0%, #fff7f6 38%, #ffffff 100%); }

@media (max-width: 1000px) {
    .pv-rating-options { grid-template-columns: 1fr; }
}

/* ============================================================
   END UPITNIK MATRIX
   ============================================================ */

/* ============================================================
   UPITNIK OP0 (op0-*) — stilovi za Upitnik_OP0.razor
   (Улазни подаци + Контекст + per-ШП accordion).
   ============================================================ */

.op0-wrapper { margin: 0 auto 24px; background: #ffffff; border: 1px solid #dce1e7; border-radius: 4px; overflow: hidden; font-family: Arial, sans-serif; color: #1f2937; }
.op0-section-title { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: #111827; }
.op0-section-title::before { content: ""; display: inline-block; width: 5px; height: 20px; border-radius: 999px; background: #17c3c6; box-shadow: 0 0 0 2px rgba(23, 195, 198, 0.15); flex: 0 0 auto; }
.op0-section-title.sub { background: #f1f8fa; font-size: 12px; }
.op0-section-title.sub::before { background: #6ad0d2; }
.op0-section-meta { font-weight: 600; text-transform: none; letter-spacing: 0; color: #6b7280; margin-left: 6px; font-size: 12px; }
.op0-section-body { padding: 16px 18px; border-bottom: 1px solid #e5e7eb; }
.op0-help-text { margin: 0 0 18px; font-size: 12px; font-weight: 600; color: #4b5563; line-height: 1.4; }
.op0-field { margin-bottom: 22px; }
.op0-field:last-child { margin-bottom: 0; }
.op0-label { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 800; color: #374151; }
.op0-description { margin-bottom: 8px; font-size: 12px; font-weight: 600; color: #6b7280; }
.op0-money-input { position: relative; display: flex; align-items: center; height: 33px; border-radius: 8px; max-width: 360px; }
.op0-money-input .decimal-input { width: 100%; height: 33px; padding: 0 58px 0 12px; border-radius: 8px; font-size: 13px; font-weight: 800; text-align: right; outline: none; }
.op0-money-input .decimal-input-green { background-color: #ecfdf5; border: 1px solid #6fc58b; color: #064e3b; }
.op0-money-input .decimal-input-red { background-color: #fff1f2; border: 1px solid #e7a1a8; color: #991b1b; }
.op0-money-input .decimal-input:focus { background-color: #e0f2fe; border: 1px solid #0284c7; box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15); }
.op0-money-input .decimal-input-label { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); padding: 4px 9px; border-radius: 7px; border: 1px solid #cbd5e1; background: #f8fafc; font-size: 11px; font-weight: 800; color: #374151; pointer-events: none; height: auto; }
.op0-date { width: 100%; max-width: 360px; height: 33px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 800; outline: none; }
.op0-date.is-filled { border: 1px solid #6fc58b; background: #ecfdf5; color: #064e3b; }
.op0-date.is-empty { border: 1px solid #e7a1a8; background: #fff1f2; color: #991b1b; }
.op0-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; background: #fbfcfd; }
.op0-btn { height: 34px; padding: 0 16px; border-radius: 8px; font-size: 13px; font-weight: 800; cursor: pointer; border: 1px solid transparent; }
.op0-btn-primary { background: #17c3c6; color: #ffffff; border-color: #129ca0; }
.op0-btn-primary:hover { background: #129ca0; }
.op0-btn-danger { background: #ffffff; color: #b91c1c; border-color: #efb3b6; }
.op0-btn-danger:hover { background: #fff1f2; }
.op0-sp-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: linear-gradient(90deg, #e9f7fb, #ffffff); border-bottom: 1px solid #cfe7ee; font-size: 14px; font-weight: 800; color: #0c4a52; }
.op0-sp-toggle { width: 38px; height: 38px; border-radius: 999px; border: 1px solid #129ca0; background: #17c3c6; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 3px rgba(18, 156, 160, 0.35); transition: background 0.15s ease, transform 0.15s ease; }
.op0-sp-toggle:hover { background: #129ca0; transform: translateY(-1px); }
.op0-sp-toggle:active { transform: translateY(0); }
.op0-sp-toggle img { height: 55%; width: auto; transition: transform 0.2s ease; }
.op0-sub-group-title { padding: 10px 18px; background: #f3f8fa; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: #0c4a52; }
.op0-sub-section { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; border-bottom: 1px solid #eef0f2; }
.op0-sub-section:last-child { border-bottom: none; }
.op0-sub-title { font-size: 13px; font-weight: 700; color: #374151; }

/* ============================================================
   END UPITNIK OP0
   ============================================================ */
