/* ============================================================
   2. BASE & RESET
   ============================================================ */

/*------------------------------------------------------------*/
/*-             @Bootstrap Reset					 	 	 -*/
/*------------------------------------------------------------*/
a, a:hover, a:focus {text-decoration: none;outline: none}
a{color:var(--hyperlink-color)}a:hover{color:var(--hyperlink-active-color)}

/* App-specific component styling */
.card-header {border-color: #eff2f7; font-size: 16px; font-weight: 400; display: flex; justify-content: space-between;}
.card-title {color: #2A3542; font-size: 14px; font-weight: 400; margin-bottom: 0; margin-top: 0;}
.card > .card-header {background-color: #fff; border-color: var(--bs-border-color); color: #797979;}
.modal-content {box-shadow: none; border: none;}
input, textarea, select, button {outline: none !important;}
ul {padding-left: 0;}
.btn-round {border-radius: 30px;}

.list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus {background-color: var(--bs-info); border-color: var(--bs-info); color: #fff; z-index: 2;}
.list-group-item-heading {font-weight: 600;}
.gd-panel tbody tr:last-of-type .dropdown-menu{bottom: 10px;top: auto}

.input-xs {width:45px!important}
.input-mini{width:65px;}.input-small{width:90px;}.input-medium{width:150px;}.input-large{width:210px;}
.input-xlarge{width:270px;max-width: -webkit-fill-available;max-width: -moz-fill-available;}.input-xxlarge{width:400px;max-width: -webkit-fill-available;max-width: -moz-fill-available;}.input-full {width:100%;}
.col-md-6 .form-group .input-xxlarge {width:350px}
input.error {background-color:#f2dede;border-color:#ebccd1;color:#b94a48;}
.fieldset .row {margin-left:0;margin-right:0;}
.list-group-item.disabled, .list-group-item.disabled:hover, .list-group-item.disabled:focus {color: #777;cursor: not-allowed;background-color: #eee;}
.widget-frame .list-group {margin-bottom:0}

@media (min-width: 1600px) {
	.col-xl-2 {width: 16%;float: left;}
	.col-xl-10 {width: 83.33333333333334%;float: left;}
}
.nav-collapse.collapse {height: auto;display: block;visibility: visible;}
.public .card {border:1px solid var(--bs-border-color)}
.card .card-body .card-footer {margin-left: -15px;margin-bottom: -15px;margin-right: -15px;overflow: hidden;}
.card.clickable:hover {background-color: rgba(0,0,0,.04);box-shadow: 0 2px 8px rgba(0,0,0,.08);}
.square {border-radius: 10% !important}
ul li {list-style: none}

::selection {background: #FF6C60;color: #fff;}
::-moz-selection {background: #FF6C60;color: #fff;}

/* ============================================
   MESSAGES — tinted treatment ("B", #48583)
   One layer over every .alert (Orx\Ui\Alert, MessageHandler, hand-written
   alert alert-* in modules and JS): soft semantic background, ink-colored
   title and glyph, no border. The glyph is a ::before disc, the nk-callout
   way, so no call site has to change; an alert that already leads with an
   <i> (Orx\Ui\Alert) has that icon styled as the disc instead.
   ============================================ */
.alert {
    --alert-ink: var(--nk-info-ink);
    --bs-alert-color: var(--color-primary);
    --bs-alert-border-color: transparent;
    --bs-alert-border-width: 0;
    --bs-alert-border-radius: var(--radius-sm);
    --bs-alert-padding-x: 12px;
    --bs-alert-padding-y: 10px;
    --bs-alert-link-color: var(--alert-ink);
    position: relative;
    font-size: 13px;
    line-height: 1.5;
}
.alert-info,
.alert-warning,
.alert-success,
.alert-danger,
.alert-error   { --bs-alert-color: var(--color-primary); }
.alert-info    { --bs-alert-bg: var(--nk-info-soft);    --alert-ink: var(--nk-info-ink); }
.alert-warning { --bs-alert-bg: var(--nk-warning-soft); --alert-ink: var(--nk-warning-ink); }
.alert-success { --bs-alert-bg: var(--nk-success-soft); --alert-ink: var(--nk-success-ink); }
.alert-danger,
.alert-error   { --bs-alert-bg: var(--nk-danger-soft);  --alert-ink: var(--nk-danger-ink); }
.alert strong, .alert .alert-heading, .alert-link { color: var(--alert-ink); }
/* Glyph disc, opt-in via .alert-icon (Orx\Ui\Alert with an icon, MessageHandler
   system messages). A unicode ::before by default, the leading <i> otherwise.
   Plain `alert alert-*` in modules and JS stay glyph-less. */
.alert-icon { padding-left: 46px; }
.alert-icon::before,
.alert-icon > i:first-child {
    position: absolute;
    left: 12px;
    top: 9px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--alert-ink) 14%, transparent);
    color: var(--alert-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 0 !important;
    margin: 0 !important;
}
.alert-icon::before               { content: '\2139'; }
.alert-icon.alert-warning::before { content: '\26A0'; }
.alert-icon.alert-success::before { content: '\2713'; }
/* Danger: no default glyph, a ✕ disc next to the dismiss cross reads as a duplicate */
.alert-icon.alert-danger:not(:has(> i:first-child)),
.alert-icon.alert-error:not(:has(> i:first-child)) { padding-left: var(--bs-alert-padding-x); }
.alert-icon.alert-danger::before,
.alert-icon.alert-error::before,
.alert-icon:has(> i:first-child)::before { content: none; }
/* Inline (compact) alerts keep their glyph in the flow */
.alert-icon.d-flex { padding-left: 12px; }
.alert-icon.d-flex::before, .alert-icon.d-flex > i:first-child { position: static; margin-right: 8px !important; flex: 0 0 auto; }
.alert > i { color: var(--alert-ink); }
.dropdown-menu {
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-hover-bg: var(--main-bg-color);
    --bs-dropdown-link-active-color: #fff;
    --bs-dropdown-link-active-bg: var(--main-bg-color);
}
.dropdown-menu.drop-right {right:0;left:auto}
.dropdown-submenu {position:relative}
.dropdown-submenu>.dropdown-menu {position:absolute;top:0;left:100%;margin-top:-1px;display:none;z-index:1060;min-width:10rem;width:max-content;max-width:min(24rem,90vw)}
.dropdown-submenu:hover>.dropdown-menu,.dropdown-submenu.show>.dropdown-menu {display:block}
.dropdown-submenu>.dropdown-toggle {position:relative;padding-right:1.5rem}
.dropdown-submenu>.dropdown-toggle::after {content:"\203A";position:absolute;right:.5rem;top:50%;transform:translateY(-50%);font-size:1.1em;line-height:1;border:0;margin:0}
/* End-aligned menu (kebab): it already extends leftwards from its button, the submenu follows */
.dropdown-menu-end>.dropdown-submenu>.dropdown-menu {left:auto;right:100%}
.dropdown-menu-end>.dropdown-submenu>.dropdown-toggle::after {content:"\2039"}
/* Side measured when the menu opens (orix.js menus()): right when the window has room for it */
.dropdown-menu>.dropdown-submenu.dropdown-submenu-right>.dropdown-menu {left:100%;right:auto}
.dropdown-menu>.dropdown-submenu.dropdown-submenu-right>.dropdown-toggle::after {content:"\203A"}
.dropdown-menu>.dropdown-submenu.dropdown-submenu-left>.dropdown-menu {left:auto;right:100%}
.dropdown-menu>.dropdown-submenu.dropdown-submenu-left>.dropdown-toggle::after {content:"\2039"}
.dropdown-menu>.dropdown-submenu>.dropdown-item {border:1px solid transparent}
.dropdown-menu>.dropdown-submenu:hover>.dropdown-item,.dropdown-menu>.dropdown-submenu.show>.dropdown-item {border-color:var(--main-bg-color,#0d6efd)}
.dropdown-menu.scrollable {overflow-y:auto;overflow-x:hidden;max-height: max(calc(100vh - 350px),150px)}
/* Inside a scrolling menu a flyout would be clipped: the submenu unfolds in place, on click only */
.dropdown-menu.scrollable .dropdown-submenu>.dropdown-menu {position:static;display:none;border:0;border-radius:0;box-shadow:none;margin:0;padding:0 0 0 1rem;min-width:0;width:auto;max-width:none}
.dropdown-menu.scrollable .dropdown-submenu.show>.dropdown-menu {display:block}
.dropdown-menu.scrollable .dropdown-submenu>.dropdown-toggle::after {content:"\203A";transform:translateY(-50%) rotate(90deg)}
.dropdown-menu.scrollable .dropdown-submenu.show>.dropdown-toggle::after {transform:translateY(-50%) rotate(-90deg)}
.modal-backdrop.in {z-index: 1011;}
.modal-footer:empty {display: none;}
.modal-backdrop.ui-panel {position:absolute;border-radius:3px;width:100%;height:100%}
.modal-backdrop.ui-panel.in {opacity: 0.2}
.modal.modal-no-overlay {position:absolute;top:initial;bottom:initial;right:initial;left:initial}

.tooltip-inner {white-space: normal;}
.popover {z-index: 1090;max-width:600px;--bs-popover-bg: #fff;}
.popover.popover-scrollable {max-width: 800px;}
.popover-scrollable .popover-body {max-height: 400px; overflow-y: auto;}

.inl.collapse.in {display:inline}
.btn-group-justified>.btn {text-overflow: ellipsis;overflow: hidden}

.tleft {text-align:left!important}

/* Badge colors now handled by BS5 --bs-* variables */
.badge.bg-important {background: var(--bs-danger);}
.tip.badge {opacity:0.5;cursor:help}.tip.badge:hover {opacity:1;}
.btn {text-overflow: ellipsis;overflow: hidden;}
i.fa, i.fa-solid, i.fa-regular {line-height: inherit}
.flex {display: flex;align-items: center}

.nk-theme .tab-content 	{background: white;border: 1px solid var(--bs-border-color);border-top: 0;}
.nk-theme .tab-content .wrapper {margin:0}
.nk-theme .tab-content 	{padding: 10px;}
.nk-theme h1 {margin-top:5px;font-size:20px}
.nk-theme .page-header {margin:0;margin-bottom: 9px;padding-bottom:0;border-bottom: 1px solid var(--bs-border-color);}
.nk-theme .page-title {line-height: 10px;}

