/* 7. BULK-EDIT.CSS - Style dla formularzy masowej edycji */

/* --- Tag stanu (Bez zmian / Cofnij zmiany) --- */
.bulk-tag {
    font-size: 0.85rem;        
    font-weight: 500;          
    text-transform: none;      
    letter-spacing: normal;    
    
    padding: 0.15em 0.6em;
    border-radius: 0.25em; 
    margin-left: 0.75em;
    transition: all 0.2s;
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

/* Stan: Domyślny / Pusty input */
.bulk-tag.no-change {
    background: transparent;
    color: var(--text-secondary); 
    border: 0.0625em solid transparent; 
    pointer-events: none;
    box-shadow: none;
    opacity: 0.8; 
}

/* Stan: Zmieniony / Wypełniony input */
.bulk-tag.changed {
    background: var(--primary-main);
    color: var(--primary-content);
    cursor: pointer;
    pointer-events: auto;
    font-weight: 600; 
    box-shadow: var(--shadow-sm);
}

/* --- Przycisk resetu (tekstowy) --- */
.btn-reset-small {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.8em;
    text-transform: none;
    font-weight: 400;
    background: none;
    border: none;
    padding: 0;
}

.btn-reset-small:hover {
    color: var(--primary-main);
    text-decoration: underline;
}

/* Wariant pozycjonowany absolutnie (nad inputem) */
.btn-reset-abs {
    position: absolute;
    top: -1.5em;
    right: 0;
}

/* Ukrywanie standardowego krzyżyka (X) w inputach w trybie edycji grupowej,
   ponieważ mamy własny mechanizm "Cofnij zmiany" */
.input-text.bulk-mode .input-clear {
    display: none !important;
}

/* Stylowanie placeholdera dla trybu bulk (pochylony font) */
.input-text.bulk-mode input::placeholder {
    font-style: italic;
}

/* --- NOWE STYLE (UNIFIKACJA) --- */

/* Unifikacja etykiet (Labeli) w formularzu masowej edycji */
.bulk-edit-form .theme-label,
.bulk-edit-form .input-label {
    font-family: inherit;
    font-size: 0.75em !important;     
    font-weight: 700 !important;      
    text-transform: uppercase !important; 
    letter-spacing: 0.05em !important; 
    color: var(--text-secondary);     
}

/* Style pozycjonujące dla input-text, aby tag był przy prawej krawędzi */
.bulk-edit-form .input-text .input-label {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none; 
}

/* Ale sam tag wewnątrz labela musi być klikalny */
.bulk-edit-form .input-text .input-label .bulk-tag {
    pointer-events: auto;
}

/* --- NAGŁÓWEK CUSTOM MODAL (wstrzykiwany jako tytuł modala) --- */
.bulk-modal-title {
    /* Kontener tytułu, może wymagać resetu stylów rodzica (np. h3 w modal header) */
    line-height: 1.2;
}

.bulk-modal-title h1 {
    font-size: 1.5rem; /* Większy font dla tytułu */
    margin: 0;
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: 800;
}

.bulk-modal-title .subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400; /* Reset wagi, jeśli rodzic h3 ma bold */
    text-transform: none;
    margin-top: 0.2em;
}

/* --- OSTRZEŻENIE (WARNING / ERROR) --- */
.bulk-warning {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 0.125em solid var(--error-main);
    border-radius: 0em;
    padding: 0.75em;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1em;
	margin-top: 1em;
}

.bulk-edit-form .input-text {
	margin-top: 2em;
}

