/* Vzhled podle www.rawet.cz (cihlova #b1503a, zluta #ffd600, krem #fff7d5, font Ubuntu) nad Bootstrapem 5 */
@font-face { font-family: "Ubuntu"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ubuntu-400.ttf) format("truetype"); }
@font-face { font-family: "Ubuntu"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/ubuntu-700.ttf) format("truetype"); }

:root {
	--brick: #b1503a;
	--brick-dark: #8f3f2d;
	--brick-text: #eadad6;
	--yellow: #ffd600;
	--cream: #fff7d5;
	--cream-line: #d1c8bc;
	--ink: #333;
	--hover: #c77405;
	--bs-body-font-family: "Ubuntu", "Trebuchet MS", Tahoma, Verdana, Arial, sans-serif;
	--bs-body-color: var(--ink);
	--bs-body-bg: #fff;
	--bs-body-font-size: .95rem;
	--bs-link-color: var(--brick);
	--bs-link-color-rgb: 177, 80, 58;
	--bs-link-hover-color: var(--hover);
	--bs-link-hover-color-rgb: 199, 116, 5;
	--bs-border-radius: 2px;
	--bs-border-radius-lg: 3px;
	--bs-border-radius-sm: 2px;
	--bs-border-color: #e1ddd6;
	--shadow: 0 2px var(--cream-line);
}

body { background: #fff; color: var(--ink); }
a { text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; }

/* hlavicka */
.site-header { background: var(--brick); color: #fff; }
.site-header .container-xxl { display: flex; align-items: center; gap: 1.75rem; min-height: 64px; padding-top: .4rem; padding-bottom: .4rem; }
.site-header__logo img { height: 38px; display: block; }
.site-header__text { line-height: 1.35; }
.site-header__name { color: var(--yellow); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.site-header__tag { font-weight: 700; font-size: .8rem; }
.site-header__contact { margin-left: auto; font-size: .85rem; line-height: 1.4; color: var(--brick-text); background: rgba(111, 39, 22, .3); padding: .3rem .7rem; border-radius: 3px; }
.site-header__contact a { color: #fff; }
.site-header__contact i { margin-right: .35rem; }

/* podnadpisova lista aplikace */
.subbar { background: var(--cream); box-shadow: var(--shadow); }
.subbar .container-xxl { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.subbar a { color: var(--brick); font-weight: 700; }
.subbar a:hover { color: var(--hover); }
.subbar .sep { color: var(--cream-line); margin: 0 .5rem; }

/* karty */
.card { border: 1px solid #e1ddd6; border-radius: 3px; box-shadow: var(--shadow); background: #fff; }
.card > .card-header { background: var(--brick); color: #fff; font-weight: 700; font-size: 1.05rem; padding: .6rem 1rem; border-bottom: 0; border-radius: 2px 2px 0 0; }
.card.lift:hover { box-shadow: 0 2px var(--brick); }

/* tabulky */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table thead th { background: var(--cream); border-bottom: 2px solid var(--brick); color: var(--ink); white-space: nowrap; font-weight: 700; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #fffbe8; }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-bg-type: #fffdf2; }
.table-responsive { border-radius: 3px; background: #fff; border: 1px solid #e1ddd6; box-shadow: var(--shadow); }
.table-responsive > .table > :not(caption) > * > * { border-left: 0; border-right: 0; }
.table-row-head { background: var(--cream) !important; font-weight: 700; vertical-align: middle; }

/* "chips" pro filtry */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
	display: inline-block; padding: .25rem .7rem; border-radius: 2px; background: var(--cream);
	border: 1px solid var(--cream-line); color: var(--ink); font-size: .9rem; line-height: 1.35;
	transition: background .15s, border-color .15s;
}
.chip:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.chip-active { background: var(--yellow); border-color: var(--yellow); font-weight: 700; }
.filter-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #777; font-weight: 700; }

/* tlacitka */
.btn { border-radius: 2px; font-weight: 700; transition: all .2s; }
.btn-brand { --bs-btn-bg: var(--yellow); --bs-btn-border-color: var(--yellow); --bs-btn-color: #231f20;
	--bs-btn-hover-bg: #fbd850; --bs-btn-hover-border-color: #fbd850; --bs-btn-hover-color: #231f20;
	--bs-btn-active-bg: #e6c200; --bs-btn-active-border-color: #e6c200; --bs-btn-active-color: #231f20;
	--bs-btn-focus-shadow-rgb: 177, 80, 58; box-shadow: var(--shadow); }
.btn-outline-dark { --bs-btn-color: var(--brick); --bs-btn-border-color: var(--brick);
	--bs-btn-hover-bg: var(--brick); --bs-btn-hover-border-color: var(--brick); --bs-btn-hover-color: #fff;
	--bs-btn-active-bg: var(--brick-dark); --bs-btn-active-border-color: var(--brick-dark); --bs-btn-active-color: #fff; }
.form-control:focus { border-color: var(--brick); box-shadow: 0 0 0 .2rem rgba(177, 80, 58, .2); }

/* popis typu (typ-sablona.php, data v typy.php) */
.typ-popis img { max-width: 100%; height: auto; }
.typ-popis hr { opacity: .2; }
.typ-popis table td { vertical-align: middle; }
.typ-popis h1 { font-size: 1.3rem; margin-bottom: .5rem; color: var(--brick); }
.typ-popis h4 { font-size: 1rem; margin: 0 0 .4rem; }
.param-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.4rem; font-size: .9rem; }
.param-list li::before { content: "•"; color: var(--brick); margin-right: .4rem; }

/* paticka */
.site-footer { background: var(--brick); color: var(--brick-text); padding: .7rem 0; margin-top: 1.5rem; font-size: .85rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }

/* administrace */
.drop-zone { border: 2px dashed var(--cream-line); border-radius: 3px; padding: 2rem 1rem; text-align: center; background: #fffdf2; }
.stat { text-align: center; padding: 1rem; }
.stat .num { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.stat .lbl { font-size: .8rem; color: #777; text-transform: uppercase; letter-spacing: .05em; }
.login-card { max-width: 380px; margin: 3rem auto; }

@media (max-width: 767.98px) {
	.site-header .container-xxl { min-height: 52px; gap: 1rem; }
	.site-header__logo img { height: 32px; }
	.site-header__tag, .site-header__contact { display: none; }
}

/* kompaktnejsi rozlozeni */
main.container-xxl { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.card > .card-header { padding: .4rem 1rem; }
.filter-card .card-body { padding: .75rem 1rem; }
.info-table th { width: 45%; font-weight: 700; background: #fffdf2; }

/* kompaktni tabulky */
.table { --bs-table-cell-padding-y: .2rem; --bs-table-cell-padding-x: .5rem; font-size: .85rem; line-height: 1.25; }
.table > :not(caption) > * > * { padding: .2rem .5rem; }
.table thead th { font-size: .8rem; padding-top: .3rem; padding-bottom: .3rem; }
.table .btn-sm { --bs-btn-padding-y: .05rem; --bs-btn-padding-x: .4rem; --bs-btn-font-size: .78rem; line-height: 1.3; }
.table small { font-size: .75rem; }
.stat { padding: .6rem; }
.stat .num { font-size: 1.5rem; }
