/* Jewelry Repair Estimator: styles moved out of _css.blade.php so the browser keeps one copy.
   Edit here (not in the Blade file). The <link> in that file adds ?v=<file time>, so a change shows right away. */
    body{
        text-align: center;
        background-color: #181722;
    }
    * {
        text-decoration: inherit;
        color: inherit;
    }

    input, button, img{
            -webkit-touch-callout: none; /* iOS Safari */
            -webkit-user-select: none; /* Safari */
            -khtml-user-select: none; /* Konqueror HTML */
            -moz-user-select: none; /* Old versions of Firefox */
            -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
    }

    .display {
        margin: auto;
        background-color:#181722;
        height: 100vh;
    }
    .splash-page,.menu-page, .next-menu-page{
        background-image:    url('/jre-bg-menu.webp');
        background-size:     cover;                      /* <------ */
        background-repeat:   no-repeat;
        background-position: center center;
    }
    h1{
        font-size: 30px;
    }

    @media (min-width: 1000px) {
        .display {
            /*border: solid 2px black;*/
            /*border-radius: 10px;*/
            /*margin-top: 10px;*/
            /*max-width: 500px;*/
            /*max-height: 600px;*/
        }
        .splash-page,.menu-page, .next-menu-page{
            background-image:    url('/jre-bg-menu.webp');
            background-size:     cover;                      /* <------ */
            background-repeat:   no-repeat;
            background-position: center center;
        }
h1{
    font-size: 45px;
}

    }

    button{
        border:solid 2.5px #181722;
        box-shadow: 3px 3px rgba(0, 0, 0, 0.42);
        background-color: #e49e00;
        width:180px;
        margin:7px;
        font-size: 20px;
        border-radius: 5px;
        display: block;
        /*color: white!important;*/

    }
    .jre-button{
        border:solid 2.5px #181722;
        box-shadow: 3px 3px rgba(0, 0, 0, 0.42);
        background-color: #e49e00;
        border-radius: 12px;

    }

    .menu-button{
        border:none;

        box-shadow: 3px 3px rgba(0, 0, 0, 0.42);
        background-color: rgba(228, 158, 0, 0.85);
        width:100%;
        border-radius: 12px;
        color: black;
        font-weight: bold;
        flex: 1; /* Distribute available space evenly among the buttons */
        text-align: center;
    }
    .menu-button span {
        font-size: 25px; /* Initial font size */
        max-width: 90%; /* Prevent text from getting too close to the edge */
        white-space: nowrap; /* Prevent text from wrapping */
        overflow: hidden;
        text-overflow: ellipsis; /* Add ellipsis (...) for overflowed text */
    }
    .next-button{
        border:solid 2.5px #181722;
        box-shadow: 3px 3px rgba(0, 0, 0, 0.42);
        background-color: #e49e00;
        width:30%;

        margin:7px;
        font-size: 20px; /* Initial font size */

        border-radius: 5px;
        float:right;
    }

    .back-button{
        border:solid 2.5px #181722;
        box-shadow: 3px 3px rgba(0, 0, 0, 0.42);
        background-color: #e49e00;
        width:30%;
        margin:7px;
        font-size: 20px; /* Initial font size */

        border-radius: 5px;
        float:left;
    }
    input{
        width:100px;
    }
    input[type="text"],input[type="number"],input[type="password"]{
        border:solid 2.5px #e49e00;
        background-color: #393f4a;
        color:white;
        width: 100%;
        height:50px;
    }
    input[type=number]::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }
    h1{
        padding:0px;
    }
    h1{
        color:white!important;
    }
    h3{
        color:white!important;
    }
    .menu{
        width:fit-content;
        margin:auto;
        max-width: 340px;
        height: 70%;
    }.container {
         clear: left;
         height: 100vh;
         display: none;
         background-color: #181722;
         overflow: auto;

         /* Hide scrollbars across all browsers */
         -ms-overflow-style: none;       /* IE, Edge */
         scrollbar-width: none;          /* Firefox */
     }

    .container::-webkit-scrollbar {
        display: none;                  /* Chrome, Safari */
    }

    .botton-nav{
        height:10%;
    }
    /* Question title area: only as tall as its title (plus anything under it, like the CTTW / MM
       switch) with a small gap before the buttons. It was a fixed 20% of the screen, which left a
       big empty space under short titles on a phone. */
    .top-section{
        padding-top:30px ;
        padding-bottom: 14px;
        height: auto;
    }
    /* Question screens: title, then the answer buttons right under it, and the Back / Home / Next bar
       pinned to the bottom of the phone screen where a thumb reaches it. Any spare space sits between
       the last answer and that bar. (The screen used to be split 20% / 70% / 10%, which left big gaps
       under short titles and, on iPhone, pushed Back / Next below the visible screen.) */
    .container[class*="question-"] { padding-bottom: 100px; box-sizing: border-box; }
    .container[class*="question-"] > .menu { height: auto; }
    /* Answer buttons: a comfortable, even height from the visible screen (about 56px on a short iPhone
       screen up to 100px on a tall one); buttons with a second line (Fancy Shape 1 / 2) grow to fit */
    .container[class*="question-"] > .menu > .input-btn { flex: none; height: auto; max-height: none; min-height: clamp(56px, calc((100vh - 330px) / 6), 100px); min-height: clamp(56px, calc((100dvh - 330px) / 6), 100px); }
    .container[class*="question-"] > .botton-nav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
        height: calc(84px + env(safe-area-inset-bottom)); box-sizing: border-box;
        padding: 6px 16px calc(6px + env(safe-area-inset-bottom));
        /* The bar's color spans the screen, but Back / Home / Next stay in the page column, lined up
           with the home screen's menu and gear icons (see layouts._edges) instead of the window's edges */
        padding-left: calc(max(0px, (100% - var(--jre-col, 100%)) / 2) + 15px);
        padding-right: calc(max(0px, (100% - var(--jre-col, 100%)) / 2) + 15px);
        background-color: inherit;
    }
    /* Back / Next a bit taller and the Home icon a bit larger, easy to hit with a thumb */
    .container[class*="question-"] > .botton-nav .back-button,
    .container[class*="question-"] > .botton-nav .next-button { height: 60px; margin: 6px 0; }
    .container[class*="question-"] > .botton-nav .home-button {
        width: 64px; height: 64px; margin: 4px auto;
        background-size: contain; background-repeat: no-repeat; background-position: center;
    }
    /* Scrolling answer lists (shank width, ring size, stone size): a small gap above instead of 50px
       above and below */
    .container[class*="question-"] .scrollable_container { margin-top: 16px; margin-bottom: 0; }
    /* Shank width list: use the space left between the ring picture and the bottom bar on the visible
       screen (100dvh leaves out Safari's toolbars), so more widths show at once */
    .question-3 .scrollable_container { height: calc(100vh - 420px) !important; height: calc(100dvh - 420px) !important; min-height: 150px; }
    /* Results (last estimate) page: Back / Home sit at the bottom of the visible screen when the estimate
       is short; with more repairs the page grows and the bar follows the last item instead (scroll to it).
       The page used to be split 90% / 10% of the full screen height, which on iPhone put the bar below
       the visible screen. */
    .container.results { height: 100vh; height: 100dvh; }
    .container.results > .full-page { height: auto !important; overflow: visible !important; box-sizing: border-box;
        min-height: calc(100vh - 96px); min-height: calc(100dvh - 96px); }
    .container.results > .botton-nav { height: calc(84px + env(safe-area-inset-bottom)); box-sizing: border-box;
        padding: 6px 16px calc(6px + env(safe-area-inset-bottom)); }
    .container.results > .botton-nav .back-button { height: 60px; margin: 6px 0; }
    .container.results > .botton-nav .home-button { width: 64px; height: 64px; margin: 4px auto;
        background-size: contain; background-repeat: no-repeat; background-position: center; }
    .full-page{
        margin:auto;
        height: 90%;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .full-page::-webkit-scrollbar {
        display: none;
    }

    button{
        color:black;
    }
    .hint{
        position: fixed;
        bottom:30px;
        left:30px;
    }
    :focus {
        outline: 2px solid black; /* Change 'blue' to the color you prefer */
    }
    .hint{
        display: none;
    }

    .settings-menu>*{
        margin:5px;
    }
    .menu{
        display: flex; /* To evenly space the buttons */
        align-items: center; flex-direction: column; width:100%;
    }
    .input-btn{
        border:none;
        box-shadow: 3px 3px rgba(0, 0, 0, 0.42);
        background-color: #e49e00;
        width:100%;
        border-radius: 12px;
        font-size: 25px;
        color: black;
        flex: 1; /* Distribute available space evenly among the buttons */
        text-align: center;
        max-height: 150px;
    }
    .input-btn2{
        border:none;
        box-shadow: 3px 3px rgba(0, 0, 0, 0.42);
        background-color: #e49e00;
        width:100%;
        border-radius: 12px;
        font-size: 25px;
        color: black;
        flex: 1; /* Distribute available space evenly among the buttons */
        text-align: center;
        max-height: 150px;
    }
    .row{
        /*border: solid white 1px;*/
        width:100%;
    }
    .input-num{
        width:33.3%;
        padding:10px 0px;
        margin:0px;
        float:left;
        display:inline-block;
        font-size: 24px;
        /*font-weight: bold;*/

    }
.add_new_repair{
    width:180px;
    font-size: 14px;
    height:30px;
    margin:auto;
}
    .display{
        overflow: hidden;
    }
    .back-button, .next-button{
        height:80%;
        border-radius: 12px;
        min-width:33%;
    }

    .bottom-button{
        font-size: 20px; /* Initial font size */
        width:fit-content;
        min-width: 40px;
        padding:0px 20px;
        float:left;
        height:80%;
        margin:auto;
        background-image: url('/home-icon.svg');
        background-size: 100% 100%;
    }
    #printButton{
        background-image: url('/print.png');

    }
    #emailButton{
        background-image: url('/email.png');

    }
    .addMoreToRepair{
        background-image: url('/repair.png');

    }
    .results-back-button{
        background-image: url('/back.png');

    }
    button:active,button:focus {
        /*border:solid 2.5px #e49e00;*/
        box-shadow: 0 5px 15px #e49e00;
        outline: none;
        /*background-color: #fcad19;*/
        /*background-color: #704b00;*/
        color:black;
    }
    .selected{
        background-color: #704b00;
        color:white;
        font-weight: bolder;
    }
    .report{
        background-color: black;
        height:250px;
        padding:20px;
        overflow: scroll;
    }
    .home-button{
        height:80%;
        width:30%;
        margin:auto;
        background-image: url('/home-icon.svg');
        background-size: 100% 100%;
    }
    /* A trade shop's Menu: the same home icon, but it goes to its Repair Job Dashboard (its home) */
    .dashboard-button{
        display:block;
        height:80%;
        width:30%;
        margin:auto;
        background-image: url('/home-icon.svg');
        background-size: 100% 100%;
    }
    body.theme-light .dashboard-button{ background-image: url('/theme-light/home-icon.svg'); background-color: transparent !important; }
    .edit-icon{
        float:right;height:22px;margin-right:10px;
    }

    .scrollable_container{
        margin-bottom:50px;
        margin-top:50px;
        width:100%;
        height: calc(100vh - 500px);;
        /*border: solid 1px pink;*/

    }
.scrollable{
    height: 99%;
    width:100%;
    overflow: scroll;
    scroll-snap-type: y mandatory;
    /*border: solid 1px pink;*/
}

    /* Hide scrollbar for Chrome, Safari and Opera */
    .scrollable::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    .scrollable {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .scrollable_container {
        position: relative;
    }
    .scrollable {
        padding: 20px 20px;
        overflow-y: scroll;
    }
    /* Ring size and stone size lists scroll up and down only: fit the padding inside the width (it used to be 40px
       wider than its space) and don't let a finger drag the list sideways */
    .current_scroll,
    .final_scroll,
    .stone-size-list {
        box-sizing: border-box;
        overflow-x: hidden;
        touch-action: pan-y;
        overscroll-behavior-x: none;
    }
    /* "Current size: 7" under Select Final Ring Size, and "Size 7 -> 8" under Ring Sizing on the quote */
    .ring-size-from { margin-top: 8px; font-size: 18px; font-weight: bold; color: #e49e00; }
    .ring-size-same { margin: 6px auto 0; max-width: 340px; padding: 6px 10px; font-size: 15px; color: #ff9d9d; border: 1.5px solid #e04848; border-radius: 10px; }
    .repair-size-change { font-size: 13px; color: #b9b6c3; margin-top: 2px; }
    .cover_top {
        position: absolute;
        left: 0;
        top: -3px;
        right: 0;
        height: 30px;
        background: linear-gradient(to bottom, rgb(24, 23, 34) 0%,rgba(24, 23, 34,0) 100%);
        pointer-events: none;
        /*border: solid 1px pink;*/

    }
    .cover_bottom {
        position: absolute;
        left: 0;
        bottom: 0;
        right: 0;
        height: 30px;
        background: -webkit-linear-gradient(
            rgba(24, 23, 34, 0) 0%,
            rgb(24, 23, 34) 100%
        );
        pointer-events: none;
        /*border: solid 1px pink;*/


    }
    .back_to_question{

        max-width:400px;
        border: solid 2px #e49e00;
        border-radius: 20px;
        padding:6px;
        padding-left:20px;
        margin:8px auto;
        cursor: pointer;
        text-align: left;
    }
    .more_info_panel{
        width:90%;
        border: solid 2px #e49e00;
        border-radius: 20px;
        display: none;
        margin:2px auto;
        color:white;

    }
    .more_info_panel > div{
        border-top: solid 1px #e49e00;
        padding:3px;
    }
    .input-btn{
        max-height: 100px;
    }
    .input-btn2{
        max-height: 100px;
    }
    .install-page{
        height:100vh;
        width:100vw;
    }
    @media all and (display-mode: standalone) {
        .open_app {
            display: none;
        }

        #installButton {
            display: none;
        }
    }

    /*Settings Menu CSS*/

    .settings-container{
        margin:auto;
        height: 90%;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .settings-container::-webkit-scrollbar {
        display: none;
    }
   td{
        text-align: left;
       padding:5px;
    }
   td > input {
    float:right;

    }
    input[type="file"] {
        display: none;
    }
    .file-upload {
        border: 1px solid #ccc;
        display: inline-block;
        padding: 6px 12px;
        cursor: pointer;
    }
    .custom-file-upload{
        border:solid 2px #e49e00;
        border-radius: 4px;
        padding: 3px;
        margin: 3px;
        width:191px;
    }
    .settings-input{
        color: #dcd2cc;
        background: transparent;
        border:solid 2px #e49e00;
        border-radius: 4px;
        padding: 3px;
        margin: 3px;

    }
    .email-input{
        color: #dcd2cc;
        background: transparent;
        border:solid 2px #e49e00;
        border-radius: 4px;
        padding: 3px;
        margin: 3px;
        width:191px;

    }

.premium{
    position: absolute;
    top:30px;
    width:80%;
    border:solid 5px #e49e00;
    background-color: black;
    min-height: 230px;
    border-radius: 30px;
    left:50%;
    color:white;
    font-size: 30px;
    transform: translate(-50%, 0%);
    display: none;

}
.settings-menu > tr > td{
  color:white!important;
}
td{
  color:white;
}th{
  color:white;
}


    /*        Slider Css*/
        select{
        width:100%;
    }
    input{
        width:100%;
    }
    .switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 34px;
    }

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    /* The slider */
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        -webkit-transition: .4s;
        transition: .4s;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

    input:checked + .slider {
        background-color: #2196F3;
    }

    input:focus + .slider {
        box-shadow: 0 0 1px #2196F3;
    }

    input:checked + .slider:before {
        -webkit-transform: translateX(26px);
        -ms-transform: translateX(26px);
        transform: translateX(26px);
    }

    /* Rounded sliders */
    .slider.round {
        border-radius: 34px;
    }

    .slider.round:before {
        border-radius: 50%;
    }


    /*        Slider Css*/
        select{
        width:100%;
    }
    input{
        width:100%;
    }
    .switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 34px;
    }

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    /* The slider */
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        -webkit-transition: .4s;
        transition: .4s;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

    input:checked + .slider {
        background-color: #e49e00;
    }

    input:focus + .slider {
        box-shadow: 0 0 1px #e49e00;
    }

    input:checked + .slider:before {
        -webkit-transform: translateX(26px);
        -ms-transform: translateX(26px);
        transform: translateX(26px);
    }

    /* Rounded sliders */
    .slider.round {
        border-radius: 34px;
    }

    .slider.round:before {
        border-radius: 50%;
    }


    /* Number boxes on the question pages (Number Of Stones, Number Of Prongs): the number and its hint centered */
    input.input-num-value { text-align: center; }
    /* The hint in the number boxes (Number Of Stones, Number Of Prongs) lighter, so it reads as a hint */
    input.input-num-value::placeholder { color: #d4d4d4; opacity: 1; }
    /* Narrower number boxes: sized by the text (10em), so the hint fits at any text size (they were 200-220px) */
    input.input-num-value { width: 10em !important; box-sizing: content-box; }



    /* Stone size list: a faint bold milestone beside the button that holds it (1/4, 1/2, 3/4, 1.0, 1.5, 2.0 ct). The list is
       60px wider on each side (same button size and place) so the mark has room outside the button. */
    .stone-size-list { width: auto !important; margin-left: -60px; margin-right: -60px; padding-left: 80px !important; padding-right: 80px !important; }
    .stone-size-list .input-btn[data-milestone] { position: relative; overflow: visible; }
    .stone-size-list .input-btn[data-milestone]::after {
        content: attr(data-milestone);
        position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
        font-size: 13px; font-weight: bold; white-space: nowrap; pointer-events: none;
        color: #e49e00; opacity: 0.55;
    }
    body.theme-light .stone-size-list .input-btn[data-milestone]::after { color: #7A5A12; }
