:root {
    --bh-rt-scroll-width: 2px;
    --bh-rv-scroll-width: 2px;
    --bh-pl-scroll-width: 2px;
}

/* numans-regular - latin */
   @font-face {
    font-family: 'Numans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/numans-v9-latin-regular.eot');
    /* IE9 Compat Modes */
    src: local('Numans'), local('Numans-Regular'),
        url('../fonts/numans-v9-latin-regular.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('../fonts/numans-v9-latin-regular.woff2') format('woff2'),
        /* Super Modern Browsers */
        url('../fonts/numans-v9-latin-regular.woff') format('woff'),
        /* Modern Browsers */
        url('../fonts/numans-v9-latin-regular.ttf') format('truetype'),
        /* Safari, Android, iOS */
        url('../fonts/numans-v9-latin-regular.svg#Numans') format('svg');
    /* Legacy iOS */
}

html,
body {
    min-height: 100dvh;
    width: 100%;
    margin: 0;
}

body {
    font-family: Numans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

div.page {
    min-height: 100dvh;
    width: 100%;
    margin: 0;
}

form {
    margin: auto;
    /* nice thing of auto margin if display:flex; it center both horizontal and vertical :) */
    box-sizing: border-box;
    font-size: .75rem;
}

.form-group {
    margin-bottom: .75em;
}

.vertical-center {
    display: flex;
    align-items: center;
}

.modalbackdrop {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
}

img {
    max-width: 100%;
    height: auto;
}

* {
    box-sizing: border-box;
}

.modalpage {
    z-index: 11000;
}

#pldetailentry,
#userentry,
#commententry,
#brokermail,
#cliententry,
#newcontact,
#newproductline {

    margin: auto;
    background-color: #ddd;
    color: #222;

    width: min(95vw, 1200px);

    overflow: hidden;

    border-radius: 16px;
    box-shadow: 4px 4px rgba(0,0,0,.6);
    border: 1px solid #000;
}


#logon,
#resetpassword,
#confirmresetpassword {

    display: flex;

    justify-content: center;
    align-items: center;

    min-height: 100dvh;

    background-image: url('../images/retail_1920.jpg');
    background-size: cover;
    background-position: center;

    color: whitesmoke;
}

#logon .form-horizontal, #resetpassword .form-horizontal {
    width: min(92vw, 500px);
    background-color: rgba(255, 255, 255, .75);
    border-radius: 16px;
    box-shadow: 4px 4px rgba(0, 0, 0, .6);
    border: 1px solid #000;
    color: #000;
}

#logon input[type='text'],
#logon input[type='password'],
#resetpassword input[type='text'],
#resetpassword input[type='password'] {
    width: calc(100% - 4px);
}

#btnresetmypassword {
    color: maroon;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .6);
}

.portalpage {
    background-color: black;
    overflow: hidden;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

.up {
    flex: 0 1 auto;
}

.down {
    flex: 1 1 auto;
    background: #012;
    overflow: hidden;
}

.scrollable {
    overflow: auto;
    height: 100%;
    min-width: 100%;
}

.sticky-top {
    position: sticky;
    top: 0;
}

._gutters, ._gutters [class*="col-"] {
    margin: 0;
    padding: 0;
    padding-left: 3px;
    padding-right: 3px;
}

.text-75 {
    font-size: 75%;
}

.text-65 {
    font-size: 65%;
}

.text-60 {
    font-size: 65%;
}
.text-50 {
    font-size: 50%;
}

div.row.align-bottom > [class*="col-"] {
    vertical-align: bottom;
}

.scroll-y {
    overflow-y: auto;
}

.dash-left {
    overflow-y: auto;
    background-color: black;
    font-size: 11px;
    width: 200px;
    max-width: 200px;
}

.dash-right {
    overflow-y: auto;
    overflow-x: hidden;
}

.dashmenutoggler {
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.dashleftcard {
    background-color: black;
}

.dashleftitem {
    font-weight: normal;
    cursor: pointer;
    color: #ddd;
}

.AAPSelected {
    font-weight: bold;
    font-style: italic;
    color: #aaf;
}

#aaptemplatelibrary {
    display: none;
}

a.nav-link:visited,
li.nav-link>a:visited {
    color: white;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: #c8e1ef;
}



.text-header {
    font-size: 125%;
    color: rgb(73, 173, 245);
}

.text-data {
    font-size: 100%;
    color: rgb(73, 245, 173);
}

.text-white {
    color: white;
}

.text-lightred {
    color: lightcoral;
}

.shadowtext {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .6);
}

table.gridtable td, table.gridtable th {
    border: 1px solid #999;
    font-size: 75%;
    padding-left: 1px;
    padding-right: 1px;
}

table.gridtable td, table.gridtable th
{
    border: 1px solid #999;
    padding-left: 1px;
    padding-right: 1px;
}

table.gridtable thead th {
    background-color: rgb(175, 175, 175);
}

table.gridtable {
    margin: 0;
    text-align: left;
    position: relative;
    border-collapse: collapse;
    width: 100%;
}

table.gridtable>thead tr:nth-child(1)>th {
    position: sticky;
    top: 0px;
}

table.gridtable>tbody tr:nth-child(even)
{
    background-color: #ddd;
}

table.gridtable>tbody tr:nth-child(odd) {
    background-color: #eee;
}

table.gridtable>tbody tr:hover {
    background-color: rgb(160, 208, 241);
}

table.gridtable>tbody tr.selected {
    background-color: rgb(251, 208, 208);
}

table.gridtable td {
    color: #333;
}

.form-control {
    padding: .175rem .5rem;
    font-size: .75rem;
}

.closebutton {
    cursor: pointer;
}

#userentry input[type='text'], #userentry select, 
#commententry input[type='text'], #commententry select,
#brokermail input[type='text'], #brokermail select,
#cliententry input[type='text'], #cliententry select,
div.gddetail input[type='text'], div.gddetail select  {
    width: 100%;
}



#userentry .btn-group-toggle .btn.active,
#commententry .btn-group-toggle .btn.active,
#brokermail .btn-group-toggle .btn.active,
#cliententry .btn-group-toggle .btn.active,
div.gddetail .btn-group-toggle .btn-active {
    background-color:#0c81aa;
    color: #eee;
}

div.gddetail {
    height:fit-content;
}

#cliententryallowedclientusers > div > i {
    cursor: pointer;
}

h6 {
    font-size: x-small !important;
    font-weight: bold;
    color: #0d15f1 !important;
    padding: 4px !important;
}

.dropdown-item {
    padding: 0 1rem !important;
}

#templateconfirmation, #templatealert {    
    width: 60%;
    position: relative;
    left: 20%;
    top: 30%;
    height: 40%;
}

#templateplmassupdate {
    width: min(95vw, 600px);
    min-width: unset;
}

.gddetail ul li a.active {
    background-color: #007bff;
    COLOR: #FFF;
    border-color: #dee2e6 #dee2e6 #fff;
}

.gddetail form label {
    font-weight: bold;
    font-size: .9em;
    margin-bottom: .2em;
    margin-left: .3em;
    color:#333;
}

#commententry label, #brokermail label {
    font-weight: bold;
    color: #333;
}

.gddetail form input, .gddetail form textarea, .gddetail form select  {
    border-color: #007bff;
}

.gddetail form {
    height: 400px;
}

.min-w16 {
    min-width: 16.67%;
}

.max-w50 {
    max-width: 50%;
}

.w25 {
    width: 25%;
}

.w50 {
    width: 50%;
}

.daterangepicker {
    z-index: 1200 !important; /* must be higher than the modal's z-index */
  }

  .dataTables_wrapper .row {
    margin: 0;
    padding: 0;
  }

  .dataTables_wrapper .col-sm-12 {
    margin: 0;
    padding: 0;
  }

  table.dataTable thead > tr > th.sorting, table.dataTable thead > tr > th.sorting_asc, table.dataTable thead > tr > th.sorting_desc, 
  table.dataTable thead > tr > th.sorting_asc_disabled, table.dataTable thead > tr > th.sorting_desc_disabled, table.dataTable thead > tr > td.sorting, 
  table.dataTable thead > tr > td.sorting_asc, table.dataTable thead > tr > td.sorting_desc, table.dataTable thead > tr > td.sorting_asc_disabled, 
  table.dataTable thead > tr > td.sorting_desc_disabled
  {
    cursor: pointer;
    position: relative;
    padding-right: unset;
}

table.dataTable thead > tr > th.sorting:after, table.dataTable thead > tr > th.sorting_asc:after, table.dataTable thead > tr > th.sorting_desc:after, 
table.dataTable thead > tr > th.sorting_asc_disabled:after, table.dataTable thead > tr > th.sorting_desc_disabled:after, table.dataTable thead > tr > td.sorting:after, 
table.dataTable thead > tr > td.sorting_asc:after, table.dataTable thead > tr > td.sorting_desc:after, table.dataTable thead > tr > td.sorting_asc_disabled:after, 
table.dataTable thead > tr > td.sorting_desc_disabled:after {
    content: none;
}
table.dataTable thead > tr > th.sorting:before, table.dataTable thead > tr > th.sorting_asc:before, table.dataTable thead > tr > th.sorting_desc:before, 
table.dataTable thead > tr > th.sorting_asc_disabled:before, table.dataTable thead > tr > th.sorting_desc_disabled:before, table.dataTable thead > tr > td.sorting:before, 
table.dataTable thead > tr > td.sorting_asc:before, table.dataTable thead > tr > td.sorting_desc:before, table.dataTable thead > tr > td.sorting_asc_disabled:before, 
table.dataTable thead > tr > td.sorting_desc_disabled:before {
    content: none;
}

div.dataTables_length select, div.dataTables_filter input {
    color: white;
    font-weight: bold;
}

div.dataTables_length select > option {
    color: black;
}


a.paginate_button.current {
    background-color: #008 !important;
    color: white !important;
}

a.maillink {
    color:rgb(40, 83, 126) !important;
    text-decoration: underline;
    cursor: url('mailicon.png') 3 3, auto;
}

#assignedBrandManager {
    display: none;
}


#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7); /* Transparent white */
    z-index: 1000; /* Ensure it's on top of everything */
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

.expired-review {
  color: #c62828;
  font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#excelDisplayContainer {
    display: none; /* Keep it hidden by default */
    position: fixed; /* Use fixed positioning */
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    color: white; /* Text color */
    z-index: 1000; /* Ensure it appears on top */
    overflow-y: auto; /* Allow scrolling if content overflows */
    padding: 20px; /* Add some padding */
}

canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
}



body {
    overflow-x: hidden;
}



#pldetailentry {
    width: min(980px, 95vw);
    margin: 0 auto;
    overflow: hidden;
    height: fit-content !important;
}

#pldetailentry form {
    margin: 0;
}

#pldetailentry .bg-light {
    margin-bottom: 0 !important;
}

.mobile-utility-bar {
    display: none;
}
  
/* =========================================
   MOBILE PHONE LAYOUTS
========================================= */

@media (max-width: 768px) {

    /* Stack ALL bootstrap rows */
    #pldetailentry .row,
    #templateplmassupdate .row {
        --bs-gutter-x: 0.5rem;
    }

    /* Make modal pages*/
    .modalpage {

    position: fixed !important;

    top: 1vh !important;
    left: 50% !important;

    transform: translateX(-50%);

    width: 96vw !important;
    max-width: 96vw !important;

    overflow-x: hidden !important;

    margin: 0 !important;
    }

    .modalpage > .bg-light {

    overflow-y: auto;
    overflow-x: hidden;

    max-height: calc(96vh - 60px);

    -webkit-overflow-scrolling: touch;
    }

     #rebrokers select,
    #redistributors select,
    #reretailercontacts select,
    #reretailerproducts select {

        min-height: 180px !important;
        max-height: 220px !important;
    }

    #rebrokers .col-md-2,
    #redistributors .col-md-2,
    #reretailercontacts .col-md-2,
    #reretailerproducts .col-md-2 {

        margin-top: 10px;
        margin-bottom: 10px;
    }

    #rebrokers .d-flex.flex-column,
    #redistributors .d-flex.flex-column,
    #reretailercontacts .d-flex.flex-column,
    #reretailerproducts .d-flex.flex-column {

        flex-direction: row !important;
        justify-content: center !important;
        gap: 12px;
    }

    #cliententry #cliententryallowedclientusers,
    #cliententry #cliententryassignedbrandmanagers {

        max-height: 160px !important;

        border: 1px solid #ccc;

        border-radius: 8px;

        padding: 6px;

        background: #fff;
    }

    #cliententry .btn {

        width: 100%;
    }

    #cliententry .row {
        margin-bottom: .75rem;
    }

    #cliententry input[type="text"],
    #cliententry select {

        min-height: 44px;
    }

    #cliententry #clientuseradd,
    #cliententry #clientbrandmanageradd {

        margin-top: .5rem;
    }

    #cliententry .offset-md-2 {
        margin-left: 0 !important;
    }

    #pldetailentry {
        max-height: 96vh;
    }

    #pldetailentry .row {
        margin-top: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    #pldetailentry .form-control,
    #pldetailentry .form-select {
        min-height: 44px;
    }

    #pldetailentry label {
        margin-bottom: 0.35rem;
        font-size: 0.9rem;
    }

    /* Reduce giant tables */
    .gridtable {
        font-size: 12px;
    }

    .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    }

    /* Stack button toolbars */
    .btn-toolbar,
    .toolbar,
    .actionbar {
        flex-wrap: wrap !important;
        gap: 4px;
    }

    /* Buttons fill width easier */
    .btn-sm {
        min-height: 38px;
    }

    /* Inputs easier to tap */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Stack form labels vertically */
    .col-form-label {
        margin-bottom: 4px;
    }

    /* Dashboard iframe sections */
    iframe {
        min-height: 220px;
    }

    .row > [class*="col-"] {
        margin-bottom: .5rem;
    }

     .portalpage .dash-left {

        position: fixed;

        top: 70px;
        padding-top: 50px;
        left: 0;

        width: 100%;
        max-width: 100%;
        max-height: 70vh;
        z-index: 1500;
        overflow-y: auto;
        display: none;
        background: #000;
        border-top: 1px solid #444;
        border-bottom: 1px solid #444;
    }

    .portalpage .dash-left.mobile-open {
        display: block;
    }

    .portalpage .dash-right {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    }

    .portalpage .navbar {
    position: relative;
    z-index: 1400 !important;
}

    #btntogglesidebar {

        position: relative;
        z-index: 1600;
    }

    .mobile-sidebar-toggle {
        background: #212529;
        padding: 8px 12px;
        border-top: 1px solid #444;
        position: relative;
        z-index: 1600;
    }

    #pldropdown {

    width: 100%;

    margin-top: 8px;
}

#pldropdown .dropdown-toggle {

    font-size: 16px !important;

    width: 100%;

    text-align: center;

    border: 1px solid #555;

    border-radius: 8px;

    padding: 8px;
}

#pldropdown .dropdown-menu {
    width: 100%;
}

.navbar-nav.ms-auto {
    width: 100%;
    margin-top: 8px;
    text-align: center;
}

.navbar-nav.ms-auto .nav-link {
    padding: 8px 0;
}
.mobile-utility-bar {

    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 10px;

    background: #212529;

    border-top: 1px solid #444;
}

.mobile-utility-row {

    width: 100%;
}

.portalpage .navbar-collapse {

    padding-bottom: 0;
}




}

@media (max-width: 576px) {
    canvas {
        max-height: 220px !important;
    }
}


@media (max-width: 576px) {
    #logon nav div,
    #resetpassword nav div {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {

    .navbar-nav .nav-link {
        font-size: 13px;
    }

    #assignedBrandManager {
        font-size: 12px;
    }
}

