@charset "UTF-8";
:root {
    --color-disabled: silver;
    --color-even-rows: #e6e7e8;
}
#collapseDirectory a {
    color: inherit;
}
#collapseDirectory button {
    border: none;
    background: transparent;
    text-align: inherit;
    color: inherit;
}
#collapseDirectory body {
    line-height: 1.5;
}
#collapseDirectory ul {
    list-style: none;
}
#collapseDirectory legend {
    font-size: 16px;
    width: max-content;
    padding: 0 16px;
}
#collapseDirectory input,
#collapseDirectory select {
    background: #fff;
    border: solid #000 1px;
    height: 25px;
    vertical-align: middle;
}
#collapseDirectory main {
    position: relative;
    isolation: isolate;
    overflow: clip;
}
#collapseDirectory h2,
#collapseDirectory h6.h3 {
    padding: 8px;
    margin: 0;
    color: #fff;
}
#collapseDirectory h2 {
    font-size: 48px;
}
#collapseDirectory h6.h3 {
    font-size: 24px;
}
#collapseDirectory address {
    margin: 0;
    padding-block: 0;
}
#collapseDirectory address:has(a) {
    text-decoration: underline;
}
#PAGE_TITLE {
    word-break: keep-all;
}
#search-container {
    display: grid;
    background: #000;
    position: sticky;
    top: 0;
    grid-template-columns: repeat(12, 1fr);
    z-index: 3;
}
#collapseDirectory .searchbar {
    display: grid;
    color: #fff;
    padding: 0 10px 20px 10px;
    grid-column: 5;
    z-index: 3;
}
@layer table-rows {
    @layer unselected,selected;
    .table-caption {
        color: #fff;
    }
    .table-row {
        display: grid;
    }
    @layer table-rows.unselected {
        .tgroup .tbody:nth-child(2n + 1) {
            background: var(--color-even-rows);
        }
        .tgroup .tbody:nth-of-type(2n) {
            background: #fff;
        }
    }
    @layer table-rows.selected {
        .table-row.subheader,
        .table-caption,
        .table-row.tbody:is(:hover, .selected) {
            background: #af1218;
        }
        .table-row.tbody:is(:hover, .selected) {
            color: #fff;
            background: #af1218;
        }
    }
}
#collapseDirectory .table-container {
    max-width: 100vw;
    margin-top: 0;
}
#collapseDirectory .table-data {
    width: 100%;
    display: flex;
    align-items: center;
}
#collapseDirectory .extension {
    text-wrap: nowrap;
}
#collapseDirectory details.table-data summary {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
	line-height: 1.5;
}
#collapseDirectory summary::-webkit-details-marker {
    display: none;
}
#collapseDirectory summary::marker {
    display: none;
}
#search-input {
    padding: 0.25rem;
    border-left: 0;
    height: 35px;
}
#collapseDirectory .invalid {
    display: inline-block;
    color: red;
    transition: all 0.2s ease;
    overflow: hidden;
    height: min-content;
    max-height: 0;
}
#search-input:invalid:not(:placeholder-shown) {
    outline: solid red 1px;
}
:is(#search-input:invalid:not(:placeholder-shown)) {
    max-height: 50px;
}
#collapseDirectory .error,
#staff:not(:has(.tbody, .process-msg)) {
    display: none;
}
#staff:not(:has(.tbody, .process-msg)) + .error {
    display: block;
    margin-block: 3rem;
    font-size: 1.8rem;
}
#collapseDirectory .order-direction {
    overflow: visible;
}
#collapseDirectory .table-container {
    padding: 0;
    margin: 0;
}
#collapseDirectory .process-msg {
    margin-top: 50px;
    font-size: 2rem;
    text-align: center;
}
#dialog-btn {
    color: #fff;
    height: 35px;
    text-align: center;
    width: 50px;
    border: solid #fff;
    border-radius: 5px;
}
#filter-dialog {
    margin: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: #eee;
    pointer-events: none;
    max-width: 350px;
}
#collapseDirectory body:has(:modal) {
    overflow: hidden;
}
#filter-dialog:modal {
    opacity: 1;
    pointer-events: all;
}
#filter-dialog::backdrop {
    background: rgb(0 0 0 / 0.5);
}
#filter-dialog p {
    font-size: 24px;
    padding: 8px 0;
    margin: 0;
}
button#close-dialog {
    font-size: 24px;
    border: solid var(--color-disabled) 1px;
    border-width: 0 0 1px 1px;
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 20px;
}
#close-dialog:hover {
    background: #fff;
}
#filter-dialog form {
    padding: 0 25px 35px;
}
#filter-dialog fieldset {
    margin-bottom: 25px;
    padding-block: 15px;
}
#filter-dialog fieldset:last-of-type {
    border: solid var(--color-disabled) 1px;
    padding-inline: 15px;
}
#filter-dialog label.record-filter {
    display: grid;
    grid-template-columns: 25px 1fr;
}
label.record-filter span {
    margin-left: 10px;
}
#collapseDirectory .name-span {
    font-weight: 700;
}
#collapseDirectory .order-type {
    overflow: auto;
}
#collapseDirectory .hidden {
    display: none;
}
#collapseDirectory address .contact:where(:hover, :active) {
    color: inherit;
    cursor: pointer;
}

#collapseDirectory .table-row summary,
#collapseDirectory .table-row details,
#collapseDirectory .table-row address,
#collapseDirectory .table-row details a:link,
#collapseDirectory .table-row address a:link {
	color: #000000 !important;
	text-decoration: none !important;
}

.table-caption {
	background: #AF1218;
	color: #FFFFFF !important;
	font-size: clamp(2rem, 4vw, 4rem);
}
.table-caption h5.h2 {
	font-size: inherit;
	color: inherit;
}

@media screen and (max-width: 767px) {
    .table-data:not(.name) {
        height: 0;
        padding: 0 1rem;
        overflow: hidden;
        background: cornsilk;
        color: #000;
        border: none;
        transition-property: padding, height;
        transition-timing-function: ease;
        transition-duration: 0.3s;
    }
    details.table-data {
        font-size: 16px;
        width: 100%;
        text-align: start;
        height: 100%;
        padding: 16px;
        position: relative;
        white-space: normal;
        padding-right: 25px;
        list-style: none;
    }
	#collapseDirectory .table-data.name summary {
		width: -webkit-fill-available;
		width: -moz-available;
		width: stretch;
	}
    details.table-data::before {
        content: "\25b4";
        position: absolute;
        right: 0;
        top: 0;
        transform-origin: center;
        height: 100%;
        width: 50px;
        color: #000;
        transition: rotate 0.2s ease;
        font-size: 32px;
        display: flex;
        justify-content: center;
        align-items: center;
        rotate: 0deg;
        background: transparent !important;
    }
    #collapseDirectory details.table-data.name:is([open], :hover, :focus-visible),
    #collapseDirectory details.table-data.name:is([open], :hover, :focus-visible)::before {
        background: #af1218;
        color: #FFFFFF !important;
    }
	#collapseDirectory details.table-data.name:is([open], :hover, :focus-visible) summary {
		color: #FFFFFF !important;
	}
    #collapseDirectory details.table-data.name[open]::before {
        rotate: 180deg;
    }
    #collapseDirectory details.table-data.name[open] ~ address.table-data:not(:empty) {
        height: 56px;
        border-block: solid #000 1px;
		padding: 16px;
    }
    #collapseDirectory details.table-data::before {
        scale: 0.5;
    }
    .table-row,
    .subheader {
        grid-template-columns: 1fr;
    }
    .table-row.tbody:not(:last-child) {
        border-bottom: solid var(--color-disabled) 2px;
        transition: border-width 0.1s ease;
    }
    .table-row.tbody:has(details[open]) {
        border-bottom: 0;
    }
    .name-span {
        font-size: 24px;
    }
    .add,
    .col-headers,
    .table-data:empty,
    #instruction {
        display: none;
    }
	#collapseDirectory .searchbar #search-input {
		width: 100%;
	  	max-width: 20rem;
	}
	.searchbar {
		padding-block: 2rem 0 !important;
	}
	.tables {
		border-inline: solid lightgray 1px;
	}
}
@media screen and (min-width: 768px) {
    :root {
        --staff-table-cols: 1fr 1fr 1fr 1fr 0.25fr;
        --facilities-table-cols: 1fr 1fr 1fr 0.25fr;
    }
	#collapseDirectory .searchbar #search-input {
		width: 100%;
	  	max-width: 25rem;
	}
    .table-container {
        counter-reset: print-records;
        --records-to-print: counter(print-records);
    }
    .searchbar {
        grid-column: 5 / 10;
    }
    .add {
        padding: 25px;
    }
    .add input[type="checkbox"] {
        appearance: none;
        background-color: transparent;
        border: none;
        margin: 0;
        display: grid;
        place-content: center;
        height: 100%;
    }
    .add input[type="checkbox"]::before,
    .add input[type="checkbox"]::after {
        content: "";
        height: 2.5px;
        width: 20px;
        background: #000;
        transform-origin: center;
        transition: transform 0.2s ease;
    }
    .add input[type="checkbox"]::after {
        transform: rotate(90deg) translateX(-2.5px);
    }
    .table-row:is(:hover, .selected) .add input[type="checkbox"]::before,
    .table-row:is(:hover, .selected) .add input[type="checkbox"]::after {
        background: #fff;
    }
    .add input[type="checkbox"]:checked::after {
        transform: rotate(0deg) translateY(-3px);
    }
    .tables {
        margin-inline: auto;
/*        width: 90vw;*/
    }
    .tgroup .name,
    #facilities .order-type {
        pointer-events: none;
    }
    .col-headers .name {
        padding: 0;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 100%;
    }
    .col-headers .name button {
        display: flex;
        padding: 16px;
        height: 100%;
    }
    .col-headers .name button > div {
        display: inline-block;
        align-self: center;
        white-space: nowrap;
    }
    .add button:hover,
    .order-type:hover {
        color: #000;
        background: red;
    }
    .add button:active,
    .order-type:active {
        color: #fff;
        background: #af1218;
    }
    .table-row .table-data.add {
        grid-template: 100% / 100%;
        place-content: center;
        padding: 0;
        border: solid red;
        width: 75px;
    }
    .table-row.col-headers .table-data.add {
        padding: 8px;
    }
    .add button {
        aspect-ratio: 1 / 1;
        font-size: 24px;
        position: relative;
        border: solid #fff;
        border-radius: 5px;
    }
    .add button::after {
        content: attr(data-value);
        position: absolute;
        display: grid;
        place-content: center;
        border: solid #000 1px;
        border-radius: 50px;
        background: #fff;
        height: 25px;
        aspect-ratio: 1 / 1;
        top: 2px;
        right: 2px;
        font-size: 16px;
        color: #000;
    }
    .add button[data-value="0"]::after {
        visibility: hidden;
    }
    .table-data.add,
    .add input {
        color: inherit;
    }
    .table-row:not(.subheader) {
        grid-template-columns: var(--staff-table-cols);
        border: solid #000 1px;
        height: 90px;
    }
    .table-row.col-headers {
        background: #000;
        color: #fff;
        position: sticky;
        top: 0;
        height: min-content;
        z-index: 2;
    }
    .table-data {
        display: grid;
        place-content: center start;
        font-size: 14px;
    }
    .table-row .table-data {
        border: solid var(--color-disabled);
        border-width: 0 1px;
    }
    .table-row .table-data.add {
        border: none;
    }
    .col-headers .table-data {
        border: 0;
    }
    details.table-data {
        pointer-events: none;
    }
    .subheader {
        background: #af1218;
        color: #fff;
        place-content: center start;
    }
    #facilities .table-row:not(.subheader) {
        grid-template-columns: var(--facilities-table-cols);
    }
    #instruction {
        margin-inline: auto;
        margin-top: 25px;
        border: solid #000 1px;
        padding: 25px;
        width: 80vw;
        max-width: 620px;
    }
    .title,
    .mobile-label {
        display: none;
    }

	#collapseDirectory .table-row summary,
	#collapseDirectory .table-row details,
	#collapseDirectory .table-row address,
	#collapseDirectory .table-row details a:link,
	#collapseDirectory .table-row address a:link {
	  color: #000000 !important;
	  text-decoration: none !important;
	}

	#collapseDirectory .table-row:hover summary,
	#collapseDirectory .table-row:hover details,
	#collapseDirectory .table-row:hover address,
	#collapseDirectory .table-row:hover details a,
	#collapseDirectory .table-row:hover address a,
	#collapseDirectory .table-row.selected summary,
	#collapseDirectory .table-row.selected details,
	#collapseDirectory .table-row.selected address,
	#collapseDirectory .table-row.selected details a:link,
	#collapseDirectory .table-row.selected address a:link {
	  color: #FFFFFF !important;
	}
}
@media screen and (min-width: 992px) {
    html.session {
        --staff-table-cols: 1fr 160px 160px 1fr 0.1fr;
    }
    .name-span {
        font-size: 18px;
        font-weight: 700;
    }
    .searchbar {
        grid-column: 5 / 9;
    }
    .tables {
        margin-top: 25px;
    }
    .table-row .table-data {
        padding: 0.25rem;
    }
    .table-caption {
        height: 100px;
        display: grid;
        place-content: center start;
        padding-left: 1rem;
        background: #af1218;
        color: #fff !important;
    }
    #search-container {
        padding-top: 16px;
    }
    .table-row.col-headers {
        grid-template-columns: var(--staff-table-cols);
        background: #000;
        color: #fff;
        border: 0;
        top: 56px;
    }
    .subheader {
        font-size: 1.5rem;
    }
    .subheader h6.h3 {
        font-size: inherit;
    }
    .table-data {
        width: 100%;
        height: 100%;
        padding-left: 1rem;
    }
    .subheader {
        display: grid;
        place-content: center start;
        height: 70px;
        background: #af1218;
        color: #fff;
    }
    .table-container {
        height: auto;
        margin-bottom: 100px;
        border: none;
    }
    .title {
        display: grid;
    }
}
@media screen and (min-width: 1200px) {
    .tables {
        max-width: 1200px;
    }
}
@media print {
    :root {
		--staff-table-cols: 1fr 1fr 1fr 1fr 0;
        --facilities-table-cols: 2fr 200px 1fr 0.1fr;
        --page-width: 8.5in;
        --page-height: 11in;
    }
    @page {
        size: var(--page-width) var(--page-height) portrait;
        margin: 9mm;
    }
    body {
        background: transparent;
        font-size: 10pt;
        pointer-events: none;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    body > *:not(main),
	search, #instruction, .highlight-icons-bar, .card,
	.container > :is(h2, h3), .table-data.add, 
	.table-data .mobile-label, hr,
	.tables:not(:has(.selected)), .tgroup:not(:has(.selected)), 
	.table-row:not(.selected, .col-headers, .subheader) {
        display: none !important;
    }
	
    .table-container {
        overflow: visible;
        height: max-content;
        max-width: unset;
        width: 100%;
    }
	main .container {
		margin: 0 !important;
		width: 100% !important;
		padding: 0;
	}
    h2 {
        font-size: 32px;
    }
    .subheader h6.h3 {
        font-size: 16px;
    }
    .table-caption h2,
    .col-headers,
    .table-row.subheader h6.h3 {
        background: #fff;
        color: #000;
    }
	
	.tgroup .table-row.tbody.selected,
	.table-row.col-headers {
		grid-template-columns: var(--staff-table-cols) !important;
	}
	
	.table-row.subheader h6,
	.table-caption h5 {
		background: darkgray !important;
	}
	
	button.order-type div {
		display: inline-block !important;
	}
	
	.tables .table-row {
		background: white;
	}
	
	.tables .table-row:nth-child(2n+1 of .selected) {
		background: lightgray;
	}
	
    .tables {
        page-break-after: always;
		
		
    }
    .tgroup {
        break-inside: avoid;
        margin-top: 5mm;
    }
    .table-data,
    .table-data.name {
        display: grid;
        place-content: center start;
        height: initial;
        padding: 0.5rem;
        font-size: inherit;
    }
    .name {
        white-space: normal;
    }
	
	#collapseDirectory { margin: 0 !important; }
	
	#directory-title { padding-top: 0; }
}

#collapseDirectory .table-data.add input[type="checkbox"] {
	border: 0;
	background-color: transparent;
	height: -webkit-fill-available;
	height: -moz-available;
	height: stretch;
	width: -webkit-fill-available;
	width: -moz-available;
	width: stretch;
}

#collapseDirectory .add button::after {
  left: -1rem;
  top: -0.5rem;
}

#collapseDirectory #search-container, #collapseDirectory .searchbar {
  display: block !important;
  text-align: center;
}

#collapseDirectory .searchbar .invalid {
  display: block;
}


/* Inline code pasted from test.php */

	
#collapseDirectory {
	margin-top: 3rem;
}

.searchbar {
	display: inline grid;
}

.searchbar input {
	grid-column: 1 / 3;
}

.searchbar button {
	grid-column: 4;
}

.searchbar .invalid {
	color: red;
	display: none;
}

.searchbar input:user-invalid ~ .invalid {
	display: block;
}