.fi-main-ctn {
	background: url(https://noscrubs.net/images/bg/bg_body.jpg) center 1300px repeat-y #191512;
}

.fi-page-content {
	box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
}

/* Quality colouring */
.Quality0, .fi-color-Quality0, .Quality0 td * { color: gray !important; }
.Quality1, .fi-color-Quality1, .Quality1 td * { color: #ff99cc !important; }
.Quality2, .fi-color-Quality2, .Quality2 td * { color: white !important; }
.Quality3, .fi-color-Quality3, .Quality3 td * { color: #1EFF00 !important; }
.Quality4, .fi-color-Quality4, .Quality4 td * { color: #0070DD !important; }
.Quality5, .fi-color-Quality5, .Quality5 td * { color: yellow !important; }
.Quality6, .fi-color-Quality6, .Quality6 td * { color: orange !important; }
.Quality7, .fi-color-Quality7, .Quality7 td * { color: #A335EE !important; }
.Quality8, .fi-color-Quality8, .Quality8 td * { color: #ff99cc !important; }
.Quality9, .fi-color-Quality9, .Quality9 td * { color: gold !important; }
.Quality10, .fi-color-Quality10, .Quality10 td * { color: #A7922B !important; }



/* Recipes */
.RecipeColumn {
	flex-direction: row !important; flex-wrap: nowrap !important; gap: 16px; width: 100%;
}

.RecipeInner {
	display: inline-flex !important; 
	flex-direction: row !important; 
	align-items: flex-end !important; 
	white-space: nowrap !important;
	margin-right: 4px;
}

.RecipeIcon {
    height: 32px !important;
    width: 32px !important;
    max-width: 32px !important;
    min-width: 32px !important;
    object-fit: contain;
    display: block;
}

.Recipe {
	display: block !important; 
	/*width: 34px !important; 
	height: 34px !important; */
	/*padding: 2px !important; */
	box-sizing: border-box !important;
}

/* 310826 - creates a positioning context so recipe quantities can overlay their item icons. */
.RecipeIconWrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
}

/* 310826 - displays recipe result amounts in the bottom-right corner of each item icon. */
.RecipeIconAmount {
    position: absolute;
    right: 1px;
    bottom: 1px;
    z-index: 1;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    text-shadow:
        -1px -1px 0 #000000,
         1px -1px 0 #000000,
        -1px  1px 0 #000000,
         1px  1px 0 #000000;
}

/* gives recipe result icons a soft bordered container without relying on utility CSS classes. */
.RecipeResultIcon {
    display: inline-flex;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    border: 1px solid currentColor;
    border-radius: 4px;
    background-color: rgba(17, 24, 39, 0.35);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.28),
        0 0 5px 1px rgba(0, 0, 0, 0.24);
    transition:
        background-color 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

/* adds a restrained hover lift to recipe result icons. */
.RecipeResultIcon:hover,
.RecipeResultIcon:focus-visible {
    background-color: rgba(55, 65, 81, 0.45);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.10),
        0 0 8px 2px rgba(0, 0, 0, 0.32);
    transform: translateY(-1px);
    outline: none;
}

/* removes inline image baseline spacing inside recipe result icon links. */
.RecipeResultIcon .RecipeIcon {
    display: block;
}


/* Sold by */
.CurrencyInner {
	display: inline-flex !important; 
	flex-direction: row !important; 
	align-items: center; 
	white-space: nowrap !important;
}

.CurrencyIcon {
    height: 16px !important;
    width: 16px !important;
    margin-left: 4px;
}


/* Iteminfolist */
.item_panel_holder {
	display: table;
	width: 100%;
	border-collapse: separate;
	border-spacing: 20px 0;  
	box-sizing: border-box;
	padding: 30px 20px 20px 20px;
}

.tooltip_holder {
	/*display: inline-block;*/
	zoom: 1;
	float: left;
	font-size: 14px;
	line-height: 1.4em!important;
	margin:10px;
	width: 350px;
}

.vdbtt_header {
	background: transparent url(/images/nsdb/layout/tooltip_border_header.png) top left no-repeat;
	padding: 15px 20px 0px 10px;
}

.item_icon_holder {
	float: left;
	position: relative;
}

.item_icon {
	width: 52px;
	height: 52px;
	margin-left: 2px;
	float: left;
}

.q0, .q1, .q2, .q3, .q4, .q5, .q6, .q7, .q8 {
	text-decoration: none;
}

.vdbtt_name {
	font-family: 'Yanone Kaffeesatz','Helvetica',arial,serif;
	font-size: 22px;
	font-weight: 400;
	margin-left: 60px;
	margin-bottom: 1px;
}

.vdbtt_quality {
	font-family: 'Yanone Kaffeesatz','Helvetica',arial,serif;
	font-size: 16px!important;
	text-transform: uppercase;
	float:right;
}

.vdbtt_info_box, .vdbtt_info_box_money {
	font-weight: bold;
	font-size: 12px;
	background: transparent url(/images/nsdb/layout/tooltip_mini_box.png) top left no-repeat;
	width: 271px;
	height: 18px;
	color: #CCC;
	padding: 2px 0px 0px 4px;
	margin-left: 56px;
}

.vdbtt_info_box_money {
	background: transparent url(/images/nsdb/layout/tooltip_mini_box_money.png) top left no-repeat;
}

.vdbtt_body {
	background: transparent url(/images/nsdb/layout/tooltip_border_body.png) top left repeat-y;
	padding: 5px 15px 0px 15px;
}

.vdbtt_stats {
	color: #8bd814;
	font-weight: bold;
	font-size: 12px;
}
.vdbtt_stats_main {
	color: #CCC;
	font-weight: bold;
	font-size: 12px;
}
.vdbtt_slots {
	display: flex;
	gap: 6px; 
	margin-top: 8px;
}

.vdbtt_req {
	background: transparent url(/images/nsdb/icons/armor_icon.png) top left no-repeat;
	padding-left: 22px;
	min-height: 18px;
	margin-top: 10px;
	color: #4A767E;
	font-weight: bold;
	font-size: 12px;
}

.vdbtt_desc {
	background: transparent url(/images/nsdb/layout/tooltip_divider.png) center top no-repeat;
	padding-top: 10px;
	color: #98886B;
	margin-top: 10px;
	font-weight: bold;
	font-size: 11px;
}

.vdbtt_set_name {
	color: #ACACAC;
	font-size: 11px;
	font-weight: bold;
}

.vdbtt_set_header {
	background: transparent url(/images/nsdb/layout/tooltip_set_header.png) top left no-repeat;
	height: 9px;
}

.vdbtt_set_body {
	background: transparent url(/images/nsdb/layout/tooltip_set_bg.png) top left repeat-y;
	padding: 0px 25px 0px 20px;
	font-size: 10px;
	font-weight: bold;
}

.vdbtt_set_item_name, .vdbtt_set_item_name_uncolored {
	padding-left: 10px;
	background: transparent url(/images/nsdb/layout/bullet_circle.png) center left no-repeat;
	zoom: 1;
	min-width: 142px;
	font-weight: bold;
	color: #8bd814;
}

.vdbtt_set_item_name a {
	color: #9ddaff;
}

.vdbtt_set_bonus_head {
	color: #CCC;
	padding: 3px 0px 0px 0px;
	font-size: 11px;
}

.vdbtt_padding2 {
	background: transparent url(/images/nsdb/layout/tooltip_border_body.png) top left repeat-y;
	height: 10px;
}

.vdbtt_set_footer {
	background: transparent url(/images/nsdb/layout/tooltip_set_header.png) 0px -9px no-repeat;
	height: 9px;
}

.vdbtt_footer {
	background: transparent url(/images/nsdb/layout/tooltip_border_footer.png) bottom left no-repeat;
	padding: 0px 15px 0px 15px;
	height: 40px;
}

.vdbtt_footer_wrapper {
	background: transparent url(/images/nsdb/layout/tooltip_divider.png) center top no-repeat;
	padding-top: 10px;
}

.vdbtt_tradeable, .vdbtt_untradeable, .vdbtt_mailable, .vdbtt_unmailable {
	background: transparent url(/images/nsdb/icons/trade_icon.png) top left no-repeat;
	padding-left: 29px;
	height: 21px;
	color: #4A767E;
	font-weight: bold;
	font-size: 12px;
	padding-top: 4px;
	display: inline-block;
	margin-right: 15px;
}


/* styles the compact read-only auction history table in the item infolist. */
.auction-history {
    width: 40%;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.28);
	float: right;
}

/* gives the auction history its compact section title bar. */
.auction-history__title {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    color: rgb(226, 232, 240);
    font-weight: 400;
	font-family: 'Yanone Kaffeesatz','Helvetica',arial,serif;
	font-size: 22px;
}

/* preserves a usable horizontal scroll area for the auction table in narrow game webviews. */
.auction-history__table-wrap {
    width: 100%;
    overflow-x: auto;
}

/* formats auction history rows without depending on Filament utility classes. */
.auction-history__table {
    width: 100%;
    border-collapse: collapse;
    color: rgb(203, 213, 225);
    font-size: 0.75rem;
}

/* aligns auction history headings and gives them restrained contrast. */
.auction-history__table th {
    padding: 7px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    color: rgb(148, 163, 184);
    font-size: 0.6875rem;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
}

/* gives auction history data cells compact readable spacing. */
.auction-history__table td {
    padding: 2px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    white-space: nowrap;
}

/* removes the separator below the last auction history row. */
.auction-history__table tbody tr:last-child td {
    border-bottom: 0;
}

/* adds a modest row highlight without relying on unavailable Filament utility styles. */
.auction-history__table tbody tr:hover {
    background: rgba(148, 163, 184, 0.06);
}

/* right-aligns the primary auction price value for quick scanning. */
.auction-history__price {
    color: rgb(250, 204, 21);
    font-weight: 600;
    text-align: right;
}


/* Monsters */
.monster_panel_holder {
	display: table;
	width: 100%;
	border-collapse: separate;
	border-spacing: 20px 0;  
	box-sizing: border-box;
}
	
.monster_panel {
	display: table-cell;
	width: 42%;
	vertical-align: top;
	background: transparent;
	background-color: rgba(0, 0, 0, 0.6); 
	-webkit-backdrop-filter: blur(12px); 
    backdrop-filter: blur(12px);
	padding: 25px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5);
}

.monster_panel .monster_panel_header {
	gap: 15px; 
	margin-bottom: 20px;
	display: grid; 
	grid-template-columns: repeat(2, 1fr); 
}

.monster_panel .monster_panel_header .monster_panel_header_img {
	position: relative;
	display: inline-block;
}

.monster_panel .monster_panel_header .monster_panel_classification {
	position: absolute;
	z-index: 10;
	width: 32px;
	filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    margin-top: -10px;
}

.monster_panel .monster_panel_header .monster_panel_type {
    vertical-align: middle;
    margin-left: 32px;
    position: absolute;
	z-index: 10;
	filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    margin-top: -10px;
}

.monster_panel .monster_panel_header .monster_panel_portrait {
	max-height: 200px; 
	width: auto; 
	filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
	display: block;
	/*display: grid; 
	grid-template-columns: repeat(2, 1fr); */
}

.monster_panel .monster_panel_header .monster_panel_name {
	color: #9ddaff; 
    font-family: 'Yanone Kaffeesatz', 'Helvetica', arial, serif;
	font-size: 30px;
	line-height: 30px;
    text-transform: uppercase;
	text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
	text-align: end;
}

.monster_panel .monster_panel_header .monster_panel_title {
    font-family: 'Yanone Kaffeesatz', 'Helvetica', arial, serif;
	font-size: 20px;
	text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
	text-align: end;
}

.monster_panel .monster_panel_header .monster_panel_level {
	font-family: 'Yanone Kaffeesatz', 'Helvetica', arial, serif;
    font-size: 50px;
	line-height: 20px;
    text-transform: uppercase;
	text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
	text-align: end;
}

.monster_panel .monster_panel_heading {
	color: #a8a29e; 
	font-size: 0.75rem; 
	font-weight: 700; 
	letter-spacing: 0.1em; 
	border-bottom: 1px solid rgba(255,255,255,0.15); 
	padding-bottom: 4px; 
	margin-top: 20px; 
	margin-bottom: 12px;
}

.monster_panel .monster_panel_text_small {
	display: grid; 
	grid-template-columns: repeat(2, 1fr); 
	gap: 12px; 
	color: white; 
	font-weight: 400;
}

.monster_panel .monster_panel_HP {
    padding-left: 23px;
    background: transparent url(/images/nsdb/icons/heart.png) -1px 4px no-repeat;
}

.monster_panel .monster_panel_MP {
    padding-left: 23px;
    background: transparent url(/images/nsdb/icons/mp.png) -1px 4px no-repeat;
}

.monster_panel .monster_panel_EXP {
    padding-left: 23px;
    background: transparent url(/images/nsdb/icons/exp_icon_quest.png) -5px 1px no-repeat;
}

.monster_panel .monster_panel_SXP {
    padding-left: 23px;
    background: transparent url(/images/nsdb/icons/exp_icon_quest.png) -5px 1px no-repeat;
}

.monster_map_panel {
	width: 50% !important;
	display: table-cell;
	vertical-align: top;
	background: transparent;
	padding: 25px;
}

.monster_map_panel .monster_map_panel_inner {
	display: flex; 
	flex-direction: column; 
	align-items: center; 
	justify-content: center; 
	height: 100%;
}

.monster_map_panel .monster_map_panel_inner .map_img {
    max-width: 100%;
    height: auto;
    box-shadow: 0px 0px 0px 20px rgba(0, 0, 0, 0.6);
	border-radius: 2px;
}

.fi-ta-ctn {
	border-radius: 0;
}


/* Filament overrides */
/* Lists */
.fi-ta-image:not(.fi-inline) {
    padding-block: 2px !important;    
    padding-inline: 0px 4px !important; 
}

.fi-ta-image:not(.fi-inline) img {
	object-fit: contain !important;
}

.fi-ta-cell:last-child {
    padding-inline-end: calc(var(--spacing) * 1) !important;
}

/* navigation */
@media (min-width: 500px) and (max-width: 1023px) 
{    
    .fi-topbar-nav-groups {
        display: flex !important;
    }

    button[aria-label*="Toggle sidebar"],
    button.fi-topbar-open-sidebar-btn,
    .fi-topbar-sidebar-toggle {
        display: none !important;
    }

    .fi-topbar div {
        justify-content: space-between !important;
    }
}

@media (min-width: 1024px) 
{
    .fi-topbar-nav-groups {
		width: min(calc(100% - 2rem), 77rem);
        margin-inline: auto;
    }
}

.fi-topbar {
	padding-inline: 0;
	display: block; 
	margin-inline: auto;
}

.fi-topbar-nav-groups {
	column-gap: 0 !important;
}

.fi-topbar-nav-groups .fi-topbar-item[data-icon] a.fi-topbar-item-btn {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    height: auto !important;
	border-radius: 0 !important;
}

.fi-topbar-item[data-icon] a.fi-topbar-item-btn .fi-topbar-item-label {
    margin: 0 !important;
	font-size: 0.7rem;
}

.fi-topbar-item[data-icon] a.fi-topbar-item-btn svg.fi-topbar-item-icon {
	display: none !important;
}

.fi-topbar-nav-groups .fi-topbar-item[data-icon] a.fi-topbar-item-btn::before {
    content: "" !important;
    display: block !important;
    width: 48px !important;  
    height: 48px !important; 
    background-size: 89px auto !important;
    background-repeat: no-repeat !important;
}

.fi-topbar-nav-groups .fi-topbar-item[data-icon="monster-stats"] a.fi-topbar-item-btn::before {
    background-image: url('/images/nsdb/icons/sprite.png') !important;
	background-position: 4px -306px !important;
}

.fi-topbar-nav-groups .fi-topbar-item[data-icon="items"] a.fi-topbar-item-btn::before {
    background-image: url('/images/nsdb/icons/sprite.png') !important;
	background-position: 4px -842px !important;
}

.fi-topbar-nav-groups .fi-topbar-item[data-icon="npcs"] a.fi-topbar-item-btn::before {
    background-image: url('/images/nsdb/icons/sprite.png') !important;
	background-position: 4px -1026px !important;
}

.fi-topbar-nav-groups .fi-topbar-item[data-icon="recipes"] a.fi-topbar-item-btn::before {
    background-image: url('/images/nsdb/icons/sprite.png') !important;
	background-position: 4px -243px !important;
}

.fi-sc-tabs .fi-sc-tabs-tab.fi-active {
    margin-top: 0;
}

.fi-tabs-item {
    column-gap: calc(var(--spacing) * 1);
}

.fi-tabs:not(.fi-contained) {
    border-radius: 5px 5px 0 0;
	background-color: oklch(0.21 0.01 0 / 0.7);
}

.fi-ta-ctn:where(.dark,.dark *) {
   background-color: oklch(0.21 0.01 0 / 0.7);
}

/* Page heading for lists */
.fi-page-header-main-ctn {
    row-gap: 0;
    padding-block: unset;
}

.fi-header-heading {
	font-weight: 400;
	    text-shadow: 0 2px 2px #888;
	font-family: 'Yanone Kaffeesatz', 'Helvetica', arial, serif;
    font-size: 40px;
	letter-spacing: normal;
}

.fi-header {
	height: 66px;
    padding: 10px 9px 12px 84px;
    background-color: rgba(151, 168, 0, 0.5);
    border-bottom-color: #6F780D;
}

.fi-resource-items .fi-header {
	
    background-image: url(/images/nsdb/icons/nsdb_header.png);
	background-repeat: no-repeat;
	background-position: 0 0;	
}

.fi-resource-monster-stats .fi-header {
	
    background-image: url(/images/nsdb/icons/nsdb_header.png);
	background-repeat: no-repeat;
	background-position: 0 -60px;	
}

.fi-resource-npcs .fi-header {
	
    background-image: url(/images/nsdb/icons/nsdb_header.png);
	background-repeat: no-repeat;
	background-position: 0 -120px;	
}

.fi-resource-recipes .fi-header {
	
    background-image: url(/images/nsdb/icons/nsdb_header.png);
	background-repeat: no-repeat;
	background-position: 0 -180px;	
}


/* nsDB screenshots */
.nsdb-screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 200px));
    gap: 16px;
    align-items: start;
	border-radius: 0;
    background-color: oklch(0.21 0.01 0 / 0.7);
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    --tw-ring-color: #ffffff1a;
	padding: 40px;
}

.nsdb-screenshot-thumbnail {
    width: 200px;
    max-width: 100%;
}

@media (max-width: 480px) {
    .nsdb-screenshot-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .nsdb-screenshot-thumbnail {
        width: 100%;
    }
}

.nsdb-screenshot-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    cursor: pointer;
}

.nsdb-screenshot-thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.nsdb-screenshot-magnifier {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.nsdb-screenshot-thumbnail:hover .nsdb-screenshot-magnifier,
.nsdb-screenshot-thumbnail:focus-visible .nsdb-screenshot-magnifier {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.nsdb-screenshot-thumbnail:hover img,
.nsdb-screenshot-thumbnail:focus-visible img {
    transform: scale(1.05);
}

.nsdb-screenshot-lightbox-close {
    position: fixed;
    top: 14px;
    right: 20px;
    z-index: 2147483647;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.85);
    transition: color 0.15s ease, transform 0.15s ease;
}

.nsdb-screenshot-lightbox-close:hover,
.nsdb-screenshot-lightbox-close:focus-visible {
    color: #ffffff;
    outline: 0;
    transform: scale(1.12);
}



/* 030926 - defines Alpine's pre-initialization cloak behavior for reusable NSDB hover components. */
[x-cloak] {
    display: none !important;
}

/* 030926 - keeps item icon links compact and provides the pointer target for global NSDB tooltips. */
.nsdb-item-hover-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

/* 030926 - renders static NSDB item icons at the standard item-list size without baseline whitespace. */
.nsdb-item-hover-icon {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: cover;
    cursor: pointer;
	max-width: none;
}

/* 030926 - defines the page-level game tooltip layer after it is moved outside Filament table overflow wrappers. */
.nsdb-item-hover-popup {
    position: fixed;
    z-index: 2147483647;
    display: none;
    width: 22rem;
    max-width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
    line-height: normal;
    text-align: left;
    pointer-events: none;
}

/* 030926 - prevents an item tooltip from being displayed before the global hover controller positions it. */
.nsdb-item-hover-popup.nsdb-item-tooltip-visible {
    display: block;
}

