.user-dropdown{
    position: absolute;
    right: 25px;
}

.margin10 { margin: 10px; }

.img-thumbnail {
    height: 50px;
    width: 50px;
    min-width:50px;
    object-fit: cover;
    margin-top: -10px;
    margin-bottom: -10px;
}



.pw-row { width: 100%; max-width: 100vw; }
.pw-container { width: 100%; max-width: 1300px; margin: 0 auto; }

.pw-row, .pw-container, .pw-col-1, .pw-col-2, .pw-col-25, .pw-col-3, .pw-col-33, .pw-col-4, .pw-col-5, .pw-col-6, .pw-col-7, .pw-col-8, .pw-col-9, .pw-col-10, .widget-area, .left-menu { 
    padding: 0; box-sizing: border-box; display: inline-block; margin: 0 auto;
}
.pw-col-1, .pw-col-2, .pw-col-25, .pw-col-3, .pw-col-33, .pw-col-4, .pw-col-5, .pw-col-6, .pw-col-66, .pw-col-7, .pw-col-8, .pw-col-9, .pw-col-10 { padding: 0; vertical-align: top; }
.pw-col-1 { width: 9.8%; }
.pw-col-2 { width: 19.8%; }
.pw-col-25 { width: 24.8%; }
.pw-col-3 { width: 29.8%; }
.pw-col-33 { width: 33.1%; }
.pw-col-4 { width: 39.8%; }
.pw-col-5 { width: 49.8%; }
.pw-col-6 { width: 59.8%; }
.pw-col-66 { width: 66.5%; }
.pw-col-7 { width: 69.8%; }
.pw-col-8 { width: 79.8%; }
.pw-col-9 { width: 89.8%; }
.pw-col-10 { width: 99.8%; }
.col { overflow: scroll; }

/*small screens only*/
@media only screen and (max-width: 600px) {
    .pw-col-1 { width: 50vw; }
    .pw-col-2, .pw-col-25, .pw-col-3, .pw-col-33, .pw-col-4, .pw-col-5, .pw-col-6, .pw-col-7, .pw-col-8, .pw-col-9, .pw-col-10 { width: 100vw; }
}
@media only screen and (max-width: 992px) {
    .navbar-collapse{
        background-color: var(--primary-color) !important;
        top: 47px;
        width: 100vw;
        position: absolute;
        left: 0px;
        padding: 16px 16px;
        z-index: 5000;
    }
}
.navbar-toggler, .navbar-toggler-icon {
    margin-top: -8px;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    border-radius: 0;
    height: 50px;
}
ul.component-menu {
    border-top: 1px solid darkgrey;
    list-style-type: none;
    padding: 0;
    margin: 0;
}
ul.component-menu li {
    border-bottom: 1px solid darkgrey;
}
ul.component-menu li:hover {
    background-color: grey;
    color: white;
}
ul.component-menu a {
    text-decoration: none;
    color: black;
}
.list-corner {
    float: right;
    font-size: 11px;
    color: darkgrey;
}
.list-primary {
    font-weight: 600;
}
.list-secondary {
    font-weight: 300;
    font-style: italic;
}
#component-search {
    width: 80%;
}

div.widget-area, div.left-menu {
    width: 14%;
    min-width: 140px;
    vertical-align: top;
    background-color: lightgrey;
}

div.wrapper {
    width: 100% !important;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    height: 100vh;
}

div.main-content {
    /*WHAT ?? Why are we limiting usage of screen here??*/
    width: 72%; /*todo: 100% on small screens*/
    padding: 4px;
}

div.container {
    width: 100% !important;
    overflow-x: hidden;
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 24px;
    max-width: 1300px;
    padding: 0px;
    min-height: calc(100vh - 74px);
    box-sizing: border-box;
}

.contain {
    max-width: 1310px;
}

nav.navbar{
    background-color: var(--primary-color) !important;
    border-bottom: 1px solid var(--secondary-color) !important;
    height: 50px;
    width: 100%;
    position: fixed;
    z-index: 5000;
}
nav.navbar a {
    color: var(--secondary-color);
    opacity: .8;
    text-decoration: none;
}
nav.navbar a:hover {
    opacity: 1;
    cursor: pointer;
}
nav.navbar .dropdown-menu a {
    color: rgba(0,0,0,.8);
}
[data-bs-theme="dark"] nav.navbar .dropdown-menu a {
    color: rgba(255,255,255,.8);
}

.dropdown-menu.fixed {
    max-height: 200px; /* Fixed height */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    border: 1px solid #ccc; /* Optional: border for visibility */
    padding: 0; /* Remove padding for better styling */
}

.navbar-brand img {
    height: 40px;
    margin: -30px 10px -25px 10px;
}
footer {
    background-color: black;
    color: #666;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100vw;
    height: 24px;
    z-index: 5000;
}

.strong { font-weight: 700; }

table.pw_table tr:hover td { 
    background-color: lightblue;
    cursor: pointer;
}

.selector-thumbnail {
    object-fit: cover;
    width: 120px;
    height: 80px;
    background-color: #eeeeee;
    padding:5px;
    border: 1px solid black;
    margin: 2px;
}

.selector-thumbnail:hover {
    cursor: pointer;
    background-color: #ddddee;
}

.selector-thumbnail.selected { background-color: #8888ee; }

.center {
    display: inline-block;
    margin: 0 auto;
}

.inline { display: inline-block; }
.hidden { display: none !important; }
.right { float: right; margin: 4px 5px; }
.card.inline { vertical-align: top; }
.card { width: 32%; min-width: 250px; min-height: 250px;}

input.success { border: 1px solid green; background-color: lightgreen; }
input.error { border-color: 1px solid red; background-color: #ffdddd;}

/*DIALOG ELEMENTS*/
dialog {
    border: none;
    border-radius: 10px;
    width: 700px;
    height: fit-content;
    min-height: 250px;
    overflow: auto;
    display: none;
}
dialog[open] { display: block !important; }
li a { text-decoration: none; }
@media screen and (max-width: 768px) {
    dialog {
        width: 90%;
    }
}

/*LIST GROUP modifications*/
.list-group {
    padding-top: 1px;
}


.list-group .list-group-item .dropdown.inline {
    margin-top: -8px;
    margin-bottom: -8px;
}
.list-group .list-group-item {
    display: flex;
    align-items: center;
    border-top: 1px solid lightgrey;
    margin-top: -1px;

}
.list-group .list-group-item, .list-group .list-group-item a {
    font-size: 14px;
}
.list-group .list-group-item a {
    width: 100%;
    text-align: left;
    color: black;
}
[data-bs-theme="dark"] .list-group .list-group-item a {
    color: white;
}
.list-group-item:hover {
    background-color: #eeeeee;
    cursor: pointer;
}
[data-bs-theme="dark"] .list-group-item:hover {
    background-color: #333333;
}
.list-group-item button {
    padding: 0px;
    height: 28px;
    width: 32px;
}
.list-group-item button:hover {
    background-color: #dddddd;
    cursor: pointer;
}
.list-group-item + div .list-group-item {
    border-top-width: 0px;
}
div + .list-group-item {
    border-top-width: 0px;
}
[data-bs-theme="dark"] .list-group-item button:hover {
    background-color: #444444;
}

.inner.list-group {
    border-radius: 0;
    width: calc(100% - 12px);
    margin-left: 12px;
    
}

.li-header {
    width: 100%;
    border: 1px solid lightgrey;
    padding: 8px 16px;
    border-radius: 4px 4px 0 0;
}

.parent.list-group-item {
    flex-direction: column;
    border: none;
    padding: 0 !important;
}

@media screen and (max-width: 768px) {
    li.todos .nr-label, li.todos .inline-menu {
        display: none;
    }
}

/*COLORS*/
.yellow, .selected, .selected > a { color: #e8ba00 !important; }
.byellow { background-color: #e8ba00 !important; }
.red { color: #d41c1c !important; }
.bred { background-color: #d41c1c !important; }
.orange { color: #cd6700 !important; }
.borange { background-color: #cd6700 !important; }
.green { color: #297847 !important; }
.bgreen { background-color: #297847 !important; }
.purple { color: #9324c4 !important; }
.bpurple { background-color: #9324c4 !important; }
.blue { color: #1b76d3 !important; }
.bblue { background-color: #1b76d3 !important; }
.brown { color: #9b6229 !important; }
.bbrown { background-color: #9b6229 !important; }
.lightblue { color: #2aa0b7 !important; }
.blightblue { background-color: #2aa0b7 !important; }
.black { color: #000000 !important; }
.bblack { background-color: #000000 !important; }
.lightgrey { color: #999999 !important; }
.blightgrey { background-color: #AAA4 !important; }
.grey { color: #666666 !important; }
.bgrey { background-color: #666666 !important;  }
.white { color: #ffffff !important; }
.bwhite { background-color: #ffffff !important; }


/*DROPDOWN*/
.nx-dropdown > button.btn {
    margin: -8px;
    vertical-align: baseline;
}
.nx-dropdown > div, .nx-dropdown > ul {
    display: none;
}
.nx-dropdown > .nx-shown li:hover {
    background-color: #f6f6ff;
}
[data-bs-theme="dark"] .nx-dropdown > .nx-shown li:hover {
    background-color: #333;
}
.nx-dropdown > .nx-shown {
    display: block;
    position: absolute;
    z-index: 200;
    
    width: 200px;
    right: 16px;

    border-radius: 4px;

    background-color: white;
    color: white;
    border: 1px solid black;
    
}

.nx-dropdown.nx-left > .nx-shown {
    right: auto;
    left: 16px;
}

.nx-dropdown.nx-center > .nx-shown {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

[data-bs-theme="dark"] .nx-dropdown > .nx-shown {
    background-color: #333;
    color: white;
}
.nx-dropdown > .nx-shown li > i {
    height: 24px;
    width: 24px;
    text-align: center;
    margin: 4px 8px -4px 0;
}

.nx-dropdown .list-group {
    border-color: var(--primary-color);
}

.nx-dropdown .list-group-item {
    border-width: 0;
}

.nx-dropdown-divider {
    margin: 0;
}

input ~ .dropdown {
    border-top: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

[data-bs-theme="dark"] input ~ .dropdown {
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/*NX STUFF*/
.nx-deleted {
    transition-property: all;
    transition-duration: 0.5s;

    opacity: 0;
    margin-bottom: -32px;
}

.nx-added {
    background-color: #297847 !important;

    opacity: 0;
    margin-bottom: -32px !important;
}

li, .comment {
    transition-property: all;
    transition-duration: 0.5s;
}

.micro-avatar {
    height: 24px;
    width: 24px;
    font-size: 12px;
    text-align: center;
    border-radius: 99px;
    border: 2px solid white;
    padding: 1px;
    display: inline-block;
}

.comment.nx-added {
    height: 0px;
}

[data-bs-theme="dark"] .input-group-text {
    background-color: var(--bs-body-bg);
}

/* DESIGN SYSTEM BASICS */
h1 i {
    font-size: 36px;
}
#menuLeft h1 {
    margin: 0 8px 4px 8px;;
    margin-left: 8px;
}

/* BUTTONS */

.nr-left {
    border-radius: 4px 0 0 4px !important;
}
.nr-right {
    border-radius: 0 4px 4px 0 !important;
}
.nr-center {
    border-radius: 0px !important;
}

.nr-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.nr-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.nr-icon {
    background-color: transparent;
    color: #999;
    border-color: transparent !important;
}

.nr-dropdown, .nr-input {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    padding: 0;
    padding-left: 4px;
    padding-right: 4px;
    
}

.nr-primary, .nr-secondary, .nr-icon {
    border: 2px solid var(--secondary-color);
    width: fit-content;
    text-decoration: none;
    border-radius: 4px;
    height: fit-content;
    padding: 6px 12px;
}

[data-bs-theme="dark"] .nr-primary, [data-bs-theme="dark"] .nr-secondary {
    border: 2px solid var(--primary-color);
}

.nr-label {
    display: block;
    text-transform: uppercase;
    font-size: 12px;
    color: grey;
    
    padding-top: 4px;
}
.nr-dropdown-label {
    margin-top: 12px;
    margin-bottom: -8px;
}

.nr-state {
    border-radius: 99px;
    color: var(--secondary-color);
    background-color: var(--primary-color);
    width: 64px;
    height: 24px;
    border: 0;
    text-align: center;
}

.nr-week {
    color: lightgray;
    background-color: transparent;
    width: 50px;
    height: 24px;
    border: 0;
    text-align: center;
}

.nr-week.selected {
    border-radius: 99px;
    color: var(--secondary-color) !important;
    background-color: var(--primary-color);
    width: 50px;
    height: 24px;
    border: 0;
    text-align: center;
}

.nr-week.current {
    color: var(--secondary-color) !important;
    font-weight: 700;
}

.nr-month {
    border-radius: 99px;
    color: var(--secondary-color) !important;
    background-color: #eee;
    width: 64px;
    height: 24px;
    border: 0;
    text-align: center;
}

.nr-month.selected {
    border-radius: 99px;
    color: var(--secondary-color) !important;
    background-color: var(--primary-color);
    width: 64px;
    height: 24px;
    border: 0;
    text-align: center;
}

.nr-month.current {
    color: var(--secondary-color) !important;
    font-weight: 700;
}

.nr-state.dropdown-toggle::after, .nr-icon.dropdown-toggle::after, .nr-dropdown.dropdown-toggle::after {
    display: none;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* END BUTTONS */

/* TABS */

.nav-link.active, .nav-link.active a {
    background-color: var(--secondary-color);
    color: white;
    opacity: 1;
}

.nav-item .nav-link {
    padding-right: 5px !important;
}

.nav-item .nav-link.dropdown-toggle {
    padding-left: 5px !important;
    padding-right: 20px !important;
    margin-left: -5px;
}

.nav-link:hover, .nav-link a:hover {
    background-color: var(--secondary-color);
    color: white;
    opacity: 1;
}

.nav-link {
    height: 50px;
    padding-inline:20px !important;
    padding-top: 12px !important;
}

.nr-form-left {
    border-radius: 4px 0 0 4px !important;
    border: 2px solid var(--secondary-color);
    border-right: 0;
    margin-right: -2px;
}

[data-bs-theme="dark"] .nr-form-left {
    border: 2px solid var(--primary-color);
    border-right: 0;
}

[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: lightgrey;
    border: 1px solid #444;
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    color: white;
    background-color: #333;
    border: 1px solid #666;
    border-bottom-color: #333;
}

.nav-tabs .nav-link {
    padding: 8px 12px !important;
    height: 40px;
}

.nav-tabs .nav-link:hover {
    cursor: pointer;
    border-color: #666;
}

/* END TABS */

.dropdown-item {
    padding-left: 10px;
}

.dropdown-item i {
    width: 24px;
    text-align: center;
}


/* Status circles */

.status-circle {
    border-radius: 100%;
    height: 28px;
    width: 42px;
    margin-right: 10px;
}

.status-circle .number {
    border-radius: 50%;
    background-color: #222;
    color: white;
    height: 18px;
    width: 18px;
    text-align: center;
    position: relative;
    top: 5px;
    left: 5px;
}

.status-circle .number div {
    position: relative;
    top: -1px;
    color: #999;
}

.inline-menu {
    min-width: fit-content;
}
.inline-menu > a, .inline-menu > div {
    margin-left: 10px;
}
.inline-menu > div {
    display: inline-block;
}
.inline-menu a, .dropdown-item a {
    text-decoration: none;
}
.inline-menu .selected, .inline-menu .selected i, .inline-menu a.selected i, i.selected
, .inline-menu .yellow, .inline-menu a.yellow i, i.yellow /* delete this line */
{
    color: #f1c40f;
    rotate: 0deg;
    transition: color 0.2s, rotate 0.2s;
}
.inline-menu .selected:hover, .inline-menu a.selected i:hover, i.selected:hover
, .inline-menu .yellow:hover, .inline-menu a.yellow i:hover, i.yellow:hover /* delete this line */
 {
    color: #c1940f;
    transition: color 0.2s;
}
.inline-menu a i:hover, .inline-menu a.selected i:hover
, .inline-menu a.yellow i:hover /* delete this line */
 {
    rotate: 360deg;
    transition: rotate 0.2s;
}

.inline-menu a.red i {
    color: #d41c1c;
    transition: color 0.2s;
}

.inline-menu i {
    color: #666666;
    transition: color 0.2s;
}
.inline-menu i:hover {
    cursor: pointer;
    color: #c1940f;
    transition: color 0.2s;
}