/* Jewelry Repair Estimator: styles moved out of _shapes.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. */
    /* ---- Buttons: rounded squares instead of round pills ---- */
    body .menu-button,
    body .input-btn,
    body .input-btn2,
    body .jre-button{
        border-radius: 12px;
    }
    /* Back / Next and the results-page actions (some set border-radius inline) */
    body .back-button,
    body .next-button,
    body .results button[style*="border-radius"]{
        border-radius: 12px !important;
    }
    /* Results-page actions: one size, stacked evenly, like the menu buttons */
    body .results .full-page > button,
    body .results .full-page > div > button[style*="border-radius"]{
        display: block;
        width: 240px;
        max-width: 90%;
        min-height: 46px;
        padding: 8px 12px;
        font-size: 18px;
        font-weight: bold;
        line-height: 1.2;
    }
    /* Print / Email Estimate are text buttons with an icon: no old picture behind the words */
    body #printButton,
    body #emailButton{ background-image: none; }

    /* ---- "Add Part" field: rounded square with the Stuller button flush on its left end ---- */
    body .stuller-menu{
        position: relative;
        width: 240px;
        max-width: 90%;
        margin: 16px auto;
    }
    body .stuller-input{
        height: 50px;
        border-radius: 12px !important;
        padding-left: 76px !important;
        box-sizing: border-box;
    }
    body .stuller-btn{
        top: 0;
        left: 0;
        height: 50px;
        width: 64px;
        margin: 0;
        padding: 0;
        border-radius: 12px 0 0 12px;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
    }

    /* ---- Cards and panels on every page: 12px corners, the same profile as the buttons and the
       Settings section boxes (they used 20-30px, some inline). ---- */
    body .box,
    body .box2,
    body .entry,
    body .type-card,
    body .how,
    body .code-card,
    body .linked-card,
    body .parcel-card,
    body .jobs-card,
    body .plan-card,
    body .filter-bar,
    body .premium,
    body .hint,
    body .confirm-popup,
    body .more_info_panel,
    body .home-pop-up-card,
    body .back_to_question{
        border-radius: 12px !important;
    }
    /* A card's colored title strip follows the card's corner (12px minus the 2.5px border) */
    body .box > .h3,
    body .box2 > .h3{
        border-radius: 9.5px 9.5px 0 0 !important;
        margin-top: 0;
    }
    /* Breathing room: fields and text inside a card no longer touch its edge */
    body .box > :not(.h3),
    body .box2 > :not(.h3){
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
    }
    body .box,
    body .box2{ padding-bottom: 14px; }

    /* ---- Pop-ups and panels ---- */
    body .popup-content{ border-radius: 12px; }
    body .popup-content img{ border-radius: 10px; }
    body .report{ border-radius: 12px; }
    body #repairsTable{ border-radius: 12px; }

    /* ---- Every page, one shape: buttons are rounded squares (12px), text boxes are softly
       rounded (10px). !important on purpose: many pages (Stores, Users, Company, Subscription,
       trade shop...) set their own pill shapes, some inline, and those must not win.
       Switches, radio dots, status badges and cards aren't buttons or text boxes, so they keep
       their own shapes. ---- */
    body button,
    body input[type="submit"],
    body input[type="button"],
    body .btn,
    body btn,
    body .cta,
    body .btn-jre,
    body .btn-jre-warning,
    body .btn-jre-danger,
    body .contact-btn,
    body .view-stores-btn,
    body .paste-btn,
    body .parcel-paste,
    body .parcel-send,
    body .bulk-apply{
        border-radius: 12px !important;
    }
    body input[type="text"],
    body input[type="number"],
    body input[type="password"],
    body input[type="email"],
    body input[type="tel"],
    body input[type="date"],
    body input[type="search"],
    body input[type="url"],
    body input:not([type]),
    body textarea,
    body select,
    body .form-control,
    body .settings-input,
    body .email-input,
    body .stuller-input-settings{
        border-radius: 10px !important;
    }
    /* The Add Part field's Stuller button stays joined to the box on its left end */
    body .stuller-menu .stuller-btn{ border-radius: 12px 0 0 12px !important; }
    body .stuller-menu .stuller-input{ border-radius: 12px !important; }
    body .custom-file-upload,
    body .file-upload{ border-radius: 10px; }
    /* "Select Clerk" picker on the home menu: rounded square like the buttons */
    body #Clerk{ border-radius: 12px; }
    /* ---- Phones: pages whose content would otherwise run edge to edge (Account Settings, Stores,
       Users, Company, Subscription...) opt in by setting the page's body_class section to phone-gutter, and get
       16px on both sides. Pages that already have their own side spacing (sign in, sign up, account
       types, trade shop, admin overview) and the estimator screens don't use it. ---- */
    @media (max-width: 600px) {
        body.phone-gutter { padding-left: 16px !important; padding-right: 16px !important; box-sizing: border-box; }
    }
