﻿/* DEFAULTS
----------------------------------------------------------*/

body {
    font-size: .80em;
    font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    color: #696969;
}

a:link, a:visited {
    color: #034af3;
}

a:hover {
    color: #1d60ff;
    text-decoration: none;
}

a:active {
    color: #034af3;
}

p {
    margin-bottom: 10px;
    line-height: 1.6em;
    width: 100%;
}


/* HEADINGS   
----------------------------------------------------------*/

h1, h2, h3, h4, h5, h6 {
    font-size: 1.5em;
    color: #666666;
    font-variant: small-caps;
    text-transform: none;
    font-weight: 200;
    margin-bottom: 0px;
}

h1 {
    font-size: 1.6em;
    padding-bottom: 0px;
    margin-bottom: 0px;
    font-weight: bold;
}

h2 {
    font-size: 1.5em;
    font-weight: 600;
    width: 100%;
}

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.1em;
}

h5, h6 {
    font-size: 1em;
}

/* this rule styles <h1> and <h2> tags that are the 
first child of the left and right table columns */
.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2 {
    margin-top: 0px;
}


/* PRIMARY LAYOUT ELEMENTS   
----------------------------------------------------------*/

.page {
    width: 100% !important;
    max-width: none !important;
    background-color: #fff;
    border: 1px solid #496077;
    box-sizing: border-box;
    padding: 0px;
    margin-bottom: 0px;
}



.header {
    position: relative;
    margin: 0px;
    padding: 0px;
    background: #4b6c9e;
    width: 100%;
    top: 0px;
    left: 0px;
}

    .header h1 {
        border-style: none;
        border-color: inherit;
        border-width: medium;
        font-weight: 700;
        margin: 0px;
        padding: 0px 0px 0px 10px;
        color: #f9f9f9;
        line-height: 2em;
        font-size: 2em;
        width: 573px;
    }

.main {
    padding: 0px 4px;
    margin: 0px 0px 0px 0px;
    min-height: 420px;
    font-size: medium;
    position: relative;
}

    .main.container-fluid {
        padding: 2px 2px;
    }

.leftCol {
    padding: 6px 0px;
    margin: 12px 8px 8px 8px;
    width: 200px;
    min-height: 200px;
}

.footer {
    color: #4e5766;
    padding: 8px 0px 0px 0px;
    margin: 0px auto;
    text-align: center;
    line-height: normal;
}


/* TAB MENU   
----------------------------------------------------------*/

div.hideSkiplink {
    background-color: #3a4f63;
    width: 100%;
}

div.menu {
    padding: 4px 0px 4px 8px;
}

    div.menu ul {
        list-style: none;
        margin: 0px;
        padding: 0px;
        width: auto;
    }

        div.menu ul li a, div.menu ul li a:visited {
            background-color: #465c71;
            border: 1px #4e667d solid;
            color: #dde4ec;
            display: block;
            line-height: 1.35em;
            padding: 4px 20px;
            text-decoration: none;
            white-space: nowrap;
        }

            div.menu ul li a:hover {
                background-color: #bfcbd6;
                color: #465c71;
                text-decoration: none;
            }

            div.menu ul li a:active {
                background-color: #465c71;
                color: #cfdbe6;
                text-decoration: none;
            }

/* FORM ELEMENTS   
----------------------------------------------------------*/

fieldset {
    margin: 1em 0px;
    padding: 1em;
    border: 1px solid #ccc;
    width: 320px;
}

    fieldset p {
        margin: 2px 12px 10px 10px;
    }

    fieldset.login label, fieldset.register label, fieldset.changePassword label {
        display: block;
        margin-top: 0px;
    }

    fieldset label.inline {
        display: inline;
    }

legend {
    font-size: 1.1em;
    font-weight: 600;
    padding: 2px 0px 0px 0px;
}

input.textEntry {
    border: 1px solid #ccc;
    font-size: 1.2em;
}

input.passwordEntry {
    border: 1px solid #ccc;
    font-size: large;
}

div.accountInfo {
    width: 42%;
    height: 337px;
    margin-top: 0px;
}

/* MISC  
----------------------------------------------------------*/

.clear {
    clear: both;
}

.title {
    display: block;
    float: left;
    text-align: left;
    width: auto;
}

.loginDisplay {
    font-size: 1.1em;
    display: block;
    text-align: right;
    padding: 10px;
    color: White;
    height: 18px;
}

    .loginDisplay a:link {
        color: white;
    }

    .loginDisplay a:visited {
        color: white;
    }

    .loginDisplay a:hover {
        color: white;
    }

.failureNotification {
    font-size: 1.0em;
    color: Red;
}

.bold {
    font-weight: bold;
}

.submitButton {
    text-align: left;
    padding-right: 0px;
}

.select {
    font-size: medium;
}

.GridViewStyle {
    border-right: 1px solid #A7A6AA;
    border-bottom: 1px solid #A7A6AA;
    border-left: 1px solid white;
    border-top: 1px solid white;
    padding: 3px;
    line-height: 1.1 !important;
}

    .GridViewStyle a {
        color: #0066FF;
    }

.GridViewHeaderStyle th {
    border-left: 1px solid #EBE9ED;
    border-right: 1px solid #EBE9ED;
}

.GridViewHeaderStyle {
    background-color: #5D7B9D;
    font-weight: bold;
    font-size: large;
    color: White;
}

.GridViewFooterStyle {
    background-color: #5D7B9D;
    font-weight: bold;
    color: White;
}

.GridViewRowStyle {
    background-color: #F7F6F3;
    color: #333333;
    font-size: large;
}

.GridViewAlternatingRowStyle {
    background-color: #FFFFFF;
    color: #284775;
    font-size: large;
}

    .GridViewRowStyle td, .GridViewAlternatingRowStyle td {
        border: 1px solid #EBE9ED;
    }

.GridViewSelectedRowStyle {
    background-color: #E2DED6;
    font-weight: bold;
    color: #333333;
}

.GridViewPagerStyle {
    background-color: #284775;
    color: #FFFFFF;
}

    .GridViewPagerStyle table /* to center the paging links*/ {
        margin: 0 auto 0 auto;
    }


/* Pager container new */
.GridViewStyle .pager {
    text-align: center;
    margin-top: 10px;
}

    /* Links */
    .GridViewStyle .pager a {
        display: inline-block;
        padding: 5px 7px;
        margin: 0 2px;
        background-color: #f1f1f1;
        color: black;
        text-decoration: none;
        border-radius: 4px;
    }

        .GridViewStyle .pager a:hover {
            background-color: #007bff;
            color: white;
        }

    /* Current page */
    .GridViewStyle .pager span {
        display: inline-block;
        padding: 5px 7px;
        margin: 0 2px;
        font-weight: bold;
        background-color: #000099;
        color: white;
        border-radius: 4px;
    }

/* Mimic original header when using LinkButton */
.gv-header-link {
    display: inline-block; /* like normal text */
    text-decoration: underline; /* remove underline */
    color: white !important; /* match header text color */
    font-weight: bold; /* match GridView header style */
    text-align: left; /* keep left-aligned */
    width: 100%; /* use full header width */
    line-height: 1.2em; /* spacing for multi-line */
    padding: 0; /* remove extra button padding */
    background: none; /* remove button background */
    border: none; /* remove borders */
}

    .gv-header-link:hover {
        color: #ddd; /* optional hover effect */
    }

/* ===============================
   AutoCompleteExtender Styling
   =============================== */
.AutoExtender {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 4px 0 !important;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    width: auto !important; /* JS sets width */
    max-width: 600px !important;
    min-width: 200px;
    list-style: none !important;
    /* Scrolling */
    max-height: 280px !important;
    overflow-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important; /* iOS smooth scrolling */
}

/* Each list item */
.AutoExtenderList {
    padding: 4px 6px !important;
    line-height: 20px;
    cursor: pointer;
    background-color: #fff !important;
    color: #333 !important;
    border-bottom: 1px solid #eee;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .AutoExtenderList:last-child {
        border-bottom: none !important;
    }

.AutoExtenderHighlight {
    background-color: #0078d4 !important;
    color: #fff !important;
    padding: 4px 6px !important;
    border-radius: 0 !important;
    transition: background-color 0.15s ease;
}

    .AutoExtenderHighlight span {
        font-weight: 600 !important;
    }

/* ===============================
   Base popup element
   (IMPORTANT: do not force position)
   =============================== */
[id*="_completionList"] {
    /* Removed position: absolute !important — JS controls this */
    z-index: 99999999 !important;
    /* Touch scroll support for Android + iOS */
    pointer-events: auto !important;
    overflow-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
}

/* ===============================
   iPhone / iPad Safari Fixes
   =============================== */
@supports (-webkit-touch-callout: none) {
    .AutoExtender {
        z-index: 99999 !important;
        border: 1px solid #006699 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
        left: 1vw !important; /* start a bit from the edge */
        width: 97vw !important; /* near full-screen width */
        /* Max-height & scrolling inherited from main .AutoExtender */
    }

    @media only screen and (max-width: 480px) {
        .AutoExtender,
        .AutoExtenderList,
        .AutoExtenderHighlight {
            font-size: 14px !important;
            line-height: 18px !important;
        }
    }
}

/* ===============================
   Mobile devices (iOS + Android)
   Make AutoExtender wider on small screens
   =============================== */
@media only screen and (max-width: 768px) {
    .AutoExtender {
        left: 1vw !important;
        width: 97vw !important;
    }
}

/* ===============================
   Mobile-specific enhancements for better touch selection
   =============================== */
@media only screen and (max-width: 768px) {
    /* Increase min-height of each autocomplete item for easier tapping */
    .AutoExtenderList,
    .AutoExtenderHighlight {
        min-height: 40px !important; /* ensures enough vertical space for touch */
        padding: 4px 8px !important; /* slightly more padding for comfort */
        font-size: 16px !important; /* increase font size for readability */
        line-height: 20px !important; /* aligns text nicely in taller items */
    }
}

/*#divwidth
        {
          width: auto !important;    
        }
        #divwidth div
       {
        width: auto !important;   
       }
*/


/*Test right left div 
----------------------------*/
.left {
    text-align: left;
    padding: 0px 10px;
}

.right {
    text-align: right;
}

.left, .right {
    display: inline-block;
    width: 48%;
}

/* x-large font class
-------------------------------------------------*/
.xlarge {
    font-size: x-large;
}

/* error style override
-------------------------------------------------*/
.errorMessage {
    font-family: Verdana, Helvetica, sans-serif;
    font-size: large;
    font-weight: normal;
    border: 1px solid #f00;
    background-color: #FFE4B5;
}


.gvhspadding {
    padding: 2px;
}

/* Background dim (ModalPopupExtender uses this) */
.modalBackground {
    background-color: rgba(0,0,0,0.6);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Main popup container */
.popup-panel {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    top: 20%;
    box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

/* Inner content wrapper */
.popup-content {
    padding: 20px;
}

/* Responsive for small screens */
@media (max-width: 480px) {
    .popup-panel {
        top: 10%;
        max-width: 96%;
        width: 96%;
    }
}

/* Larger, more visible radio buttons */
.popup-radio input[type="radio"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
}

/* Clickable rows */
.popup-row {
    cursor: pointer;
}

    .popup-row:hover {
        background: #f3f6ff;
    }

    /* Selected row highlight */
    .popup-row.selected {
        background: #d7e3ff !important;
    }

.grid2-selected {
    background: #d7e3ff !important; /* same selected color */
    transition: background 0.2s ease;
}

/*
.modalPopup
{
      background-color:Gray;
      border-width:3px;
      border-style:solid;
      border-color:Gray;
      padding:5px;
      width: 350px;
      height:300px;
}
*/

.centered-table {
    margin-left: auto;
    margin-right: auto;
}

.hidden {
    display: none;
}

.toast {
    visibility: hidden;
    min-width: 300px;
    margin-left: -150px;
    background-color: #4CAF50;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: fixed;
    left: 50%;
    bottom: 30px;
    font-size: 15px;
    z-index: 20000;
    opacity: 0;
    transition: opacity 0.5s ease, bottom 0.5s ease;
}

    .toast.show {
        visibility: visible;
        opacity: 1;
        bottom: 50px;
    }


.custom-toast {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 16px;
    font-size: 16px;
    text-align: center;
    border-radius: 8px;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    z-index: 9999;
    max-width: 90vw;
    box-sizing: border-box;
    background-color: transparent !important;
    white-space: nowrap !important;
}


/* green */
.toast-success {
    background-color: #28a745 !important;
    color: white !important;
}
/* red */
.toast-danger {
    background-color: #dc3545 !important;
    color: white !important;
}
/* blue */
.toast-info {
    background-color: #0d6efd !important;
    color: white !important;
}


/* animation class */
.custom-toast.show {
    visibility: visible;
    opacity: 1;
}


.logo {
    display: inline-block;
    vertical-align: middle;
}

/* Header title & version improvements */
.titleTextInner {
    padding-left: 0px; /* keep existing left padding */
    padding-top: 0px; /* small padding at top for breathing space */
    padding-bottom: 0px; /* small padding at bottom */
}

/*.titleTextInner h1 {
    margin: 0;
    padding-left: 0px;*/ /* keep existing */
/*line-height: 1.2em;*/ /* keep existing */
/*}*/

.header-title-container {
    padding: 0; /* remove any container padding */
    margin: 0; /* remove container margin */
}

.versionLabel {
    font-size: 1.0em;
    color: #fff;
    display: block;
    padding-left: 0px; /* same as h1 */
    margin-top: 0px !important; /* pulls version closer to h1 */
    padding-left: 0;
    padding-top: 0px;
}

.btn-black-outline {
    color: black !important;
    border-color: black;
}

    .btn-black-outline:hover,
    .btn-black-outline:focus,
    .btn-black-outline:active {
        background-color: black; /* or keep transparent if you prefer */
        color: white !important; /* text stays black */
        border-color: black;
    }

@media (max-width: 576px) {
    .small-responsive {
        font-size: 0.92rem !important; /* even smaller than fs-6 */
        line-height: 1.1; /* tighten spacing */
        /*background-color: yellow;*/
    }

    .productentry-responsive {
        font-size: 0.85rem !important; /* even smaller than fs-6 */
        line-height: 1.1; /* tighten spacing */
        /*background-color: yellow;*/
    }

    th.productentry-responsive {
        font-size: 0.85rem !important; /* even smaller than fs-6 */
        line-height: 1.1; /* tighten spacing */
        /*background-color: yellow;*/
    }


    .titleTextInner {
        font-size: 1.17em !important; /* smaller for mobile */
        font-weight: bold;
        line-height: 1.2em;
        padding-left: 0px !important;
    }

    .btn-responsive {
        width: 75%;
    }

    /* Only affect the specific GridView table inside #myGridView2 */
    #myGridView2 table {
        table-layout: fixed;
        width: 100%;
    }

    #myGridView2 .product-responsive {
        white-space: normal; /* wrap where possible */
        overflow-wrap: normal; /* break long words if needed */
        word-break: normal; /* ensure super-long words wrap */
        min-width: 0; /* avoid forcing table to expand */
    }

    #myGridView2 .product-text {
        white-space: normal; /* wrap where possible */
        overflow-wrap: normal; /* break long words if needed */
        word-break: normal; /* ensure super-long words wrap */
        min-width: 0; /* avoid forcing table to expand */
        padding-top: 2px !important; /* optional: slightly adjust padding for vertical alignment */
        padding-bottom: 2px !important;
        line-height: 1.0em !important; /* tighter spacing between wrapped lines */
        display: block; /* ensures the line-height applies correctly */
    }

    #myGridView2 .supplier-responsive {
        white-space: normal; /* wrap where possible */
        overflow-wrap: normal; /* break long words if needed */
        word-break: normal; /* ensure super-long words wrap */
        min-width: 0; /* avoid forcing table to expand */
        font-size: 0.80rem !important;
    }

    .orderno-responsive {
        white-space: normal; /* wrap where possible */
        overflow-wrap: normal; /* break long words if needed */
        word-break: normal; /* ensure super-long words wrap */
        min-width: 0; /* avoid forcing table to expand */
        font-size: 0.70rem !important;
        /*        background-color: green;
*/
    }

    .orderedby-responsive {
        white-space: normal; /* wrap where possible */
        overflow-wrap: normal; /* break long words if needed */
        word-break: normal; /* ensure super-long words wrap */
        min-width: 0; /* avoid forcing table to expand */
        font-size: 0.70rem !important;
        /*        background-color: green;
*/
    }
}

/* Mobile and Tablets to max 991.98px */
@media (max-width: 991.98px) {
    .small-responsive {
        font-size: 1rem !important;
        line-height: 1.2;
        /*background-color: yellow;*/
    }

    .productentry-responsive {
        font-size: 0.95rem !important; /* even smaller than fs-6 */
        line-height: 1.1; /* tighten spacing */
        /*background-color: yellow;*/
    }

    th.productentry-responsive {
        font-size: 0.95rem !important; /* even smaller than fs-6 */
        line-height: 1.1; /* tighten spacing */
        /*background-color: yellow;*/
    }

    .product-text {
        line-height: 1.1; /* tighten spacing */
        /*background-color: yellow !important;*/
        font-size: 0.90rem !important;
    }

    .btn-responsive {
        width: 70%;
    }
}

/* Desktop: >=992px */
@media (min-width: 992px) {
    .small-responsive {
        font-size: 1.1rem !important;
        line-height: 1.3;
        /*background-color: green;*/
    }

    .productentry-responsive {
        font-size: 1rem !important; /* even smaller than fs-6 */
        line-height: 1.1; /* tighten spacing */
        /*background-color: yellow;*/
    }

    th.productentry-responsive {
        font-size: 1rem !important; /* even smaller than fs-6 */
        line-height: 1.1; /* tighten spacing */
        /*background-color: yellow;*/
    }

    .btn-responsive {
        width: 30%;
    }
}
