/* offline module styles (N11) */

.offline-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.2em 0.6em;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ecf0f1;
    font-size: 0.8rem;
    white-space: nowrap;
}

.offline-chip.hidden {
    display: none;
}

.offline-chip.offline-chip-down {
    background: #e67e22;
    color: #fff;
    font-weight: 600;
}

.offline-chip.offline-chip-down::before {
    content: '⚠';
}

.offline-status,
.offline-estimate,
.offline-report,
.offline-storage,
.offline-note {
    font-size: 0.8rem;
    line-height: 1.35;
    margin: 0 0 0.5em;
    color: #cfd8dc;
    word-break: break-word;
}

.offline-note {
    color: #90a4ae;
    font-style: italic;
}

.offline-report:empty {
    margin: 0;
}

.offline-report-warn {
    color: #f39c12;
}

.offline-save {
    width: 100%;
    padding: 0.6em 0.8em;
    margin-bottom: 0.5em;
    border: none;
    border-radius: 4px;
    background: #27ae60;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    min-height: 44px;              /* thumb-sized for gloves in the woods */
}

.offline-save:hover:not(:disabled) {
    background: #219150;
}

.offline-save:disabled {
    opacity: 0.6;
    cursor: default;
}

.offline-progress {
    margin-bottom: 0.5em;
}

.offline-progress.hidden {
    display: none;
}

.offline-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.offline-bar-fill {
    height: 100%;
    width: 0;
    background: #27ae60;
    transition: width 0.2s ease;
}

.offline-progress-text {
    font-size: 0.78rem;
    color: #cfd8dc;
    margin: 0.35em 0;
}

.offline-cancel {
    width: 100%;
    padding: 0.45em 0.8em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    color: #ecf0f1;
    font-size: 0.85rem;
    cursor: pointer;
    min-height: 40px;
}

.offline-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
}
