 /* ==========================================================
    TV12 / PROGRAM FLOW
    EPISODES
    IRON THEME
    ----------------------------------------------------------
    Layout/component CSS only.
    All colors come from theme-iron.css.
    ========================================================== */


/* ==========================================================
   PAGE
   ========================================================== */

.episodes-page {

    max-width: 1500px;

    margin: 0 auto;

    padding: 28px 30px 80px;

}


/* ==========================================================
   INTRO
   ========================================================== */

.episodes-intro {

    margin-bottom: 24px;

}

.episodes-kicker {

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.16em;

    color: var(--theme-text-muted);

    margin-bottom: 5px;

}

.episodes-intro h1 {

    margin: 0;

    font-size: 28px;

    line-height: 1.2;

    color: var(--theme-text);

}

.episodes-intro p {

    margin: 7px 0 0;

    color: var(--theme-text-muted);

    font-size: 14px;

}


/* ==========================================================
   PROGRAM SELECTOR
   ========================================================== */

.episode-program-selector {

    background: var(--theme-panel);

    border: 1px solid var(--theme-border);

    border-radius: 12px;

    padding: 18px;

    margin-bottom: 16px;

}

.selector-label {

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.14em;

    color: var(--theme-text-muted);

    margin-bottom: 8px;

}

#programSelect {

    width: 100%;

    max-width: 700px;

    background: var(--theme-input);

    color: var(--theme-text);

    border: 1px solid var(--theme-border);

    border-radius: 8px;

    padding: 12px 14px;

    font-size: 15px;

}

#programSelect:focus {

    outline: none;

    border-color: var(--theme-primary);

    background: var(--theme-input-focus);

    box-shadow: 0 0 0 2px var(--theme-primary-soft);

}

.program-info {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 12px;

}

.program-info:empty {

    display: none;

}

.program-info-badge {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 5px 9px;

    border-radius: 6px;

    background: var(--theme-panel-secondary);

    border: 1px solid var(--theme-border);

    color: var(--theme-text-muted);

    font-size: 11px;

}

.program-info-badge.good {

    color: var(--theme-success);

}

.program-info-badge.warning {

    color: var(--theme-warning);

}


/* ==========================================================
   TOOLBAR
   ========================================================== */

.episode-toolbar {

    display: flex;

    gap: 10px;

    align-items: center;

    margin-bottom: 16px;

}

.episode-search-wrap {

    position: relative;

    flex: 1;

}

.episode-search-icon {

    position: absolute;

    left: 12px;

    top: 50%;

    transform: translateY(-50%);

    pointer-events: none;

    color: var(--theme-text-muted);

    opacity: 0.7;

}

#episodeSearch {

    width: 100%;

    box-sizing: border-box;

    background: var(--theme-input);

    border: 1px solid var(--theme-border);

    border-radius: 8px;

    color: var(--theme-text);

    padding: 11px 12px 11px 38px;

    font-size: 14px;

}

#episodeSearch:focus {

    outline: none;

    background: var(--theme-input-focus);

    border-color: var(--theme-primary);

    box-shadow: 0 0 0 2px var(--theme-primary-soft);

}

#episodeStatusFilter {

    min-width: 190px;

    background: var(--theme-input);

    border: 1px solid var(--theme-border);

    border-radius: 8px;

    color: var(--theme-text);

    padding: 11px 12px;

}

#episodeStatusFilter:focus {

    outline: none;

    background: var(--theme-input-focus);

    border-color: var(--theme-primary);

    box-shadow: 0 0 0 2px var(--theme-primary-soft);

}

.episode-refresh-button {

    border: 1px solid var(--theme-border);

    background: var(--theme-gradient-button);

    color: var(--theme-text);

    border-radius: 8px;

    padding: 10px 14px;

    cursor: pointer;

}

.episode-refresh-button:hover {

    background: var(--theme-gradient-button-hover);

}


/* ==========================================================
   SUMMARY
   ========================================================== */

.episode-summary {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;

    margin-bottom: 16px;

}

.summary-item {

    background: var(--theme-panel);

    border: 1px solid var(--theme-border);

    border-radius: 10px;

    padding: 13px 15px;

}

.summary-item strong {

    display: block;

    font-size: 20px;

    line-height: 1;

    margin-bottom: 5px;

    color: var(--theme-text);

}

.summary-item span {

    color: var(--theme-text-muted);

    font-size: 11px;

}


/* ==========================================================
   EPISODE CONTAINER
   ========================================================== */

.episodes-container {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


/* ==========================================================
   EPISODE CARD
   ========================================================== */

.new-episode-card {

    background: var(--theme-panel);

    border: 1px solid var(--theme-border);

    border-radius: 12px;

    overflow: hidden;

    transition:
        border-color 0.15s ease,
        background 0.15s ease;

}

.new-episode-card:hover {

    border-color: var(--theme-border-light);

    background: var(--theme-panel-secondary);

}

.new-episode-card.archived {

    opacity: 0.68;

}


/* ==========================================================
   EPISODE MAIN
   ========================================================== */

.new-episode-main {

    padding: 16px;

}

.new-episode-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;

}

.new-episode-title {

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;

}

.new-episode-number {

    flex: 0 0 auto;

    min-width: 42px;

    height: 32px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 7px;

    background: var(--theme-panel-secondary);

    border: 1px solid var(--theme-border);

    color: var(--theme-text);

    font-size: 12px;

    font-weight: 800;

}

.new-episode-name {

    font-size: 16px;

    font-weight: 700;

    color: var(--theme-text);

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}

.new-episode-badges {

    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 6px;

}

.ep-badge {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    border-radius: 6px;

    padding: 4px 7px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.04em;

    border: 1px solid var(--theme-border);

    background: var(--theme-panel-secondary);

    color: var(--theme-text-muted);

}

.ep-badge.active {

    color: var(--theme-success);

}

.ep-badge.archived {

    color: var(--theme-text-muted);

}

.ep-badge.history {

    color: var(--theme-info);

}

.ep-badge.mapped {

    color: var(--theme-success);

}

.ep-badge.unmapped {

    color: var(--theme-warning);

}

.ep-badge.file {

    color: var(--theme-text);

}

.ep-badge.no-file {

    color: var(--theme-warning);

}


/* ==========================================================
   EPISODE DELETE BUTTON
   ========================================================== */

.ep-delete-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border: 1px solid var(--theme-danger);

    background: var(--theme-danger-soft);

    color: var(--theme-danger);

    border-radius: 6px;

    padding: 4px 7px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.04em;

    cursor: pointer;

    line-height: 1.2;

}

.ep-delete-button:hover {

    background: var(--theme-danger);

    color: var(--theme-text);

}

.ep-delete-button.disabled {

    opacity: 0.45;

    cursor: not-allowed;

}


/* ==========================================================
   EPISODE META
   ========================================================== */

.new-episode-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 12px;

    color: var(--theme-text-muted);

    font-size: 12px;

}

.new-episode-meta span {

    display: inline-flex;

    align-items: center;

    gap: 5px;

}

.episode-filepath {

    margin-top: 10px;

    padding: 8px 10px;

    background: var(--theme-bg);

    border: 1px solid var(--theme-border);

    border-radius: 6px;

    color: var(--theme-text-muted);

    font-family: monospace;

    font-size: 11px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}


/* ==========================================================
   EPISODE ACTIONS
   ========================================================== */

.new-episode-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 14px;

}

.episode-history-button,
.episode-edit-button {

    border: 1px solid var(--theme-border);

    background: var(--theme-gradient-button);

    color: var(--theme-text);

    border-radius: 7px;

    padding: 8px 12px;

    cursor: pointer;

    font-size: 12px;

}

.episode-history-button:hover,
.episode-edit-button:hover {

    border-color: var(--theme-border-strong);

    background: var(--theme-gradient-button-hover);

}

.episode-history-button.has-history {

    border-color: var(--theme-info);

    color: var(--theme-info);

}

.episode-history-button.loading {

    opacity: 0.6;

    pointer-events: none;

}


/* ==========================================================
   HISTORY
   ========================================================== */

.episode-history {

    border-top: 1px solid var(--theme-border);

    background: var(--theme-bg-secondary);

}

.history-header {

    padding: 12px 16px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.history-title {

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.1em;

    color: var(--theme-text-muted);

}

.history-count {

    font-size: 11px;

    color: var(--theme-info);

}

.history-list {

    display: flex;

    flex-direction: column;

}

.history-row {

    display: grid;

    grid-template-columns: 150px 110px 1fr auto;

    align-items: center;

    gap: 12px;

    padding: 11px 16px;

    border-top: 1px solid var(--theme-border);

}

.history-date {

    font-size: 12px;

    font-weight: 700;

    color: var(--theme-text);

}

.history-time {

    font-family: monospace;

    font-size: 12px;

    color: var(--theme-text-secondary);

}

.history-description {

    min-width: 0;

    color: var(--theme-text-muted);

    font-size: 11px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}

.history-type {

    justify-self: end;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 4px 7px;

    border-radius: 5px;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.06em;

}

.history-type.original {

    background: var(--theme-success-soft);

    color: var(--theme-success);

    border: 1px solid var(--theme-success);

}

.history-type.repeat {

    background: var(--theme-info-soft);

    color: var(--theme-info);

    border: 1px solid var(--theme-info);

}

.history-confirmed {

    color: var(--theme-success);

    font-size: 11px;

}


/* ==========================================================
   HISTORY EMPTY / ERROR
   ========================================================== */

.history-message {

    padding: 15px 16px;

    color: var(--theme-text-muted);

    font-size: 12px;

}

.history-message.error {

    color: var(--theme-danger);

}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.episodes-empty {

    padding: 60px 20px;

    text-align: center;

    border: 1px dashed var(--theme-border);

    border-radius: 12px;

    background: var(--theme-panel);

}

.empty-icon {

    font-size: 32px;

    margin-bottom: 10px;

}

.episodes-empty h2 {

    margin: 0 0 6px;

    font-size: 17px;

    color: var(--theme-text);

}

.episodes-empty p {

    margin: 0;

    color: var(--theme-text-muted);

    font-size: 13px;

}


/* ==========================================================
   LOAD MORE
   ========================================================== */

.episode-load-more {

    padding: 20px 0;

    text-align: center;

}

.episode-load-more button {

    border: 1px solid var(--theme-border);

    background: var(--theme-gradient-button);

    color: var(--theme-text);

    border-radius: 8px;

    padding: 10px 18px;

    cursor: pointer;

}

.episode-load-more button:hover {

    background: var(--theme-gradient-button-hover);

}


/* ==========================================================
   UTILITIES
   ========================================================== */

.hidden {

    display: none !important;

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 800px) {

    .episodes-page {

        padding: 20px 14px 60px;

    }

    .episode-toolbar {

        flex-direction: column;

        align-items: stretch;

    }

    #episodeStatusFilter {

        width: 100%;

    }

    .episode-refresh-button {

        width: 100%;

    }

    .episode-summary {

        grid-template-columns: repeat(2, 1fr);

    }

    .new-episode-header {

        flex-direction: column;

    }

    .new-episode-badges {

        justify-content: flex-start;

    }

    .history-row {

        grid-template-columns: 1fr auto;

        gap: 6px 12px;

    }

    .history-date {

        grid-column: 1;

    }

    .history-time {

        grid-column: 2;

        text-align: right;

    }

    .history-description {

        grid-column: 1 / -1;

    }

    .history-type {

        grid-column: 1 / -1;

        justify-self: start;

    }

}


@media (max-width: 480px) {

    .episode-summary {

        grid-template-columns: 1fr 1fr;

    }

    .new-episode-name {

        white-space: normal;

    }

}


/* ==========================================================
   EPISODE EDITOR MODAL
   ========================================================== */

body.episode-modal-open {

    overflow: hidden;

}

.episode-modal {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

}

.episode-modal.hidden {

    display: none !important;

}

.episode-modal-backdrop {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.72);

    backdrop-filter: blur(3px);

}

.episode-modal-dialog {

    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 820px;

    max-height: calc(100vh - 40px);

    overflow: auto;

    background: var(--theme-panel);

    border: 1px solid var(--theme-border);

    border-radius: 14px;

    box-shadow: var(--theme-shadow-card);

}

.episode-modal-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    padding: 18px 20px;

    border-bottom: 1px solid var(--theme-border);

}

.episode-modal-kicker {

    color: var(--theme-text-muted);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.14em;

    margin-bottom: 4px;

}

.episode-modal-header h2 {

    margin: 0;

    font-size: 20px;

    color: var(--theme-text);

}

.episode-modal-close {

    flex: 0 0 auto;

    width: 34px;

    height: 34px;

    border: 1px solid var(--theme-border);

    background: var(--theme-gradient-button);

    color: var(--theme-text);

    border-radius: 7px;

    font-size: 22px;

    line-height: 1;

    cursor: pointer;

}

.episode-modal-close:hover {

    border-color: var(--theme-border-strong);

    background: var(--theme-gradient-button-hover);

}

.episode-modal-body {

    padding: 20px;

}


/* ==========================================================
   EDITOR CONTEXT
   ========================================================== */

.episode-editor-context {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 20px;

}

.editor-context-item {

    min-width: 0;

    padding: 11px 12px;

    background: var(--theme-bg);

    border: 1px solid var(--theme-border);

    border-radius: 8px;

}

.editor-context-item span {

    display: block;

    color: var(--theme-text-muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.1em;

    margin-bottom: 5px;

}

.editor-context-item strong {

    display: block;

    color: var(--theme-text);

    font-size: 12px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}


/* ==========================================================
   FORM
   ========================================================== */

.episode-form-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;

}

.episode-form-field {

    min-width: 0;

}

.episode-form-field-wide {

    grid-column: 1 / -1;

}

.episode-form-field label {

    display: block;

    margin-bottom: 6px;

    color: var(--theme-text-muted);

    font-size: 11px;

    font-weight: 700;

}

.episode-form-field input[type="text"],
.episode-form-field input[type="number"],
.episode-form-field input[type="date"],
.episode-form-field textarea {

    width: 100%;

    box-sizing: border-box;

    background: var(--theme-input);

    border: 1px solid var(--theme-border);

    border-radius: 7px;

    color: var(--theme-text);

    padding: 10px 11px;

    font-family: inherit;

    font-size: 13px;

}

.episode-form-field textarea {

    resize: vertical;

    min-height: 100px;

}

.episode-form-field input:focus,
.episode-form-field textarea:focus {

    outline: none;

    background: var(--theme-input-focus);

    border-color: var(--theme-primary);

    box-shadow: 0 0 0 2px var(--theme-primary-soft);

}

.episode-form-checkbox {

    display: flex;

    align-items: flex-end;

}

.episode-form-checkbox label {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin: 0;

    padding: 10px 12px;

    background: var(--theme-input);

    border: 1px solid var(--theme-border);

    border-radius: 7px;

    color: var(--theme-text);

    cursor: pointer;

    width: 100%;

    box-sizing: border-box;

}

.episode-form-checkbox input {

    width: 16px;

    height: 16px;

    accent-color: var(--theme-success);

}


/* ==========================================================
   HISTORY NOTE
   ========================================================== */

.episode-editor-history-note {

    margin-top: 16px;

    padding: 11px 13px;

    background: var(--theme-info-soft);

    border: 1px solid var(--theme-info);

    border-radius: 7px;

    color: var(--theme-info);

    font-size: 11px;

    line-height: 1.5;

}

.episode-editor-history-note strong {

    color: var(--theme-text);

}


/* ==========================================================
   MODAL ACTIONS
   ========================================================== */

.episode-modal-actions {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 20px;

    padding-top: 16px;

    border-top: 1px solid var(--theme-border);

}

.episode-editor-status {

    min-width: 0;

    color: var(--theme-text-muted);

    font-size: 12px;

}

.episode-editor-status.loading {

    color: var(--theme-text-muted);

}

.episode-editor-status.success {

    color: var(--theme-success);

}

.episode-editor-status.error {

    color: var(--theme-danger);

}

.episode-modal-buttons {

    display: flex;

    gap: 8px;

    flex: 0 0 auto;

}

.episode-modal-button {

    border: 1px solid var(--theme-border);

    border-radius: 7px;

    padding: 9px 15px;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

}

.episode-modal-button.secondary {

    background: var(--theme-gradient-button);

    color: var(--theme-text);

}

.episode-modal-button.primary {

    background: var(--theme-gradient-primary);

    border-color: var(--theme-primary-dark);

    color: var(--theme-text);

}

.episode-modal-button:hover {

    border-color: var(--theme-border-strong);

    background: var(--theme-gradient-button-hover);

}

.episode-modal-button.primary:hover {

    background: var(--theme-gradient-primary-hover);

}

.episode-modal-button:disabled {

    opacity: 0.5;

    cursor: default;

}


/* ==========================================================
   HISTORY FIRST-AIR
   ========================================================== */

.episode-first-air-historical {

    color: var(--theme-info) !important;

}

.episode-first-air-historical small {

    color: var(--theme-info);

    font-size: 10px;

    opacity: 0.8;

}


/* ==========================================================
   MODAL MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .episode-modal {

        padding: 10px;

        align-items: flex-end;

    }

    .episode-modal-dialog {

        max-height: calc(100vh - 20px);

        border-radius: 12px 12px 0 0;

    }

    .episode-editor-context {

        grid-template-columns: 1fr;

    }

    .episode-form-grid {

        grid-template-columns: 1fr;

    }

    .episode-form-field-wide {

        grid-column: auto;

    }

    .episode-modal-actions {

        flex-direction: column;

        align-items: stretch;

    }

    .episode-modal-buttons {

        width: 100%;

    }

    .episode-modal-button {

        flex: 1;

    }

}


/* ==========================================================
   ENHANCED HISTORY
   ========================================================== */

.history-mapping {

    padding: 12px 16px;

    border-bottom: 1px solid var(--theme-border);

    background: var(--theme-bg-secondary);

}

.history-mapping-title {

    margin-bottom: 7px;

    color: var(--theme-text-muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.1em;

}

.history-mapping-list {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

}

.history-mapping-name {

    display: inline-flex;

    align-items: center;

    padding: 4px 7px;

    border-radius: 5px;

    background: var(--theme-panel-secondary);

    border: 1px solid var(--theme-border);

    color: var(--theme-text-secondary);

    font-size: 10px;

}


.history-program-title {

    color: var(--theme-text);

    font-size: 11px;

    font-weight: 600;

}

.history-description-text {

    margin-top: 3px;

    color: var(--theme-text-muted);

    font-size: 10px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}


.history-status {

    justify-self: end;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 4px;

}


.history-confirmation {

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.04em;

}

.history-confirmation.confirmed {

    color: var(--theme-success);

}

.history-confirmation.pending {

    color: var(--theme-warning);

}

.history-confirmation.not-confirmed {

    color: var(--theme-danger);

}

.history-confirmation.unknown {

    color: var(--theme-text-muted);

}


.history-readonly {

    padding: 9px 16px;

    border-top: 1px solid var(--theme-border);

    color: var(--theme-text-muted);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.08em;

}


/* ==========================================================
   EDITOR LEGACY SERIES
   ========================================================== */

.editor-legacy-series-list {

    display: flex;

    flex-direction: column;

    gap: 4px;

}

.editor-legacy-series-item {

    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}

.editor-legacy-series-empty {

    color: var(--theme-warning);

}


/* ==========================================================
   EDITOR HISTORY
   ========================================================== */

.editor-history-loading {

    color: var(--theme-text-muted);

    font-size: 11px;

}

.editor-history-summary {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 8px;

    color: var(--theme-text-muted);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.06em;

}

.editor-history-summary span:last-child {

    color: var(--theme-text-muted);

    font-size: 9px;

}


.editor-history-list {

    display: flex;

    flex-direction: column;

    gap: 5px;

}

.editor-history-row {

    display: grid;

    grid-template-columns:
        90px
        90px
        1fr
        auto;

    align-items: center;

    gap: 10px;

    padding: 8px 9px;

    background: var(--theme-bg);

    border: 1px solid var(--theme-border);

    border-radius: 6px;

}

.editor-history-date {

    color: var(--theme-text);

    font-size: 10px;

    font-weight: 700;

}

.editor-history-time {

    color: var(--theme-text-secondary);

    font-family: monospace;

    font-size: 10px;

}

.editor-history-info {

    min-width: 0;

}

.editor-history-info strong {

    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: var(--theme-text);

    font-size: 10px;

}

.editor-history-info span {

    display: block;

    margin-top: 2px;

    color: var(--theme-text-muted);

    font-size: 9px;

}

.editor-history-confirmation {

    text-align: right;

}

.editor-history-empty {

    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 12px;

    background: var(--theme-bg);

    border: 1px solid var(--theme-border);

    border-radius: 7px;

}

.editor-history-empty strong {

    color: var(--theme-text);

    font-size: 11px;

}

.editor-history-empty span {

    color: var(--theme-text-muted);

    font-size: 10px;

    line-height: 1.4;

}

.editor-history-error {

    padding: 11px;

    background: var(--theme-danger-soft);

    border: 1px solid var(--theme-danger);

    border-radius: 7px;

    color: var(--theme-danger);

    font-size: 11px;

}


/* ==========================================================
   MOBILE HISTORY
   ========================================================== */

@media (max-width: 700px) {

    .history-row {

        grid-template-columns:
            1fr auto;

    }

    .history-date {

        grid-column: 1;

    }

    .history-time {

        grid-column: 2;

        text-align: right;

    }

    .history-description {

        grid-column: 1 / -1;

        white-space: normal;

    }

    .history-status {

        grid-column: 1 / -1;

        justify-self: start;

        flex-direction: row;

        align-items: center;

    }


    .editor-history-row {

        grid-template-columns:
            1fr auto;

    }

    .editor-history-date {

        grid-column: 1;

    }

    .editor-history-time {

        grid-column: 2;

        text-align: right;

    }

    .editor-history-info {

        grid-column: 1 / -1;

    }

    .editor-history-confirmation {

        grid-column: 1 / -1;

        text-align: left;

    }

}
