@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
* {
    outline: none;
}

body {
    background-color: #e7eaf1;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    color: #2b333e;
}
h1 {
    font-size: 22px;
    margin: 0;
}
h4{
    margin: 8px 0;
    padding: 0 0 8px 0;
    display: block;
    border-bottom: 1px dashed #ccc;
}
a {
    text-decoration: none;
    color:inherit;
}
a:hover,
a:focus {
    text-decoration: none;
}
ul {
    margin: 2px 0;
}
li{
    line-height: 1.4;
}
.button {
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid #e7eaf1;
    background: #fff;
    color: #2b333e;
    border-radius: 5px;
    color: inherit;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s ease-out;
}
.button:hover, a:hover{
    text-decoration: underline;
}
.button.buttonSave{
    background: #2b333e;
    color: #fff;
}
.buttonSaveArea{
    padding: 15px 0;
    text-align: center;
    margin: auto;
}
.looseButton{
    background: #f7f7f7;
    /* height: -webkit-fill-available; */
}

.looseButton.active{
    background: #2b333e;
    color: #f7f7f7;
}

input, select, textarea{
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 5px;
    font-size: 13px;
    line-height: 25px;
    height: auto;
    min-height: auto; /* Reset min-height */
    /*  min-height: -webkit-fill-available; */
}
.productSettings input, .productSettings select{
    margin-right: auto;
    width: -webkit-fill-available;
}
.productSettings input[type="checkbox"]{
    width: auto;
}
.formLabelAndInput{
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(auto, 190px) 1fr;
    align-items: center;
}
.formCheckboxAndLabel{
    display: grid;
    gap: 10px;
    grid-template-columns: 30px 1fr;
    align-items: center;
}
.formStandardGrid{
    display: grid;
    gap: 10px;
}
select#pageResultsLimit {
    height: 42px;
    padding: 10px;
    margin-left: 5px;
}
[type="checkbox"], [type="radio"]{
    box-sizing: border-box;
    padding: 0;
    display: flex;
    width: 14px;
    place-self: center;
}
.layout{
    display: grid;
    grid-template-areas:
        'aside main';
    grid-template-columns: 230px auto;
    grid-template-rows: 100vh;
}
.header_logo{
    grid-area: logo;
}
header{
    grid-area: header;
    display: grid;
}
aside{
    grid-area: aside;
}
#main{
    grid-area: main;
    padding: 10px;
}

body.loginScreen{
    background-image: url("../../images/background-d880cb362859b09d88361ff9965fb735.jpg");
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
}

.loginScreen .layout{
    grid-template-areas: 'main';
    grid-template-columns: 100%;
    grid-template-rows: 100vh;
    align-items: center;
    justify-items: center;
}

.loginScreen .layout .formLabelAndInput{
    grid-template-columns: minmax(auto, 100px) 1fr;
}
.security{
    width: 400px;
}
.logo {
    height: 80px;
    width: 100%;
    display: block;
    margin: 20px auto 0 auto;
    padding: 0;
    background-image: url("../../images/dashboard/4loger_logo_size-f72289513a16a98a8cf6fe2e213ffa3d.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

#menu {
    background: #2b333e;
    display: grid;
    gap: 10px;
    align-content: space-between;
    position: fixed;
    top: 0;
    bottom: 0;
    width: 230px;
    z-index:1000;
}
#menu.admin{
    background: #882311;
}

#menu p {
    display: block;
    text-transform: uppercase;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    background: #00000036;
    padding: 10px;
}
#menu .menuGrid{
    display: grid;
    gap: 20px;
}
#menu .menuItem a>div {
    padding: 10px;
    align-items: center;
    display: flex
;
    height: 20px;
}

#menu .menuItem.logout{
    background: #000000;
}

#menu .menuItem a > div:hover {
    background: #222933;
}

#menu svg {
    width: 18px;
    margin-right: 10px;
    fill: #E7EAF1;
}

#menu span,
#menu a {
    color: #E7EAF1;
}

#menu span {
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
}

#menu span > a {
    color: #fff;
    font-size: 14px;
    padding-left: 4px;
}

header label{
    font-size: 12px;
}
.small-card{
    max-width: 600px;
}

.productsIndex .header_items_grid{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.merchant_productsIndex .header_items_grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.importIndex .header_items_grid{
    display: grid;
    gap: 10px;
}

.header_items_grid > div {
    background: #fff;
    padding: 10px;
    border-bottom: 1px solid #e1e1e1;
}
.header_items_grid > div.headerButtonsEnd{
    display: flex;
    justify-content: flex-end;
}

.productsIndex .mass-update-form form{
    display: grid;
    grid-template-columns: 70px 1fr 1fr 1fr minmax(130px, auto);
    gap: 10px;
}

.productsPreviewEditor{
    height: 100vh;
    overflow-y: hidden;
}

.productsIndex .mass-update-form form div, .productsIndex .filterGrid div, .assignProducts .filterGrid > div, .ordersIndex .filterGrid div, .merchant_productsIndex .filterGrid div, .customersIndex .filterGrid div{
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr;
    gap: 5px;    
    align-items: center;
    text-align: left;
    height: 100%;
}
.merchant_productsIndex .filterGrid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px;
}

.customersIndex .filterGrid{
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
}
.customersIndex .filterGrid input[type="checkbox"]{
    justify-self: start;
}

.productsIndex .filterGrid{
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 10px;
}
.ordersIndex .filterGrid{
    display: grid;
    grid-template-columns: 1fr 1fr minmax(100px, 200px);
    gap: 10px;
}
.listing{
    padding-bottom: 20px;
}
.listingTitleAndButtons{
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 10px;
    background:#fff;
    border-top: 1px solid #e1e1e1;
}
.listingTitleAndButtons > *{
    display: flex;
    align-items: center;
    gap: 20px;
}

.promoLabel{
    padding: 5px;
    border-radius: 3px;
    background: #d7dff1;
    border: 1px solid #d7dff1;
    color:#2b333e;
    white-space: nowrap;
}
.promoVendorHit{
    background: #008fdb;
    border: 1px solid #008fdb;
    color: #fff;
}
.promoVendorKoozie{
    background: #2d5291;
    border: 1px solid #2d5291;
    color: #fff;
}
.promoLabelInfo{
    background: #d7dff1;
    color:#2b333e;
    border: 1px solid #2b333e;
}
.promoLabelInvalid{
    background: #bb3018;
    color: #fff;
    border: 1px solid #bb3018;
}
.promoLabelWarning{
    background: #fff6e2;
    border: 1px solid #ffb300;
    color: #976a00;
}
.promoLabelError{
    background: #fff6f4;
    color: #bb3018;
    border: 1px solid #bb3018;
}
.promoLabelSuccess{
    background: #d6ffe6;
    border: 1px solid #00973a;
    color: #00973a;
}

table  {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
    empty-cells: show;
    font-size: 13px;
    margin-bottom: 20px;
}
table td, table th {
    color: #2b333e;
    padding: 1px 5px;
    text-align: left;
    vertical-align: middle;
    line-height: 1.4;
}
table tr:nth-child(odd){
    background: #fff;
}
table tr:nth-child(even){
    background: #f9f9f9;
}
table tbody tr:hover, table tbody tr:hover td, table tbody tr:hover img{
    background: #882311;
    color: #fff;
    mix-blend-mode: normal;
}
table tbody tr:hover th{
    color: #fff;
}

table tbody tr.table_nohover:hover td,  table tbody tr.table_nohover:hover th{
    background: #fff;
    color: #999;
}

table thead {
    border-bottom: 1px solid #e1e1e1;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 999;
}

table th{
    padding: 5px;
    height: 25px;
}
table th, table td {
    border-width: 0 0 1px 0;
    border-bottom: 1px solid #f1f1f1;
}

table > tr:last-child > td {
    border-bottom-width: 0;
}
table img{
    height: 40px;
    mix-blend-mode: multiply;
    border-radius: 5px;
    vertical-align: middle;
}
.warningLog td{
    background: #fff6e2;
    color: #976a00;
    font-weight: bold;
    padding: 5px;
}
.errorLog td {
    background: #fff6f4;
    color: #bb3018;
    font-weight: bold;
    padding: 5px;
}
.minwidth550{
    min-width: 550px;
}

.tableWrap{
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}
.tableButtons{
    place-content: end;
}

.tableButtons a, .ordertableButtons a {
    color: #2b333e;
    font-size: 13px;
    padding: 7px 10px;
    line-height: 14px;
    background: #fff;
}
.tableButtons a:hover, .ordertableButtons a:hover {
    text-decoration: underline;
    color: #fff;
    fill: #fff;
    background: #222933;
    border-color: #222933;
}

.card{
    display: grid;
    gap:10px;
    align-content: flex-start;
    padding:10px;
    background: #fff;
}

.productUpdateGrid{
    display: grid;
    gap:10px;
    grid-template-areas: 
        'productBackgroundImages productBackgroundImages productBackgroundImages'
        'productSettings productVendorData productImprintCharges'
        'productWarningsAndErrors productWarningsAndErrors productWarningsAndErrors'
    ;
    grid-template-columns: auto auto 540px;
}
.merchant_productUpdateGrid{
    display: grid;
    gap:10px;
    grid-template-areas: 
        'productSettings productVendorData productBackgroundImages'
    ;
    grid-template-columns: auto auto 540px;
}
.productUpdateMainImage img{
    width: 100%;
    border: 1px solid #E7EAF1;
}

.productUpdatePartsGallery{
    display: grid;
    grid-template-columns: repeat(auto-fit, 120px);
    grid-template-rows: repeat(auto-fit, 120px);
    gap: 5px;
}

.productBackgroundImages{
    grid-area: productBackgroundImages;
    display: grid;
    grid-template-columns: 243px 1fr;
    gap: 7px;
}
.productBackgroundImages.merchant_productBackgroundImages{
    grid-template-columns: repeat(4, 1fr);
}
.productBackgroundImages.merchant_productBackgroundImages .productUpdateMainImage{
    grid-column: 1 / span 2;
    grid-row: 1 / span 2; 
}
.productBackgroundImages.merchant_productBackgroundImages .image_box{
    width: 124px;
    height: 124px;
}
.productSettings{
    grid-area: productSettings;
}
.productVendorData{
    grid-area: productVendorData;
}
.productImprintCharges{
    grid-area: productImprintCharges;
}

.productWarningsAndErrors{
    grid-area: productWarningsAndErrors;
}

.productSettings h1, .productVendorData h1, .pricingDataGrid h1, .orderedProductDetails h2{
    display: flex;
    gap: 20px;
    align-items: center;
}
.productVendorData h1, .pricingDataGrid h1{
    justify-content: space-between;
}
.productVendorData h1>div, .pricingDataGrid h1>div{
    display: flex;
    gap: 10px;
}
.productSettings #productForm{
    display: grid;
    gap: 10px;
}
.productSettings .promoLabel, .productVendorData .promoLabel, .pricingDataGrid .promoLabel, .orderedProductDetails .promoLabel{
    font-size: 14px;
    font-weight: normal;
    display: flex;
    align-items: center;
}
.productSettingGroups{
    display: grid;
    gap: 10px;
}
.productSettingGroups > div{
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 10px;
    justify-content: left;
    align-items: center;
}
.vendorProductDescription{
    line-height: 1.4;
}

.pricingDataGrid{
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}
.productWarningsAndErrorsGrid{
    display: grid;
    gap: 5px;
}
.productWarningsAndErrorsGrid span{
    line-height: 1.4;
    padding: 4px;
}
.productWarningsAndErrors h1{
    justify-content: space-between;
    display: flex;
    gap: 20px;
}
.productWarningsAndErrors h1>div {
    display: flex;
    gap: 10px;
}
.products_assignment_list .product_row{
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 5px;
    align-items: center;
}
.products_assignment_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 10px;
}

.email_template_grid{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
.email_template_grid h1{
    margin-bottom: 10px;
}

.email_template_variables{
    display: grid;
    gap: 10px;;
}
.email_template_variables>div{
    display: grid;
    gap: 3px;
}
#promo_decoration_preflightFileTypes{
    display: grid;
    gap: 10px;
    grid-template-columns: 20px 1fr;
}
.cardArtworkUploader form {
    display: grid;
    gap:20px;
}
.cardArtworkUploader form > div{
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 10px;
    justify-self: start;
    align-items: center;
}


/* IMAGES GALLERY*/
.image_box {
    border: 1px solid #E7EAF1;
    width: 118px;
    height: 118px;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.action_buttons {
    position: absolute;
    right: 0;
}

.action_buttons > a {
    display: flex;
    padding: 3px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #E7EAF1;
    margin: -1px;
    cursor: pointer;
}

.action_buttons > a:hover svg {
    fill: #fff;
}

.action_buttons svg {
    width: 16px;
    height: 16px;
    fill: #8D8D8D;
}

.action_buttons_default:hover {
    background: #00AEEF;
}

.action_buttons_hide:hover {
    background: #FF3838;
}

.action_buttons_default.active {
    background: #00AEEF;
}

.action_buttons_default.active svg {
    fill: #fff;
}

.action_buttons_hide.active {
    background: #FF3838;
}

.action_buttons_hide.active svg {
    fill: #fff;
}

.image_box span {
    background: #129fea;
    padding: 7px;
    color: #fff;
    width: auto;
    display: block;
    position: absolute;
    bottom: 0;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    margin: 4px 5px;
    border-radius: 4px;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000000;
    opacity: 0.8;
    filter: alpha(opacity=80);
}

.modal {
    position: fixed;
    top: 10%;
    left:0;
    right: 0;
    margin: auto;
    z-index: 1050;
    width: 560px;
    background-color: #ffffff;
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border: 1px solid #999;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    outline: none;
    -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
}

.modal-header {
    padding: 9px 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.modal-header .close {
    margin-top: 2px;
}

.modal-header h3 {
    margin: 0;
    line-height: 30px;
}

.modal-body {
    position: relative;
    max-height: 400px;
    padding: 15px;
    overflow-y: auto;
}

.modal-footer {
    padding: 14px 15px 15px;
    margin-bottom: 0;
    text-align: right;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    -webkit-border-radius: 0 0 6px 6px;
    -moz-border-radius: 0 0 6px 6px;
    border-radius: 0 0 6px 6px;
    zoom: 1;
    -webkit-box-shadow: inset 0 1px 0 #ffffff;
    -moz-box-shadow: inset 0 1px 0 #ffffff;
    box-shadow: inset 0 1px 0 #ffffff;
}

.modal-footer:before {
    display: table;
    line-height: 0;
    content: "";
}

.modal-footer:after {
    display: table;
    line-height: 0;
    content: "";
    clear: both;
}

.hideModal {
    display: none;
}

.showModal {
    display: block;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000000;
}

.modal-close-button{
    position: absolute;
    top: 4px;
    right: 6px;
    width: 22px;
    height: 22px;
}

/* IMAGES GALLERY END */

/* IMPRINT CHARGES */
.part-container h4{
    border-top: 1px dashed #ccc;
    padding: 8px; 
    margin: 0px;
}
.part-container h4:first-of-type{
    border-top: 0;
}
.location-container{
    display: grid;
    gap: 10px;
}
.accordion-data{
    border: 1px solid #ccc;
    border-bottom: 0;
}
.accordion-data.noborder{
    border-width: 1px 0 0 0px;
}
.accordion-data.part-container{
    padding:0;
}
.accordion-data.accordion-parent{
    background: #f1f1f1;
    padding: 5px;
    border: 1px solid #ccc;
}

.imprintDecorationMethod{
    padding-left:20px;
    margin: 8px 0;
}
.decoration-container{
    padding-left: 40px;
    display: grid;
    gap: 5px;
}

.location-container{
    border-bottom: 1px solid #ccc;
}

.decoration-container span{
    display: block;
}
/* IMPRINT CHARGES END*/

.sentOrdersDetails{
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, auto);
}
.table_purchaseprice{
    color: #999 !important;
}
.table_purchaseprice_border{
    border-top: 2px dotted #ddd;
    background: #ffffff;
}

/* DROPDOWN BUTTONS IN ORDERS*/
.dropdown_button_container{
    position: relative;
    gap: 10px;
}
.button.dropdown_action {
    padding-right: 10px;
}
.droppeddown_items {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    overflow: hidden;
    margin-top: 5px;
}
.droppeddown_items a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease
}
.droppeddown_items a:hover {
    background-color: #f7f7f7;
    text-decoration: underline;
}
.droppeddown_items.show {
    display: block;
}
/* DROPDOWN BUTTONS IN ORDERS END*/

/* EMAIL SETTINGS */
.emailer_grid{
    display: grid;
    gap:20px;
    grid-template-columns: 1fr 1fr;
}
.alert-mailer{
    font-family: monospace;
    line-height: 1.6;
    display: grid;
}
.mailer-success{
    background: #d6ffe6;
    border: 1px solid #00973a;
    color: #00973a;
}
.mailer-danger{
    background: #fff6f4;
    color: #bb3018;
    border: 1px solid #bb3018;
}
/* EMAIL SETTINGS END */

/* Badges grid styling */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 130px;
    box-sizing: border-box;
}

.badge-item:active {
    transform: scale(0.98);
}

.badge-item:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.badge-item:has(input[type="checkbox"]:checked) {
    border-color: #007cba;
    background: #e6f3ff;
}

.badge-item input[type="checkbox"] {
    position: absolute;
    top: 8px;
    right: 8px;
    transform: scale(1.1);
    z-index: 10;
    pointer-events: auto;
}

.badge-item label.badge-clickable-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    z-index: 1;
    margin: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 12px;
    box-sizing: border-box;
}

.badge-item label.badge-name {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: #333;
    line-height: 1.2;
}

.badge-item label {
    cursor: pointer;
}

.badge-image {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    pointer-events: none;
    flex-shrink: 0;
    position: relative;
    z-index: 0;
}

.badge-image img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.badge-no-image {
    background: #f0f0f0;
    border: 1px dashed #ccc;
}

.no-image-placeholder {
    font-size: 10px;
    color: #999;
    text-align: center;
}