/**
 * @author      Luděk Nezmar
 * @copyright   2018-2026 ACRESIA Consulting s.r.o.
 * @license     Proprietary – použití podléhá licenčnímu ujednání
 */

/* Whistleblowing Manager – frontend styles */

.com-wbl .wbl-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.wbl-status-new        { background: #0d6efd; color: #fff; }
.wbl-status-received   { background: #6c757d; color: #fff; }
.wbl-status-in_progress { background: #fd7e14; color: #fff; }
.wbl-status-waiting_info { background: #ffc107; color: #000; }
.wbl-status-escalated  { background: #dc3545; color: #fff; }
.wbl-status-resolved   { background: #198754; color: #fff; }
.wbl-status-closed     { background: #6c757d; color: #fff; }
.wbl-status-dismissed  { background: #adb5bd; color: #000; }

.wbl-priority-low      { color: #198754; }
.wbl-priority-medium   { color: #fd7e14; }
.wbl-priority-high     { color: #dc3545; }
.wbl-priority-critical { color: #dc3545; font-weight: bold; }

.wbl-license-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.wbl-license-basic        { background: #e9ecef; color: #495057; }
.wbl-license-standard     { background: #cfe2ff; color: #084298; }
.wbl-license-professional { background: #d1e7dd; color: #0f5132; }
.wbl-license-enterprise   { background: #fff3cd; color: #664d03; }

/* --- Dashboard Stats Row (matches ISMS incidents pattern) --- */
.wbl-stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.wbl-stat-card {
    flex: 1;
    min-width: 140px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.wbl-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}
.wbl-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    margin-top: 4px;
    letter-spacing: 0.5px;
}
.wbl-stat-danger { border-left: 4px solid #dc3545; }
.wbl-stat-danger .wbl-stat-value { color: #dc3545; }
.wbl-stat-warning { border-left: 4px solid #fd7e14; }
.wbl-stat-warning .wbl-stat-value { color: #fd7e14; }
.wbl-stat-success { border-left: 4px solid #198754; }
.wbl-stat-success .wbl-stat-value { color: #198754; }
.wbl-stat-info { border-left: 4px solid #0d6efd; }
.wbl-stat-info .wbl-stat-value { color: #0d6efd; }

/* ============================================================
   Phase 2: Submit stepper wizard
   ============================================================ */
.wbl-stepper-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
    gap: 4px;
}

.wbl-stepper-step {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.wbl-stepper-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 15px;
    transition: background 0.2s;
}

.wbl-stepper-step.active .wbl-stepper-circle {
    background: #6a9f55;
}

.wbl-stepper-step.completed .wbl-stepper-circle {
    background: #198754;
}

.wbl-stepper-label {
    font-size: 0.85rem;
    color: #555;
}

.wbl-stepper-step.active .wbl-stepper-label {
    color: #333;
    font-weight: 600;
}

.wbl-stepper-connector {
    flex: 0 0 50px;
    width: 50px;
    height: 2px;
    background: #ccc;
}

.wbl-step-panel {
    display: none;
}

.wbl-step-panel.active {
    display: block;
}

/* File upload drop zone */
.wbl-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafafa;
}

.wbl-drop-zone:hover,
.wbl-drop-zone.dragover {
    border-color: #6a9f55;
    background: #f0f7ed;
}

.wbl-file-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.wbl-file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.wbl-file-list li .wbl-file-remove {
    cursor: pointer;
    color: #dc3545;
    font-weight: bold;
    border: none;
    background: none;
    font-size: 1.1rem;
    padding: 0 4px;
}

/* ============================================================
   Phase 2: Track view messages
   ============================================================ */
.wbl-message-bubble {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.wbl-message-reporter {
    background: #e3f2fd;
}

.wbl-message-officer {
    background: #f5f5f5;
}

.wbl-message-system {
    background: #fff8e1;
}

.wbl-message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.wbl-message-sender {
    font-weight: 600;
}

.wbl-message-date {
    color: #6c757d;
}

/* ============================================================
   Phase 2: Report detail (WBO) — notes & deadlines
   ============================================================ */
.wbl-note-bubble {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fef9e7;
    border-left: 3px solid #ffc107;
}

.wbl-deadline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.wbl-deadline-item:last-child {
    border-bottom: none;
}

.wbl-deadline-ok    { color: #198754; }
.wbl-deadline-warn  { color: #fd7e14; }
.wbl-deadline-danger { color: #dc3545; font-weight: bold; }

/* --- Form views: 70% max-width constraint --- */
.com-wbl-form {
    max-width: 70%;
}

/* Toggle switch styling for Yes/No fields */
.com-wbl-form .toggle-switch-field .toggle-label {
    font-weight: 500;
    font-size: 0.9rem;
}
