/*
    DJANGO Admin styles
*/

/* VARIABLE DEFINITIONS */
:root {
    --primary: #536556;
    --secondary: #5e9167;
    --accent: antiquewhite;
    --primary-fg: #f7f7f7;
    --tertiary:#103b36ad;

    --body-fg: #eeeeee;
    --body-bg: #121212;
    --body-quiet-color: #e0e0e0;
    --body-loud-color: #ffffff;

    --header-color: antiquewhite;
    --header-color-alt: #b9ccd5;
    --header-branding-color: var(--accent);
    --header-bg: var(--secondary);
    --header-link-color: var(--primary-fg);

    --breadcrumbs-fg: #d1e9d3;
    --breadcrumbs-link-fg: #0a1e06;
    --breadcrumbs-bg: var(--primary);

    --link-fg: #68d8a2;
    --link-hover-color: #f5dd5d;
    --link-selected-fg: #9ae2a7;

    --hairline-color: #272727;
    --border-color: #353535;

    --error-fg: indianred;


    --message-success-bg: #006b1b;
    --message-warning-bg: var(--error-fg);
    --message-error-bg: #570808;
    --message-caution-color:#f1c22e;

    --darkened-bg: #212121;
    --selected-bg: #1b1b1b;
    --selected-row: #003a0f;

    --input-bg: #0d2e2d;

    --button-fg: antiquewhite;
    --button-bg: #8fbc8f5c;
    --button-hover-bg: #609ab6;
    --button-letter-spacing:.15em;
    --button-shadow: 0px 15px 10px -10px rgba(0, 0, 0, 0.15);
    --default-button-bg: var(--secondary);
    --default-button-hover-bg: #4d6e7f;
    --default-button-text-color: white;
    --close-button-bg: #333333;
    --close-button-hover-bg: #666666;
    --delete-button-bg: #ba2121;
    --delete-button-hover-bg: #a41515;
    --delete-button-active-bg: #d29c9c;
    --caution-button-bg: #d3bf64;
    --caution-button-hover-bg: #d4a800;
    --extreme-caution-button-bg: var(--error-fg);
    --extreme-caution-button-hover-bg: var(--delete-button-bg);

    --object-tools-fg: var(--button-fg);
    --object-tools-bg: var(--close-button-bg);
    --object-tools-hover-bg: var(--close-button-hover-bg);

    --slogan: 0.875rem;

    --table-corner-radius: 10px;

    --panel-light-yellow: #ebc208;
    --panel-light-green: darkseagreen;
    --panel-light-red: indianred;
    --panel-light-blue: lightsteelblue;

    --font-family-primary:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        system-ui,
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol",
        "Noto Color Emoji";
    --font-family-monospace:
        ui-monospace,
        Menlo,
        Monaco,
        "Cascadia Mono",
        "Segoe UI Mono",
        "Roboto Mono",
        "Oxygen Mono",
        "Ubuntu Monospace",
        "Source Code Pro",
        "Fira Mono",
        "Droid Sans Mono",
        "Courier New",
        monospace,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol",
        "Noto Color Emoji";
        --font-family-logo: 
        'Rye', serif;   
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;   /* Stack the children vertically */
    min-height: 100vh;        /* Minimum height to fill the viewport */	
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-family: var(--font-family-primary);
    color: var(--body-fg);
    background: rgb(22,30,36);
    background: -moz-linear-gradient(0deg, rgba(22,30,36,1) 0%, rgba(11,51,48,1) 45%, rgba(58,135,106,1) 100%);
    background: -webkit-linear-gradient(0deg, rgba(22,30,36,1) 0%, rgba(11,51,48,1) 45%, rgba(58,135,106,1) 100%);
    background: linear-gradient(0deg, rgba(22,30,36,1) 0%, rgba(11,51,48,1) 45%, rgba(58,135,106,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#161e24",endColorstr="#3a876a",GradientType=1);
}

/* LINKS */

a:link, a:visited {
    color: var(--link-fg);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.active-link {
    background-color: var(--button-hover-bg) !important;
    /* Add any other styles you want for active links */
  }

.active-link-red {
    background-color: var(--delete-button-active-bg) !important;
    color: var(--error-fg) !important;
}

.modal-trigger {
    color: #9fdde7 !important;
}

a:focus, a:hover {
    color: var(--button-hover-bg);
}

a:focus {
    text-decoration: underline;
}

a img {
    border: none;
}

img {

    margin:1.2em;
}

.img-div {
    display: flex;
    justify-content: center;
}

a.section:link, a.section:visited {
    color: var(--header-link-color);
    text-decoration: none;
}

a.section:focus, a.section:hover {
    text-decoration: underline;
}

/* GLOBAL DEFAULTS */

p, ul,ol,dl {
    margin: .2em 0 .8em 0;
}

p {
    padding: 0;
    line-height: 140%;
}

.text-muted-small,
.component-preview {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.82);
}

h1,h2,h3,h4,h5 {
    font-weight: 300;
    color: antiquewhite;
    letter-spacing: .2rem;
}

h1 {
    margin: 10px 0px 20px 0px;
    font-weight: 300;
    font-size: 2rem;
    color: var(--body-quiet-color);
}

.title {
    text-transform: uppercase;
    text-align: center;
    font-size: 2em;
    letter-spacing: .2em;
}

h2 {
    font-size: 1.4rem;
    margin: .5em 0 .5em 0;
}

h2.subhead {
    font-weight: normal;
    margin-top: 0;
}

h3 {
    font-size: 1.2rem;
    margin: .8em 0 .8em 0;
    color: var(--body-quiet-color);
    font-weight: 300;
    letter-spacing: .2em;
    text-transform: uppercase;
}

h4 {
    font-size: .9rem;
    margin: .8em 0 .3em 0;
    color: var(--body-quiet-color);
    font-weight: 300;
    letter-spacing: .2em;
    text-transform: uppercase;
}

h5 {
    font-size: 0.625rem;
    margin: 1.5em 0 .5em 0;
    color: var(--body-quiet-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#site-info {
    display: flex;
    align-items: center;
    font-family: var(--font-family-logo); 
}

#site-name { 
    font-size: 2rem;
    letter-spacing: .0875rem;
}

#site-info-site-name {
    text-align: right;
    z-index: 1;
}

#site-info-site-logo {
    text-align: center;
    margin-left: -2.4rem;
    margin-right: -2.4rem;
    margin-bottom: .5rem;
    z-index: 0;
}

#site-info-site-slogan {
    text-align: left;
    z-index: 1;
}

#cookie-notice {
    position: fixed; 
    bottom: 40; 
    left: 0; 
    padding: 1rem;
    background-color: cadetblue;
    display: flex;
    align-items: baseline;
    justify-content: space-around;
}

#cookie-policy {
    display: flex;
    justify-content: space-around;
    align-items: baseline;
}

.cookie-policy-item {
    padding: 0 2rem 0 0;
}

.slogan {
    font-size: 2rem;
    line-height: 2;
    letter-spacing: .0875rem;
}

.nav-link {
    font-size: medium;
}

ul > li {
    list-style-type: square;
    padding: 1px 0;
}

ul > li:not(:last-child) {
    margin-bottom: 1rem;
}

.margin-top-1 {
    margin-top: 1rem;
}

.margin-top-2 {
    margin-top: 2rem;
}

.margin-top-negative-1 {
    margin-top: -1rem;
}

.margin-bottom-1 {
    margin-bottom: 1rem;
}

.margin-left-1 {
    margin-left: 1rem;
}

.margin-left-2 {
    margin-left: 2rem;
}

.socialaccount_ballot {
    margin: 0em 0em 1em 1em;
}

.socialaccount_providers {
    margin: auto;
    padding: 0;
    width: fit-content;
    max-width: 420px;
    list-style: none;
}

.socialaccount_providers li {
    margin: 0 0 0.75rem;
    list-style: none;
}

.socialaccount-provider-button,
.apple-sign-in-button,
.gsi-material-button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 42px;
    text-decoration: none;
}

.apple-sign-in-button {
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    border: 1px solid #000;
    border-radius: 6px;
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

.apple-sign-in-button:link,
.apple-sign-in-button:visited,
.apple-sign-in-button:hover,
.apple-sign-in-button:focus,
.apple-sign-in-button:active {
    color: #fff;
    text-decoration: none;
}

.apple-sign-in-button:hover {
    background: #242424;
}

.apple-sign-in-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #000;
}

.apple-sign-in-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.socialaccount-provider-button {
    padding: 0.75rem 1rem;
}

.gsi-material-button {
    position: relative;
    background-color: #fff;
    border: 1px solid #747775;
    border-radius: 20px;
    color: #1f1f1f;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.015625rem;
    overflow: hidden;
}

.gsi-material-button:link,
.gsi-material-button:visited,
.gsi-material-button:hover,
.gsi-material-button:focus,
.gsi-material-button:active {
    color: #1f1f1f;
    text-decoration: none;
}

.gsi-material-button:hover {
    background-color: #f8fbff;
    border-color: #d2e3fc;
    color: #1f1f1f;
}

.gsi-material-button:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.gsi-material-button-state {
    position: absolute;
    inset: 0;
}

.gsi-material-button-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0 12px;
}

.gsi-material-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.gsi-material-button-icon svg {
    width: 18px;
    height: 18px;
}

.gsi-material-button-contents {
    flex: 0 1 auto;
}

.gsi-material-button-label-hidden {
    display: none;
}

.inline-element {
    display: inline-block;
    text-align: center;
}

li ul {
    margin-bottom: 0;
}

li, dt, dd {
    font-size: 1rem;
    line-height: 1.8rem;
}

dd {
    margin: .5rem 0 2rem 1rem;
}

.custom-br {
    margin-bottom: 1rem;
  }

li:not(:last-child) {
    margin-bottom: 1rem;
}

.no-bullets {
    list-style-type: none;
}

dt {
    font-weight: bold;
    margin-top: 4px;
}

form {
    margin: 0;
    padding: 0;
}

fieldset {
    margin: 1rem 0;
    min-width: 0;
    padding: 0;
    border: none;
    /* border-top: 1px solid var(--hairline-color); */
}

blockquote {
    font-size: 0.6875rem;
    color: #777;
    margin-left: 2px;
    padding-left: 10px;
    border-left: 5px solid #ddd;
}

code, pre {
    font-family: var(--font-family-monospace);
    color: var(--body-quiet-color);
    font-size: 0.75rem;
    overflow-x: auto;
}

pre.literal-block {
    margin: 10px;
    background: var(--darkened-bg);
    padding: 6px 8px;
}

code strong {
    color: #930;
}

hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  margin: 2rem 0;
}


/* TEXT STYLES & MODIFIERS */

.lg {
    font-size: 1.4rem;
}

.medium {
    font-size: 0.9rem;
}

.small {
    font-size: 0.8rem;
}

.smaller {
    font-size: 0.6875rem;
}

.smallest {
    font-size: 0.625rem;
}

.lg-example {
    font-size: 1.8rem;
    margin-top: 1rem;
}

.help, p.help, form p.help, div.help, form div.help, div.help li {
    font-size: 0.6875rem;
    color: var(--body-quiet-color);
}

h2.help-topics {
    font-size: 1.25rem;
}

.indent {
    margin-left: 2rem;
}

div.help ul {
     margin-bottom: 0;
}

.help-tooltip {
    cursor: help;
}

p img, h1 img, h2 img, h3 img, h4 img, td img {
    vertical-align: middle;
}

.quiet, a.quiet:link, a.quiet:visited {
    color: var(--body-quiet-color);
    font-weight: normal;
}

.clear {
    clear: both;
}

.nowrap {
    white-space: nowrap;
}

.hidden {
    display: none !important;
}

/* Visually hide accessible text while keeping it available to screen readers. */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.background-none {
    background: none !important;
}

.generation {
    padding: 1rem 1.2rem !important;
    width:15rem;
    text-align: center;
    letter-spacing: .1rem;
}

.generation-gold {
    background-color: peru !important;
}

.generation-green {
    background-color: #8fbc8f5c;
}

#id_i_serial_pays {
    font-size: 1.6rem;
    text-align: center;
    background-color: #0f2c2c;
    width:16rem;
}

.danger {
    color: var();
}

/* TABLES */

table {
    border-collapse: collapse;
    border-color: var(--border-color);
    border-radius: var(--table-corner-radius);
    overflow: hidden;
    opacity:.9;
}

.dataTables_wrapper {
    overflow-x: scroll;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 4.25rem;
    width: auto;
}

.dataTables_wrapper .dataTables_length {
    float: left;
    justify-content: flex-start;
    text-align: left;
}

.dataTables_wrapper .dataTables_filter {
    float: right;
    justify-content: flex-end;
    text-align: right;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 5px;
    background-color: #132427 !important;
    color: inherit;
    padding: 4px;
}

.dataTables_wrapper .dataTables_paginate {
    float: right;
    text-align: right;
    padding-top: 0.25em;
    margin-bottom: 16px;
}

.dataTables_wrapper td {
    border: 1px solid #faebd736;
}

table.dataTable thead>tr>th.sorting:before, table.dataTable thead>tr>th.sorting_asc:before, table.dataTable thead>tr>th.sorting_desc:before, table.dataTable thead>tr>th.sorting_asc_disabled:before, table.dataTable thead>tr>th.sorting_desc_disabled:before, table.dataTable thead>tr>td.sorting:before, table.dataTable thead>tr>td.sorting_asc:before, table.dataTable thead>tr>td.sorting_desc:before, table.dataTable thead>tr>td.sorting_asc_disabled:before, table.dataTable thead>tr>td.sorting_desc_disabled:before {
    bottom: 50%;
    content: "" !important;
    content: "" !important;
}
table.dataTable thead>tr>th.sorting:after, table.dataTable thead>tr>th.sorting_asc:after, table.dataTable thead>tr>th.sorting_desc:after, table.dataTable thead>tr>th.sorting_asc_disabled:after, table.dataTable thead>tr>th.sorting_desc_disabled:after, table.dataTable thead>tr>td.sorting:after, table.dataTable thead>tr>td.sorting_asc:after, table.dataTable thead>tr>td.sorting_desc:after, table.dataTable thead>tr>td.sorting_asc_disabled:after, table.dataTable thead>tr>td.sorting_desc_disabled:after {
    top: 50%;
    content: "" !important;
    content: "" !important;
}
table.dataTable thead>tr>th.sorting, table.dataTable thead>tr>th.sorting_asc, table.dataTable thead>tr>th.sorting_desc, table.dataTable thead>tr>th.sorting_asc_disabled, table.dataTable thead>tr>th.sorting_desc_disabled, table.dataTable thead>tr>td.sorting, table.dataTable thead>tr>td.sorting_asc, table.dataTable thead>tr>td.sorting_desc, table.dataTable thead>tr>td.sorting_asc_disabled, table.dataTable thead>tr>td.sorting_desc_disabled {
    cursor: pointer;
    position: relative;
    padding-right: 6px;
}

.dataTables_wrapper .dataTables_filter input {
    font-size: 1rem;
    padding-bottom: .6rem !important;
}

@media screen and (max-width: 640px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
}

#items-table {
    width: 100%;
}   

#items-table td {
    font-size: clamp(.7rem, 4vw, .8rem);
    align-content: center;
}

#items-table_wrapper {
    width: 100%;
    margin-top: 1rem;
}

table :is(th, td):has(input[type="checkbox"]),
#items-table .items-checkbox-cell {
    text-align: center;
    vertical-align: middle;
}

table :is(th, td) input[type="checkbox"] {
    display: block;
    margin-inline: auto !important;
    padding: 0 !important;
}

#items-table :is(
    input[type="text"],
    input[type="number"],
    textarea,
    select,
    .vTextField
) {
    padding: 3px !important;
    margin: 0 !important;
}

#items-table :is(
    input[type="number"]
) {
    width: 90px !important;
    text-align: right !important;
}

#items-table :is(
    input[type="date"],
) {
    padding: 1px !important;
    margin: 0 !important;
}

#active-column {
    width: 1rem !important;
}

#action-column {
    width: 10rem !important;
}

#items-table .actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-right: 0;
}

#items-table .actions > div,
#items-table .actions form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

#items-table .actions .button {
    margin: 0 !important;
}

table .button {
    margin: 0 !important;
}

#items-table_filter {
    margin-bottom: 0;
}

#items-table_length {
    margin-bottom: 0;
}

#items-header-row > *:not(:first-child) {
    border-left: 1px solid #faebd736;
}
#id_i_payments {
    width:5rem;
    text-align: center;
}
#id_d_pay_amt_absolute {
    width:8rem;
    text-align: center;
}
#id_d_pay_amt_absolute.item-amount-positive {
    color: white;
}
#id_d_pay_amt_absolute.item-amount-negative {
    color: indianred;
}
#id_i_pay_freq {
    width:5rem;
    text-align: center;
}
#id_i_pay_type, #id_i_frequency {
    display: flex;
    align-items: center;
    text-transform: uppercase;  
    margin: auto;  
  }

  #id_i_pay_type  > :not(:first-child), #id_i_frequency > :not(:first-child) {
    margin-left: 2rem;
  } 

  #id_i_pay_type label {
    font-size: 1.4rem;
    font-weight: 200;
}

  #id_i_frequency > div {
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: .2rem;
}


#id_i_frequency {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: .2rem;
}

#id_c_account_name {
    width: 22rem;

}

#id_custom_range {
    display: inline-grid;
}

[disabled]:not(#id_c_pay_nm):not(#id_c_genTracker):not(#id_u_account_id):not(input[type=checkbox]):not(input[type=radio]) {
    opacity: 0.15;
}



table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd {
    background-color: #2d2a2aad !important;
}

table.dataTable tbody tr {
    background-color: black !important;
}

/* [aria-controls="items-table"] {
    color: red;
} */

table.dataTable.row-border tbody th, table.dataTable.row-border tbody td, table.dataTable.display tbody th, table.dataTable.display tbody td {
    border-top: none !important;
}

td, th {
    font-size: 0.8125rem;
    line-height: 1rem;
    border-bottom: 1px solid var(--hairline-color);
    vertical-align: top;
    padding: 8px;
}

th {
    font-weight: 600;
    text-align: left;
    color: #deebde;
}

thead th,
tfoot td {
    color: var(--body-quiet-color);
    padding: 5px 10px;
    font-size: 0.6875rem;
    background: var(--body-bg);
    border: none;
    border-top: 1px solid var(--hairline-color);
    border-bottom: 1px solid var(--hairline-color);
}

tfoot td {
    border-bottom: none;
    border-top: 1px solid var(--hairline-color);
}

thead th.required {
    color: var(--body-loud-color);
}

tr.alt {
    background: var(--darkened-bg);
}

tr:nth-child(odd), .row-form-errors {
    background: var(--body-bg);
}

tr:nth-child(even),
tr:nth-child(even) .errorlist,
tr:nth-child(odd) + .row-form-errors,
tr:nth-child(odd) + .row-form-errors .errorlist {
    background: var(--darkened-bg);
}

/* SORTABLE TABLES */

thead th {
    padding: 5px 10px;
    line-height: normal;
    text-transform: uppercase;
    background: var(--darkened-bg);
}

thead {
    text-transform: uppercase;
}

th {
    text-transform: uppercase;
}

thead th a:link, thead th a:visited {
    color: var(--body-quiet-color);
}

thead th.sorted {
    background: var(--selected-bg);
}

thead th.sorted .text {
    padding-right: 42px;
}

table thead th .text span {
    padding: 8px 10px;
    display: block;
}

table thead th .text a {
    display: block;
    cursor: pointer;
    padding: 8px 10px;
}

table thead th .text a:focus, table thead th .text a:hover {
    background: var(--selected-bg);
}

thead th.sorted a.sortremove {
    visibility: hidden;
}

table thead th.sorted:hover a.sortremove {
    visibility: visible;
}

table thead th.sorted .sortoptions {
    display: block;
    padding: 9px 5px 0 5px;
    float: right;
    text-align: right;
}

table thead th.sorted .sortpriority {
    font-size: .8em;
    min-width: 12px;
    text-align: center;
    vertical-align: 3px;
    margin-left: 2px;
    margin-right: 2px;
}

table thead th.sorted .sortoptions a {
    position: relative;
    width: 14px;
    height: 14px;
    display: inline-block;
    background: url(../img/sorting-icons.svg) 0 0 no-repeat;
    background-size: 14px auto;
}

table thead th.sorted .sortoptions a.sortremove {
    background-position: 0 0;
}

table thead th.sorted .sortoptions a.sortremove:after {
    content: '\\';
    position: absolute;
    top: -6px;
    left: 3px;
    font-weight: 200;
    font-size: 1.125rem;
    color: var(--body-quiet-color);
}

table thead th.sorted .sortoptions a.sortremove:focus:after,
table thead th.sorted .sortoptions a.sortremove:hover:after {
    color: var(--link-fg);
}

table thead th.sorted .sortoptions a.sortremove:focus,
table thead th.sorted .sortoptions a.sortremove:hover {
    background-position: 0 -14px;
}

table thead th.sorted .sortoptions a.ascending {
    background-position: 0 -28px;
}

table thead th.sorted .sortoptions a.ascending:focus,
table thead th.sorted .sortoptions a.ascending:hover {
    background-position: 0 -42px;
}

table thead th.sorted .sortoptions a.descending {
    top: 1px;
    background-position: 0 -56px;
}

table thead th.sorted .sortoptions a.descending:focus,
table thead th.sorted .sortoptions a.descending:hover {
    background-position: 0 -70px;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-right: .5rem;
}

.message-reference-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 99;
    flex: 0 0 auto;
    margin-left: auto !important;
    color: var(--link-fg);
    line-height: 1;
    text-decoration: none;
}

.message-reference-action svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: currentColor;
}

.message-reference-action:hover,
.message-reference-action:focus-visible {
    color: var(--link-hover-color);
}

/* CUSTOM TABLES */
#this-period {
    margin: .5rem auto 1rem auto;
}

/* CHARTS */
canvas {
    background-color: whitesmoke;
    margin: 0 1em 0 1em;
    border-radius:.5em;
    padding: .5em;
    box-shadow: var(--button-shadow);
}

#chart-slot {
  flex: 1 1 100%;
  width: 100%;
  display: flex;
  justify-content: center;
}
#chart-slot canvas {
  width: 90% !important;
  height: auto !important;
  max-width: 100%;
}

/* FORM DEFAULTS */

label {
    letter-spacing: .2rem;
    font-size: 1rem;
}
input, textarea, select, .form-row p, form .button {
    margin: 2px 0;
    padding: 10px 15px;
    vertical-align: middle;
    font-family: var(--font-family-primary);
    font-weight: normal;
    font-size: 1rem;
}

input[type="date"] {
    border-radius: 4px;
    background-color: darkseagreen;
    opacity: .8;
    color: black;
}

input[type="checkbox"] {
    padding: 0px 5px 0px 0px !important;

}

input[type="search"]::-webkit-search-cancel-button {
    color: red;
}

.form-row div.help {
    padding: 2px 3px;
}

textarea {
    vertical-align: top;
}

input[type=text], input[type=password], input[type=email], input[type=url],
input[type=number], input[type=tel], textarea, select, .vTextField {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 6px;
    margin-top: 0;
    color: var(--body-fg);
    background-color: var(--input-bg);
    font-size: 1rem;
}


select {
    height: 2.25rem !important;
    padding: 0px .2rem !important;
}

input[type=text]:focus, input[type=password]:focus, input[type=email]:focus,
input[type=url]:focus, input[type=number]:focus, input[type=tel]:focus,
textarea:focus, select:focus, .vTextField:focus {
    border-color: var(--body-quiet-color);
}

select[multiple] {
    /* Allow HTML size attribute to override the height in the rule above. */
    height: auto;
    min-height: 150px;
}

/* FORM BUTTONS */

button,
input[type="submit"],
input[type="button"],
.submit-row input,
a.button {
    letter-spacing: .2rem;
    background: var(--button-bg);
    padding: .5em;
    border: none;
    border-radius: 6px;
    color: var(--button-fg);
    cursor: pointer;
    transition: background 0.15s;
    /* Add drop shadow with low opacity and high spread */
    box-shadow: var(--button-shadow);
    text-transform: uppercase;
    width: fit-content;
}

button {
    /* background: none; */
    border: none;
    padding: .5em;
    margin: 0;
    font: inherit;
    color: inherit;
}


.med-button {
    font-size: .9rem !important;
    padding: 4px 10px !important;
}

.small-button {
    font-size: 0.65rem !important; /* Adjust the font size to make it smaller */
    padding: 4px 8px !important; /* Slightly reduce the padding */
}

.pieBar-button {
    padding: .5rem !important;
    /* border-radius: 20px !important; */
    margin: 0 !important;
    height: 20px !important;
    /* margin: 18px 0 0 0 !important; */

    align-items: center !important; /* Centers content vertically */
    justify-content: center !important; /* Centers content horizontally */
    border-radius: 50% !important; /* Makes the button circular */
    text-decoration: none; /* Removes underlines from links */    
}

.pieBar-button svg .cls-1 {
    stroke: black;
    fill: var(--button-bg);
    transition: stroke 0.3s;
}

.pieBar-button:hover svg .cls-1,
.pieBar-button:hover svg .circ-bk {
  fill: var(--link-hover-color);
}

.pieBar-button.active svg .cls-1,
.pieBar-button.active svg .circ-bk {
  fill: var(--button-bg);
  cursor: none;
}

.pieBar-button .circ-bk {
  fill: white;
}

button.pieBar-button {
    background: none !important;
}

.st0 {
    fill: white;
    stroke-miterlimit: 1;
}
.st0, .st1 {
    stroke: #0c0c0c;
    stroke-width: 4.5px;
}
.st2 {
    fill: white;
}
.st1 {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cls-1 {
fill: none;
stroke: #231f20;
stroke-miterlimit: 10;
stroke-width: 4.5px;
}

.cls-2 {
    filter: url(#drop-shadow-1);
}

.cls-3 {
    fill: #fff;
    stroke-width: 0px;
}
/* TOGGLE */
/* Toggle switch div */
.toggle-div {
    display: flex; 
    align-items: center; 
    gap: 0.5em;
    margin-top: 2rem;
}
/* Toggle switch container */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  vertical-align: middle;
}

/* Hide the default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider appearance */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

/* Knob inside the slider */
.slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Blue background when checked */
input:checked + .slider {
  background-color: #3b82f6; /* Customize with your primary color */
}

/* Move the knob when checked */
input:checked + .slider:before {
  transform: translateX(22px);
}

/* Optional: disabled appearance */
input:disabled + .slider {
  background-color: #999;
  cursor: not-allowed;
}

.red-button,
.delete-button {
    background: var(--delete-button-bg) !important;
}

.red-button:hover,
.delete-button:hover {
    background-color: var(--delete-button-hover-bg) !important;
}

.delete-button:hover {
    box-shadow: 0 0 0.5rem rgba(186, 33, 33, 0.75);
}

.red-button:active,
.red-button:focus,

.delete-button:focus {
    background-color: var(--delete-button-hover-bg) !important;
}

.delete-button:active {
    background-color: var(--delete-button-active-bg) !important;
}

.extreme-caution-button,
.archive-button {
    background: var(--extreme-caution-button-bg) !important;
}

.extreme-caution-button:hover,
.extreme-caution-button:active,
.extreme-caution-button:focus,
.archive-button:hover,
.archive-button:active,
.archive-button:focus {
    background-color: var(--extreme-caution-button-hover-bg) !important;
}

.hide-button {
    background-color: var(--caution-button-bg) !important;
    color: black;
}

.hide-button:hover,
.hide-button:active,
.hide-button:focus {
    background-color: var(--caution-button-hover-bg) !important;
}

.yellow-button {
    background: var(--caution-button-bg) !important;
    color: black;
    font-weight: 900;
}

.yellow-button:hover {
    background-color: var(--caution-button-hover-bg) !important;
    color: var(--delete-button-bg);
    font-weight: 900;
}

.li-button {
    line-height: 2.8rem;
  }

a.button:hover {
    text-decoration: none;
}

a.button {
    padding: .5em;
    letter-spacing: var(--button-letter-spacing);
    text-align: center;
}

a.disabled {
    pointer-events: none;
    color: #5b5454;
    opacity:.6;
  }

a.no-pointer {
    pointer-events: none;
}

.button a:visited {
    color: white;
}

.button {
    letter-spacing: var(--button-letter-spacing);
    text-transform: uppercase;
    margin: 18px 12px !important;
    align-content: center;
}

.button:active, input[type=submit]:active, input[type=button]:active,
.button:focus, input[type=submit]:focus, input[type=button]:focus,
.button:hover, input[type=submit]:hover, input[type=button]:hover {
    background: var(--button-hover-bg);
}

.button[disabled], input[type=submit][disabled], input[type=button][disabled] {
    opacity: 0.4;
    /* background-color: rgba(0, 0, 0, 0.1); */
    cursor: none;
}

.button.default, input[type=submit].default, .submit-row input.default {
    border: none;
    font-weight: 400;
    background: var(--default-button-bg);
}

.button.default:active, input[type=submit].default:active,
.button.default:focus, input[type=submit].default:focus,
.button.default:hover, input[type=submit].default:hover {
    background: var(--default-button-hover-bg);
}

.button[disabled].default,
input[type=submit][disabled].default,
input[type=button][disabled].default {
    opacity: 0.4;
}

#visor-button-section .diams .hearts {
    line-height: 2rem;
}

.period-symbols {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    line-height: 3.5rem;
}

.period-header {
    margin: 0 1rem 0 1rem;
    text-transform: uppercase;
}

.button-section {
    display: flex;
    justify-content: center; /* Center the items horizontally */
    flex-wrap: wrap;
    width: 100%; /* Set the width of the flex container */
    justify-content: space-around;
    align-items: baseline;
}

.button-section-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color:white;
}

.button-section-margins {
    margin: 1rem 0;
}

.button-section-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #39866963;
    border-radius: 6px;
}

.button-section-even {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.button-section-item {
    /* Ensure they have appropriate widths, heights, and spacing */
    display: flex;
    align-items: center;  
}

.dashboard-tooltip {
    position: fixed;
    z-index: 10000;
    box-sizing: border-box;
    max-width: min(18rem, calc(100vw - 1rem));
    padding: .45rem .65rem;
    border: 1px solid var(--light-accent, #96bf9d);
    border-radius: 6px;
    background: #0d2e2d;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
    color: antiquewhite;
    font-size: .85rem;
    line-height: 1.25;
    letter-spacing: .04em;
    text-align: center;
    text-transform: none;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-.2rem);
    transition: opacity .12s ease, transform .12s ease;
}

.dashboard-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-tooltip {
        transition: none;
    }
}

.forecast-ai-shell {
    box-sizing: border-box;
    padding: 1.5rem 1rem 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.forecast-ai-grid-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.forecast-ai-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-end;
    padding: 1.5rem;
    margin: 0 auto 1.5rem;
    width: 100%;
    border: 1px solid rgba(250, 235, 215, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(96, 154, 182, 0.35), transparent 32%),
        linear-gradient(135deg, rgba(18, 31, 41, 0.95), rgba(27, 72, 68, 0.92));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.forecast-ai-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 0.95;
}

.forecast-ai-intro {
    max-width: 52rem;
    margin: 0.9rem 0 0;
    color: rgba(250, 235, 215, 0.86);
}

.forecast-ai-usage {
    text-align: center;
    background-color: #1c5045;
    border-radius: 6px;
    color: white;
    width: max-content;
    justify-self: center;
    padding: 6px 8px;
    margin-top: 1rem;
}

.forecast-ai-hero-meta {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.forecast-pill,
.forecast-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(250, 235, 215, 0.1);
    border: 1px solid rgba(250, 235, 215, 0.16);
    color: antiquewhite;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.forecast-ai-toolbar {
    width: 100%;
    margin: 0 auto 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.forecast-ai-toolbar-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.forecast-ai-grid {
    box-sizing: border-box;
    width: min(100%, 1180px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(640px, 2.1fr);
    gap: 1rem;
    align-items: start;
}

.forecast-panel {
    min-height: 520px;
    border: 1px solid rgba(250, 235, 215, 0.14);
    border-radius: 18px;
    background: rgba(9, 20, 25, 0.7);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.forecast-panel-header {
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid rgba(250, 235, 215, 0.08);
}

.forecast-panel-header h2,
.forecast-panel-header h3 {
    margin: 0;
}

.forecast-panel-header p {
    margin: 0.35rem 0 0;
    color: rgba(250, 235, 215, 0.7);
}

.forecast-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
}

.forecast-history-item {
    width: 100%;
    text-align: left;
    padding: 0.95rem;
    border: 1px solid rgba(250, 235, 215, 0.08);
    border-radius: 14px;
    background: rgba(250, 235, 215, 0.03);
    color: antiquewhite;
}

.forecast-history-item strong,
.forecast-history-item span {
    display: block;
}

.forecast-history-item span {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: rgba(250, 235, 215, 0.68);
}

.forecast-history-item.is-active,
.forecast-history-item:hover {
    background: rgba(96, 154, 182, 0.2);
    border-color: rgba(96, 154, 182, 0.4);
}

.forecast-chat-panel {
    display: flex;
    flex-direction: column;
}

.forecast-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(143, 188, 143, 0.12);
    color: antiquewhite;
    font-size: 0.86rem;
}

.forecast-status-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: #9fdde7;
    box-shadow: 0 0 0 0.3rem rgba(159, 221, 231, 0.18);
}

.forecast-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
    max-height: 62vh;
    overflow: auto;
}

.forecast-message {
    max-width: 85%;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid rgba(250, 235, 215, 0.08);
    white-space: pre-wrap;
}

.forecast-message-role {
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: #a8d4de;
}

.forecast-message-user {
    align-self: flex-end;
    background: rgba(96, 154, 182, 0.18);
}

.forecast-message-assistant {
    align-self: flex-start;
}

.forecast-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0 1rem 1rem;
}

.forecast-suggestion-chip {
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(250, 235, 215, 0.12);
    background: rgba(250, 235, 215, 0.04);
    color: antiquewhite;
    text-align: left;
}

.forecast-suggestion-chip:hover {
    background: rgba(96, 154, 182, 0.2);
}

.ai-suggest-panel {
    margin-top: 1rem;
}

.ai-suggest-results {
    margin-top: 1rem;
    padding: 1rem;
    text-align: left;
    border: 1px solid rgba(250, 235, 215, 0.12);
    border-radius: 14px;
    background: rgba(250, 235, 215, 0.04);
}

.ai-suggest-results li {
    margin-bottom: 0.55rem;
}

.ai-suggest-disclaimer {
    font-size: 0.85rem;
    opacity: 0.85;
}

.forecast-chat-composer {
    margin: auto 1rem 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(250, 235, 215, 0.03);
    border: 1px solid rgba(250, 235, 215, 0.08);
}

#forecast-chat-input {
    margin: 1rem 0 0.4rem;
    width: 98%;
    min-height: 120px;
    resize: vertical;
    border-radius: 14px;
}

.forecast-chat-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.forecast-context-list,
.forecast-capabilities {
    padding: 1rem;
}

.forecast-context-card {
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 0.85rem;
    background: linear-gradient(180deg, rgba(250, 235, 215, 0.06), rgba(250, 235, 215, 0.02));
    border: 1px solid rgba(250, 235, 215, 0.08);
}

.forecast-context-topline {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.forecast-context-card h3,
.forecast-capabilities h3 {
    margin: 0 0 0.45rem;
}

.forecast-context-card p,
.forecast-capabilities li {
    color: rgba(250, 235, 215, 0.8);
}

.forecast-capabilities ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0 0;
}

@media (max-width: 1100px) {
    .forecast-ai-grid {
        grid-template-columns: 1fr;
    }

    .forecast-panel {
        min-height: 0;
    }
}

@media (max-width: 700px) {
    .forecast-ai-hero {
        padding: 1.2rem;
    }

    .forecast-ai-hero,
    .forecast-ai-toolbar,
    .forecast-chat-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .forecast-message {
        max-width: 100%;
    }
}

.form-section {
    display: flex;
    justify-content: center; /* Center the items horizontally */
    flex-wrap: wrap;
    width: 100%; /* Set the width of the flex container */
    align-items: baseline;
}

.form-section > *:not(:first-child) {
    margin-left: 1rem;
}

.nav-tabs {
    border-bottom: 1px solid #dddddd;
    list-style: none;
    font-size: .55em;
}  

.nav-tabs>li {
    float: left;
    margin-bottom: -1px;
}

.nav {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.nav>li {
    position: relative;
    display: block;
}

.nav>li>a {
    position: relative;
    display: block;
    padding: 10px 15px;
}

.nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus {
    color: #6f6f6f;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-bottom-color: transparent;
    cursor: default;
}

.nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus {
    color: #6f6f6f;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-bottom-color: transparent;
    cursor: default;
}

.parent-container {
    width: 100%; /* Set the width of the parent container */
    /* Add any other styles for the parent container as needed */
  }

.tab-container {
    width: 100%;
}

.tab-container .tab-nav {
    margin: 0 0 1rem;
}

.tab-panel {
    width: 100%;
}

.tab-panel.hidden {
    display: none;
}

.help-desk-page {
    width: 100%;
}


.help-desk-intro p {
    text-align: center;
}

.help-desk-form,
.help-desk-reply-form {
    width: 100%;
}

.help-desk-form-shell {
    max-width: 42rem;
    margin: 0 auto;
}

.help-desk-form-shell > h3 {
    margin-top: 2rem;
}

.help-desk-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}

.help-desk-field label {
    letter-spacing: .18rem;
    text-align: center;
}

.help-desk-field input[type="text"],
.help-desk-field textarea,
.help-desk-field select {
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

.help-desk-field textarea {
    min-height: 14rem;
    resize: vertical;
}

.help-desk-field #id_topic,
.help-desk-field #id_content,
.help-desk-reply-form textarea[name="content"] {
    width: 100%;
}

.help-desk-helptext {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    letter-spacing: .03rem;
    color: var(--body-quiet-color);
}

.help-desk-ticket {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem 1.5rem;
    border-radius: 14px;
    background: rgba(36,67,91,.12);
    border: 1px solid rgba(250, 235, 215, 0.08);
}

.help-desk-ticket summary {
    font-size: 1rem;
}

.help-desk-reply-form {
    max-width: 42rem;
}

.help-desk-reply-form h4 {
    margin-bottom: 1rem;
}

.help-desk-reply-form p {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.help-desk-reply-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 8rem;
}

.grid {
    display: grid;
  }  

.grid > div {
    padding: 0 0 1.5rem .5rem;
    text-align: center;
  }

.grid-info-table, .grid-info-table-yr,.grid-info-table-wk,.grid-info-table-13 {
    gap: 2px;
    align-items: center;
  }

.grid-info-table {
    grid-template-columns: .25fr .5fr .75fr .05fr .75fr;
}

.quarters-grid {
    align-items: start;
}

.budget-template-textarea-container textarea {
    display: block;
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
}

.navigation-button-legend {
    margin-inline: auto;
}

.navigation-legend-row {
    display: grid;
    grid-template-columns: 3.75rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding-block: 0.75rem;
}

.navigation-legend-button {
    grid-column: 1;
    justify-self: center;
}

.navigation-legend-row > div:not(.navigation-legend-button) {
    grid-column: 2;
}

.navigation-legend-button .button-section-item {
    margin: 0;
}

.navigation-legend-row h4,
.navigation-legend-row p {
    margin-block: 0 0.35rem;
}

.grid-info-table-wk {
    grid-template-columns: .5fr 1fr;
}

.grid-info-table-yr {
    grid-template-columns: 1fr 4fr 1fr 2fr;
}

.grid-info-table-13 {
    grid-template-columns: .05fr .75fr .75fr .15fr .75fr;
    grid-template-rows: 1fr 1fr;
    /* border-left: 1px solid black;    */
}

.grid-info-table-13 > div:nth-child(6n+2),
.grid-info-table-13 > div:nth-child(6n+4),
.grid-info-table-13 > div:nth-child(6n+6),
.grid-info-table-yr > div:nth-child(6n+2),
.grid-info-table-yr > div:nth-child(6n+4),
.grid-info-table-yr > div:nth-child(6n+6),
.grid-info-table-yr > div:nth-child(6n+8),
.grid-info-table-yr > div:nth-child(6n+10),
.grid-info-table-wk > div:nth-child(6n+2),
.grid-info-table-wk > div:nth-child(6n+4),
.grid-info-table-wk > div:nth-child(6n+6),
.grid-info-table-wk > div:nth-child(6n+8) {
    justify-self: start;
}

.grid-legend-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 0px 0px;
    width:min-content;
    margin:auto;
  }

  .grid-legend-item {
    padding: 10px;
    /* border: 1px solid black; */
    text-align: center;
  }

  .grid-legend-item-left {
    text-align: center;
    font-size: 3rem;
  }   

.grid-item-right {
  text-align: left;
}

.grid-highs-lows-legend-table {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-template-rows: repeat(4, auto);
    gap: 0px 0px;
    width: fit-content;
    align-items: end;
}

.grid-highs-lows-legend-item-right {
    text-align: left;
    padding-bottom: 1rem;
}



.full-width {
    grid-column: 1 / -1;  /* This makes the item span all columns. */
  }

.flex-container, .flex-container-nowrap {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-container-no-column {
    display: flex;
    flex-direction: row !important;
}

.flex-row {
    flex-direction: row;
}

.hiLo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
  }
  
  .hiLo::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    /* background: black; */
    top: 50%;
    left: 0;
  }
  
  .high,
  .low {
    /* background: white; */
    padding: 0 3px;
    z-index: 1;
  }

.cardHr {
letter-spacing: .01rem;
}

.card-title {
    text-align: center;
    text-transform: uppercase;
    color: antiquewhite;
    letter-spacing: .15rem;
} 

.visor-period-selector {
    --visor-period-icon-size: 1.75rem;
    --visor-period-icon-font-size: 1.45rem;
    --visor-period-icon-column-gap: .4rem;
    width: 100%;
}

.visor-period-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1rem;
    width: 100%;
}

.visor-period-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    gap: 1rem;
    padding-top: 1.5rem;
}

.visor-period-group--q40 {
    grid-column: 1 / -1;
}

.visor-period-group .card-title {
    display: flex;
    justify-content: center;
    margin: 0;
    font-size: .85rem;
}

.visor-period-range-link.button {
    display: inline-block;
    margin: 0 !important;
}

.visor-period-icons {
    display: grid;
    gap: .25rem var(--visor-period-icon-column-gap);
    justify-content: center;
    margin-top: 0;
}

.visor-period-group--w6 .visor-period-icons {
    grid-template-columns: repeat(3, var(--visor-period-icon-size));
}

.visor-period-group--w14 .visor-period-icons {
    grid-template-columns: repeat(7, var(--visor-period-icon-size));
}

.visor-period-group--m18 .visor-period-icons {
    grid-template-columns: repeat(9, var(--visor-period-icon-size));
}

.visor-period-group--y10 .visor-period-icons {
    grid-template-columns: repeat(5, var(--visor-period-icon-size));
}

.visor-period-group--q40 .visor-period-icons {
    grid-template-columns: repeat(10, var(--visor-period-icon-size));
}

@media (max-width: 500px) {
    .visor-period-track {
        grid-template-columns: minmax(0, 1fr);
    }

    .visor-period-group--q40 {
        grid-column: auto;
    }
}

.visor-period-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--visor-period-icon-size);
    height: var(--visor-period-icon-size);
    border: 1px solid rgba(250, 235, 215, .25);
    border-radius: 4px;
    background: rgba(13, 46, 45, .65);
    font-size: var(--visor-period-icon-font-size);
    line-height: 1;
    text-decoration: none;
    align-items: baseline;
}

.visor-period-icon.spades,
.visor-period-icon.spades:link,
.visor-period-icon.spades:visited,
.visor-period-icon.spades:hover,
.visor-period-icon.spades:focus {
    color: indianred;
    font-size: var(--visor-period-icon-font-size);
}

.visor-period-icon.hearts,
.visor-period-icon.hearts:link,
.visor-period-icon.hearts:visited,
.visor-period-icon.hearts:hover,
.visor-period-icon.hearts:focus {
    color: gold;
    font-size: var(--visor-period-icon-font-size);
}

.visor-period-icon.clubs,
.visor-period-icon.clubs:link,
.visor-period-icon.clubs:visited,
.visor-period-icon.clubs:hover,
.visor-period-icon.clubs:focus {
    color: springgreen;
    font-size: var(--visor-period-icon-font-size);
}

.visor-period-icon.diams,
.visor-period-icon.diams:link,
.visor-period-icon.diams:visited,
.visor-period-icon.diams:hover,
.visor-period-icon.diams:focus {
    color: lightskyblue;
    font-size: var(--visor-period-icon-font-size);
}

.visor-period-icon:hover,
.visor-period-icon:focus {
    border-color: antiquewhite;
    background: var(--button-hover-bg);
    outline: 2px solid antiquewhite;
    outline-offset: 2px;
}

/* @media (max-width: 500px) {
    .visor-period-selector {
        --visor-period-icon-size: .8rem;
        --visor-period-icon-font-size: .7rem;
        --visor-period-icon-column-gap: .12rem;
        gap: .25rem;
    }
} */

.temp-border {
    border-style: solid;
    border-color: #000;
}

.flex-1 {
    flex: 1;
}

.semaforo {
    text-align: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.border-box {
    box-sizing: border-box;
}

.justify-content-center {
    justify-content: center;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}


.align-items-center {
    align-items: center;
} 

.align-items-stretch {
    align-items: stretch;
} 

.align-self-center {
    align-self: center;
} 

.align-self-stretch {
    align-self: stretch;
} 

.align-text-left {
    text-align: left;
} 

.column-tight {
    flex-basis: 0;
    flex-grow: 1;
    padding: 10px;
    border: 1px solid black; /* Just to make the columns visible */
}

.space-around {
    justify-content: space-around;
}

.space-between {
    justify-content: space-between;
}

.space-evenly {
    justify-content: space-evenly;
}

.tab-blurb {
    margin-bottom: 2rem;
}

.page-100,.page-90,.page-80, .page-70,.page-60,.page-50,.page-40 {
    align-self: center;
    box-sizing: border-box;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.page-100 {
    width: 100%;
}

.page-90 {
    width: 90%;
}

.page-80 {
    width: 80%;
}

.page-70 {
    width: 70%;
}

.page-60 {
    width: 60%;
}

.page-50 {
    width: 50%;
}

.page-40 {
    width: 40%;
}

  /* .circle {
    background-color: white;
    border-radius: 50%;
    width: 400px;
    height: 400px;    
    padding: auto;
    margin: auto;
  } */

  .circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #3498db;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.plus-minus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}  

/* MODULES */

.module {
    border: none;
    margin-bottom: 30px;
    background: var(--body-bg);
}

.module p, .module ul, .module h3, .module h4, .module dl, .module pre {
    padding-left: 10px;
    padding-right: 10px;
}

.module blockquote {
    margin-left: 12px;
}

.module ul, .module ol {
    margin-left: 1.5em;
}

.module h3 {
    margin-top: .6em;
}

.module h2, .module caption, .inline-group h2 {
    margin: 0;
    padding: 8px;
    font-weight: 400;
    font-size: 0.8125rem;
    text-align: left;
    background: var(--primary);
    color: var(--header-link-color);
}

.module caption,
.inline-group h2 {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.module table {
    border-collapse: collapse;
}

/* MESSAGES & ERRORS */

ul.messagelist {
    padding: 0;
    margin: 0;
}

ul.messagelist li {
    display: block;
    font-weight: 400;
    font-size: 1rem;
    padding: 10px 10px 10px 65px;
    margin: 0 0 10px 0;
    background: var(--message-success-bg) url(../img/icon-yes.svg) 1rem 18px no-repeat;
    background-size: 16px auto;
    color: var(--body-fg);
    word-break: break-word;
    border-radius: 6px;
    text-align: left;
}

ul.messagelist li.warning {
    background: var(--message-warning-bg) url(../img/icon-alert.svg) 1rem 18px no-repeat;
    background-size: 14px auto;
}

ul.messagelist li.caution {
    background: url(../img/icon-alert.svg) 1rem 18px no-repeat;
    background-size: 1.6rem auto;
    padding-top: 1rem;
    font-size: 1.2rem;
}

.app-admin-delete-list {
    text-align: left;
    margin: auto;
}

.caution-text {
    color: var(--message-caution-color);
}

ul.messagelist li.error {
    background: var(--message-error-bg) url(../img/icon-no.svg) 1rem 18px no-repeat;
    background-size: 16px auto;
}

.blink {
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    10% {
        opacity:.2;
    }
}

div.msg {
    display: flex;
    border: 2px solid transparent; /* Set a solid transparent border */
    /* background-color: linear-gradient(0deg, rgba(22, 30, 36, 1) 0%, rgba(11, 51, 48, 1) 45%, rgba(58, 135, 106, 1) 100%); */
    border-radius: 15px;
    padding: 10px;
    justify-content: center !important;
    width: fit-content;
    margin: auto !important;
    justify-self: center !important;
}

.redalert {
    background-color: var(--error-fg) !important;
    margin: 18px 12px !important;
}

.yellowalert {
    background-color: goldenrod;
    }

.income {
    color: #90ee90e0;
    font-weight: 500;
    letter-spacing: .2em;
}

.expense {
    color: var(--error-fg);
    font-weight: 500;
    letter-spacing: .2em;
}

#id_i_pay_type {
    text-align: left;
    width: fit-content;
    margin: auto;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    margin-bottom: 16px;
    padding-bottom: 16px;
}

#id_i_pay_type_1, #id_i_pay_type_0 {
    margin-bottom: .2rem;
}

#id_u_account_id_display {
    width: 70%;
}

#id_c_pay_nm_display {
    width: 80%;
}

#id_i_payments {
    text-align: center;
}

#id_i_pay_freq {
    width:5rem;
}

#id_invitation-section {
    text-align: center;
    width: 60%;
}

.hide-offscreen {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

.errornote {
    font-size: 0.875rem;
    font-weight: 700;
    display: block;
    padding: 10px 12px;
    margin: 0 0 10px 0;
    color: var(--error-fg);
    border: 1px solid var(--error-fg);
    border-radius: 4px;
    background-color: var(--body-bg);
    background-position: 5px 12px;
    overflow-wrap: break-word;
}

ul.errorlist {
    margin: 0 0 4px;
    padding: 0;
}

ul.errorlist li {
    font-size: 0.8125rem;
    display: block;
    margin-bottom: 4px;
    overflow-wrap: break-word;
}

ul.errorlist li:first-child {
    margin-top: 0;
}

ul.errorlist li a {
    color: inherit;
    text-decoration: underline;
}

td ul.errorlist {
    margin: 0;
    padding: 0;
}

td ul.errorlist li {
    margin: 0;
}

.form-row.errors {
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--hairline-color);
    background: none;
}

.form-row.errors ul.errorlist li {
    padding-left: 0;
}

.errors input, .errors select, .errors textarea,
td ul.errorlist + input, td ul.errorlist + select, td ul.errorlist + textarea {
    border: 1px solid var(--error-fg);
}

.description {
    font-size: 0.75rem;
    padding: 5px 0 0 12px;
}

/* BREADCRUMBS */

#breadcrumbs_status {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: .5rem 0 1.2rem;
}

div.breadcrumbs {
    /* background: var(--breadcrumbs-bg); */
    /* padding: 0px 0px 0px 10px; */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    border: none;
    border-radius: 5px;
    background: #103b36ad;
    padding: 10px;
    box-shadow: 0px 15px 10px -10px rgba(0, 0, 0, 0.15);
    margin: 0;
    flex-grow: 1;
    width: stretch;
}

div.breadcrumbs a {
    color: var(--breadcrumbs-link-fg);
    text-transform: uppercase;
    letter-spacing: .15rem;
    font-size: .9rem;
}

div.breadcrumbs span {
    color: var(--breadcrumbs-fg);
    text-align: left;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .15rem;
    margin: 0;
}

div.breadcrumbs a:focus, div.breadcrumbs a:hover {
    color: var(--breadcrumbs-fg);
}

.breadcrumb-separator {
    color: var(--breadcrumbs-fg);
    opacity: 0.8;
}

.messages-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    color: var(--breadcrumbs-fg);
    background: transparent;
    border: 0;
    border-radius: 50%;
}

.messages-icon-link svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }
.messages-icon-link:hover, .messages-icon-link:focus, .messages-icon-link.active { color: var(--link-fg); background: rgba(16, 59, 54, .68); }
.messages-unread-badge {
    position: absolute;
    top: -.15rem;
    right: -.15rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 .25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: var(--error-fg);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
}

/* MESSAGES */
.messages-page { width: min(1100px, 100%); margin: 0 auto; }
.messages-layout { display: grid; grid-template-columns: minmax(15rem, 30%) 1fr; gap: 1rem; align-items: start; }
.messages-sidebar, .message-detail, .message-placeholder, .message-compose { background: #103b36ad; border-radius: 5px; box-shadow: 0 15px 10px -10px rgba(0,0,0,.15); }
.messages-tabs { display: flex; border-bottom: 1px solid rgba(209,233,211,.25); }
.messages-tabs a { flex: 1; padding: .8rem .45rem; text-align: center; text-transform: uppercase; letter-spacing: .08rem; font-size: .8rem; }
.messages-tabs a[aria-current="page"] { color: antiquewhite; border-bottom: 2px solid var(--primary); }
.messages-list { max-height: 38rem; overflow-y: auto; }
.message-summary { display: block; padding: .8rem; color: var(--breadcrumbs-fg); border-bottom: 1px solid rgba(209,233,211,.14); }
.message-summary:hover, .message-summary:focus, .message-summary.selected { background: rgba(150,191,157,.18); }
.message-summary.unread { border-left: .25rem solid var(--link-fg); font-weight: 700; }
.message-summary-topic, .message-summary-person, .message-summary time { display: block; }
.message-summary-person, .message-summary time { margin-top: .25rem; font-size: .78rem; font-weight: 400; opacity: .82; }
.messages-empty { padding: 1rem; }
.messages-main { display: grid; gap: 1rem; }
.message-detail, .message-placeholder, .message-compose { padding: 1rem; }
.message-detail > header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.message-detail h2, .message-compose h2, .message-placeholder h2 { margin-top: 0; }
.message-detail-label { margin: 0 0 .2rem; text-transform: uppercase; letter-spacing: .12rem; font-size: .75rem; }
.message-thread { display: grid; gap: .75rem; margin: 1rem 0; }
.message-bubble { max-width: 85%; padding: .85rem; border-radius: 5px; background: rgba(13,46,45,.82); }
.message-bubble.from-me { justify-self: end; background: rgba(94,145,103,.58); }
.message-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin: 0 0 .5rem; font-size: .8rem; }
.message-content { overflow-wrap: anywhere; }
.message-reply-form, .message-compose form { display: grid; gap: .7rem; }
.message-reply-form textarea, .message-compose textarea, .message-compose select, .message-compose input { width: 100%; box-sizing: border-box; }
.message-form-field { display: grid; gap: .25rem; }
.message-reply-form .button, .message-compose .button { justify-self: start; }

@media (max-width: 760px) {
    .messages-layout { grid-template-columns: 1fr; }
    .messages-list { max-height: 20rem; }
    #breadcrumbs_status { gap: .25rem; }
}

div.status {
    border: none;
    border-radius: 5px;
    padding: 10px;
    margin: .5rem 0rem 1.2rem 0rem;
    text-align: center;
    }

/* ACTION ICONS */

.viewlink, .inlineviewlink {
    padding-left: 16px;
    background: url(../img/icon-viewlink.svg) 0 1px no-repeat;
}

.addlink {
    padding-left: 16px;
    background: url(../img/icon-addlink.svg) 0 1px no-repeat;
}

.changelink, .inlinechangelink {
    padding-left: 16px;
    background: url(../img/icon-changelink.svg) 0 1px no-repeat;
}

.deletelink {
    padding-left: 16px;
    background: url(../img/icon-deletelink.svg) 0 1px no-repeat;
}

a.deletelink:link, a.deletelink:visited {
    color: #CC3434; /* XXX Probably unused? */
}

a.deletelink:focus, a.deletelink:hover {
    color: #993333; /* XXX Probably unused? */
    text-decoration: none;
}

/* OBJECT TOOLS */

.object-tools {
    font-size: 0.625rem;
    font-weight: bold;
    padding-left: 0;
    float: right;
    position: relative;
    margin-top: -48px;
}

.object-tools li {
    display: block;
    float: left;
    margin-left: 5px;
    height: 1rem;
}

.object-tools a {
    border-radius: 15px;
}

.object-tools a:link, .object-tools a:visited {
    display: block;
    float: left;
    padding: 3px 12px;
    background: var(--object-tools-bg);
    color: var(--object-tools-fg);
    font-weight: 400;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.object-tools a:focus, .object-tools a:hover {
    background-color: var(--object-tools-hover-bg);
}

.object-tools a:focus{
    text-decoration: none;
}

.object-tools a.viewsitelink, .object-tools a.addlink {
    background-repeat: no-repeat;
    background-position: right 7px center;
    padding-right: 26px;
}

.object-tools a.viewsitelink {
    background-image: url(../img/tooltag-arrowright.svg);
}

.object-tools a.addlink {
    background-image: url(../img/tooltag-add.svg);
}

/* OBJECT HISTORY */

#change-history table {
    width: 100%;
}

#change-history table tbody th {
    width: 16em;
}

#change-history .paginator {
    color: var(--body-quiet-color);
    border-bottom: 1px solid var(--hairline-color);
    background: var(--body-bg);
    overflow: hidden;
}

#invitations-table {
    width: 80%;
    margin: auto;
}

/* PAGE STRUCTURE */

#container {
    width: 100%;
}

/* Hero section */
.hero-section {
    background-image: url('hero-image.jpg');
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;    
    align-items: center;
    justify-content: center;

}

.hero-content {
    width: min(1200px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr) minmax(0, 1fr);
    gap: 0 2rem;
    align-items: center;
    text-align: center;
    color: white;
    justify-items: center;
    justify-content: center;
}

.hero-content-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content-column img {
    width: 100%;
    max-width: 320px;
    height: auto;
}


.hero-content p {
    font-size: 1em;
}

.hero-subsection {
    padding: 10px 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #005e4a96;
    border-radius: 25px;
    width: max-content;
    max-width: calc(100% - 2rem);
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
}

.hero-button {
    display: inline-block;
    text-decoration: none;
    color: white;
    background-color: #398669;
    padding: 15px 32px;
    font-size: 1em;
    margin-top: 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    letter-spacing: .1em;
}

.hero-button a:link, .hero-button a:visited {
    color: antiquewhite;
}

.hero-button:hover {
    background-color: #4d6e7f;
    color:antiquewhite
}

/* Structural */
#container > div {
    flex-shrink: 0;
}

#container > .main {
    display: flex;
    flex: 1 0 auto;
}

.main > .content {
    flex:  1 0;
    max-width: 100%;
}

#main {
    flex: 1 0 auto;
}

.skip-to-content-link {
    position: absolute;
    top: -999px;
    margin: 5px;
    padding: 5px;
    background: var(--body-bg);
    z-index: 1;
}

.skip-to-content-link:focus {
    left: 0px;
    top: 0px;
}

#content {
	display: flex;
    padding: 0px 40px;
	flex: 1 0 auto; 
	flex-direction: column;
	min-height: 100vh;
    background: rgb(22,30,36);
    background: -moz-linear-gradient(0deg, rgba(22,30,36,1) 0%, rgba(11,51,48,1) 45%, rgba(58,135,106,1) 100%);
    background: -webkit-linear-gradient(0deg, rgba(22,30,36,1) 0%, rgba(11,51,48,1) 45%, rgba(58,135,106,1) 100%);
    background: linear-gradient(0deg, rgba(22,30,36,1) 0%, rgba(11,51,48,1) 45%, rgba(58,135,106,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#161e24",endColorstr="#3a876a",GradientType=1);
}

.dashboard #content {
    width: 600px;
}

.dashboard-header h2 {
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-top: 1.5rem;
}

.dashboard-header h3 {
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 1em;
}

.dashboard-column {
    margin: .25rem;
    align-self: flex-start;
}
.dashboard-table {
    table-layout: fixed; /* This is key for fixed widths */
}
.col-1 { width: 25%; }
.col-2 { width: 25%; }
.col-3 { width: 35%; }
.col-4 { width: 15%; }

.dashboard-table th,
.dashboard-table td {
    width: auto; 
    overflow: hidden; /* Ensures content doesn't overflow */
    text-overflow: ellipsis; /* Adds an ellipsis for overflowed text */
    white-space: nowrap; /* Keeps content on a single line */
}

.dashboard-table-light-bg {
    background: var(--darkened-bg) !important;
} 

.dashboard-quarter-header {
    font-size: 1.25em;
    letter-spacing: .1em;
    font-weight: 300;
    margin: 1em 0 0 .75em;
    color: antiquewhite;
}

.dashboard-item-header {
    opacity: 75%;
}

.dashboard-item {
    font-weight: 400;
}

summary {
    font-size: smaller;
    letter-spacing: .15rem;
    /* margin-bottom: 1.8rem; */
}

#id-custom-details {
    max-height: 10rem;
}

.weeks-list {
    transform: scale(1.2);
    margin-bottom: .75rem;
    margin-top: .75rem;
}

#weeks > * {
    margin-left: 2rem;
    margin-right: 2rem;
    margin-bottom: 2rem;
  }

.superscript {
vertical-align: super;
}  

.red {
    background-color: var(--panel-light-red);
}

.green {
    background-color: var(--panel-light-green);
}

.gold {
    background-color: goldenrod;
}

.grey {
    background-color: lightgray;
}

.spades, .hearts, .diams, .clubs, .historic {
    font-size: 3rem;
    text-align: center;
    text-shadow: -1px 3px 5px rgba(11,11,11,0.34);  
    align-self: center;    
}
.spades {
    color: indianred;
}

.spades h2, .hearts h2, .diams h2, .clubs h2 {
    font-size: 1.8rem;
    margin-left: 1rem;
}

.inline {
    font-size: 1.8rem;
    margin-left: 1rem;
}

.clubs {
    color:springgreen;
}

.hearts {
    color:gold; 
}

.diams {
    color: lightskyblue;
}

.historic {
    color:lightgrey;
}

.sym-tiny {
    font-size: 1rem !important;
}

.sym-little {
    font-size: 1.6rem !important;
}

.sym-medium {
    font-size: 2.4rem !important;
}

.circle-text {
    border-radius: 50%;
    padding:8px;
}

.highlight-text {
    padding: 2px 4px 2px 4px;
}

/* CSS */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  margin: 18px 12px !important;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  background-color: var(--button-bg);
  box-shadow: var(--button-shadow);
  border-radius: 34px;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: background 0.15s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: var(--button-fg);
  transition: transform 0.15s;
  border-radius: 50%;
}

/* Toggle checked state */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--button-fg);
  font-family: var(--font-family-primary);
  text-transform: uppercase;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  background-color: var(--button-bg);
  box-shadow: var(--button-shadow);
  border-radius: 34px;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: background 0.15s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: var(--button-fg);
  transition: transform 0.15s;
  border-radius: 50%;
}

.toggle-switch input:checked + .slider {
  background-color: var(--button-hover-bg);
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(22px);
}

.toggle-icon {
    display: inline;
    opacity: .8;
    margin: 0 .4rem .2em 0;
}

.toggle-icon.hide {
    display: none;
}

#help-index {
    font-size: 1.3rem !important;
    color: antiquewhite !important;
    text-align: center !important;
}

#help-section {
    background: rgb(22,30,36) !important;
}

/* Main container */
.main-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* First sub-container */
.sub-container1 {
flex: 1 0 40%;
padding: 20px;
}
/* Second sub-container */
.sub-container2 {
flex: 0;
width: 200px;
padding: 20px;
margin-left: 20px;
}

/* General Help keeps its index beside the article until space gets tight. */
.general-help-container {
    display: flow-root;
}

.general-help-content {
    display: block;
    max-width: none;
}

.general-help-article {
    display: flow-root;
}

.general-help-index {
    float: right;
}

@media screen and (max-width: 600px) {
    .main-container {
      flex-direction: column; /* Stack sub-containers vertically */
    }
    .general-help-article {
      display: flex;
      flex-direction: column;
    }
    .general-help-index {
      float: none;
      order: 2;
      box-sizing: border-box;
      width: 100%;
      margin-left: 0;
    }
    #site-name {
        font-size: 1.4rem;
    }
    .slogan {
        font-size: 1.4rem;
    }

}

@media (max-width: 1200px) {
.flex-container {
    flex-flow: column;
}
}

@media print
{    
    .no-print, .no-print *
    {
        display: none !important;
    }
}

@media screen and (max-width: 400px) {

    #breadcrumbs_status {
        display: flex;
        flex-direction: column;
    }
}

@media screen and (max-width: 800px) {

    .page-90, .page-80, .page-70, .page-60, .page-50, .page-40 {
        width: 100%;
    }

    .information-block-container.page-60 {
        align-self: stretch;
        width: auto;
    }

    #breadcrumbs_status {
        display: flex;
    }
}

@media screen and (max-width: 1200px) {

    .dashboard-column {
        align-self: center;
    }
}

#content-main {
    float: left;
    width: 100%;
}

#content-related {
    float: right;
    width: 260px;
    position: relative;
    margin-right: -300px;
}

.information-block-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin:1em 1.5em 1em 1.5em;
    background: rgba(36,67,91,.15);
    border-radius: 15px;
    background: rgba(36,67,91,.15);
    background: -moz-linear-gradient(0deg, rgba(36,67,91,0.29735644257703087) 0%, rgba(11,51,48,.1) 0%, rgba(58,135,106,.1) 100%);
    background: -webkit-linear-gradient(0deg, rgba(36,67,91,0.29735644257703087) 0%, rgba(11,51,48,.1) 0%, rgba(58,135,106,.1) 100%);
    background: linear-gradient(0deg, rgba(36,67,91,0.29735644257703087) 0%, rgba(11,51,48,.1) 0%, rgba(58,135,106,.1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#24435b",endColorstr="#3a876a",GradientType=1);
    padding: 0px 15px 0px 15px;
  }
  .information-block-container h2 {
    font-size: 1.25rem;
    margin: .25em 0 .5em 0;
  }  

.index-page {
    display: flex;
    flex-direction: column;
    max-width: 60rem;
    margin: auto;
    background: none !important;
  }
  
.index-page p {
    text-align: left;
  }

.index-page .content:not(:first-child) {
    display: none;
  }

  .trigger-content {
    display: none;
  }

.index-page h3,h4 {
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--header-color-alt);
  } 

.index-page p {
    text-align: left;
  }

.index-page-width {
    width:inherit;
}  

/* Center and color the milestone symbols without altering the shared table. */
.knowledgebase-article-body .milestones-table th:first-child,
.knowledgebase-article-body .milestones-table td:first-child {
    text-align: center;
}

.knowledgebase-article-body .milestones-table tbody tr:nth-child(1) td:first-child { color: lightskyblue; }
.knowledgebase-article-body .milestones-table tbody tr:nth-child(2) td:first-child { color: springgreen; }
.knowledgebase-article-body .milestones-table tbody tr:nth-child(3) td:first-child { color: gold; }
.knowledgebase-article-body .milestones-table tbody tr:nth-child(4) td:first-child { color: indianred; }

  .trigger {
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
  }
  
  /* .trigger:hover {
    background-color: #e0e0e0;
  } */
    
  .text-smaller {
    font-size: smaller; 
    letter-spacing: .2em;
  }

  .information-block-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    row-gap: 0;
  }
  
.information-block-column {
    flex: 1 0 30%; /* grow, shrink, basis */
    margin: 1em;
  }

.contact-actions {
    margin-bottom: 1rem;
}

.account-summary dl {
  margin: 0;
}

.account-summary dl > div {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) 2fr;
  align-items: baseline;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.account-summary dl > div:last-child {
  border-bottom: 0;
}

.account-summary dt {
  font-weight: bold;
  line-height: 1.4;
}

.account-summary dd {
  margin: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .account-summary dl > div {
    grid-template-columns: 1fr;
    gap: .2rem;
  }
}

.contact-form {
    max-width: 42rem;
    margin: 0 auto;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.contact-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.contact-form-field label {
    letter-spacing: .12rem;
    text-align: center;
}

.contact-form-field input[type="text"],
.contact-form-field input[type="email"],
.contact-form-field textarea,
.contact-form-field select {
    width: 100%;
    box-sizing: border-box;
}

.contact-form-field textarea {
    min-height: 10rem;
    resize: vertical;
}

.contact-form-message {
    align-items: center;
}

.contact-form-message textarea,
.contact-form-message label,
.contact-form-message ul.errorlist {
    width: 100%;
    max-width: 34rem;
}

  .container-width50 {
    max-width: 50%;
    margin: auto;
  }

  .container-width80 {
    max-width: 80%;
    margin: auto;
  }  
  


#footer {
    flex-shrink: 0;  /* Don't allow this item to shrink smaller than its initial size */
    padding: 20px 20px 5px 20px;
    background-color: #151f24;
    margin:auto;
}

#footer-content {
	display: flex;
    flex-direction: row;
    justify-content: space-between; /* This will spread the columns across the full width of the footer. */
    align-items: center;
    padding: 5px 20px;
    margin: auto;
    flex-wrap: wrap;
    font-size: 1.1em;
    letter-spacing: .2em;
}

.vertical-center {
    align-items: center;
}

#footer-content p {
    padding: 0.2em;
}

  /* Responsive adjustments */
  @media (max-width: 800px) {
    .information-block-row {
      flex-direction: column;
    }
  
    .information-block-column {
      flex: 1 0 auto;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }
  }

  @media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    .column:not(:last-child) {
        margin-right: 0;
        margin-bottom: 20px;
    }
}  


#copyr {
	display: flex;
    margin: 3px 20px 3px 20px;
    padding: 0px 10px 0px 10px;
	flex: 1 0 auto; 
	flex-direction: column;
	align-items: center;
    background-color: #151f24;
    text-align: center;
}

.column {
    flex: 1;
}
.column:not(:last-child) {
    margin-right: 20px;
}
.centered {
    text-align: center !important;
}

.footer-logo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.footer-home-link,
.footer-admin-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.footer-logo-stack img {
    display: block;
    margin: 0 auto;
}

.app-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: auto;
}

.app-admin-tab {
    margin: 0;
}

.app-admin-tab[aria-selected="true"] {
    color: var(--primary-fg);
}

.app-admin-tab-panel {
    padding-top: 1rem;
}

.app-admin-tab-summary {
    box-sizing: border-box;
    width: auto;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    justify-content: flex-start;
    gap: 1.5rem;
}

.app-admin-tab-summary p {
    margin: 0;
}

.app-admin-table-section {
    padding: 1rem;
    border: 1px solid var(--primary);
    border-radius: 0.5rem;
    background: var(--tertiary);
}

.app-admin-message-layout {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(0, 2.5fr);
    gap: 1.5rem;
    align-items: start;
}

.app-admin-message-metadata {
    display: block;
    box-sizing: border-box;
    width: auto;
    margin: 0;
    padding: 1rem;
}

.app-admin-message-metadata dl {
    margin: 0;
}

.app-admin-message-metadata dt {
    margin-top: 1rem;
    font-weight: 700;
}

.app-admin-message-metadata dt:first-child {
    margin-top: 0;
}

.app-admin-message-metadata dd {
    margin: 0.25rem 0 0;
}

.app-admin-message-conversation {
    min-width: 0;
}

.app-admin-contact-page {
    max-width: 90rem;
}

.app-admin-contact-layout {
    grid-template-columns: minmax(16rem, 1fr) minmax(0, 2.5fr);
}

.app-admin-contact-metadata dl {
    margin: 0;
}

.app-admin-contact-metadata dt {
    margin-top: 1.5rem;
    font-weight: 700;
}

.app-admin-contact-metadata dt:first-child {
    margin-top: 0;
}

.app-admin-contact-metadata dd {
    margin: 0.35rem 0 0;
}

.app-admin-contact-main {
    display: grid;
    min-width: 0;
    gap: 1rem;
}

.app-admin-contact-message {
    min-height: 16rem;
}

.app-admin-contact-reply + .app-admin-contact-reply {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--primary);
}

.app-admin-contact-reply-form {
    display: grid;
    gap: 0.75rem;
}

.app-admin-contact-reply-form input,
.app-admin-contact-reply-form textarea {
    box-sizing: border-box;
    width: 100%;
}

.app-admin-contact-reply-form .button {
    justify-self: start;
}

.app-admin-contact-delete {
    justify-self: end;
}

@media (max-width: 700px) {
    .app-admin-message-layout {
        grid-template-columns: 1fr;
    }

    .app-admin-contact-message {
        min-height: 0;
    }
}

.table-scroll {
    overflow-x: auto;
    align-self: center;
}

.login-form-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-form-centered p {
    width: 100%;
    text-align: center;
}

.login-form-centered label {
    display: block;
    text-align: center;
    margin-bottom: .5rem;
}

.login-form-centered .login-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-form-centered .login-checkbox-row label {
    display: inline-block;
    text-align: left;
    margin: 0;
}

.login-form-centered .login-checkbox-row input[type="checkbox"] {
    order: -1;
    margin: 0;
}

.login-form-centered input[type=text],
.login-form-centered input[type=password],
.login-form-centered input[type=email] {
    width: min(100%, 26rem);
}

.login-help-link {
    margin-top: 0.75rem;
}
/* COLUMN TYPES */

.colMS {
    margin-right: 300px;
}

.colSM {
    margin-left: 300px;
}

.colSM #content-related {
    float: left;
    margin-right: 0;
    margin-left: -300px;
}

.colSM #content-main {
    float: right;
}

.popup .colM {
    width: auto;
}

/* HEADER */

#header-nav-wrapper {
    background: rgba(58,135,106,1);
}

#header {
    width: auto;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    color: var(--header-color);
    overflow: hidden;
}

#header a:link, #header a:visited, #logout-form button {
    color: var(--header-link-color);
}

#header a:focus , #header a:hover {
    text-decoration: underline;
}

/* #branding {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
} */

#branding h1 {
    padding: 0;
    margin: 0;
    margin-inline-end: 20px;
    font-weight: 300;
    font-size: 1.8rem;
    color: var(--header-branding-color);
}
/* 
#branding h1 a:link, #branding h1 a:visited {
    color: var(--accent);
} */

#branding h2 {
    padding: 0 10px;
    font-size: 0.875rem;
    margin: -8px 0 8px 0;
    font-weight: normal;
    color: var(--header-color);
}

#branding a:hover {
    text-decoration: none;
}

#logout-form {
    display: inline;
}

#logout-form button {
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-family-primary);
}

#user-tools {
    text-align: center;
    font-size: medium !important;
    display: flex;
    flex-direction: column;
}

/* Application review form */
.app-review-form {
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(150, 191, 157, 0.35);
    border-radius: 18px;
    background: rgba(13, 46, 45, 0.82);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
}

.app-review-form .review-ratings {
    margin: 0;
}

.review-ratings > legend {
    box-sizing: border-box;
    width: 100%;
    padding: 1.35rem 1.5rem 0;
    color: var(--accent);
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.review-scale-help {
    margin: 0;
    padding: 0.45rem 1.5rem 1.25rem;
    color: var(--body-quiet-color);
    text-align: left;
}

.review-rating-row {
    display: grid;
    grid-template-columns: minmax(18rem, 1fr) auto;
    align-items: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    min-height: 5.25rem;
    padding: 1.15rem 1.5rem;
    border-top: 1px solid rgba(150, 191, 157, 0.2);
}

.review-rating-copy {
    min-width: 0;
    text-align: left;
}

.review-rating-copy h4 {
    margin: 0 0 0.35rem;
    color: var(--body-loud-color);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.review-rating-copy p {
    max-width: 42rem;
    margin: 0;
    color: var(--body-quiet-color);
    font-size: 0.9rem;
    line-height: 1.45;
}

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.16rem;
    min-width: 11.5rem;
    white-space: nowrap;
}

.star-rating input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.star-rating label {
    display: inline-block;
    flex: 0 0 auto;
    margin: 0;
    color: #739088;
    cursor: pointer;
    font-size: clamp(1.75rem, 2.5vw, 2.15rem);
    line-height: 1;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
    color: #ffad2f;
}

.star-rating label:hover {
    transform: translateY(-2px) scale(1.08);
}

.star-rating input[type="radio"]:focus-visible + label {
    outline: 3px solid var(--link-fg);
    outline-offset: 3px;
    border-radius: 4px;
}

.review-comments {
    margin: 0;
    padding: 1.5rem;
    border-top: 1px solid rgba(150, 191, 157, 0.2);
    text-align: left;
}

.review-comments > label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--body-loud-color);
    font-size: 1.05rem;
    font-weight: 600;
}

.review-comments textarea {
    box-sizing: border-box;
    width: 100%;
    resize: vertical;
}

.app-review-form > .small,
.app-review-form > .button-section {
    margin-right: 1.5rem;
    margin-left: 1.5rem;
}

@media (max-width: 700px) {
    .review-rating-row {
        align-items: flex-start;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.8rem;
    }

    .star-rating label {
        font-size: 2rem;
    }
}

#user-tools > .inline-element:nth-child(2) {
    font-size: 0.85rem;
}

.general-help-visor-periods {
    float: right;
    width: min(48%, 760px);
    height: auto;
    margin: 0 0 1rem 1.5rem;
}

.general-help-stripe-plan {
    display: block;
    width: 60%;
    max-width: 400px;
    height: auto;
    margin: 1rem auto;
}

@media (max-width: 700px) {
    .general-help-visor-periods {
        float: none;
        display: block;
        width: 100%;
        margin: 1rem auto;
    }
}

#user-tools, #logout-form button{
    padding: 0;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

#user-tools a, #logout-form button {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

#user-tools a:focus, #user-tools a:hover,
#logout-form button:active, #logout-form button:hover {
    text-decoration: none;
    border-bottom: 0;
}

#logout-form button:active, #logout-form button:hover {
    margin-bottom: 1px;
}

/* SIDEBAR */

#content-related {
    background: var(--darkened-bg);
}

#content-related .module {
    background: none;
}

#content-related h3 {
    color: var(--body-quiet-color);
    padding: 0 16px;
    margin: 0 0 16px;
}

#content-related h4 {
    font-size: 0.8125rem;
}

#content-related p {
    padding-left: 16px;
    padding-right: 16px;
}

#content-related .actionlist {
    padding: 0;
    margin: 16px;
}

#content-related .actionlist li {
    line-height: 1.2;
    margin-bottom: 10px;
    padding-left: 18px;
}

#content-related .module h2 {
    background: none;
    padding: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--hairline-color);
    font-size: 1.125rem;
    color: var(--body-fg);
}

/* Add modal CSS styles */
.modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #151f24;
    padding: 20px;
    max-height: 70%;
    width: 55%;
    z-index: 1000;
    border-radius: 10px;
    box-shadow: 0 16px 28px 0 rgba(0,0,0,.22), 0 25px 55px 0 rgba(0,0,0,.21);
}

.modal h2 {
    margin-top: 0 !important;
}

.modal-footer {
    margin-top: 2rem;
}

.terms-modal-trigger {
    appearance: none;
    background: none;
    border: 0;
    color: #9fdde7;
    cursor: pointer;
    font: inherit;
    margin: 0;
    padding: 0;
    text-decoration: underline;
}

.terms-modal-trigger:hover,
.terms-modal-trigger:focus-visible {
    color: var(--button-hover-bg);
}

.terms-modal {
    background: transparent;
    border: 0;
    color: var(--body-fg);
    max-height: 90vh;
    max-width: 900px;
    padding: 0;
    width: min(90vw, 900px);
}

.terms-modal::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.terms-modal-panel {
    background: #151f24;
    border-radius: 10px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    padding: 20px;
}

.terms-modal-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.terms-modal-header h2 {
    margin-top: 0;
}

.terms-modal-close {
    background: transparent;
    border: 0;
    color: var(--body-fg);
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 2rem;
    line-height: 1;
    padding: 0.1rem 0.35rem;
}

.terms-modal-close:hover,
.terms-modal-close:focus-visible {
    color: var(--link-fg);
}

.terms-modal-body {
    overflow-y: auto;
    padding-right: 0.75rem;
}

.terms-modal-footer {
    flex: 0 0 auto;
    margin-top: 1.25rem;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.delete-confirmation form input[type="submit"] {
    background: var(--delete-button-bg);
    border-radius: 4px;
    padding: 10px 15px;
    color: var(--button-fg);
}

.delete-confirmation form input[type="submit"]:active,
.delete-confirmation form input[type="submit"]:focus,
.delete-confirmation form input[type="submit"]:hover {
    background: var(--delete-button-hover-bg);
}

.delete-confirmation form .cancel-link {
    display: inline-block;
    vertical-align: middle;
    height: 0.9375rem;
    line-height: 0.9375rem;
    border-radius: 4px;
    padding: 10px 15px;
    color: var(--button-fg);
    background: var(--close-button-bg);
    margin: 0 0 0 10px;
}

.delete-confirmation form .cancel-link:active,
.delete-confirmation form .cancel-link:focus,
.delete-confirmation form .cancel-link:hover {
    background: var(--close-button-hover-bg);
}

/* POPUP */
.popup #content {
    padding: 20px;
}

.popup #container {
    min-width: 0;
}

.popup #header {
    padding: 10px 20px;
}

/* PAGINATOR */

.paginator {
    font-size: 0.8125rem;
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 22px;
    margin: 0;
    border-top: 1px solid var(--hairline-color);
    width: 100%;
}

.paginator a:link, .paginator a:visited {
    padding: 2px 6px;
    background: var(--button-bg);
    text-decoration: none;
    color: var(--button-fg);
}

.paginator a.showall {
    border: none;
    background: none;
    color: var(--link-fg);
}

.paginator a.showall:focus, .paginator a.showall:hover {
    background: none;
    color: var(--link-hover-color);
}

.paginator .end {
    margin-right: 6px;
}

.paginator .this-page {
    padding: 2px 6px;
    font-weight: bold;
    font-size: 0.8125rem;
    vertical-align: top;
}

.paginator a:focus, .paginator a:hover {
    color: white;
    background: var(--link-hover-color);
}

.base-svgs {
    display: none;
}

.step-guide-panel {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 950;
    width: min(26rem, calc(100vw - 1.5rem));
    max-height: min(75vh, 44rem);
    display: flex;
    flex-direction: column;
    background: #151f24;
    border: 1px solid rgba(250, 235, 215, 0.18);
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    visibility: hidden;
}

.step-guide-panel.is-disabled {
    display: none;
}

.step-guide-panel.is-ready {
    visibility: visible;
}

.step-guide-launcher {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 949;
    display: none;
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
    visibility: hidden;
}

.step-guide-launcher.is-disabled {
    display: none !important;
}

.step-guide-launcher.is-ready {
    visibility: visible;
}

.step-guide-launcher.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.step-guide-panel.is-dragging {
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.36);
    user-select: none;
}

.step-guide-panel.is-collapsed .step-guide-panel-body {
    display: none;
}

.step-guide-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem 0.65rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
    border-bottom: 1px solid rgba(250, 235, 215, 0.12);
}

.step-guide-panel-handle {
    flex: 1 1 auto;
    min-width: 0;
    cursor: move;
    touch-action: none;
    padding-right: 0.5rem;
}

.step-guide-panel-kicker {
    display: block;
    margin-bottom: 0.1rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(250, 235, 215, 0.72);
}

.step-guide-panel h2 {
    margin: 0;
    font-size: 0.95rem;
}

.step-guide-panel-controls {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.35rem;
    flex: 0 0 auto;
    padding-top: 0.05rem;
}

.step-guide-icon-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgba(250, 235, 215, 0.65);
    border-radius: 6px;
    background: rgba(201, 222, 205, 0.78);
    cursor: pointer;
}

.step-guide-icon-button:hover,
.step-guide-icon-button:focus {
    background: rgba(250, 235, 215, 0.95);
}

.step-guide-icon-button:focus-visible {
    outline: 2px solid var(--link-fg);
    outline-offset: 2px;
}

.step-guide-icon-button img {
    width: 1rem;
    height: 1rem;
    display: block;
}

.step-guide-panel-body {
    overflow-y: auto;
    padding: 0.9rem 1rem 1rem;
    font-size: 0.96rem;
}

.step-guide-panel-body p:first-child {
    margin-top: 0;
}

.step-guide-panel-body ol {
    margin: 0.75rem 0;
    padding-left: 1.3rem;
}

.step-guide-panel-body li + li {
    margin-top: 0.45rem;
}

.step-guide-panel-body a {
    color: var(--link-fg);
}

@media (max-width: 640px) {
    .step-guide-launcher {
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .step-guide-panel {
        width: calc(100vw - 1rem);
        right: 0.5rem;
        bottom: 0.5rem;
        max-height: 65vh;
    }

    .step-guide-panel-header {
        padding-right: 0.75rem;
    }
}

/* Subscribe and pricing */
.subscribe-page {
    box-sizing: border-box;
    max-width: 100%;
    padding: 2.5rem 1rem 4rem;
}

.subscribe-hero {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.subscribe-hero h1 {
    color: var(--accent);
    font-size: clamp(2rem, 5vw, 2.25rem);
    line-height: 1.15;
}

.subscribe-summary {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.08rem;
}

.subscribe-hero .founding-user-callout {
    max-width: 720px;
    margin: 1.5rem auto 0;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(250, 235, 215, 0.2);
    border-radius: 10px;
    background: var(--tertiary);
}

.founding-user-callout a {
    font-weight: 700;
}

.subscribe-kicker,
.pricing-eyebrow {
    color: #c9decd;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 980px;
    margin: 0 auto 2.5rem;
    text-align: left;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border: 1px solid rgba(250, 235, 215, 0.22);
    border-radius: 14px;
    background: rgba(13, 46, 45, 0.78);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.pricing-card-featured {
    border-color: #96bf9d;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(150, 191, 157, 0.22);
}

.pricing-badge {
    position: absolute;
    top: -0.8rem;
    right: 1.25rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--primary-fg);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.pricing-card h2 {
    margin-bottom: 0.2rem;
    font-size: 2rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.pricing-amount {
    color: var(--accent);
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.pricing-annual {
    color: #c9decd;
}

.pricing-features {
    flex: 1;
    margin: 1.25rem 0 1.75rem;
    padding: 0;
    list-style: none;
}

ul.pricing-features {
    list-style: none;
    padding-left: 0;
}

ul.pricing-features > li {
    list-style-type: none;
}

.pricing-features li {
    position: relative;
    margin-bottom: 0.7rem;
    padding-left: 1.55rem;
    line-height: 1.4;
}

.pricing-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--link-fg);
    font-weight: 700;
}

.pricing-action {
    display: block;
    box-sizing: border-box;
    text-align: center;
    justify-self: center;
    margin: auto;
}

.subscribe-trust {
    max-width: 980px;
    margin: 0 auto 1.5rem;
    padding: 1.75rem;
    border-radius: 14px;
    background: var(--tertiary);
}

.subscribe-trust > h2 {
    text-align: center;
}

.subscribe-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.subscribe-trust-grid h3 {
    font-size: 0.95rem;
}

.subscribe-note {
    max-width: 760px;
    margin: 0 auto;
    color: var(--body-quiet-color);
    font-size: 0.9rem;
    text-align: center;
}

/* Full-page progress feedback for operations that can take noticeable time. */
.long-action-loader {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(22, 30, 36, 1);
    color: var(--accent);
    text-align: center;
}

.long-action-loader[hidden] {
    display: none;
}

.long-action-loader__content {
    width: min(100%, 28rem);
}

.long-action-loader__content img {
    display: block;
    width: min(100%, 20rem);
    height: auto;
    margin: 0 auto;
}

.long-action-loader__content p {
    margin: 1rem 0 0;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

@media (max-width: 760px) {
    .pricing-grid,
    .subscribe-trust-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 1.5rem;
    }
}
