/*
    TheFigures color palette
    Burgundy:    brand and important emphasis
    Slate blue:  routine application controls
    Interactive: default buttons and active selections
    Hover:       interactive hover state
    Neutral:     borders and quiet interface structure
*/
:root {
    --color-burgundy: #9c1a28;
    --color-slate-blue: #486675;
    --color-interactive: #486675;
    --color-hover: #354e5a;
    --color-neutral: #d6d6d6;
}

/* Reusable Feather-style icon controls for redesigned screens */
.tf-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    border: 1px solid transparent;
    border-radius: 3px;
    color: var(--color-interactive, #486675);
    vertical-align: middle;
}

.tf-icon-link:hover,
.tf-icon-link:focus {
    border-color: var(--color-neutral, #d6d6d6);
    background: #eef3f5;
    color: var(--color-hover, #354e5a);
    outline: none;
}

.tf-icon-link.tf-icon-link-danger:hover,
.tf-icon-link.tf-icon-link-danger:focus {
    color: var(--color-burgundy, #9c1a28);
}

.tf-icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Reusable active-column sort indicator: emphasize the current direction. */
.tf-sort-indicator {
    width: 8px;
    height: 12px;
    margin-left: 4px;
    fill: currentColor;
    stroke: none;
    vertical-align: -2px;
}

.tf-sort-indicator .inactive-direction {
    opacity: .28;
}

/* Reusable application modal */
.tf-modal {
    width: min(900px, calc(100% - 32px));
    max-height: min(85vh, 760px);
    padding: 0;
    border: 0;
    background: #fff;
    color: #222;
    box-shadow: 0 14px 42px rgba(0, 0, 0, .35);
}

.tf-modal::backdrop {
    background: rgba(0, 0, 0, .55);
}

.tf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    border-bottom: 3px solid var(--color-burgundy, #9c1a28);
    background: #000;
    color: #fff;
}

.tf-modal-title {
    margin: 0;
    padding: 11px 16px;
    color: #fff;
    font-size: 14px;
}

.tf-modal-close {
    align-self: stretch;
    width: 46px;
    padding: 0;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .25);
    background: var(--color-slate-blue, #486675);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: background-color .15s ease;
}

.tf-modal-close:focus {
    background: var(--color-slate-blue, #486675);
    outline: none;
    box-shadow: none;
}

.tf-modal-close:hover {
    background: var(--color-hover, #354e5a);
}

.tf-modal-body {
    max-height: calc(min(85vh, 760px) - 44px);
    padding: 18px;
    overflow: auto;
}

.tf-detail-grid {
    display: grid;
    grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
    gap: 0;
    margin: 0;
    border: 1px solid var(--color-neutral, #d6d6d6);
    border-bottom: 0;
}

.tf-detail-grid dt,
.tf-detail-grid dd {
    box-sizing: border-box;
    margin: 0;
    padding: 8px 10px;
    border-bottom: 1px solid var(--color-neutral, #d6d6d6);
}

.tf-detail-grid dt {
    background: #f5f5f5;
    font-weight: bold;
}

.tf-detail-grid dd {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

@media screen and (max-width: 600px) {
    .tf-modal {
        width: calc(100% - 16px);
        max-height: 92vh;
    }

    .tf-modal-body {
        max-height: calc(92vh - 44px);
        padding: 10px;
    }

    .tf-detail-grid {
        grid-template-columns: 1fr;
    }

    .tf-detail-grid dt {
        border-bottom: 0;
        padding-bottom: 3px;
    }

    .tf-detail-grid dd {
        padding-top: 3px;
    }
}

body {
    margin: 0px;
}

table {
    border: none;
}

p,
ul,
ol,
td,
th,
textarea,
input {
    font-size: 10px;
    font-family: Verdana, Geneva, Arial, Sans-Serif
}

textarea,
input {
    font-size: 12px;
}

TH {
    color: #000;
    font-weight: bold;
}

B {
    font-weight: bold
}

A {
    color: #600;
    text-decoration: none;
}

A.help {
    font-size: 9px;
    text-decoration: none;
    color: #000;
    line-height: 1.25em;
    margin-top: 1em;
    padding-top: .5em
}

A.delete {
    font-size: 9px;
    text-decoration: none;
    color: #000
}

A:hover {
    color: #000;
    text-decoration: underline;
}

A.delete:hover {
    color: #000;
    text-decoration: underline;
}

A.nav {
    color: white;
    font-family: arial, verdana, geneva, sans-serif;
    font-size: 12px;
    font-weight: bold;
    margin-right: 16px;
}

A.nav:hover {
    color: white;
    text-decoration: underline;
}

A IMG {
    border: none;
}

.bigger {
    font-size: 12px;
    font-weight: bold;
    text-align: left;
    padding-left: 4px;
    color: #000;
}

.small {
    font-size: 9px;
    margin-top: 1em;
    padding-top: .5em
}

.smallhead {
    font-size: 9px;
    color: #000;
    font-weight: bold
}

input.small {
    font-size: 10px;
    line-height: 1em;
    margin-top: 0em;
    padding-top: 0em
}

select.small {
    font-size: 10px;
    height: 10px;
    line-height: 1em;
    margin-top: 0em;
    padding-top: 0em
}

H1,
H2,
H3,
H4,
H5 {
    font-family: verdana, geneva, arial, sans-serif;
    text-align: left;
    color: #000;
}

TD H5 {
    font-size: 9px;
    font-weight: normal;
    color: #333;
    margin-top: 3px;
}

H1 {
    font-size: 2em;
}

H2 {
    font-size: 16px;
    font-weight: bold;
}

H3 {
    font-size: 16px;
    margin-bottom: 0px;
}

H4 {
    font-size: 14px;
}

H5 {
    font-size: 14px;
    color: #000;
    font-weight: bold;
    margin: 0px;
    padding: 0px
}

.Mono {
    font-family: Courier, Monaco, Monospace;
    font-size: 12px
}

.Mono PRE {
    font-family: Courier, Monaco, Monospace;
    font-size: 12px
}

.headform {
    font-size: 10px;
    font-family: sans-serif
}

.error {
    font-weight: bold;
    color: #900;
}

.notice {
    font-weight: bold;
    color: #060;
}

div#error,
div#notice {
    font-weight: bold;
    color: #060;
    margin: 4px 24px 0px;
    padding: 0px;
    text-align: left;
    height: 15px;
    float: none;
    clear: both;
}

div#error {
    color: #880000;
}

TD.small {
    padding: 14px;
}

input.long {
    width: 200px;
}

input.vlong {
    width: 250px;
}

input.short {
    width: 100px;
}

input.vshort {
    width: 50px;
}

input.xshort {
    width: 25px;
}

input.smallbutton {
    font-size: 9px;
}

textarea {
    width: 300px;
    height: 60px;
}

TD DIV {
    padding-right: 12px;
    float: left;
}

fieldset {
    padding: 8px;
    border: 1px solid gray;
    margin: 0 0 10px;
}

legend {
    border: 1px solid gray;
    background-color: #eee;
    padding: 1px 3px;
    font-weight: normal;
}

#content {
    width: auto;
    height: auto;
    background-color: white;
    padding: 12px 12px;
}

#nav {
    width: 100%;
    background: url("images/repeatx.gif");
    background-repeat: repeat-x;
}

table.chart td {
    padding: 2px;
    border-right: 2px solid white;
}

hr {
    border: 0;
    background-color: #aaa;
    color: #aaa;
    height: 1px;
}

tr.data:hover {
    background-color: #FFE4E1;
}

input.datepicker {
    max-width: 120px;
}
@keyframes tf-select-update-glow {
	0% {
		border-color: var(--color-burgundy, #9c1a28);
		box-shadow: 0 0 0 0 rgba(156, 26, 40, 0.75);
	}
	45% {
		border-color: var(--color-burgundy, #9c1a28);
		box-shadow: 0 0 0 8px rgba(156, 26, 40, 0.4);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(156, 26, 40, 0);
	}
}

.tf-select-updated {
	animation: tf-select-update-glow 900ms ease-out;
}

/* Shared shell and controls for modules migrated to the new design vocabulary. */
.tf-module {
	box-sizing: border-box;
	float: none;
	width: 100%;
	max-width: 1100px;
	padding-right: 0;
	font-family: Verdana, Geneva, Arial, sans-serif;
}

.tf-module a { color: var(--color-interactive, #486675); }
.tf-module a:hover,
.tf-module a:focus { color: var(--color-hover, #354e5a); }

.tf-filter-bar {
	width: 100%;
	border: 1px solid var(--color-neutral, #d6d6d6);
	background: #f5f5f5;
}
.tf-filter-bar td { padding: 7px 5px; }
.tf-filter-bar h5 { margin: 0 0 4px; }
.tf-filter-bar input[type="date"],
.tf-filter-bar input[type="search"],
.tf-filter-bar select,
.tf-filter-bar input[type="submit"],
.tf-filter-bar input[type="button"] {
	box-sizing: border-box;
	height: 28px;
	margin: 0;
	border: 1px solid #999;
	border-radius: 0;
	font: 10px Verdana, Geneva, Arial, sans-serif;
	vertical-align: middle;
}
.tf-filter-bar input[type="date"],
.tf-filter-bar input[type="search"],
.tf-filter-bar select { padding: 3px 5px; background: #fff; }
.tf-filter-bar input[type="search"] { -webkit-appearance: textfield; appearance: textfield; }
.tf-filter-bar input[type="submit"],
.tf-filter-bar input[type="button"] {
	padding: 0 10px;
	border-color: var(--color-interactive, #486675);
	background: var(--color-interactive, #486675);
	color: #fff;
	cursor: pointer;
}
.tf-filter-bar input[type="submit"]:hover,
.tf-filter-bar input[type="button"]:hover { border-color: var(--color-hover, #354e5a); background: var(--color-hover, #354e5a); }
.tf-filter-actions { padding-bottom: 7px; }
.tf-filter-actions a { margin-left: 5px; vertical-align: middle; }

.tf-pagination-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	float: none;
	width: 100%;
	gap: 12px;
	margin: 10px 0;
	padding-right: 0;
}
.tf-pagination,
.tf-pagination-summary { margin: 0; }
.tf-pagination { white-space: nowrap; }
.tf-pagination a,
.tf-pagination .current-page,
.tf-pagination .disabled-page {
	display: inline-block;
	box-sizing: border-box;
	min-width: 26px;
	height: 26px;
	margin-right: 3px;
	padding: 5px 7px;
	border: 1px solid #ccc;
	background: #fff;
	text-align: center;
}
.tf-pagination .current-page { border-color: var(--color-interactive, #486675); background: var(--color-interactive, #486675); color: #fff; font-weight: bold; }
.tf-pagination .disabled-page { color: #aaa; }

.tf-data-table { box-sizing: border-box; width: 100%; }
.tf-table-wrap {
	box-sizing: border-box;
	float: none;
	width: 100%;
	max-width: 100%;
	padding-right: 0;
	overflow-x: auto;
}
.tf-data-table th,
.tf-data-table > tbody > tr:first-child > td {
	position: sticky;
	top: 0;
	z-index: 2;
	border-bottom: 2px solid var(--color-interactive, #486675);
	background: #f5f5f5;
	box-shadow: 0 2px 0 var(--color-interactive, #486675);
	white-space: nowrap;
}

/* Reusable module heading, including parent module / current record breadcrumbs. */
.module-heading {
	margin-top: calc(.83em - 12px);
	margin-bottom: 12px;
	font-family: Verdana, Geneva, Arial, sans-serif;
	font-size: 16px;
	font-weight: bold;
}

.module-breadcrumb {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
}

.module-breadcrumb a {
	color: var(--color-slate-blue, #486675);
	text-decoration: none;
}

.module-breadcrumb a:hover,
.module-breadcrumb a:focus {
	color: var(--color-hover, #354e5a);
	text-decoration: underline;
}

.module-breadcrumb-separator {
	color: #777;
}

.module-breadcrumb-current {
	color: #000;
}

/*
    Reusable detail forms. Namespaced so legacy module forms remain unchanged.
    Layout convention: wide >= 1050px, medium 720-1049px, compact < 720px.
*/
.tf-detail-form {
	font: 10px Verdana, Geneva, Arial, sans-serif;
}

/* Neutralize the legacy TD DIV layout rule inside redesigned detail forms. */
.tf-detail-form div {
	float: none;
	padding-right: 0;
}

.tf-detail-layout {
	box-sizing: border-box;
	display: grid;
	width: 100%;
	grid-template-columns: minmax(350px, 1.25fr) minmax(265px, .9fr) minmax(280px, 1fr);
	gap: 16px;
}

.tf-detail-span-all {
	grid-column: 1 / -1;
}

.tf-fieldset {
	min-width: 0;
	margin: 0;
	padding: 16px 18px 18px;
	border: 1px solid var(--color-neutral, #d6d6d6);
	background: #fff;
}

.tf-fieldset > legend {
	padding: 0 7px;
	border: 0;
	background: #fff;
	color: var(--color-slate-blue, #486675);
	font-size: 13px;
	font-weight: bold;
}

.tf-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 11px 12px;
}

.tf-form-field {
	min-width: 0;
}

.tf-form-field-full {
	grid-column: 1 / -1;
}

.tf-form-field label {
	display: block;
	margin: 0 0 4px;
}

.tf-form-field input[type="text"],
.tf-form-field input[type="email"],
.tf-form-field input[type="tel"],
.tf-form-field input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	height: 30px;
	margin: 0;
	padding: 4px 7px;
	border: 1px solid #999;
	border-radius: 0;
	background: #fff;
	font: 10px Verdana, Geneva, Arial, sans-serif;
}

.tf-form-field input:focus {
	border-color: var(--color-interactive, #486675);
	outline: 2px solid rgba(72, 102, 117, .2);
	outline-offset: 0;
}

.tf-field-help {
	margin: 6px 0 0;
	color: #555;
	font-size: 10px;
	line-height: 1.45;
}

.tf-check-list {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(7, auto);
	grid-auto-columns: minmax(130px, 1fr);
	gap: 0 22px;
}

.tf-check-option {
	display: block;
	box-sizing: border-box;
	min-height: 29px;
	padding: 7px 0;
	border-bottom: 1px solid #e7e7e7;
}

.tf-check-option input[type="checkbox"] {
	margin: 0 6px 0 0;
	vertical-align: -2px;
}

/* Shared supporting text and disabled states for checkbox/radio option rows. */
.tf-option-detail,
.tf-action-destination {
	display: block;
	margin: 1px 0 0 22px;
	color: #666;
	font-size: 9px;
	overflow-wrap: anywhere;
}

.tf-check-option.tf-option-disabled,
.tf-check-option:has(input:disabled) {
	opacity: .58;
}

/* Reusable lightweight tooltip for redesigned screens. */
.tf-tooltip {
	position: relative;
	display: inline-flex;
	margin-left: 4px;
	vertical-align: -3px;
}

.tf-tooltip-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--color-slate-blue, #486675);
	cursor: help;
}

.tf-tooltip-trigger .tf-icon {
	width: 14px;
	height: 14px;
}

.tf-tooltip-trigger:hover,
.tf-tooltip-trigger:focus {
	color: var(--color-hover, #354e5a);
	outline: none;
}

.tf-tooltip-trigger:focus-visible {
	outline: 2px solid var(--color-burgundy, #9c1a28);
	outline-offset: 1px;
}

.tf-tooltip-content {
	position: absolute;
	z-index: 50;
	bottom: calc(100% + 8px);
	left: 50%;
	box-sizing: border-box;
	width: max-content;
	max-width: 220px;
	padding: 7px 9px;
	transform: translateX(-50%) translateY(3px);
	border: 1px solid var(--color-neutral, #d6d6d6);
	background: #111;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
	color: #fff;
	font: 10px/1.4 Verdana, Geneva, Arial, sans-serif;
	font-weight: normal;
	text-align: left;
	white-space: normal;
	opacity: 0;
	pointer-events: none;
	transition: opacity 120ms ease-out, transform 120ms ease-out;
}

.tf-tooltip-content::after {
	position: absolute;
	top: 100%;
	left: 50%;
	width: 0;
	height: 0;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: #111;
	content: "";
}

.tf-tooltip:hover .tf-tooltip-content,
.tf-tooltip:focus-within .tf-tooltip-content {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

.tf-subheading {
	margin: 0 0 8px;
	color: #222;
	font-size: 11px;
}

.tf-status-list {
	display: grid;
	grid-template-columns: minmax(145px, auto) 1fr;
	margin: 0;
}

.tf-status-list dt,
.tf-status-list dd {
	box-sizing: border-box;
	margin: 0;
	padding: 6px 8px;
	border-bottom: 1px solid #e7e7e7;
	overflow-wrap: anywhere;
}

.tf-status-list dt {
	font-weight: bold;
}

.tf-status-list dt:nth-of-type(odd),
.tf-status-list dd:nth-of-type(odd) {
	background: #f5f5f5;
}

.tf-technical-details {
	margin-top: 12px;
}

.tf-technical-details summary {
	color: var(--color-slate-blue, #486675);
	cursor: pointer;
}

.tf-technical-details .tf-status-list {
	margin-top: 8px;
}

.tf-detail-form a {
	color: var(--color-slate-blue, #486675);
}

.tf-detail-form a:hover,
.tf-detail-form a:focus {
	color: var(--color-hover, #354e5a);
}

.tf-form-actions {
	box-sizing: border-box;
	display: flex;
	justify-content: flex-end;
	width: 100%;
	gap: 8px;
	margin-top: 16px;
}

.tf-form-actions input {
	box-sizing: border-box;
	min-width: 130px;
	height: 30px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--color-interactive, #486675);
	border-radius: 0;
	font: 10px Verdana, Geneva, Arial, sans-serif;
	cursor: pointer;
}

.tf-form-actions input[type="submit"] {
	background: var(--color-interactive, #486675);
	color: #fff;
}

.tf-form-actions input[type="button"] {
	background: #fff;
	color: var(--color-interactive, #486675);
}

.tf-form-actions input:hover,
.tf-form-actions input:focus {
	border-color: var(--color-hover, #354e5a);
	background: var(--color-hover, #354e5a);
	color: #fff;
	outline: none;
}

/* Permissions detail composition using the reusable detail-form vocabulary. */
.permissions-admin-option {
	display: flex;
	align-items: center;
	margin-bottom: 6px;
	border-bottom-color: var(--color-neutral, #d6d6d6);
}

.permissions-security-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

@media (min-width: 720px) and (max-width: 1049px) {
	.tf-detail-layout {
		grid-template-columns: minmax(340px, 1.1fr) minmax(280px, .9fr);
	}

	.permissions-security-fieldset {
		grid-column: 1 / -1;
	}

	.permissions-security-layout {
		grid-template-columns: minmax(320px, 1.4fr) minmax(240px, 1fr);
		gap: 28px;
	}
}

@media (max-width: 719px) {
	.tf-detail-layout,
	.tf-form-grid,
	.permissions-security-layout {
		grid-template-columns: 1fr;
	}

	.tf-detail-span-all,
	.tf-form-field-full {
		grid-column: auto;
	}

	.tf-check-list {
		grid-auto-flow: row;
		grid-template-rows: none;
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tf-select-updated {
		animation: none;
		border-color: var(--color-burgundy, #9c1a28);
	}
}
