/*
Theme Name: nakashima
Theme URI: http://dev-smp-order.nakashima.co.jp/
Author: nakashima
Author URI: http://dev-smp-order.nakashima.co.jp/
Description: http://dev-smp-order.nakashima.co.jp/
Version: 1.0
License: None
License URI: None
Tags: None
*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&family=Roboto+Condensed&display=swap');

@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: sans-serif;
}

:root {
    --main-color: #000;
    --font-size: 14px;
}

a {
    text-decoration: none;
}

body {
    font-family: sans-serif;
}

.font-title {
    font-size: 24px;
}


.font-japanese {
    font-family: 'Noto Sans JP', 'MS Mincho', 'MS Gothic', sans-serif;
}

.logo {
    background-image: url('./asset/We_Go_Beyond_背景透過.png');
}

.wait-cursor * {
    cursor: wait !important;
}

.modal {
    pointer-events: none;
}

/*-------------------------------------
                header
-------------------------------------*/
.container-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: var(--main-color);
}

.logo-header {
    width: 200px;
    border-radius: 5px;
}

#logoutButton {
    color: #fff;
    cursor: pointer;

}

#nameUserLogin {
    color: #fff;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
    height: max-content;
}

/*-------------------------------------
                Footer
-------------------------------------*/
.container-footer {
    text-align: center;
    background-color: var(--main-color);
    /* padding: 10px 3px; */
    padding: 20px;

}

.container-footer>p {
    color: #fff;
    padding: 0;
}

/*--------------------------------------------
               Content
----------------------------------------------*/

/* .container-customer {
    width: 50%;
    margin: 3rem auto;
    min-height: 660px;
} */

.custom-content {
    min-height: 90dvh;
    width: 100%;
}

/*tu*/
.container-customer {
    width: 70%;
    margin: 3rem auto;
}

.table-select p {
    margin-left: 34rem;
}

/*-------------------------------------------------------------
               Layout Content - Header Content
--------------------------------------------------------------*/
.header-content {
    margin-top: 2rem;
    text-align: center;
}

.site-title {
    position: relative;
    display: inline-block;
    font-size: 24px;
}

.site-title-menu {
    position: relative;
    display: inline-block;
    font-size: 32px;
}

.site-title span {
    font-weight: bold;
}

.site-title span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -25px;
    width: 11px;
    height: 25px;
    background-color: #CB000B;
    -webkit-transform: translate(0, -50%) skew(-25deg);
    transform: translate(0, -50%) skew(-25deg);
}

.site-title span::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -25px;
    width: 11px;
    height: 25px;
    background-color: #CB000B;
    -webkit-transform: translate(0, -50%) skew(-25deg);
    transform: translate(0, -50%) skew(-25deg);
}

.header-content p {
    margin: 0 auto;
    margin-bottom: 0.2rem;
}

.header-content .page-name {
    text-align: center;
    width: 100%;
}

/*------------------------------------------------------
               Common - Table Custom
------------------------------------------------------*/

table input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    box-sizing: border-box;
    background-color: transparent;
}

.table-responsive {

    width: 100%;
    max-height: 400px;
    overflow-x: auto;
    overflow-y: auto;
}

.container-table {
    width: 100%;
    /* margin: 20px auto; */
}

table {
    border-collapse: collapse;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    table-layout: auto;
    border: 1px solid #000;
}

th {
    background-color: #9fcef6;
    border: 1px solid #000;
    white-space: nowrap;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

.table-responsive th {
    position: sticky;
    top: 0;
    z-index: 10;
}

tr {
    min-height: 40px;
}

td {
    min-width: 100px;
    max-width: 300px;
    padding: 10px;
    /* text-align: left;  */
    border: 1px dashed #000;
    vertical-align: middle;
    height: auto;
    word-wrap: break-word;
    white-space: normal;
}

.gray-row {
    background-color: #e6ffe6;
}

/*---------------------------------------------------
               Common - Input custom
-----------------------------------------------------*/
.form-input {
    margin-bottom: 0.5rem;
}

.bg-custom {
    pointer-events: none;
    background-color: #DFDFDF;
}

.no-arrows::-webkit-outer-spin-button,
.no-arrows::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/*----------------------------------------------------
               Common - Button custom
------------------------------------------------------*/
.btn-custom-back {
    background-color: #F0911D;
    color: #fff;
    border: none;
    padding: 10px 40px;
    border-radius: 25px;
}

.btn-custom-submit {
    background-color: #2F98E9;
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 25px;
}

.btn-custom-del {
    background-color: #f30000;
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 25px;
}

/*----------------------------------------------------
               Select
------------------------------------------------------*/
.selected {
    background-color: #dac6c6;
    cursor: pointer;
}

/* .form-select {
    width: 220px; 
} */
.text-left-input {
    text-align: left;
}

/*----------------------------------------------------
               Common - Message custom
------------------------------------------------------*/

.text-center {
    text-align: center;
}

.message-error {
    width: 100%;
    background-color: #f30000;
    color: white;
    line-height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 50px;
}

.message-warning {
    width: 100%;
    background-color: #fed400;
    color: white;
    line-height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 50px;

}

.close {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.hidden {
    display: none;
}

.disabled {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table-select td {
    background-color: #DFDFDF;
}

.row-deleted {
    background-color: #f3a7a2;
    color: #fff;

}

.table-select td:nth-child(3) {
    background-color: transparent;
}

.w-15 {
    width: 15%;
}

/*----------------------------------------------------
               Select
------------------------------------------------------*/

input:focus {
    color: rgb(0, 0, 0);
}

.row-new {
    background-color: #aec5c9;
    transition: background-color 0.3s ease;
}

.ui-datepicker {
    z-index: 9999 !important;
}

.editable-select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
}

.editable-select:not(:disabled):not([readonly]) {
    background-color: #fff;
    opacity: 1;
}

.editable-select:hover {
    border-color: #aaa;
}

.editable-select:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 3px rgba(74, 144, 226, 0.3);
}

/* Ensure cells in the table do not interfere with clicking */
.edit-table td {
    position: relative;
    padding: 5px;
}

/* Ensure combobox is always on top */
.edit-table .editable-select {
    position: relative;
    z-index: auto;
}

/* Add to style.css */
.filter-row td {
    padding: 5px;
    background-color: #f5f5f5;
}

.filter-input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-input:focus {
    border-color: #2F98E9;
    outline: none;
}

.error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.invalid-field {
    background-color: #ffebee !important;
    border-color: #f44336 !important;
}

th {
    cursor: pointer;
    position: relative;
    user-select: none;
}

th::after {
    content: "▼";
    /* Default arrow */
    position: absolute;
    right: 10px;
    font-size: 12px;
    display: none;
    /* Hide by default */
}

th.sort-asc::after {
    content: "▲";
    /* Ascending arrow */
    display: inline;
}

th.sort-desc::after {
    content: "▼";
    /* Descending arrow */
    display: inline;
}

.cancelled-row {
    background-color: #f0f0f0 !important;
    color: #666;
}

.cancelled-row input:disabled,
.cancelled-row select:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

/* .view-table {
    pointer-events: none;
    opacity: 1; 
} */

.view-table {
    opacity: 1;
    /* Make sure the table is fully visible */
}

.view-table tbody {
    pointer-events: none;
    /* Disable interactions in the tbody */
}

.view-table th {
    pointer-events: auto;
    /* Enable interactions in the header (sortable columns) */
}

.sort-icon {
    font-size: 12px;
    margin-left: 5px;
    color: #1e30f5;
    display: inline-block;
    vertical-align: middle;
}