/* ============================================
   POMOCNÉ TŘÍDY - MAPA SKŘÍNĚK
   Verze: 6.0
   ============================================ */

/* === SKRYTÍ PRO TISK === 
* Všechny třídy s prefixem .no-print se skryjí v @media print
* Tato třída je aktivní pouze v @media print, zde je jen pro dokumentaci
* .no-print {
* 
* } 
*/

/* === INLINE FORMULÁŘE === */
.inline-form {
    display: inline;
}

.inline-form input,
.inline-form button,
.inline-form select {
    display: inline-block;
    vertical-align: middle;
}

/* === KONFLIKT VAROVÁNÍ (Alternativní styl) === */
/* Pokud není použito v control-panel.css, zde je globální definice */
.conflict-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-medium);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-small);
    color: var(--warning-text);
}

.conflict-warning strong {
    color: var(--warning-text);
}

.conflict-warning em {
    font-style: italic;
    color: var(--text-color);
}

/* === STATUS OK === */
.status-ok {
    color: var(--success-text);
    font-weight: bold;
}

/* === TEXT ALIGMENT === */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

/* === ZOBRAZENÍ / SKRYTÍ === */
.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

/* === FLEXBOX POMOCNÉ === */
.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.align-start {
    align-items: flex-start;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: flex-end;
}

/* === GRID POMOCNÉ === */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

/* === MARGINS A PADDINGS (Utlity pro rychlé úpravy) === */
.m-0 { margin: 0; }
.m-1 { margin: var(--spacing-xs); }
.m-2 { margin: var(--spacing-sm); }
.m-3 { margin: var(--spacing-md); }
.m-4 { margin: var(--spacing-lg); }
.m-5 { margin: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

/* === BORDER RADIUS === */
.rounded-sm { border-radius: var(--border-radius-small); }
.rounded-md { border-radius: var(--border-radius-medium); }
.rounded-lg { border-radius: var(--border-radius-large); }
.rounded-full { border-radius: 50%; }

/* === FONT WEIGHT === */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

/* === FONT SIZE === */
.text-xs { font-size: var(--font-size-small); }
.text-sm { font-size: 0.9em; }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: 1.1em; }
.text-xl { font-size: 1.2em; }

/* === CURSOR === */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-default { cursor: default; }

/* === TRANSITION === */
.transition-all {
    transition: all 0.2s ease;
}

.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* === VISUÁLNĚ SKRYTÉ (pro screenreadery) === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === RESPONZIVNÍ POMOCNÉ === */
@media (max-width: 900px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hide-tablet {
        display: none !important;
    }
}