html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.noselect {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

::-webkit-scrollbar-thumb:vertical {
    background: #ccc;
    border: thin solid #aaa;
}

::-webkit-scrollbar-thumb:horizontal {
    background: #ccc;
    border: thin solid #aaa;
}

::-webkit-scrollbar-thumb:vertical:hover {
    background: #0a95ff;
    border: none;
}

::-webkit-scrollbar-thumb:horizontal:hover {
    background: #0a95ff;
    border: none;
}

input {
    border: thin solid #ccc;
    outline: none;
    padding: 15px 10px 0px 7px;
    border-radius: 5px;
    width: 100%;
}

textarea {
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
}

input:disabled {
    background: #eee;
}

select {
    outline: none;
    border: thin solid #ccc;
    padding-right: 5px;
    border-radius: 5px;
}

.footer_parking {
    display: flex;
    position: fixed;
    bottom: 0px;
    left: 165px;
}

.tab_content {
    min-height: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.footer_tab {
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 10px 10px 0 0;
    background: #cf6d6d;
    height: 25px;
    color: #000;
    width: 100px;
    margin-right: 1px;
    z-index: 9000;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
}

.footer_tab:hover {
    background: #f74545;
}

.vjx_image img {
    width: 100%;
    height: 100%;
}

.resize_div {
    position: absolute;
    right: 2px;
}

.resize_bar {
    color: #999;
    padding-right: 2px;
}

.resize_bar:hover {
    width: 5px;
    cursor: col-resize;
    color: #000;
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.content_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 0.8rem;
    border: thin solid #ccc;
    padding: 5px;
    background: #fff;
    border-radius: 5px;
    position: relative;
}

.input_label {
    position: relative;
}


.input_label div {
    position: absolute;
    top: 0px;
    left: 9px;
    font-size: 0.7rem;
    color: #999;
    white-space: nowrap;
}

.textarea_label {
    position: relative;
    padding: 15px 5px 2px 5px;
    border: thin solid #ccc;
    border-radius: 5px;
    background: #fff;
}

.textarea_label div {
    position: absolute;
    top: 0px;
    left: 9px;
    font-size: 0.7rem;
    color: #999;
}

.div_button {
    display: flex;
    width:max-content;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    padding: 2px 10px;
    background: #3f51b5;
    color: #fff;
    margin: 5px;
    font-size: 0.8rem;
    cursor: pointer;
}

.div_button:hover {
    background: #258cfb;
}

.div_button_green {
    display: flex;
    width: max-content;
    border-radius: 10px;
    justify-content: center;
    padding: 2px 10px;
    background: #358900;
    color: #fff;
    margin: 5px;
    font-size: 0.8rem;
    cursor: pointer;
}

.div_button_green:hover {
    background: #4ec900;
}

.div_button_disabled {
    display: flex;
    width: max-content;
    border-radius: 10px;
    justify-content: center;
    padding: 2px 10px;
    background: #aaa;
    color: #000;
    margin: 5px;
    font-size: 0.8rem;
}

.navbar {
    background-color: #333;
    color: #fff;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.navbar .logo {
    font-size: 1.5rem;
}

.navbar .user-profile {
    display: flex;
    align-items: center;
}

.navbar .user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.navbar .user-profile button {
    background-color: #555;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
}

.navbar .user-profile button:hover {
    background-color: #777;
    color:goldenrod;
}

.tabs, .tabs_sub {
    display:flex;
    background: #ccc;
    padding-top: 5px;
}

.tab, .tab_sub {
    position: relative;
    background: #fff;
    max-width: 150px;
    border-radius: 10px 10px 0 0;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    min-width: 100px;
    width: 20%;
    margin: 0px 1px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
}

.tab_close{
    display: none;
    position: absolute;
    top: 2px;
    right: 7px;
}

.tab_header {
    display: flex;
    align-items: center;
    padding: 10px 0px 30px 0px;
    background: #fff;
    gap: 10px;
}

#popup_message {
    justify-content: space-between;
    padding: 15px;
    background: #3f51b5;
    color: rgb(255, 255, 255);
    position: fixed;
    right: 0px;
    bottom: 0px;
    z-index: 100000001;
    text-align: center;
    width: 100%;
}

.popup_title {
    font-size: 1rem;
    font-weight: bold;
}

.popup_frame {
    max-height: 750px;
    padding-right: 10px;
    max-width: 1290px;
    overflow: auto;
}

#popup, #popup_style, #popup_color, #popup_so, #popup_inv, #popup_customer, #popup_checkout, #popup_design, #popup_production, #popup_accounting, #popup_creditmemo, #popup_packing, #popup_receive, #popup_damage, #popup_movestock, #popup_linesheet, #popup_receive_payment {
    justify-content: center;
    align-items: center;
    position: fixed;
    right: 0px;
    top: 400px;
    z-index: 100;
    width: 100%;
    /*height: 100%;*/
    background: #0009;
}

.popup_head {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    width: 100%;
    height: 25px;
    position: absolute;
    top: 0px;
    left: 0px;
    cursor: move;
}

.popup_foot {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    width: 100%;
    height: 16px;
    position: absolute;
    bottom: -8px;
    left: 0px;
    cursor: move;
}

.popup_close, .popup_min {
    position: absolute;
    top: -10px;
    right: -6px;
    z-index: 2;
    font-size: 1.2rem;
    cursor: pointer;
    color: #258cfb;
}

.popup_close:hover {
    color: #cb1212;
}

.popup_min:hover {
    color: #cb1212;
}

.popup_pad {
    position: absolute;
    background: #d2deff;
    padding: 10px 0 10px 10px;
    box-shadow: 3px 6px 6px 11px #00000040;
    border-radius: 5px;
}

.popup_contents {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    overflow-x: auto;
    font-size: 0.8rem;
}

.popup_address, .popup_address_shipping {
    position: relative;
    padding: 5px;
    margin-top: 5px;
    border-radius: 5px;
    background: #62870f;
    color: #fff;
    width: 100%;
}

.popup_line {
    border: thin solid #eee;
    padding: 5px;
    margin: 5px;
    width: 250px;
    border-radius: 5px;
}

.popup_label {
    position: absolute;
    border-radius: 10px 0px 0px 10px;
    top: 20px;
    left: -24px;
    writing-mode: vertical-rl;
    background: #cf6d6d;
    padding: 10px 0px;
    font-weight: bold;
    text-transform: lowercase;
}

.popup_input {
    display: none;
    position: absolute;
    border-radius: 5px 5px 0px 5px;
    font-size: 0.8rem;
    padding: 5px;
    box-shadow: 3px 6px 6px 11px #00000017;
    background: #fff;
    top: 30px;
    left: 220px;
}

.short_cut {
    padding: 0px 10px;
    cursor: pointer;
}

.short_cut:hover {
    color:goldenrod;
}

.sidebar {
    background-color: #444;
    color: #fff;
    width: 165px;
    position: fixed;
    top: 20px;
    left: 0;
    height: 100%;
    padding-top: 2rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 1px 0;
    padding: 0.5rem;
    cursor: pointer;
}

.sidebar ul li:hover {
    background-color: #555;
    color: goldenrod;
}

.sidebar ul li div.submenu {
    display: none;
    color: #ffd760;
    font-size: 0.8rem;
    padding-left: 0.5rem;
}

.menu_title {
    font-size: 1.2rem;
}

.sidebar ul li div.submenu.submenu_item {
    padding: 0.2rem;
    padding-left: 0.5rem;
    background: #666;
}

.sidebar ul li div.submenu div.submenu_item:hover {
    color: #ff6060;
}

.main-content {
    margin-left: 200px;
    padding: 2rem;
}

.main-content h1 {
    margin-top: 0;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    background-color: #f2f2f2;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    flex: 1;
}

.stat h3 {
    margin: 0 0 1rem 0;
}

.recent-activities {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
}

.recent-activities h2 {
    margin-top: 0;
}

.recent-activities ul {
    list-style: none;
    padding: 0;
}

.recent-activities ul li {
    padding: 0.5rem 0;
}

.form-label {
    position: absolute;
    font-size: 0.8rem;
}

#contents {
    font-size: 0.8rem;
    padding: 1rem;
}

.content_title {
    font-size: 1rem;
    padding-bottom: 5px;
    font-weight: bold;
    text-transform: capitalize;
}

.dashboad_box {
    position: relative;
    border: thin solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    width: 140px;
}

.dashboad_box:hover {
    background: #eee;
}

.content {
    width: fit-content;
    max-height: 70vh;
    overflow: auto;
    max-width: 100%;
    font-size: 0.7rem;
    background: #fff;
}

.StyleDetail .content {
    width: 100%;
    min-width: 1000px;
    max-height: 605px;
    border: thin solid #ccc;
    overflow: hidden;
}

.sheet_detail {
    position: absolute;
    left: 640px;
    font-size: 0.7rem;
    max-width: 48vw;
    min-width: 700px;
    overflow: auto;
    height: 70vh;
    border: thin solid #ccc;
}

.where {
    font-size: 0.8rem;
    color: #666;
}

.input_style {
    border: none;
    width: 100%;
    height: 40px;
    outline: none;
    padding-top: 10px;
    border-radius: 5px;
}

.search_button {
    font-size: 1rem;
    padding: 0 15px;
    width: auto;
    cursor: pointer;
}

.round_border {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: fit-content;
    border: thin solid #ccc;
    padding: 2px 4px;
    border-radius: 5px;
}

.item_search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: solid thin #aaa;
    /*padding: 3px;
    height: 50px;
    margin-bottom: 10px;*/
    font-size: 0.8rem;
    border-radius: 5px;
    width: 50%;
    max-width: 400px;
}

.item_pad {
    overflow: auto;
    height: 256px;
    margin: 5px 0px 5px 0;
    font-size: 0.7rem;
    background: #fff;
}

.item_header, .filter_header, .add_header {
    display: flex;
    width: fit-content;
    border-bottom: #666 thin solid;
    position: sticky;
    top: 0px;
    background: #ccc;
    height: 25px;
    z-index: 111;
}

.filter_header {
    border-bottom: #ccc thin solid;
    background: #fff;
    top: 25px;
}

.add_header {
    background: #fff;
    top: 50px;
}


.item_row:hover {
    background: #a2edf9;
    color: #000;
}

.item_row_sub:hover {
    background: #a2edf9;
    color: #000;
}

.items {
    background: #eee;
    width:fit-content;
}

.sort {
    justify-content: center;
}

.item_row, .item_row_sub {
    display: flex;
    width: fit-content;
    margin: 0px 0px 1px 1px;
    background: #fff;
    position: relative;
}

.edit_row {
    display: none;
    position: absolute;
    background: #b9ffc5;
    z-index: 2;
    border: 1px solid #000;
}

.detail_row {
    display: none;
    background: #fff;
    border: thin solid #cc00ff;
    width: 100%;
    position: absolute;
    top: 22px;
    z-index: 2;
    max-height: 300px;
    overflow-y: auto;
}

.memo_row, .qcmemo_row {
    display: none;
    justify-content: center;
    position: absolute;
    font-size: 0.7rem;
    background: rgb(255, 255, 255);
    padding: 5px;
    border: thin solid rgb(153, 153, 153);
    max-width: 250px;
    z-index: 1;
    right: 790px;
    top: -3px;
}

.item_footer {
    display:flex;
    width: fit-content;
    background: #acacac;
    position: sticky;
    bottom: -1px;
    margin-top: 1px;
    z-index: 2;
    border-top:thin solid #666;
    height: 23px;
}

.background_void {
    background: #fdd;
}

.background_closed {
    background: #cccece;
}

.not_closed_item {
    background: #ffffb4;
}

.not_closed_item2 {
    background: #e5ffd5;
}

.remove_item {
    background: #f3dbdb;
}

.highlight_column {
    background: #cfba !important;
}

.highlight_column2 {
    background: #ffca !important;
}

.highlight_column3 {
    background: #fcca !important;
}

.is_selected {
    background: #608137 !important;
    color: #000;
}

.is_selected_sub {
    color: #ff6060;
}

.search_styles {
    display: none;
    position: absolute;
    font-size: 0.7rem;
    top: 21px;
    background: #dcb0fd;
    border: thin solid #666;
    padding: 0;
    left: 29px;
}

.search_colors {
    display: none;
    position: absolute;
    font-size: 0.7rem;
    top: 21px;
    background: #dcb0fd;
    border: thin solid #666;
    padding: 0;
    left: 139px;
    max-height: 100px;
    overflow: auto;
}

.search_styles ul li, .search_colors ul li {
    padding: 0 5px;
}

.search_styles ul li:hover {
    background: #0a95ff;
}

.search_colors ul li:hover {
    background: #0a95ff;
}

.soldout {
    background: #ffedea;
}

.edit_row_button {
    display: none;
    position: absolute;
    top: -23px;
    left: 40vw;
    background: #00bd4b;
    z-index: 4;
    font-size: 1rem;
    padding: 0px 5px;
}

.display_spending_payment, .popup_intap {
    display: none;
    position: absolute;
    justify-content: center;
    z-index: 3;
    top: 24px;
}

.spending_button {
    padding: 0px 3px;
    cursor: pointer;
}

.spending_button:hover {
    color: red;
}

.so_ready {
    background: #baffba
}

.item_col, .edit_col {
    display: flex;
    position: relative;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    align-items: center;
    padding: 2px;
    border-right: thin solid #eee;
}

.item_col input, .edit_col input {
    padding: 0px;
    border: none;
    background: none;
    text-align: right;
}

.item_page {
    display: flex;
    justify-content: center;
    margin: 10px 0px;
}

.item_page div {
    color: #fff;
    background: #000;
    padding: 0px 10px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
}

.item_page div:hover {
    background: #f00;
}

.item_left_sticky {
    position: sticky;
    z-index: 3;
    left: 1px;
}


.list_order {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.list_order:hover {
    color: #000;
}

.list_sort {
    padding-left: 5px;
    text-align: right;
    cursor: pointer
}

.subselect {
    display: none;
    position: absolute;
    top: 27px;
    padding: 5px;
    border: thin solid rgb(204, 204, 204);
    border-radius: 5px;
    width: 200px;
    max-height: 250px;
    background: #fff;
    overflow-y: auto;
    z-index: 11111;
}

#print {
    display: none;
    position: absolute;
    width: 2550px;
    height: 3300px;
    background: #fff;
}

#barcode_label {
    position: absolute;
    top: -9999px;
}

.vjx_image {
    display: flex;
    margin: 2px;
    width: 150px;
    border: thin solid #ccc;
}

.noimage {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2px;
    width: 150px;
    border: thin solid #ccc;
    min-height: 150px;
}

.cell_head, .cell_foot {
    width: 10%;
    margin: 1px;
    background: #ccc;
    padding: 2px 4px;
    text-align: center;
}

.cell_foot {
    text-align: right;
}

.cell {
    width: 10%;
    margin: 1px;
    padding: 2px 4px;
    background: #fff;
    text-align: right;
}

.popup_address_edit {
    position: absolute;
    width: 300px;
    background: #fff;
    z-index: 10001;
    padding: 5px;
    border-radius: 5px;
    top: 120px;
    box-shadow: 3px 6px 6px 11px #00000040;
    font-size: 0.8rem;
}

.popup_credit {
    display: none;
    position: absolute;
    width: 500px;
    background: #bab;
    z-index: 10001;
    padding: 5px;
    border-radius: 5px;
    top: 120px;
    left: calc(50% - 150px);
    box-shadow: 3px 6px 6px 11px #00000040;
}

.popup_shipping {
    display: none;
    position: absolute;
    width: 500px;
    background: #fff;
    z-index: 10001;
    padding: 5px;
    border-radius: 5px;
    top: 120px;
    left: calc(50% - 150px);
    box-shadow: 3px 6px 6px 11px #00000040;
}

.filter_input {
    border: none;
    outline: none;
    padding: 0px 2px;
    width: 100%;
    background: none;
    text-align: left;
}

.grandTotal, .balance {
    color: #0a95ff;
    font-weight: bold;
}

.shipping_box_item {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: #eee;
    margin-top: 1px;
    padding: 2px 5px;
}

.shipping_box_item:hover {
    background: #b6e3d5;
}

.so_invoices, .ship_info {
    position: relative;
    width: 20%;
    background: #fff;
    margin-left: 10px;
    padding: 0 5px 5px 9px;
    border-radius: 5px;
    border: thin solid #ccc;
    overflow-y: auto;
}

.so_invoice_item {
    cursor: pointer;
}

.so_invoice_item:hover {
    color: red;
}

.new_styleno {
    color: #ff5555;
    text-transform: uppercase;
    font-weight: bold;
}

.sub_title {
    position: absolute;
    font-weight: bold;
    font-size: 0.7rem;
    top: 3px;
    left: 10px;
    color: #5975ff;
}

.design_images {
    width: 1260px;
    overflow-x: auto;
    padding: 5px 0px;
}

.design_image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 156px;
    margin: 0 5px;
    border: solid thin #ccc;
    max-height: 230px;
    overflow-y: auto;
}

.desige_file {
    position: relative;
    display: flex;
    width: 25%;
    height:200px;
}

.desige_file embed {
    border: solid thin #ccc;
    background: #fff;
}

.desige_file div {
    position: absolute;
    bottom: 20px;
    right: 12px;
    cursor: pointer;
}

.claim_item_row, .claim_item_footer {
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    border-top: thin solid #fff;
    height: 30px;
    background: #ccc;
}

.claim_item_col {
    display: flex;
    width: 60px;
    justify-content: center;
    align-items: center;
    padding: 2px 5px;
    margin-right: 1px;
    background: #ccc;
    height: 100%;
}

.claim_item_col input {
    background: #fff;
    border: none;
    outline: none;
    width: 100%;
    text-align: right;
    padding: 0px;
}

.claim_item_footer input {
    background: #ccc;
    padding: 0px;
}

.popup_color {
    display: none;
    position: absolute;
    left: 0px;
    bottom: 35px;
    max-height: 250px;
    background: #fff;
    padding: 5px;
    overflow-y: auto;
    z-index: 99;
    box-shadow: 3px 6px 6px 11px #00000040;
}

.popup_color_item {
    display: flex;
    align-items: center;
    margin: 0 0 1px 0px;
    cursor: pointer;
}

.popup_color_item:hover {
    background: #a2edf9;
    color: #000;
}

.linesheet_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
    max-height: 630px;
    overflow-y: auto;
}

.linesheet_card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    break-inside: avoid;
    box-shadow: 0 1px 2px rgba(0,0,0,.03)
}

.linesheet_thumb {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #f6f6f6;
    border-radius: 12px;
}

.linesheet_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.select_pad {
    width: 100vw;
    height: 100vh;
    position: fixed;
    bottom: 0px;
    right: 0px;
    z-index: -1;
}

.shortcut_list {
    cursor: pointer;
    color: #000;
}

.shortcut_ponos {
    display: none;
    max-height: 200px;
    overflow-y: auto;
    border: thin solid #ccc;
    color: #000;
    padding: 5px;
    border-radius: 5px;
}

.shortcut_list:hover{
    color: #258cfb;
}

@media (max-height: 768px) {
    .content {
        max-height: 66vh;
    }
    .sheet_detail {
        max-height: 66vh;
    }
}