
a:hover {
        text-decoration: underline !important;
        font-style: italic;	
}


	
h2, h3 {
    text-align: center;
    clear: both;
}
/*-----Obsah----*/
.container {	
	/*max-width: 1100px;*/
	width: calc(100% - 60px);
	margin: 10px auto;
	background: white;
	padding: 10px 30px;
	border-radius: 6px;
	box-shadow: 0 0 10px var(--barva, DarkGray);
	box-sizing: border-box;
}
                
                /* Wrapper pro horizontální scroll na malých displejích */
.table-wrapper {
    display: block;
    width: 100%;    
    overflow-x: auto;
    overflow-y: hidden;
    flex: 0 0 auto;
}

/* Tabulka */
.table {
    margin: 10px auto;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 6px;
    
    box-shadow: 0 0 10px var(--barva, DarkGray);
    
}

/* Hlavička */
.table thead th {
    background: var(--barva, DarkGray);
    color: white;
    text-align: left;
    padding: 6px 8px;
    font-weight: bold;
    white-space: nowrap;
}

.table thead th a {
	text-decoration: none;
	color: black;
}
.table thead th:first-child {
    border-top-left-radius: 6px;
}

.table thead th:last-child {
    border-top-right-radius: 6px;
}
/* Filtr v tabulce */
.table thead .filter th {
	background: white;
	padding: 2px 5px;
        text-align: center;
}
.table thead .filter th input {
    width: calc(100% - 5px);
}


/* Tělo tabulky */
.table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}
/* Zobrazený záznam */
tr.active-row {
    background-color: #fff3cd;   
    transition: background-color 0.2s;
}
/* Poslední řádek bez spodní čáry */
.table tbody tr:last-child td {
    border-bottom: none;
}

/* Hover efekt */
.table tbody tr:hover {
    background: rgba(0, 0, 0, 0.04);
}


.table.profil caption {
    font-size: 1.3em;
    margin: 10px 0  5px 0;
}
.table.profil th {
    text-align: right;
    padding: 5px;
}

/* zobraz skryj*/
.skryt {
    display: none;
}

/* Tlačítka */
.btn {
    /*
    padding: 1px 5px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    */
    cursor: pointer;
    margin: 0 2px;
    height: 28px;
    min-width: 28px;
    
}
.btn:hover {
    text-decoration: none !important;
    font-style: normal !important;
    border: 2px solid var(--barva, DarkGray);
    border-radius: 4px;
}

.btn-primary {
    /*
    background: var(--barva, DarkGray);
    color: white;*/
}

.btn-secondary {
    background: #666;
    color: white;
}

.btn-actions {
    white-space: nowrap;       /* tlačítka vedle sebe */
    text-align: left;
}

.btn-icon {
    display: inline-flex;    
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    margin-right: 4px;

}

.btn-icon:hover {
    border: 2px solid var(--barva, DarkGray);
    border-radius: 4px;
}

.dragging {
    opacity: 0.5;
    background: var(--barva, DarkGray) !important;
    border-color: #4a90e2 !important
}
/* ---- MENU ----- */
.topnav {
    background: linear-gradient(white, var(--barva, DarkGray));
	border-bottom: 2px solid #CC0000;
	border-radius: 6px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    height: 40px;
    position: relative;
	margin: 10px 0;
}

.menu {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.menu li a {
    color: black;
    text-decoration: none;
    padding: 0 15px;
    line-height: 40px;
    display: block;
    white-space: nowrap;
	
}

.menu li a:hover {
    background: rgba(255,255,255,0.15);
}

.more-wrapper {
    margin-left: auto;
    position: relative;
}

.more-btn {
    background: none;
    border: none;
    color: black;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
    display: none; /* zobrazí se jen když je potřeba */
}

.more-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: var(--barva, DarkGray);    
    border-radius: 6px;
    flex-direction: column;
    min-width: 180px;
}
.more-menu li {
    background: linear-gradient(white, var(--barva, DarkGray));
	border-radius: 0px 0px 6px 6px;
}


.more-wrapper.open .more-menu {
    display: flex;
}
/* Submenu */
.has-submenu {
    position: relative;
}

.has-submenu > a::after {
    content: " ▼";
    font-size: 10px;
}

.submenu {
    display: none;
    position: absolute;
    top: 30px;
    left: 20px;
    background: var(--barva, DarkGray);
    border: 1px solid black;
    border-radius: 6px;
    flex-direction: column;
    min-width: 170px;
    z-index: 100;
	list-style: none;
	padding: 5px 0;
}

.has-submenu:hover .submenu {
    display: flex;
}

.submenu li a {
    line-height: 40px;
    padding: 0 15px;
	background: linear-gradient(white, var(--barva, DarkGray));
}

.menu li.active > a {
    background: rgba(255,255,255,0.25);
    font-weight: bold;
}

/*------ Tom Select -----*/
.ts-wrapper {
    /*min-width: 180px;
    font-size: 13px;*/
	display: inline-block;
}
.tom-select-page .ts-control {
    width: 40px;    
	
}

.ts-control {
    padding: 2px 6px !important;
    min-height: 26px;
    border-radius: 3px;
}

.ts-dropdown {
    font-size: 13px;
    font-weight: normal;
    text-align: left;
}

.tom-select-single {
    width: calc(100% - 25px);
    min-height: 2.6em;
}
.ts-hidden-accessible {
    left: 0 !important;
}
/*--------- Panel pro vkládání/editaci záznamů -------*/

/* PANEL – základ */
.drawer {
    position: absolute; /* nebo fixed – podle toho, kde ho chceš mít */
    top: 160px;
    right: 10px;
    height: calc(100% - 160px);
    width: 0; /* zavřený */
    overflow: hidden;    
    transition: width 0.3s ease;
    z-index: 50;
}

/* ROZTAŽENÝ PANEL */
.drawer.expanded {
    width: calc(100% - 30px) !important;
}

/* OTEVŘENÝ PANEL */
.drawer.open {
    width: calc(100% - 30px); /* mobil */
}
@media (min-width: 600px) {
    .drawer.open {
        width: 50%; /* pevná šířka na desktopu */
		min-width: 420px;
    }
}

/* OBSAH PANELU */
.drawer-content {
    
    max-height: calc(100% - 20px);
    width: calc(100% - 30px);
    
    overflow: auto; /* scroll uvnitř */
    
    
    display: flex;
    flex-direction: column;
	
	background: white;	
	border-radius: 6px;	
	margin: 10px auto;	
	padding: 10px;
	box-shadow: 0 0 10px var(--barva, DarkGray);
	box-sizing: border-box;
}


/* TLAČÍTKA */
.drawer-close {
    float: right;
    font-size: 16px;    
    border-radius: 3px;
    cursor: pointer;
    margin: 3px 2px;
    background-color: var(--barva, DarkGray);
    padding: 0px 5px;
}
.drawer-header {
    position: absolute;
	width: calc(100% - 55px);
	background-color: white;
	top: 10px;
	left: 20px;
	z-index: 10;
}

.drawer-expand {	
    font-size: 14px;    
    cursor: pointer;
    margin: 3px 2px;
    background-color: var(--barva, DarkGray);
    border-radius: 3px;
    float: right;
    padding: 0px 5px;
}
.drawer-slide {
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    margin: 2px 5px;
    background-color: var(--barva, DarkGray);
    padding: 0px 5px;
}

/* ZASUNUTÝ PANEL */
.drawer.slid {
    transform: translateX(calc(100% - 50px));
}

/* Animace */
.drawer {
    transition: transform 0.3s ease, width 0.3s ease;
}

/* Otočení šipky při zasunutí */
.drawer.slid .drawer-slide {
    transform: rotate(180deg);
}

.field-error {
    border: 2px solid red !important;
    background: #ffecec;
}

/* ---- Panel v panelu --- */
.child-drawer {
    margin-top: 20px;
    border: 1px solid #ccc;
    background: #fafafa;
    padding: 15px;
    border-radius: 6px;
}
.child-drawer-content {
    position: relative;
}
.child-drawer-close {
    position: absolute;
    right: 0;
    top: 0;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}


/*--------- CRUD formulář ----------*/
.form-title {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 95%;
}

.enum-radio-group label{
    display:inline;
}
.form-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.textarea-full {
    display: none;
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.textarea-full.open {
    display: block;
}

.textarea-preview {
    cursor: pointer;
    color: #007bff;
}
.textarea-preview.close {
    display: none;
}
/* file */
.file-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    padding: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
    border-radius: 4px;
}

.file-item a {
    font-weight: bold;
    color: #0066cc;
    text-decoration: none;
}

.file-item a:hover {
    text-decoration: underline;
}

.file-rename-input {
    margin-top: 6px;
    width: 100%;
}

.file-replace {
    display: block;
    margin-top: 6px;
}

.file-delete {
    display: block;
    margin-top: 6px;
    color: #a00;
}

.file-new {
    padding: 10px;
    border: 1px dashed #bbb;
    background: #fdfdfd;
    border-radius: 4px;
}
.file-item label {
    font-size: 0.8em;
}
.file-item input[type="text"] {
    width: calc(95% - 50px);
}


/*------Nápověda list------*/
.help-icon {
	position: relative;
	float: right;          
	margin-right: -20px;
	cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--barva, DarkGray);
    
    font-size: 14px;
    margin-left: 10px;
    transition: 0.2s;
}
.help-icon:hover {
    background: #000;
}

#help-window {
    position: absolute; 
    top: 30px;          
    right: 0;           
    width: 400px;
    max-height: 500px;  
    overflow-y: auto;   
    background: white;
	
	border-radius: 6px;	
	margin: 10px auto;	
	padding: 10px;
	box-shadow: 0 0 10px var(--barva, DarkGray);
	box-sizing: border-box;
    z-index: 10;
    display: none;
}

.close-btn {
    float: right;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
}
.close-btn:hover {
    opacity: 1;
}

/* --- Nápověd form label --- */
.help-tooltip {
    position:absolute;
    background:#fff;
    border:1px solid #ccc;
    padding:8px 10px;
    border-radius:6px;
    max-width:260px;
    box-shadow:0 2px 6px rgba(0,0,0,0.15);
    z-index:99999;
    font-size:13px;    
}

/* === Lookup info === */
.lookup-info {
    cursor: pointer;
}
.lookup-info-bubble {
    position: absolute;
    display: none;
    max-width: 260px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99999;
    font-size: 13px;
    line-height: 1.4;
}

/* malá šipka */
.lookup-info-bubble::after {
    content: "";
    position: absolute;
    top: 10px;
    left: -6px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #ccc;
}

.lookup-info-bubble::before {
    content: "";
    position: absolute;
    top: 10px;
    left: -5px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid #fff;
}

.lookup-mini {
    font-size: 13px;
    line-height: 1.4;
}

.lookup-mini-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.lookup-mini-label {
    font-weight: bold;
    margin-right: 10px;
}

.lookup-mini-value {
    color: #333;
}


/*---- Počet záznamů na stránku ----*/
.per-page {
	position: relative;
	float: right;          
	margin-right: 10px;	
}
/*---- Notifikace -----*/
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    opacity: 0;
    transition: 0.3s;
    z-index: 99999;
}
.notification.show {
    opacity: 1;
}
/* --- info zprávy --- */
.msg {
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    display: block;

    /* Bezpečné chování */
    overflow-wrap: break-word;
    white-space: normal;
}
.msg.ok {
    background: #e6f4ea;
    color: #256029;
    border-color: #a3d9a5;
}
.msg.info {
    background: #e8f1fb;
    color: #1a4f8b;
    border-color: #9cc3f5;
}
.msg.error {
    background: #fdecea;
    color: #a12622;
    border-color: #f5b5b2;
}

/* --- stránkování --- */
.crud-pagination {
    margin: 10px auto;
    text-align: center;
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.crud-pagination .btn {
    margin: 0;    
}
/* Tlačítka */
/*
.crud-pagination button {
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--barva, DarkGray);
    color: white;
    border: 1px solid rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: 0.2s;
}

.crud-pagination button:hover {
    background: #000;
    color: white;
}
*/

/* --- Panel nastavení sloupců --- */
#column-settings {
    display:none; 
    margin:10px auto;
    max-width: 600px;
    padding:10px; 
    border:1px solid var(--barva, DarkGray); 
    border-radius:6px; 
    background:#f9f9f9;
}
#column-settings.open {
    display: block;
}

/*--- miniEditro Style ---*/
.highlight-yellow { background-color: #fff3cd; padding: 2px 4px; border-radius: 3px; }
.text-red { color: #d9534f; font-weight: bold; }		
.text-small { font-size: 0.85rem; }
.text-normal { font-size: 1rem; }
.text-large { font-size: 1.5rem; font-weight: 500; }
.text-xl { font-size: 2.2rem; font-weight: bold; }

/*--- Historie/Log ---*/
#historyModal {
    border: 1px solid var(--barva, DarkGray);
    border-radius: 6px;
}

/*--- Oblíbené ---*/
#favorites-admin-panel {
    display:none;
    max-width:600px; 
    margin: 10px auto;
    padding:10px;
    border:1px solid var(--barva, DarkGray);
    border-radius:6px;
    background:#f9f9f9;
}

#favorites-admin-panel.open {
    display:block;
}

.favorites-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.favorite-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fffbe6;
    cursor: pointer;
    transition: background 0.2s;
}

.favorite-box:hover {
    background: #fff3c4;
}

.fav-icon {
    font-size: 20px;
}

.fav-title {
    font-weight: 600;
    font-size: 13px;
}

.fav-remove {
    background: none;
    border: none;
    color: #c00;
    font-size: 14px;
    cursor: pointer;
    padding: 0 4px;
}
.fav-admin-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 6px;
    background: #fff;
}

.fav-admin-icon {
    font-size: 22px;
}

.fav-admin-title {
    flex: 1;
    padding: 4px 6px;
}

.fav-admin-delete {
    background: none;
    border: none;
    color: #c00;
    cursor: pointer;
    font-size: 16px;
}

.fav-admin-drag {
    cursor: grab;
    font-size: 18px;
    padding: 0 6px;
}
.icon-picker-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.icon-picker-window {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    width: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.icon-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.2em;
}

.icon-picker-categories button {
    margin: 2px;
    padding: 4px 8px;
    cursor: pointer;
}

.icon-picker-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, 40px);
    gap: 6px;
    overflow-y: auto;
    max-height: 60vh;
    border: 2px solid #eee;
    border-radius: 6px;
    margin: 3px;
    width: 100%;
}

.icon-picker-content div {
    font-size: 24px;
    padding: 6px;
    cursor: pointer;
    text-align: center;
    margin-right: -10px;
}
.icon-picker-content div:hover {
    background-color: #eee;
    border-radius: 6px;
}
/* Přetahovaný řádek */
.fav-admin-row.dragging {
    opacity: 0.6;
    background: #d9ecff; /* světle modrá jako u sloupců */
}

/* Cílové místo */
.fav-admin-row.drag-over {
    border: 2px dashed #999;
    background: #f0f0f0;
}
.column-settings-panel {
    margin-bottom:15px;
    padding:10px;
    border:1px solid var(--barva, DarkGray);
    border-radius:6px;
    background:#f9f9f9;
}
.fav-admin-icon {
    display:inline-block;
    padding:4px 8px;
    border:1px solid #ccc;
    border-radius:4px;
    background:#fff;
    cursor:pointer;
    font-size:20px;
    transition:0.15s;
}

.fav-admin-icon:hover {
    background:#e6f2ff;
    border-color:#66aaff;
}

/* modul_list */
.radek_hover:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Modul aplikace */
.aplikace {
    width: calc(100% - 40px); 
    margin: 10px auto; 
    padding: 10px; 
    border: 1px solid #ddd;
    border-radius: 6px;
}

.aplikace p{
    margin: 0px;
}

#aplikace_filtr{
    display: none;
}

#aplikace_filtr.open{
    display: table;
}