html {
    font-size: 18px;
}

@media screen and (max-width: 1000px) {
    html {
        font-size: 16px;
    }
}

.page-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 20px;
    text-align: center;
}

.page-error p {
    margin-top: 2px;
}

#helpDialog .card {
    justify-content: flex-start !important;
}

.daterangepicker {
    background: var(--bg) !important;

    .drp-buttons {
        background: var(--bg) !important;
    }

    .calendar-table {
        background: var(--bg) !important;
        border-color: var(--bg) !important;
    }

    .table-condensed {
        background: var(--bg) !important;
    }

    thead th {
        border-radius: 0 !important;
    }

    tr {
        background: var(--bg) !important;
    }

    td:not(.active):not(.in-range) {
        background: var(--bg) !important;
    }

    td.in-range:not(.active) {
        background: var(--accent-dark) !important;
    }
}

.todo-tag {
    border-radius: 50px;
    padding: 4px 10px;
    border: none;
    display: inline-block;
    color: white;
    margin: 0;
    line-height: 1em;
    white-space: nowrap;

    .delete {
        background: transparent;
        border: none;
        color: var(--text);
        cursor: pointer;
        margin: 0;
        padding: 0;
        color: white;
        opacity: 0.7;
        margin-left: 8px;
    }
}

.todo-tag.inverted {
    text-decoration: line-through;
    text-decoration-thickness: 3px;
    font-style: italic;
}

.todo-tag.disabled {
    background: #444 !important;
}

.todo-tag.add {
    background: var(--accent-bg);
    color: black;
    padding: 4px 7px;
}

.tags-grid {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}



.event-view-card {
    &.card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 10px;
        padding: 50px;
        width: 50vw;
        max-width: 1200px;
        position: relative;
        overflow: auto;
    }

    .point-note {
        color: var(--text-light);
        margin-bottom: 10px;
        font-size: 0.8em;
        font-style: italic;
    }

    .remarks {
        background: var(--bg-content-light);
        padding: 10px;
        border-radius: 10px;
        margin-top: 8px;
    }

    section {
        border: none;
        padding: unset;
        overflow: hidden;
    }

    .coi-section .remarks {
        background: var(--accent-dark);
        h4 {
            margin: 0;
            font-size: 1.2em;
        }
    }

    .icon-list {
        display:table;
        border-spacing:6px 0px;
        color: var(--text-light);
        padding: 0;
    }
    .icon-item {
        display:table-row;
        & > * {
            display:table-cell;
        }
    }

    table.points {
        width: 100%;

        th:not(:last-child), td:not(:last-child) {
            text-align: left;
            width: 1px;
            white-space: nowrap;
        }

        td:nth-child(2) {
            padding-left: 20px;
            padding-right: 5px;
            color: var(--text-light);
        }
    }

    .progress {
        border-radius: 5px;
        display: flex;
        overflow: hidden;
        min-height: 6px;

        div {
            height: 6px;
            border-radius: 5px;
        }

        .a {
            background-color: var(--green);
        }
        .b {
            background-color: var(--light-blue);
        }
        .c {
            background-color: var(--red);
        }
    }

    .actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;

        button {
            margin-bottom: 0px;
        }
    }


    h2 {
        margin-top: 0 !important;
        margin-bottom: 10px;
        font-size: 1.4em;
    }
}

@media screen and (max-width: 700px) {
    .event-view-card {
        .actions a, .actions button, .actions #actionContainer {
            width: 100%;
        }
    }
}

  @media screen and (max-width: 1000px) {
    .event-view-card {
        &.card {
            width: 100%;
            height: auto;
            min-height: 100%;
            padding: 20px;
            padding-top: calc(20px + env(safe-area-inset-top));
            border-radius: 0;
        }

        h1 {
            font-size: 1.8em;
            display: flex;
        }

        table.points {
            display: flex;
            flex-direction: column;

            tr {
                margin-bottom: 10px;
                display: flex;
                flex-direction: column;
            }

            td {
                padding-left: 0 !important;
            }
        }    
    }
       
}