@font-face {
    font-family: "Noto Emoji";
    font-style: normal;
    font-weight: 400;
    src: url(fonts/NotoEmoji-Regular.ttf) format("truetype");
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 400;
    src: url(fonts/NotoSans-Regular.ttf) format("truetype");
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 200;
    src: url(fonts/NotoSans-Thin.ttf) format("truetype");
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 700;
    src: url(fonts/NotoSans-Bold.ttf) format("truetype");
}

/* :root {
    --white: #f2f4f3;
    --black: #0A0908;
    --mid: #a9927d;
    --dark: #5e503f;
    --accent: #49111c;
    --accent-light: #ff8000;
    --accent-dark: #df8000;
    --danger: #bb0000;
    --danger: #cc0000;
    --danger-hover: #ff6666;
    --danger-light: #ffeeee;
} */

:root {
    /* Base Colors */
    --white: #ffffff;
    --black: #333333;
    --light: #eaeaea;
    --mid: #b8b8b8;
    --dark: #5a5a5c;

    /* Accent Colors - Metallic Blue-Gray */
    --accent: #607d8b;
    --accent-light: #78909c;
    --accent-dark: #455a64;

    /* Neutral Colors */
    --neutral: #757575;
    --neutral-light: #e0e0e0;

    /* Status Colors */
    --success: #66bb6a;
    --danger: #e57373;
    --danger-hover: #ef5350;
    --danger-light: #ffebee;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: block;
    font-family: "Noto Sans", Arial, Helvetica, sans-serif;
    color: var(--black);
    background: var(--white);
}

.icon {
    font-family: "Noto Emoji";
}

nav[role="navigation"] {
    background-color: var(--dark);
    width: 225px;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    margin-right: 20px;
}

nav[role="navigation"] ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav[role="navigation"] ul li a {
    display: block;
    padding: 12px 20px 12px 30px;
    border-left: 4px solid transparent;
    text-decoration: none;
    color: var(--mid);
    font-size: 0.85em;
    font-weight: normal;
}

nav[role="navigation"] ul li a .icon {
    display: inline-block;
    width: 25px;
}

nav[role="navigation"] ul li.selected a {
    border-left-color: var(--accent);
}

nav[role="navigation"] ul li a:hover,
nav[role="navigation"] ul li.selected a {
    background-color: var(--white);
    color: var(--accent-dark);
}

a.head {
    display: block;
    width: 225px;
    height: 40px;
    background-color: var(--accent);
    text-align: center;
    padding-top: 20px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
}

@keyframes sparkle {
    0% {
        opacity: 0.75;
    }

    50% {
        opacity: 1;
    }

}

a.head .icon {
    background-image: linear-gradient(var(--mid), var(--accent));
    opacity: 0.75;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sparkle ease-in 3s infinite;
    display: inline-block;
    position: relative;
    top: -3px;
}

main {
    margin-left: 225px;
    padding: 20px 30px 20px 20px;
    min-height: 100%;
}

main section {
    margin: 5px;
    background: var(--white);
    min-height: 200px;
}

main section hr.divider {
    clear: both;
    border: none;
    border-bottom: 1px solid var(--mid);
}

main section .content {
    padding: 10px 20px;
}

header {
    margin-left: 225px;
    padding: 14px 30px 14px 14px;
    height: 31px;
    border-bottom: 1px var(--dark) solid;
    background: var(--white);
}

header a img {
    border-radius: 50%;
    width: 32px;
    float: right;
}

nav#breadcrumbs {
    margin-left: 225px;
    padding: 20px 30px 40px 20px;
    border-bottom: var(--dark) 1px solid;
    display: block;
    background: var(--white);
}

nav#breadcrumbs h1 {
    font-family: "Noto Sans";
    font-weight: 200;
    font-size: 1.4em;
    padding: 0;
    margin: 0 0 5px 0;
}

nav#breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav#breadcrumbs ul li {
    display: block;
    float: left;
    font-size: 0.8em;
}

nav#breadcrumbs ul li a {
    text-decoration: none;
    color: var(--dark);
}

nav#breadcrumbs ul li:not(:first-child):before {
    content: " / ";
    display: block;
    margin: 0 5px;
    float: left;
}

nav#breadcrumbs ul li:last-child {
    font-weight: bold;
}

nav#breadcrumbs ul li:last-child:after {
    content: '';
    display: block;
    clear: both;
}

/* Tables */
.data-table {
    width: 100%;
    font-size: 0.8em;
    border-collapse: collapse;
}

.data-table,
.data-table th,
.data-table td {
    border-bottom: 1px solid var(--mid);
    padding: 5px;
}

.data-table tr:nth-child(2n) {
    background-color: var(--light);
}

.data-table td.long {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 500px;
}

.data-table th {
    text-align: left;
}

.data-table th.sortable {
    cursor: pointer;
}

.data-table .short {
    font-weight: bold;
}

.data-table .data-table td,
.data-tableters .data-table td {
    overflow: visible;
    white-space: normal;
    max-width: inherit;
}

.data-table .bool,
.data-table .actions {
    text-align: center;
}

.data-table .actions>button {
    text-decoration: none;
    font-family: "Noto Emoji";
    color: var(--white);
    padding: 3px;
    border-radius: 3px;
    font-size: 1em;
    border: 1px transparent solid;
    text-align: center;
    display: inline-block;
    width: 25px;
    cursor: pointer;
}

.data-table .actions .btn-edit {
    margin-right: 5px;
}

.data-table .actions .btn-action {
    height: auto;
}

.btn-show {
    background: var(--accent-light);
}

.btn-show:hover {
    background: var(--accent-dark);
}

.btn-edit {
    background-color: var(--accent-light);
}

.btn-edit:hover {
    background-color: var(--accent-dark);
}

.btn-action,
.btn-destructive {
    background-color: var(--danger);
}

.btn-action:hover,
.btn-destructive:hover {
    background-color: var(--danger-hover);
}

.btn-success {
    background-color: var(--success);
}

.btn-success:hover {
    background-color: var(--success);
}

.data-table .actions>button.disabled {
    color: var(--dark);
    background-color: var(--neutral-light);
}

.data-table .actions>button.disabled:hover {
    background-color: var(--neutral);
    color: var(--white);
}

.data-table td.bool {
    font-family: "Noto Emoji";
}

.data-table .short,
.data-table .display-name {
    max-width: 200px;
    min-width: 50px;
}

.data-table .data-table .short {
    text-align: right;
    padding-right: 10px;
}

.data-table .date {
    width: 140px;
}

.data-table .user-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.no-commands {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    padding: 20px;
}

.no-commands .btn-add {
    display: block;
    margin: 20px auto;

    text-decoration: none;
    color: var(--white);
    padding: 3px;
    border-radius: 3px;
    font-size: 1em;
    border: 1px transparent solid;
    text-align: center;
    width: 200px;

    background-color: var(--accent-light);
}

.no-commands .btn-add:hover {
    background-color: var(--accent-dark);
}

header #channel-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    padding: 0;
    display: block;
    width: 40%;
    float: left;
}

header #channels {
    float: right;
    display: block;
    width: 40%;
    list-style: none;
    margin: 0;
}

header .user {
    display: block;
    float: right;
    margin: 0 0 0 10px;
    border-radius: 50%;
    border: 2px transparent solid;
}

header .user.selected {
    border-color: var(--dark);
}

header .user:hover {
    border-color: var(--dark);
}

.user-info {
    cursor: pointer;
}

.user-info .user-popup {
    border: 1px var(--dark) solid;
    padding: 10px;
    background: var(--mid);
    color: var(--white);
    display: none;
    position: absolute;
    margin-left: -285px;
    margin-top: -35px;
    width: 250px;
    z-index: 2000;
    box-shadow: 0 0 5px 0 var(--black);
}

.user-info .user-popup:after {
    content: '';
    position: absolute;
    top: 10px;
    right: -20px;
    border: 10px solid transparent;
    border-left: 10px solid var(--dark);
}

.user-info:hover .user-popup {
    display: block;
}

.user-description {
    font-style: italic;
}

.edit-command .input-group {
    clear: both;
    float: none;
}

.edit-command label {
    clear: left;
    font-weight: bold;
    margin: 0;
    padding: 0 10px 0 0;
    width: 150px;
    min-height: 30px;
    display: block;
    float: left;
    text-align: right;
}

.edit-command {
    margin: 0;
    padding: 0;
    min-height: 30px;
    float: left;
    display: block;
}

.edit-command textarea {
    height: 100px;
    width: 400px;
}

.edit-command input,
.edit-command select,
.edit-command textarea {
    font-family: "Noto Sans", sans-serif;
}

.popup-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.popup-content {
    border-radius: 5px;
    padding: 0 !important;
    border: 0;
    width: 600px !important;
    z-index: 1000;
    background: var(--white);
}

.popup {
    margin: 0;
    padding: 0;
}

.popup hr {
    clear: both;
    border: none;
    border-bottom: 1px var(--dark) solid;
}

.popup .close-popup {
    position: absolute;
    top: 12px;
    right: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    border: 0;
    background: none;
    color: var(--dark);
}

.popup .close-popup:hover {
    color: var(--black);
}

.popup>h2 {
    padding: 10px 10px 0 10px;
    margin: 0;
    font-size: 1.5em;
}

.popup-body:after {
    content: '';
    display: block;
    clear: both;
}

.popup .buttons {
    float: right;
    padding: 0 10px 10px 10px;
}

.btn-submit,
.btn-cancel,
.btn-add,
.btn-action,
.btn-confirm {
    display: inline-block;
    margin: 0 5px;

    text-decoration: none;
    color: var(--white);
    padding: 3px;
    border-radius: 3px;
    font-size: 1em;
    border: 1px transparent solid;
    text-align: center;
    width: 75px;
    height: 35px;
    cursor: pointer;
}

.popup .btn-submit,
.btn-add {
    background-color: var(--accent-light);
}

.popup .btn-confirm {
    background-color: var(--success);
    min-width: 75px;
    width: auto;
}

.popup .btn-destructive {
    background-color: var(--danger);
}

.popup .btn-submit:hover,
.btn-add:hover {
    background-color: var(--accent-dark);
}

.popup .btn-cancel {
    background-color: var(--dark);
}

.popup .btn-cancel:hover {
    background-color: var(--dark);
}

.btn-add {
    font-size: 0.8em;
    width: 100px;
    height: auto;
    text-align: right;
    padding: 5px 10px;
    position: relative;
}

.btn-add:before {
    content: '+';
    font-size: 23px;
    position: absolute;
    left: 10px;
    top: -1px;
}

.btn-text-center {
    text-align: center;
    margin: 0;
}

.btn-full-width {
    width: 97%;
    margin: 0 auto;
    display: block;
}

.section-header {
    padding: 20px 20px 0 20px;
    position: relative;
}

.section-header h2 {
    padding: 0;
    margin: 5px 0;
    font-size: 1em;
    width: 50%;
    float: left;
}

.section-header .actions {
    float: right;
    width: 50%;
    text-align: right;
}

.section-header .actions input {
    display: inline-block;
    height: auto;
    font-size: 0.8em;
    padding: 4px 8px;
    width: 200px;
}

.section-header hr.divider {
    display: block;
    padding-top: 10px;
}

/* .section-header .btn-add {
    position: absolute;
    top: 15px;
    right: 10px;
} */

.confirm-action {
    padding: 0 10px 10px 10px;
}

/** Login **/
#login form {
    width: 450px;
    margin: 0 auto;
    padding: 50px;
}

#login .error-message {
    color: var(--danger);
    border: 1px var(--danger) solid;
    font-weight: bold;
    text-align: center;
    background-color: var(--danger-light);
    padding: 5px;
    border-radius: 3px;
    width: 100%;
}

#login input[type="text"],
#login input[type="password"] {
    padding: 5px;
    margin: 5px auto;
    display: block;
    width: 100%;
    font-size: 1.5em;
    border-radius: 3px;
    font-family: "Noto Sans", sans-serif;
}

#login .login-button {
    display: block;
    padding: 5px;
    width: 462px;
    margin: 5px auto;
    font-size: 1.5em;
    background-color: var(--mid);
    box-sizing: border-box;
    color: var(--white);
    border: 1px transparent solid;
    border-radius: 3px;
    cursor: pointer;
    font-family: "Noto Sans", sans-serif;
    text-align: center;
}

#login .login-button:hover {
    background-color: var(--mid);
}


nav[role="navigation"] ul li.logout-item {
    position: absolute;
    bottom: 0;
    width: 225px;
    background: var(--accent);
}

nav[role="navigation"] ul li.logout-item a {
    padding-left: 0;
    text-align: center;
}

nav[role="navigation"] ul li.logout-item:hover a {
    color: var(--white);
    background: var(--accent-dark);
}

/* Searchable select */
.searchable-select {
    display: inline-block;
    width: 350px;
    position: relative;
}

.searchable-select .selected-entry-remove {
    font-size: 0.8em;
    cursor: pointer;
    padding: 3px;
    font-weight: bold;
    background-color: var(--accent);
    border: 1px var(--accent) solid;
    color: var(--white);
    display: inline-block;
    margin-left: 10px;
    padding: 0 6px;
}

.searchable-select .searchable-select-dropdown input {
    width: 250px;
    border: 1px var(--dark) solid;
    background: var(--white);
    padding: 5px 10px;
    border-radius: 0;
    height: 16px;
    border-radius: 3px;
}

.searchable-select .searchable-select-dropdown input.expanded {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.searchable-select .searchable-select-dropdown input:focus {
    outline: none;
    border-color: var(--dark);
}

.searchable-select .searchable-select-dropdown-icon {
    padding: 5px;
    border-left: 1px var(--dark) solid;
    font-weight: bold;
    display: block;
    position: absolute;
    width: 18px;
    height: 18px;
    left: 242px;
    z-index: 100;
    top: 0;
    text-align: center;
    line-height: 18px;
    cursor: pointer;
    user-select: none;
}

.searchable-select .searchable-select-dropdown-list {
    position: absolute;
    height: 200px;
    width: 270px;
    background: var(--white);
    border: 1px var(--dark) solid;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: -1px;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}

.searchable-select .searchable-select-dropdown-list li {
    padding: 5px 0;
    background: var(--white);
    cursor: pointer;
}

.searchable-select .searchable-select-dropdown-list li.searchable-select-dropdown-item {
    font-size: 13px;
    padding: 5px;
}

.searchable-select .searchable-select-dropdown-list li.searchable-select-dropdown-item:hover {
    background: var(--dark);
    color: var(--white);
}

.searchable-select .searchable-select-dropdown-footer {
    padding: 5px;
}

.searchable-select .searchable-select-dropdown-footer .searchable-select-search-info {
    font-size: 11px;
    text-align: center;
}

.stats {
    margin-bottom: 20px;
}

.stats .stat {
    width: 25%;
    padding: 1% 2%;
    float: left;
    border-right: 2px var(--mid) solid;
    font-size: 0.8em;
    box-sizing: border-box;
    text-align: center;
}

.stats .stat strong {
    display: block;
    font-size: 1.3em;
}

.stats .stat:last-child {
    border-right: none;
}

.stats:after {
    content: '';
    display: block;
    clear: both;
}

.profit-red {
    color: var(--danger);
}

.ball-message {
    padding: 0 10px;
}

.ball-message-content {
    font-size: 0.8em;
    border: 1px var(--accent-light) solid;
    background-color: var(--neutral-light);
    padding: 5px;
    border-radius: 3px;
}

/* Checkout */
@font-face {
    font-family: Vipps font;
    src: url(https://developer.vippsmobilepay.com/assets/fonts/VippsText-Regular-Web-f8c0860646a31ad7c4f616a58b0a4322.woff2)format("woff2"), url(/assets/fonts/VippsText-Regular-Web-b6a81b961038b8d5866db4fc3811c17b.woff)format("woff")
}

@font-face {
    font-family: Vipps MobilePay Display;
    src: url(https://developer.vippsmobilepay.com/assets/fonts/VippsMobilePayDisplay-Regular-Web-3eb0da1bbd4c4693ae573d2ecd4ddb6d.woff2)format("woff2"), url(/assets/fonts/VippsMobilePayDisplay-Regular-Web-a7fb99298e6d79a4e1e9747170aba744.woff)format("woff")
}

@font-face {
    font-family: Vipps MobilePay Text;
    src: url(https://developer.vippsmobilepay.com/assets/fonts/VippsMobilePayText-Regular-Web-2f2a1c4df969c76bd5ff1ec140e648c8.woff2)format("woff2"), url(/assets/fonts/VippsMobilePayText-Regular-Web-21d97536cdda6164c0143b157046720c.woff)format("woff")
}

.vipps-button {
    display: inline-flex;
    background-color: #ff5b24;
    color: var(--white);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 1.5rem;
    font-size: 1.15625rem;
    line-height: 1;
    font-family: Vipps,
        'SF Pro Text',
        Arial,
        sans-serif;
    letter-spacing: -0.2px;
    font-weight: 500;
    transition: color 0.2s, background;
    border-radius: 99999px;
    height: 2.75rem;
    border-style: none;
    text-decoration: none;
    font-style: normal;
    text-wrap: nowrap;
    max-width: 600px;
    width: 100%;
}

.vipps-button>* {
    margin-right: 0.375rem;
    height: 18px;
}

.vipps-button> :last-child {
    margin-right: 0;
}

.vipps-button svg:not(:root) {
    overflow-clip-margin: content-box;
    overflow: hidden;
}

.vipps-logo {
    margin-top: 0.35rem;
}

.vipps-button:hover {
    background-color: #ff985f;
}

#checkout .update-number {
    background: var(--neutral-light);
    color: var(--neutral);
    display: inline-block;
    border-radius: 8px;
    border: none;
    font-size: 18px;
    height: 48px;
    width: 48px;
    cursor: pointer;
    user-select: none;
}

#checkout .update-number:not([disabled]):hover {
    background: var(--neutral);
    color: var(--neutral-light);
}

#checkout .update-number[disabled] {
    cursor: not-allowed;
}

#checkout .ball-number {
    font-size: 18px;
    color: var(--neutral);
    display: inline-block;
    border-radius: 8px;
    border: none;
    height: 48px;
    width: 48px;
    text-align: center;
    user-select: none;
}

#checkout .checkout-form {
    max-width: 600px;
    border-radius: 20px;
    background: var(--white);
    border: 2px var(--neutral-light) solid;
    margin: 10px 0;
    padding: 10px 0;
}

#checkout .checkout-form>h2 {
    text-align: center;
}

#checkout .checkout-form hr {
    border: none;
    border-bottom: 2px var(--neutral-light) solid;
}

#checkout .checkout-form p {
    font-size: 18px;
    color: var(--neutral);
    margin: 0;
    padding: 20px;
}

#checkout .checkout-form .checkout-form-balls {
    height: 48px;
    width: 144px;
    margin: 0 auto;
}

#checkout .checkout-form .checkout-label {
    font-size: 18px;
    color: var(--neutral);
    text-align: center;
}

#checkout .checkout-form .total-price-value {
    font-size: 24px;
    color: var(--black);
    font-weight: bold;
    text-align: center;
}

@media all and (max-width: 800px) {
    nav[role="navigation"] {
        width: 100%;
        height: 40px;
        position: absolute;
        top: 0;
        left: 0;
    }

    nav[role="navigation"]>a.head {
        display: none;
    }

    nav[role="navigation"] ul {
        float: left;
        width: 100%;
    }

    nav[role="navigation"] ul li {
        width: 20%;
        float: left;

    }

    nav[role="navigation"] ul li a {
        padding: 0;
        line-height: 40px;
        text-align: center;
        border-left: none;
        height: 40px;
    }

    nav[role="navigation"] ul li a span.icon {
        display: none;
    }

    nav[role="navigation"] ul li.logout-item {
        position: relative;
        bottom: inherit;
        width: 20%;
    }

    main[role="main"] {
        margin-left: 0;
        margin-top: 40px;
        padding: 20px 10px 20px 10px;
    }

    main section .content {
        padding: 10px 0;
    }

    .stats .stat {
        width: 50%;
    }

    .stats .stat:nth-child(2n) {
        border-right: none;
    }

    .section-header h2 {
        display: none;
    }

    .section-header .actions {
        width: 100%;
    }

    .section-header .actions input {
        float: left;
    }

    .section-header {
        padding: 0;
    }

    .data-table {
        font-size: 0.7em;
    }
}
