
#html-body, h1, h2, h3, h4, h5 {
	/* default font */
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#masthead-logo img {
	/* image for masthead logo */
	width: 100px;
}

#edit-page {
	/* the edit page link that appears when page is editable */
	position: absolute;
	top: 10px;
	right: 10px
}

#offcanvas-toggle {
	/* the hamburger icon that toggles the mobile navigation */
	position: absolute;
	top: 10px;
	left: 15px; 
}

#offcanvas-nav .uk-search-input {
	/* the search box that appears in offcanvas nav */
	width: 100%;
}

img.uk-comment-avatar {
	/* avatar that appears in comments */
	width: 60px;
	height: 60px; 
}

@media only screen and (max-width: 959px) {
	/* custom adjustments for mobile layouts under 960px */
	#masthead {
		/* primary nav is not visible, so it needs some padding here */
		padding-bottom: 20px;
	}
}


/****************************************************************
 * Bodycopy text and images
 *
 * These styles are good to have on any ProcessWire site
 *
 */

.align_left {
	/* for images placed in rich text editor */ 
	float: left;
	margin: 0 1em 0.5em 0; 
	position: relative;
	top: 0.5em;
	max-width: 50%; 
}

.align_right {
	/* for images placed in rich text editor */ 
	float: right;
	margin: 0 0 0.5em 1em;
	max-width: 50%; 
}

.align_center {
	/* for images placed in rich text editor */ 
	display: block;
	margin: 1em auto; 
	position: relative;
	top: 0.5em;
}

figure {
	/* figure for image that has a caption */
	display: table;
	margin: 1em 0;
}

figure figcaption {
	/* display caption text below image contained to image width */
	display: table-caption;
	caption-side: bottom;
	font-size: 13px;
	line-height: 1.4em;
	margin-top: 5px;
	color: #777;
}

@media only screen and (max-width: 767px) {
	/* common PW mobile layout adjustments for widths under 768px */ 

	.align_left, .align_right, .align_center {
		/* display images in center rather than aligned */
		display: block;
		float: none; 
		margin: 1em auto;
		max-width: 100%; 
	}
	
	figure,
    figure figcaption {
		/* let figcaption display as wide as needed below image */
	    display: block;
	    text-align: center;
    }
}

/* Zrušíme vnútorný scroll kontajner */
.zakazky-table-container {
    overflow: visible; 
    margin-bottom: 20px;
}

.zakazky-table {
	width: 100%;
	font-size: 13px;
    border-collapse: separate; /* Dôležité pre správne fungovanie sticky pri okrajoch */
    border-spacing: 0;
	border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
}

.zakazky-table thead th {
    position: sticky;
    top: 0; /* Ak máte fixné horné menu, dajte sem napr. 60px */
    z-index: 10;
    background-color: #eee !important;
    border-bottom: 2px solid #ccc;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

/* Aby okraje tabuľky nevyzerali prerušovane kvôli border-spacing */
.zakazky-table th, .zakazky-table td {
    border: 1px solid #ccc;
    border-top-width: 0;
    border-left-width: 0;
	padding: 6px 4px !important; /* Minimalizácia vnútorných okrajov */
    word-wrap: break-word;
    max-width: 200px;
}

@media screen and (max-width: 768px) {
	
	.zakazky-wrapper {
        padding: 10px; /* Zmenšený padding, aby mali karty viac miesta */
    }
	
	.zakazky-table-container {
        width: 100%;
        margin: 0;
    }
	
    .zakazky-table thead {
        display: none;
    }

    .zakazky-table, .zakazky-table tbody, .zakazky-table tr, .zakazky-table td {
        display: block;
        width: 100%;
    }

    .zakazky-table tr {
		width: 100%; /* Karta cez celú šírku */
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 5px;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .zakazky-table td {
        text-align: left; /* Zarovnanie textu doľava pre lepšiu čitateľnosť */
        padding: 8px 10px 8px 10px; /* Zrušený veľký padding-left */
        position: relative;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        word-break: break-all; /* Rozdelí dlhé emaily, aby nepretiekli */
    }

    /* Názov stĺpca zobrazíme NAD hodnotou */
    .zakazky-table td::before {
        content: attr(data-label);
        display: block; /* Zmenené na block, aby bol popisok v samostatnom riadku */
        font-weight: bold;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #888;
        margin-bottom: 2px;
    }

    /* Zvýraznenie stavu a opravy na mobile */
    .zakazky-table td[data-label='Stav'], 
    .zakazky-table td[data-label='Oprava'] {
        background: #fcfcfc;
    }

    /* Akcie vycentrujeme a oddelíme */
    .zakazky-table td[data-label='Akcia'] {
        text-align: center;
        padding: 15px;
        background: #f8f9fa;
        border-bottom: none !important;
    }
    
    .zakazky-table td[data-label='Akcia']::before {
        display: none; /* Skryjeme nápis "Akcia" nad tlačidlami */
    }
	.filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-form div { 
		width: 100%; 
	}
	
    .filter-form input, .filter-form select { 
	width: 100% !important; 
	height: 40px; 
	}
}

.zakazky-wrapper {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Horné tlačidlá */
.zakazky-top-buttons {
    display: flex; 
    flex-wrap: wrap;
    gap: 10px; 
    margin-bottom: 20px;
}

.btn-green { background: #28a745; color: white !important; padding: 10px 20px; text-decoration: none; border-radius: 4px; font-weight: bold; }
.btn-info { background: #17a2b8; color: white !important; padding: 10px 20px; text-decoration: none; border-radius: 4px; font-weight: bold; }
.btn-gray { background: #6c757d; color: white !important; padding: 10px 20px; text-decoration: none; border-radius: 4px; font-weight: bold; }

/* Filtračný formulár */
.filter-form {
    background: #f8f9fa; 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    display: flex; 
    flex-wrap: wrap;
    gap: 15px; 
    align-items: flex-end;
}

