/* ==========================================================================
   RentPro – vzhled (Bootstrap 4.6 + vlastní téma)
   ========================================================================== */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(vendor/inter/inter-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(vendor/inter/inter-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(vendor/inter/inter-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(vendor/inter/inter-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(vendor/inter/inter-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(vendor/inter/inter-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(vendor/inter/inter-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(vendor/inter/inter-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
	--rp-primary: #5b3fd9;
	--rp-primary-dark: #4a30c2;
	--rp-primary-soft: #efecfd;
	--rp-gradient: linear-gradient(120deg, #4338ca 0%, #6d28d9 55%, #9333ea 100%);
	--rp-bg: #f4f5fb;
	--rp-text: #1f2333;
	--rp-muted: #6b7084;
	--rp-border: #e8e9f2;
	--rp-radius: 16px;
	--rp-radius-sm: 10px;
	--rp-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 6px 20px rgba(17, 24, 39, .06);
	--rp-shadow-lg: 0 12px 40px rgba(46, 28, 120, .16);
}

body {
	background: var(--rp-bg);
	color: var(--rp-text);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: .925rem;
	-webkit-font-smoothing: antialiased;
}
main.container-fluid { max-width: 1640px; padding-left: 1.5rem; padding-right: 1.5rem; }
a { color: var(--rp-primary); }
a:hover { color: var(--rp-primary-dark); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.015em; }
main h3 { font-size: 1.55rem; margin-bottom: 1rem; }
main h4 { font-size: 1.25rem; }
.text-muted { color: var(--rp-muted) !important; }
.rp-page-sub { color: var(--rp-muted); font-weight: 400; font-size: 1rem; margin-left: .4rem; }

/* ---------- navigace ---------- */
.rp-navbar {
	background: var(--rp-gradient);
	padding: .65rem 1.5rem;
	box-shadow: 0 6px 24px rgba(76, 29, 149, .25);
}
.rp-brand { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; letter-spacing: -.02em; font-weight: 500; }
.rp-brand b { font-weight: 800; }
.rp-brand .rp-logo-mark { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .18)); }
.rp-navbar .nav-link { color: rgba(255, 255, 255, .86) !important; font-weight: 500; padding: .45rem .85rem !important; border-radius: 9px; }
.rp-navbar .nav-link:hover { color: #fff !important; background: rgba(255, 255, 255, .1); }
.rp-navbar .nav-item.active > .nav-link { color: #fff !important; background: rgba(255, 255, 255, .2); }
.rp-subject-switch { background: rgba(255, 255, 255, .12); }
.rp-subject-switch .rp-label { opacity: .7; font-weight: 400; }
.rp-avatar { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .22); align-items: center; justify-content: center; margin-right: .3rem; font-size: .85rem; }
.dropdown-menu { border: 0; border-radius: 12px; box-shadow: var(--rp-shadow-lg); padding: .4rem; font-size: .925rem; }
.dropdown-item { border-radius: 8px; padding: .45rem .8rem; }
.dropdown-item.active, .dropdown-item:active { background: var(--rp-primary); }
.dropdown-header { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- karty ---------- */
.card { border: 0; border-radius: var(--rp-radius); box-shadow: var(--rp-shadow); }
.card > .card-header:first-child { border-radius: var(--rp-radius) var(--rp-radius) 0 0; }
.card > .card-footer:last-child { border-radius: 0 0 var(--rp-radius) var(--rp-radius); }
.card > .table:last-child, .card > .list-group:last-child { border-radius: 0 0 var(--rp-radius) var(--rp-radius); overflow: hidden; }
.card-header { background: transparent; border-bottom: 1px solid var(--rp-border); padding: .9rem 1.25rem; }
.card-header h5, .card-header h6 { margin: 0; font-size: 1rem; font-weight: 650; }
.card-footer { background: #fafbfe; border-top: 1px solid var(--rp-border); }
.card-body { padding: 1.25rem; }
.list-group-item { border-color: var(--rp-border); }
.rp-stack-head { background: #f7f7fc; border-top: 1px solid var(--rp-border); }

/* ---------- tlačítka a formuláře ---------- */
.btn { border-radius: var(--rp-radius-sm); font-weight: 500; }
.btn-sm, .btn-group-sm > .btn { border-radius: 8px; }
.btn-primary { background: var(--rp-gradient); border: 0; box-shadow: 0 2px 8px rgba(91, 63, 217, .3); }
.btn-primary:hover, .btn-primary:focus { background: var(--rp-primary-dark); }
.btn-primary:not(:disabled):not(.disabled):active { background: var(--rp-primary-dark); }
.btn-outline-primary { color: var(--rp-primary); border-color: #cfc8f7; }
.btn-outline-primary:hover, .btn-outline-primary:not(:disabled):not(.disabled).active { background: var(--rp-primary); border-color: var(--rp-primary); }
.btn-success, .btn-success:hover, .btn-success:focus { background: #16a34a; border-color: #16a34a; color: #fff !important; }
.btn-success:hover { background: #15803d; border-color: #15803d; }
.btn-danger, .btn-danger:hover { color: #fff !important; }
.btn-secondary { background: #eef0f6; border-color: #eef0f6; color: #374151; }
.btn-secondary:hover { background: #e2e5ef; border-color: #e2e5ef; color: #111827; }
.btn-outline-secondary { border-color: #d9dce8; color: #4b5063; }
.btn-xs, .btn-group-xs > .btn { padding: .15rem .45rem; font-size: .78rem; border-radius: 7px; }
.form-control, .custom-select { border-radius: var(--rp-radius-sm); border-color: #dcdfeb; }
.form-control:focus { border-color: #a89bf0; box-shadow: 0 0 0 .2rem rgba(91, 63, 217, .15); }
.form-control-sm { border-radius: 8px; }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-text { border-color: #dcdfeb; background: #f6f7fb; }
label, .col-form-label { font-weight: 500; color: #3b3f52; }
.form-check-input:checked { accent-color: var(--rp-primary); }
input[type=checkbox], input[type=radio] { accent-color: var(--rp-primary); }
.custom-control-input:checked ~ .custom-control-label::before { background: var(--rp-primary); border-color: var(--rp-primary); }

/* ---------- tabulky a datagrid ---------- */
.table { color: var(--rp-text); }
.table thead th { border-top: 0; border-bottom: 1px solid var(--rp-border); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rp-muted); font-weight: 600; background: #fafbfe; }
.table td, .table th { border-top-color: var(--rp-border); }
.table-hover tbody tr:hover { background: #f8f7ff; }
.table-sm td, .table-sm th { vertical-align: middle; padding: .45rem .6rem; }
.table-secondary, .table-secondary > th, .table-secondary > td { background: #f3f2fb; }
.datagrid .table { margin-bottom: 0; }
.datagrid .row-grid-bottom { background: #fafbfe; border-top: 1px solid var(--rp-border); padding: .6rem; }
.datagrid table thead tr.row-group-actions th { background: transparent; text-transform: none; letter-spacing: 0; color: var(--rp-text); font-weight: 500; }
.datagrid table thead th a { color: var(--rp-muted); }
.datagrid .datagrid-toolbar .btn { margin-left: .25rem; }
.datagrid table { border: 0 !important; }
.datagrid-grid .table-bordered, .datagrid .table-bordered td, .datagrid .table-bordered th { border-left: 0 !important; border-right: 0 !important; }
.datagrid table thead tr.row-group-actions { background: #fafbfe; }
.pagination .page-link { border-radius: 8px !important; margin: 0 2px; border: 0; color: var(--rp-primary); }
.pagination .page-item.active .page-link { background: var(--rp-primary); }

/* ---------- odznaky / alerty ---------- */
.badge { font-weight: 600; border-radius: 999px; padding: .32em .7em; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-primary { background: #e0e7ff; color: #3730a3; }
.badge-secondary { background: #eceef3; color: #4b5063; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-dark { background: #1f2333; }
.badge-light { background: #f1f2f7; color: #4b5063; }
.alert { border: 0; border-radius: 12px; }
.alert-info { background: #eef2ff; color: #3730a3; }
.alert-success { background: #ecfdf3; color: #166534; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-danger { background: #fef2f2; color: #991b1b; }
.btn-warning { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.btn-outline-warning { color: #b45309; border-color: #fcd34d; }

/* ---------- přihlášení / registrace ---------- */
body.rp-auth {
	min-height: 100vh;
	background: radial-gradient(1200px 600px at 10% -10%, rgba(236, 72, 153, .35), transparent 60%), var(--rp-gradient);
	background-attachment: fixed;
}
.rp-auth-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; }
.rp-auth-main > .alert { width: 100%; max-width: 460px; }
.rp-auth-card { width: 100%; max-width: 460px; border-radius: 22px; box-shadow: var(--rp-shadow-lg); }
.rp-auth-card .card-body { padding: 2rem 2.2rem; }
.rp-auth-brand { display: flex; align-items: center; justify-content: center; gap: .6rem; color: #fff; font-size: 1.8rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 1.4rem; }
.rp-auth-brand b { font-weight: 800; }
.rp-auth-brand .rp-logo-mark { filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .25)); }
.rp-auth-card h4 { margin-bottom: 1.2rem; }
.rp-auth-card .form-group.row { display: block; margin-left: 0; margin-right: 0; }
.rp-auth-card .form-group.row > div { max-width: 100%; flex: none; padding: 0; }
.rp-auth-card .col-form-label { padding-top: 0; }
.rp-auth-card input[type=submit] { width: 100%; padding: .6rem; }

.rp-footer { color: var(--rp-muted); font-size: .8rem; padding: 2rem 1.5rem 1.5rem; }

/* ---------- komponenty aplikace ---------- */
.rp-suggest-menu { width: 100%; max-height: 340px; overflow-y: auto; top: 100%; left: 0; margin-top: .25rem; }
.rp-suggest-menu .dropdown-item { white-space: normal; }
input.rp-selected { background-color: #f3fdf6; border-color: #86d6a2; }
#rp-toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 2000; max-width: 420px; }
#rp-toasts .alert { box-shadow: var(--rp-shadow-lg); }
.badge-status { font-size: .78rem; }
.overload { color: #dc2626; font-weight: 600; }
.collision-box .list-group-item { padding: .35rem .75rem; }
.legend-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .3rem; vertical-align: middle; }
.rp-kv th { color: var(--rp-muted); font-weight: 500; width: 45%; }
.rp-related-list .list-group-item { padding: .35rem .75rem; }
.rp-history .list-group-item { font-size: .85rem; }
.rp-history del { color: #b91c1c; }
.rp-history ins { color: #15803d; text-decoration: none; }
.rp-map { height: 420px; border-radius: 12px; }
.note-editor.note-frame { border-radius: 12px; border-color: #dcdfeb; overflow: hidden; }
.note-editor .note-toolbar { background: #fafbfe; }
.modal-content { border: 0; border-radius: 18px; box-shadow: var(--rp-shadow-lg); }
.modal-header, .modal-footer { border-color: var(--rp-border); }
.progress { border-radius: 999px; background: #eceef6; }
.progress-bar.bg-success { background: linear-gradient(90deg, #16a34a, #22c55e) !important; }

/* kalendář */
.fc { background: #fff; padding: 1rem; border-radius: var(--rp-radius); box-shadow: var(--rp-shadow);
	--fc-button-bg-color: #fff; --fc-button-border-color: #dcdfeb; --fc-button-text-color: #374151;
	--fc-button-hover-bg-color: var(--rp-primary-soft); --fc-button-hover-border-color: #cfc8f7;
	--fc-button-active-bg-color: var(--rp-primary); --fc-button-active-border-color: var(--rp-primary);
	--fc-today-bg-color: #f6f4ff; --fc-border-color: var(--rp-border); }
.fc .fc-button { border-radius: 9px !important; font-weight: 500; box-shadow: none !important; text-transform: none; }
.fc .fc-button-primary:not(:disabled).fc-button-active { color: #fff; }
.fc .fc-toolbar-title { font-size: 1.3rem; font-weight: 700; text-transform: capitalize; }
.fc-event { border-radius: 6px; padding: 1px 3px; }
.fc-event.rp-foreign { opacity: .8; border-style: dashed !important; }

/* check list */
.cl-row { cursor: pointer; user-select: none; }
.cl-row.done { background: #ecfdf3 !important; }
.cl-row.partial { background: #fffbeb !important; }
.cl-row.flash { animation: clflash 1s; }
@keyframes clflash { 0% { background: #86efac; } 100% { } }
.cl-check { font-size: 1.4rem; width: 2rem; text-align: center; }
.cl-progress { position: sticky; top: 0; z-index: 100; }
#qr-reader { max-width: 480px; margin: 0 auto; }
.cl-big .cl-row td { padding: .75rem .5rem; font-size: 1.02rem; }

/* štítky */
.labels { display: flex; flex-wrap: wrap; gap: 4mm; }
.label-item { width: 62mm; height: 30mm; border: 1px dashed #bbb; display: flex; align-items: center; padding: 2mm; background: #fff; page-break-inside: avoid; }
.label-item .qr { width: 26mm; height: 26mm; flex: none; }
.label-item .qr img, .label-item .qr svg { width: 100%; height: 100%; }
.label-item .txt { padding-left: 2mm; font-size: 9pt; line-height: 1.2; overflow: hidden; }
.label-item .txt strong { display: block; font-size: 10pt; }
.label-item .hash { font-family: monospace; font-size: 8pt; color: #555; }
@media print {
	nav, footer, .no-print, .alert { display: none !important; }
	body { background: #fff; }
	.label-item { border-color: #eee; }
	main.container-fluid { max-width: none; padding: 0; }
}
@media (max-width: 991px) {
	.rp-navbar { padding: .6rem 1rem; }
	main.container-fluid { padding-left: .75rem; padding-right: .75rem; }
}

/* soubory k akci */
.rp-dropzone { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; min-height: 96px; padding: 1rem;
	border: 2px dashed #cfc8f7; border-radius: 14px; background: #faf9ff; cursor: pointer; transition: .15s; font-weight: 400; }
.rp-dropzone:hover, .rp-dropzone.over { border-color: var(--rp-primary); background: var(--rp-primary-soft); }
.rp-files { border-top: 1px solid var(--rp-border); }
.rp-file { display: flex; align-items: center; gap: .9rem; padding: .65rem 1.25rem; border-bottom: 1px solid var(--rp-border); }
.rp-file:last-child { border-bottom: 0; }
.rp-file-thumb { flex: none; width: 56px; height: 56px; border-radius: 10px; background: #f3f2fb; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--rp-primary); font-size: 1.6rem; }
.rp-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rp-file-body { flex: 1; min-width: 0; }
.rp-file-name { font-weight: 500; word-break: break-word; }
.rp-file-actions { flex: none; display: flex; gap: .3rem; }

/* fotografie míst */
.rp-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.rp-photo, .rp-photo-pick { display: block; border-radius: 10px; overflow: hidden; background: #f3f2fb; position: relative; margin: 0; }
.rp-photo img, .rp-photo-pick img { width: 100%; height: 110px; object-fit: cover; display: block; transition: .15s; }
.rp-photo:hover img { transform: scale(1.04); }
.rp-photo-pick span { display: block; font-size: .78rem; padding: .25rem .45rem; background: #fff; font-weight: 400; }

/* hlavička akce – místo konání */
.rp-venue-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .35rem; }
.rp-venue-name { font-weight: 500; margin-right: .2rem; }
.rp-venue-name .fa { color: var(--rp-primary); }
.rp-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; padding: .18rem .6rem; border-radius: 999px; background: #fff; border: 1px solid var(--rp-border); color: #4b5063; }
a.rp-chip:hover { border-color: #cfc8f7; color: var(--rp-primary); text-decoration: none; }
.rp-chip-note { background: #fffbeb; border-color: #fde68a; color: #92400e; max-width: 32rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* obrysová tlačítka – čitelný hover v celé aplikaci (světlý podklad, tmavý text; dříve bílý text na bílém pozadí) */
.btn-outline-primary, .btn-outline-secondary, .btn-outline-success, .btn-outline-warning, .btn-outline-danger, .btn-outline-info { background: #fff; }
.btn.btn-outline-primary:hover, .btn.btn-outline-primary:focus { background: var(--rp-primary-soft); color: var(--rp-primary-dark); border-color: #cfc8f7; }
.btn.btn-outline-secondary:hover, .btn.btn-outline-secondary:focus { background: #eef0f6; color: #1f2333; border-color: #d9dce8; }
.btn.btn-outline-success:hover, .btn.btn-outline-success:focus { background: #dcfce7; color: #166534; border-color: #86efac; }
.btn.btn-outline-warning:hover, .btn.btn-outline-warning:focus { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.btn.btn-outline-danger:hover, .btn.btn-outline-danger:focus { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.btn.btn-outline-info:hover, .btn.btn-outline-info:focus { background: #e0f2fe; color: #075985; border-color: #7dd3fc; }

/* výběr techniky ze seznamu */
#eq-picker-table tr.rp-related-hint { background: #f1effc; }
#eq-picker-table td { vertical-align: middle; }
