div.privileged-override-original-info {
    margin: 1rem;
    border: 1px solid;
    border-radius: 0.5rem;
    background-color: var(--article-background-color);
}

#privileged-override-message {
    display: none;
    margin: 0.5rem 1rem;
    padding: 0 0.25rem;
    border-radius: 0.5rem;
    background-color: var(--background-color);
    border: 1px solid black;
}

#privileged-override-message>p:first-child {
    filter: drop-shadow(2px 2px 3px yellow);
}

#privileged-override-message.show {
    display: block;
}

#privileged-override-original-message {
    font-weight: bolder;
    padding: 0 1rem;
}

.privileged-override-info dl {
    color: var(--text-color-bright);
    background-color: rgb(25%, 45%, 50%);
    border: 2px solid rgb(15%, 35%, 40%);
    padding: .25rem;
    margin: .5rem 0;
    width: calc(100% - 1rem);
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
}
.privileged-override-info dt {
    border-right: 2px solid rgb(15%, 35%, 40%);
    border-bottom: 2px solid rgb(15%, 35%, 40%);
    display: inline-grid;
    grid-column-end: span 3;
}
.privileged-override-info dd {
    display: inline-grid;
    margin-inline-start: 0;
    padding-inline-start: 0.5rem;
    border-bottom: 2px solid rgb(15%, 35%, 40%);
    grid-column-end: span 4;
}

span.flagged-message {
  display: inline-flex;
  position: absolute;
  right: 0;
  top: -2rem;
  z-index: 2;
  border-radius: 0.25rem;
  border: 1px solid var(--help-box-color);
  background-color: var(--help-box-background-color);
  color: var(--help-box-color);
  opacity: .9;
  align-items: center;
  max-width: 15rem;
}

span.flagged-message.hidden {
  visibility: hidden;
}

span.flagged-message::before {
  content: '💬';
  font-size: 2rem;
  padding-inline-end: .5rem;
}

button.flagged-message-close {
    all: unset;
    display: inline-flex;
    font-size: 2rem;
    padding-inline-start: 0.5rem;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
}

div.fieldWrapper > div.duration-info-wrapper {
    background-color: var(--section-title-background-color);
    align-items: center;
}

#davids-refresh-button {
    position: fixed;
    bottom: 50%;
    right: 0;
    font-size: xx-large;
    z-index: 1;
}

/* candidate for base.css */

#attempt_registration {
    display: block;
    margin: 0 auto;
    padding: .5rem;
    font-size: xx-large;
    font-weight: 500;
    background-color: var(--section-title-darker-background-color);
    color: var(--text-color-bright);
    justify-content: center;
    align-content: center;
    font-style: normal;
    border-radius: 1rem;
    border: 4px solid var(--article-background-color);
}

#permit-limit-and-usage > table {
    width: 100%;
}

#permit-limit-and-usage > table th {
    background-color: var(--section-title-background-color);
    color: var(--text-color-bright);
    border-radius: .25rem;
    border-bottom: unset;
}

#permit-limit-and-usage > table th:nth-of-type(1) {
    background-color: var(--background-color-demur);
}

#permit-limit-and-usage > table th:nth-of-type(3) {
    background-color: var(--section-title-darker-background-color);
}

#permit-limit-and-usage > table td {
    color: var(--text-color-medium);
    background-color: var(--background-color-demur);
    border: var(--item-border);
    font-family: 'Roboto';
    font-size: medium;
}

#permit-limit-and-usage > table td:first-of-type {
    color: var(--text-color-bright);
    background-color: var(--section-title-background-color);
    font-family: 'Roboto';
    font-weight: bold;
    font-size: medium;
}

.fieldWrapper > .duration-info-wrapper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: .2rem .2rem;
    background-color: var(--section-title-background-color);
    border: 1px solid rgba(200, 200, 200, .8);
    border-radius: .25rem;
}

.fieldWrapper > .duration-info-wrapper-grid > .duration-info-subwrapper-grid {
    display: grid;
    grid-auto-rows: 1fr;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: .2rem .2rem;
    background-color: var(--background-color);
    padding: .2rem;
    width: calc(100% - .4rem);
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
}

.fieldWrapper > .duration-info-wrapper-grid > .duration-info-subwrapper-grid:first-of-type {
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
    border-top-right-radius: unset;
    border-bottom-right-radius: unset;
}

.duration-info-subwrapper-grid > .duration-info-label,
.duration-info-subwrapper-grid > .duration-info-input {
    height: 100%;
    width: 100%;
    display: inline-grid;
    justify-content: start;
}

.duration-info-subwrapper-grid > .duration-info-label label,
.duration-info-subwrapper-grid > .duration-info-input select {
    height: 1.75rem;
    width: 100%;
    box-sizing: border-box; /* needed to make INPUT and SELECT the same width */
    display: inline-grid;
    align-items: center;
    margin-bottom: 0;
}

.duration-info-subwrapper-grid > .duration-info-label label[disabled] {
    opacity: 1.0;
    color: var(--article-background-color);
}
.duration-info-subwrapper-grid > .duration-info-input input,
.duration-info-subwrapper-grid > .duration-info-input output,
.duration-info-subwrapper-grid > .duration-info-input select {
    height: 1.75rem;
    box-sizing: border-box; /* needed to make INPUT and SELECT the same width */
    width: 6rem;
    padding: 1px 2px;
}

.duration-info-subwrapper-grid > .duration-info-input input {
    padding-left: 5px;
}

fieldset.calendar-schedule {
    display: none;
}

#unfinished-details::before {
    content: 'Due to abuse, we have to make things a bit less pre-filled. Please finish these sections:';
}

#unfinished-details.hidden {
    display: none;
}

#parking-permit-registration-form {
    fieldset {
        border-radius: .25rem;
    }

    legend {
        padding: 0;
        top: -0.75rem;
        width: calc(100% - .1rem);
    }

    #registrant,
    #resident-person-details {
        legend {
            top: -1.25rem;
        }
    }

    table.voidable-permits {
        flex-grow: 1;
    }
}
