:root {
    --tah-font-size-10: 0.65rem;
    --tah-tooltip-delay: 1500ms;
}

#token-action-hud-dialog .tagify.tah-dialog-tagify {
    --tag-bg: none;
    --tag-hover: none;
    --tag-text-color: #fff;
    --tag-border-color: none;
    --tag-remove-btn-color: #fff;
    --tag-remove-btn-bg--hover: none;
}

/*
 * APPLICATION
 */ 

.flex0 {
    flex: 0;
}

.token-action-hud-core-app {
    height: 100%;
}

.token-action-hud-core-app .standard-form {
    height: 100%;
}

.token-action-hud-core-app.application .flexrow {
    display: flex;
    flex: 1;
    gap: 0.5rem;
}

.token-action-hud-core-app nav.sheet-tabs {
    margin: 0;
}

.token-action-hud-core-app.application h2,
.token-action-hud-core-app.application h3 {
    margin: 0;
    padding-bottom: 0.25rem;
}

.token-action-hud-core-app.application h2 {
    font-family: var(--font-h3);
    font-size: 1.5rem;
}

.token-action-hud-core-app.application h3 {
    font-size: 1.2rem;
}

.token-action-hud-core-app .form-group > label {
    line-height: 1.2rem;
}

/*
 * DIALOGS
 */

#token-action-hud-dialog .tagify.tah-dialog-tagify {
    --tag-bg: none;
    --tag-hover: none;
    --tag-text-color: var(--color-text-primary);
    --tags-border-color: var(--color-border);
    --tags-focus-border-color: var(--color-border);
    --tags-hover-border-color: var(--color-border);
    --tag-text-color: var(--color-text-primary);
    --tag-remove-btn-color: var(--color-text-primary);
    --tag-remove-btn-bg--hover: none;
    align-content: start;
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    display: inline-flex;
    gap: 5px;
    height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5px;
    text-overflow: ellipsis;
    width: 100%;
}

#token-action-hud-dialog .tah-dialog-tagify .tagify__tag {
    margin: 0;
    display: flex;
    align-items: center;
    font-size: var(--font-size-12);
    border-radius: 4px;
}

#token-action-hud-dialog .tah-dialog-tagify .tagify__tag:hover {
    cursor: grab;
}

#token-action-hud-dialog .tah-dialog-tagify .tagify__tag__removeBtn::after {
    content: "\f00d";
    font-family: "Font Awesome 6 Pro";
    font-size: var(--font-size-10);
    font-weight: 700;
    margin-top: 1px;
}

#token-action-hud-dialog .tah-dialog-tagify .tagify__tag:focus:not([readonly]) div::before,
#token-action-hud-dialog .tah-dialog-tagify .tagify__tag:hover:not([readonly]) div::before {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 1px solid transparent;
    box-shadow: 0px 0px 4px var(--color-shadow-primary) !important; 
}

#token-action-hud-dialog .tah-dialog-tagify .tagify__tag .tagify__tag__removeBtn:focus + div span,
#token-action-hud-dialog .tah-dialog-tagify .tagify__tag .tagify__tag__removeBtn:hover + div span {
    opacity: 100%;
}

#token-action-hud-dialog .tah-dialog-tagify .tagify__tag__removeBtn + div::before {
    border: 1px solid var(--color-border);
    box-shadow: none !important;
}

#token-action-hud-dialog .tah-dialog-tagify .tagify__tag__removeBtn:focus::after,
#token-action-hud-dialog .tah-dialog-tagify .tagify__tag__removeBtn:hover::after{
    text-shadow: 0 0 3px var(--color-shadow-primary);
}


#token-action-hud-dialog .tah-dialog-tags-dropdown .tagify__dropdown__wrapper {
    align-content: start;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    display: flex;
    flex-wrap: wrap;
    height: 280px;
    font-size: var(--font-size-12);
    gap: 5px;
    padding: 5px;
    text-overflow: ellipsis;
}

#token-action-hud-dialog .tah-dialog-tags-dropdown .tagify__dropdown__item {
    display: inline-block;
    vertical-align: middle;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.3em 0.5em;
    background: none;
    margin: 0;
    font-size: var(--font-size-12);
    color: var(--color-text-primary);
    transition: 0s;
}

#token-action-hud-dialog .tah-dialog-tags-dropdown .tagify__dropdown__item:hover {
    border: 1px solid transparent;
    box-shadow: 0px 0px 5px var(--color-shadow-primary); 
}

#token-action-hud-dialog .tah-dialog-tags-dropdown .tagify__dropdown__item--hidden {
    display: none;
}

#token-action-hud-dialog .tah-dialog-tagify .tagify__input {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: var(--font-size-12);
    margin: 0;
    line-height: 1;
    padding: var(--tag-pad,.3em .5em);
    border: 1px solid var(--color-border);
    min-width: 100px;
    flex-grow: 0;
}

.tah-dialog-col-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tah-dialog-row-group {
    display: flex;
    flex-direction: row;
    gap: 0.2rem;
}

.tah-dialog-label {
    margin-top: 0.2rem;
}

#tah-dialog-reset-actions {
    margin-top: 2px;
}

.tah-dialog-detail {
    border-bottom: 1px solid var(--color-border);
    margin: 0 0 0.5rem 0;
    padding: 0.5rem 0;

}

.tah-radio-group {
    text-align: right;
}

.tah-fieldset {
    border: 2px groove #ffffff;
    padding: 3px;
}

.tah-fieldset > legend {
    color: #6f6f6f;
    text-shadow: 1px 1px 1px #ffffff;
}

.tah-scrollable {
    flex: 1;
    overflow: hidden auto;
    padding: 1rem;
}

.locked-tooltip.tah-tooltip,
.tah-tooltip,
#tooltip:has(.tah-tooltip-wrapper) {
    font-size: var(--font-size-14);
}

.locked-tooltip.tah-tooltip.active,
.tah-tooltip.active,
#tooltip.tah-tooltip.active,
#tooltip.active:has(.tah-tooltip-wrapper) {
    transition: visibility 0s var(--tah-tooltip-delay), opacity var(--tah-tooltip-delay) 500ms;
}

.locked-tooltip.tah-tooltip:not(.active),
.tah-tooltip:not(.active),
#tooltip:not(.active):has(.tah-tooltip-wrapper) {
    transition: visibility 0s, opacity 0s;
}

.locked-tooltip.tah-tooltip h3,
.tah-tooltip h3,
#tooltip.active:has(.tah-tooltip-wrapper) h3 {
    padding-bottom: 8px;
    text-align: left;
}

.locked-tooltip.tah-tooltip h4, 
.tah-tooltip h4,
#tooltip.active:has(.tah-tooltip-wrapper) h4 {
    font-weight: 600;
    text-align: left;
}

.locked-tooltip.tah-tooltip :is(ul, h3, h4, p), 
.tah-tooltip :is(ul, h3, h4, p),
#tooltip.active:has(.tah-tooltip-wrapper) :is(ul, h3, h4, p) {
    text-align: left;
}

.locked-tooltip.tah-tooltip :is(a.content-link, a.inline-roll),
.tah-tooltip :is(a.content-link, a.inline-roll),
#tooltip.active:has(.tah-tooltip-wrapper) :is(a.content-link, a.inline-roll) {
    background: none;
    border: none;
    color: var(--color-text-light-7);
    font-weight: 600;
    line-height: 1em;
    margin: 0;
    padding: 0;
}

.locked-tooltip.tah-tooltip :is(a.content-link i, a.inline-roll i),
.tah-tooltip :is(a.content-link i, a.inline-roll i),
#tooltip.active:has(.tah-tooltip-wrapper)
    :is(a.content-link i, a.inline-roll i) {
    color: var(--color-text-light-7);
}

.locked-tooltip.tah-tooltip strong,
.tah-tooltip strong,
#tooltip.tah-tooltip strong,
#tooltip.active:has(.tah-tooltip-wrapper) strong {
    font-weight: 600;
}


.tah-tooltip .tah-properties {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    text-align: left;
}

.tah-tooltip .tah-property {
    line-break: strict;
    border-right: 1px solid var(--color-text-light-7);
    color: var(--color-text-light-7);
    font-size: var(--font-size-11);
    padding-right: 5px;
}

.tah-tooltip .tah-property:first-child {
    padding-left: 0;
}

.tah-tooltip .tah-property:last-child {
    border-right: none;
    padding-right: 0;
}

.tah-icon > i {
    font-size: 10px;
}