/*
    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;
}

@media (prefers-reduced-motion: reduce) {
	.tf-select-updated {
		animation: none;
		border-color: var(--color-burgundy, #9c1a28);
	}
}
