/* Bylo v html/header.php */ 
/*bylo secondary #3498db */

/* odlaďování přetečení -rámečky
* {
  outline: 1px solid red !important;
}
*/

:root {
    --primary-color: #2c3e50;
    --secondary-color: #0d6efd;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.content {
    flex: 1;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color) !important;
}

.nav-link.active {
    background-color: var(--secondary-color) !important;
    color: white !important;
}

.logo-img {
    height: 40px;
    width: auto;
}

.seller-badge {
    background-color: var(--light-color);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-container {
    margin-top: 1rem;
}

.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 0.2rem;
}

.page-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

@media (max-width: 768px) {
    .navbar-nav {
        margin-top: 0.5rem;
    }
    
    .seller-selector {
        margin-top: 0.5rem;
    }
}

.select2-container--default
.select2-selection--single
.select2-selection__rendered {
  color: #444;
  line-height: 30px;
}

.select2-container
.select2-selection--single {
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  height: 34px;
}

/* Rotace chevronu u collapsible card-headerů */
.collapse-icon {
    transition: transform 0.2s ease;
}
[data-bs-toggle="collapse"][aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

/* Styl pro kontejner nápovědy */
.custom-tooltip {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

/* Skrytá nápověda, která se zobrazí při najetí */
.custom-tooltip::after {
    content: attr(data-tooltip); /* Načte text z atributu */
    position: absolute;
    bottom: 125%;                /* Zobrazí se nad ikonkou */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;      /* Tmavé pozadí jako má Bootstrap */
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    white-space: pre-line;       /* KLÍČOVÉ: Respektuje zalomení řádků (Enter) v atributu */
    width: max-content;          /* Přizpůsobí šířku textu */
    max-width: 280px;            /* Maximální šířka, aby nápověda nebyla moc široká */
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Zobrazení při najetí myši */
.custom-tooltip:hover::after {
    opacity: 1;
}
