/* Drobne dodatki dla wersji RP — spójne z autorską identyfikacją serwisu. */

.rp-user {
    font-size: 13px;
    color: #333;
}
.rp-user a { color: var(--navy, #17324d); text-decoration: none; }
.rp-user a:hover { text-decoration: underline; }
.rp-user-name { margin-right: 8px; font-weight: bold; }
.contrast .rp-user, .contrast .rp-user a, .contrast .rp-user-name { color: #ffd84a; }

.rp-badge {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    background: var(--navy, #17324d);
    border-radius: 3px;
}

a.rp-btn, button.rp-btn {
    display: inline-block;
    padding: 8px 22px;
    background: var(--navy, #17324d);
    color: #fff;
    border: 0;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}
a.rp-btn:hover, button.rp-btn:hover { background: #1a4474; color: #fff; }
.rp-toolbar { margin: 15px 0; overflow: hidden; }
.rp-toolbar .rp-btn { float: right; margin-left: 10px; }
a.rp-btn-secondary, button.rp-btn-secondary { background: #4d4d4d; color: #fff; border: none; cursor: pointer; display: inline-block; padding: 7px 18px; font-size: 14px; border-radius: 3px; font-family: inherit; }
a.rp-btn-secondary:hover, button.rp-btn-secondary:hover { background: #333; color: #fff; }
.rp-btn-del-druk { background: none; border: 1px solid #ccc; border-radius: 3px; color: #999; cursor: pointer; padding: 4px 9px; font-size: 14px; margin-bottom: 2px; }
.rp-btn-del-druk:hover { background: #fee; border-color: #be2727; color: #be2727; }

/* Formularz dodawania/edycji aktu */
.rp-form { max-width: 760px; }
.rp-form .rp-row { margin-bottom: 14px; overflow: visible; }
.rp-form label { display: block; font-weight: bold; margin-bottom: 4px; }
.rp-form input[type=text], .rp-form input[type=date], .rp-form input[type=number],
.rp-form select, .rp-form textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #cdcdcd;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}
.rp-form textarea { min-height: 90px; }
.rp-form .rp-row-split { display: flex !important; gap: 14px; }
.rp-form .rp-row-split > div { flex: 1 1 0 !important; min-width: 0 !important; width: 0 !important; }
.rp-form .rp-row-split select,
.rp-form .rp-row-split input { width: 100% !important; box-sizing: border-box !important; }
.rp-form .rp-hint { font-size: 12px; color: #767676; font-weight: normal; }
.rp-form fieldset { border: 1px solid #e3e3e3; padding: 12px 14px; margin: 0 0 14px; }
.rp-form legend { font-size: 14px; font-weight: bold; width: auto; padding: 0 6px; margin: 0; border: 0; }
.rp-error {
    border: 1px solid var(--navy, #17324d);
    color: var(--navy, #17324d);
    padding: 10px 14px;
    margin-bottom: 16px;
}
.rp-success {
    border: 1px solid #3c763d;
    color: #3c763d;
    padding: 10px 14px;
    margin-bottom: 16px;
}

/* Wybrane powiązania i hasła (chipy w formularzu) */
.rp-chips { margin-top: 6px; }
.rp-chips .rp-chip {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 3px 8px;
    background: #eee;
    border: 1px solid #cdcdcd;
    font-size: 13px;
}
.rp-chips .rp-chip a { margin-left: 6px; color: var(--navy, #17324d); text-decoration: none; font-weight: bold; }

/* Podpowiedzi wyszukiwarki aktów do powiązań */
.rp-autocomplete { position: relative; }
.rp-autocomplete-list {
    position: absolute;
    z-index: 50;
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #cdcdcd;
    border-top: 0;
    max-height: 260px;
    overflow-y: auto;
    display: none;
}
.rp-autocomplete-list div { padding: 6px 10px; cursor: pointer; font-size: 13px; }
.rp-autocomplete-list div:hover { background: #f3f3f3; }

/* Własny dropdown dla pól typ/status */
.rp-suggest-wrap { position: relative; }
.rp-suggest-list {
    position: absolute;
    z-index: 100;
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    max-height: 220px;
    overflow-y: auto;
    display: none;
}
.rp-suggest-list div {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #212121;
    border-bottom: 1px solid #f1f1f1;
}
.rp-suggest-list div:last-child { border-bottom: none; }
.rp-suggest-list div:hover { background: #be2727; color: #fff; }

/* Monit wejściowy — informacja o fikcyjnym charakterze serwisu */
.rp-monit {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    padding: 20px;
}
.rp-monit-box {
    background: #fff;
    max-width: 480px;
    width: 100%;
    padding: 26px 28px 22px;
    border-top: 5px solid var(--gs-red, #be2727);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.rp-monit-box h2 {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--gs-red, #be2727);
}
.rp-monit-box p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #333; }
.rp-monit-box .rp-badge { vertical-align: middle; }
.rp-monit-box .rp-btn { margin-top: 6px; width: 100%; text-align: center; }
body.rp-monit-open { overflow: hidden; }

/* Karta aktu — drobiazgi */
.doc-details .rp-act-actions { margin: 12px 0; }
.doc-details .rp-act-actions a { margin-right: 14px; }
.rp-pagination { margin: 20px 0; }
