﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification\ 
for details on configuring this project to bundle and minify static web assets. */
/*body {*/
/*padding-top: 50px;*/
/*padding-bottom: 20px;
    background-color: #e3e3e3;
}*/

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Widen the main content area: shrink Bootstrap's default container side margin
   to ~1/3 of its previous size so the central content uses more horizontal space.
   For each breakpoint: newMaxWidth = (2 * width + defaultMaxWidth) / 3, which makes
   the new side margin exactly 1/3 of the original. */
@media (min-width: 576px)  { .container.body-content { max-width: calc((200% + 540px) / 3); } }
@media (min-width: 768px)  { .container.body-content { max-width: calc((200% + 720px) / 3); } }
@media (min-width: 992px)  { .container.body-content { max-width: calc((200% + 960px) / 3); } }
@media (min-width: 1200px) { .container.body-content { max-width: calc((200% + 1140px) / 3); } }
@media (min-width: 1400px) { .container.body-content { max-width: calc((200% + 1320px) / 3); } }

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* QR code generator */
#qrCode {
    margin: 15px;
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    /* Hide captions */
    .carousel-caption {
        display: none;
    }
}

body {
    background-color: #e3e3e3;
    min-height: 100vh;
    margin: 0;
    position: relative;
}

header {
    min-height: 50px;
}


/* Trick: */
body {
    position: relative;
}

    body::after {
        content: '';
        display: block;
        height: 50px; /* Set same as footer's height */
    }

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #4f748c;
    border-color: #0c2637;
    color: white;
    font-size: x-small;
    padding-top: 2px;
}


/***********************/

.content {
    
    min-width: 400px;
}

.contentTitle {
    margin-bottom: 20px;
    margin-top: 20px;
    text-align: center;
}

.contentBody {
    min-width:400px;
}

.roleLabel {
    width: 120px;
}

.subTitle {
    text-align: center;
}
/************ NAVBAR ***********/
.homeLogo {
    height: 40px;
    margin-top: -10px;
    margin-bottom: -10px;
    vertical-align: inherit !important;
}


.navbar, #collapsibleNavbar, .navbar-nav {
    background-color: #4f748c;
    border-color: #0c2637;
}

.navbar {
    font-weight: 600;
    /*height: 50px; */
}

    .navbar .nav-label {
        color: white; /* #14233e; */
    }

    .navbar a {
        color: white;
        text-decoration: none;
    }

    .navbar li {
        margin-left: 20px;
        margin-right: 20px;
    }

.navbar-nav > li > .dropdown-menu {
    background-color: #6495eded;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: #16181b;
    text-decoration: none;
    background-color: #246ba9 !important;
}
/************ END NAVBAR ***********/

/* TABLE */
table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    border-color: #4f748c61;
    border-style: none;
    border-width: 3px;
    border-bottom-style: solid;
}

thead tr th:first-child {
    border-top-left-radius: 10px;
}
thead tr th:last-child {
    border-top-right-radius: 10px;
}

td, th {
    border-top: 1px solid #dddddd !important;
    /*text-align: left !important;*/
    padding: 8px;
    border-collapse: collapse;
}

.tablesorter th {
    text-align: left !important;
}

th {
    background-color: #4f748c61 !important;
}

tr:nth-child(odd) {
    background-color: #ffffff !important;
}

tr:nth-child(even) {
    background-color: #f5f5f5 !important;
}

tr.odd > td {
    background-color: #ffffff !important;
}

tr.even > td {
    background-color: #f5f5f5 !important;
}

.tablesorter-blue {
    background-color: transparent !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border: #4f748c61 3px solid !important;
    border-width: 0 0 3px 0 !important;
}

    .tablesorter-blue th, .tablesorter-blue td{
        border: none !important;
    }


    button:disabled,
    button[disabled] {
        background-color: #cccccc;
        color: #666666;
    }

.enableButton {
    background-color: white;
    color: black;
    border: 2px solid #4CAF50; /* Green */
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.disableButton {
    background-color: white;
    color: black;
    border: 2px solid #ff0000; /* Red */
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.charCircle {
    width: 20px;
    line-height: 18px;
    border-radius: 50%;
    text-align: center;
    /*border: 2px solid #666;*/
    background-color: white;
}


.whiteText {
    color: white !important;
}

/********HOME**********/

.reportButton {
    background-color: blue;
    color: white;
}

.userButton {
    background-color: #d33300;
    border-color: #b22b00;
    color: white;
    border-color: #a22700;
    border-width: 5px;
    border-style: solid;
}

    .userButton:hover {
        background-color: #b22b00;
        color: white;
    }

.gameButton {
    background-color: darkgreen;
    color: white;
}

.buttonDiv {
    width: 10vw;
    min-width: 200px;
    height: 10vw;
    min-height: 300px;
    margin: 0px;
    display: inline-table;
    color: white;
    margin-bottom: 5px;
    border-radius: 20px
}

.buttonContent {
    color: white;
    font-weight: 600;
    padding-top: 55px; /*5vw;*/
    padding-left: 4px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: large;
}

    .buttonContent label {
        font-size: medium;
        margin-top: 20px;
    }

.labelWidth {
    width: 120px;
    text-align: left;
}

input[type=text], [type=password], input[name=password] {
    width: 200px;
    border-radius: 8px;
    border-color: #0c2637;
    border-style: solid;
    border-width: 1px;
    padding: 4px;
    padding-left: 8px;
}
/*input[type=password], input[name=password] {
    width: 170px;
}*/

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.centerCol {
    width: 330px;
    margin-left: auto;
    margin-right: auto;
}

.fa-eye, .fa-eye-slash {
    margin-left: 3px;
    vertical-align: middle
}

.labelTab {
    margin-left: 200px;
}

.textCenter {
    text-align: center !important;
}

.textRight {
    text-align: right !important;
}

.floatRight {
    float: right;
}

.floatLeft {
    float: left;
}

.btn {
    font-weight: bold;
    border-width: 2px;
    border-radius: 20px;
}

.btn-xs {
    border-radius: 20px !important;
}

.backButton {
    background-color: #4f748c;
    border-color: #4f748c;
    position: absolute;
}
    .backButton:hover {
        background-color: #31536b;
        border-color: #31536b;
    }

/********REPORT PAGE**********/
.kibanaframe {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wrapper {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.hidebanner {
    position: absolute;
    width: 100%;
    height: 36px;
    background-color: #fafbfd; /* white; */
    z-index: 999;
    display: block;
    color: black;
    border-width: 2px;
    border-bottom-width: 0px;
    border-style: inset;
}

.bannertitle {
    text-align: center;
    font-size: larger;
    font-weight: bold;
    margin-top: 10px;
}


/********CUSTOM REPORT PAGE**********/

.filtersBox {
    border-style: solid;
    padding: 20px;
    border-color: #4f748c;
    border-radius: 10px;
}

.loadButtonBox {
    margin-top: 10px;
}

.dateBox {
    width: 9em !important;
}

.tablesorter td {
    font-size: small;
}

.group-number {
    text-align: right;
}



.form-check-input {
    width: 0px;
}

.zeroOpacity {
    opacity: 0;
}

.selectBox {
    margin: 5px;
}

.toggle.ios, .toggle-on.ios, .toggle-off.ios {
    border-radius: 20px;
}

    .toggle.ios .toggle-handle {
        border-radius: 20px;
    }



/* Vue SPA: hide app markup until Vue mounts */
[v-cloak] {
    display: none;
}

.config-app .nav-tabs .nav-link {
    cursor: pointer;
}

/* Restore checkbox size: the global theme rule `.form-check-input { width: 0 }`
   collapses Bootstrap checkboxes to a thin bar. */
.config-app .form-check-input {
    width: 1em;
    height: 1em;
}

/* Chip-style section tabs: a clean wrapping row that stays legible when the
   theme strips Bootstrap's default tab borders. */
.config-app .config-tabs {
    gap: .35rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    padding-bottom: .6rem;
}

.config-app .config-tabs .nav-link {
    cursor: pointer;
    color: #4f748c;
    border: 1px solid #4f748c;
    border-radius: .375rem;
    padding: .35rem .7rem;
    transition: background-color .15s ease, color .15s ease;
}

.config-app .config-tabs .nav-link:hover {
    background-color: rgba(79, 116, 140, .12);
}

.config-app .config-tabs .nav-link.active {
    background-color: #4f748c;
    border-color: #0c2637;
    color: #fff;
}

/* Scrollable table body with a header that stays pinned while scrolling. */
.config-app .table-scroll {
    max-height: 60vh;
    overflow-y: auto;
}

.config-app .table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    /* Solid fill (override the theme's semi-transparent #4f748c61 header). */
    background-color: #4f748c !important;
    color: #fff;
    border-color: #0c2637;
}

/* When a config panel is embedded as a drill-down level, hide everything in its root
   (header, filter, table, …) and show only its edit modal — so the drill-down reuses the
   exact panel modal without its surrounding list UI. */
.config-app .config-embed > * { display: none !important; }
.config-app .config-embed > .modal { display: block !important; }

/* The related-entity drill-down arrow must stay clickable even when its parent
   modal is locked (show mode). Bootstrap's "fieldset:disabled .btn" rule disables
   and greys every .btn inside a disabled <fieldset>; re-enable it for ref-link only.
   (ref-link is an <a>, not a real form control, so it's safe to keep interactive.) */
fieldset:disabled .ref-link.btn:not(.disabled) {
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* Home launcher tiles */
.home-tile {
    color: inherit;
    transition: transform .12s ease, box-shadow .12s ease;
}

.home-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    border-color: #4f748c;
}

.home-tile-icon {
    font-size: 2.5rem;
    color: #4f748c;
}

/* Casino activation tiles (user manage/edit page) */
.casino-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    width: 100%;
    min-height: 90px;
    margin: 0;
    padding: .75rem .5rem;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease, transform .12s ease;
}

.casino-tile:hover {
    transform: translateY(-2px);
}

.casino-tile-icon {
    font-size: 1.6rem;
    color: hsl(var(--casino-hue), 55%, 38%);
}

.casino-tile-code {
    font-weight: 600;
    font-size: .85rem;
    color: #333;
    text-align: center;
    word-break: break-word;
}

.casino-tile-check {
    position: absolute;
    top: .4rem;
    right: .4rem;
    color: hsl(var(--casino-hue), 55%, 42%);
    opacity: 0;
}

/* Active = soft (not too bright) deterministic tint. */
.casino-tile.active {
    background-color: hsl(var(--casino-hue), 55%, 92%);
    border-color: hsl(var(--casino-hue), 45%, 62%);
}

.casino-tile.active .casino-tile-check {
    opacity: 1;
}

/* Read-only tiles (disabled checkbox) must not look interactive. */
.casino-tile:has(input:disabled) {
    cursor: default;
}

.casino-tile:has(input:disabled):hover {
    transform: none;
}
