body
{
    display: flex;
}

/* ----------------------------------------------------- */
/* sidebar                                               */
/* ----------------------------------------------------- */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #ddd;
    z-index: 1050;
    overflow-y: auto;
    transition: transform 300ms ease;
}

.sidebar .toggle-menu
{
    margin-top: 1em;
    margin-bottom: 1em;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
}

.sidebar.open
{
    transform: translateX(0);
}

.sidebar.open .nav-item .nav-link
{
    padding: 1em 1.5em;
    color: #000;
    font-size: 1em;
    border-bottom: 1px solid #eee;
}

.sidebar.open .toggle-menu
{
    margin-left: 0.85em;
    text-align: left;
}

.sidebar.close
{
    width: 4em !important;
    transform: none !important;
}

.sidebar.close .toggle-menu {
    display: block;
}

.sidebar.close .nav-item {
    display: flex;
    justify-content: center;
}

.sidebar.close .nav-item .nav-link {
    text-align: center;
    padding: 1em;
}

.sidebar.close .nav-item .nav-link span {
    display: none;
}

.sidebar.close .nav-item .nav-link
{
    padding: 1em 1.5em;
    color: #000;
    font-size: 1em;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.sidebar.close .nav-item .nav-link span
{
   display: none;
}

.sidebar.close .nav-item.ps-3
{
   display: none;
}

.sidebar .nav-item .nav-link:hover
{
    color: #000;
    background: #ddd;
}

.content
{
    flex-grow: 1;
    overflow: auto;
    padding-left: 4em;
}

/* ----------------------------------------------------- */
/* header                                                */
/* ----------------------------------------------------- */

header
{
    padding: .5em 1em;
    background: #efefef;
}

header .shop-name
{
    color: #666;
    font-size: .8em;
    font-weight: bold;
}

header .user-name
{
    font-size: .8em;
}

header .user-info
{
    background: #efefef;
}

header .user-menu
{
    border: 1px solid #ccc;
    z-index: 100;
}

header .user-menu a
{
    color: #000;
    text-decoration: none;
}

/* ----------------------------------------------------- */
/* main.                                                 */
/* ----------------------------------------------------- */

main
{
    padding: 1em;
}

h1
{
    padding: .5em 1em;
    font-size: 1.4em;
    background: #efefef;
}

.alert-error
{
    color: #f00;
    background-color: #ffefef;
}

/* ----------------------------------------------------- */
/* turning progress                                      */
/* ----------------------------------------------------- */

.progress-container {
    text-align: center;
    margin-bottom: 20px;
}

.progressbar {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.progressbar li {
    flex: 1;
    position: relative;
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    color: #999999;
    line-height: 1.5;
    background: #F5F5F5;
}

.progressbar li:not(:last-child)::before,
.progressbar li:not(:last-child)::after {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 100%;
    content: '';
    border: 21px solid transparent;
    border-left: 20px solid #F5F5F5;
    margin: auto;
}

.progressbar-analyze li {
    flex: 1;
}

.progressbar li.active {
    color: #ffffff;
    background-color: #007bff;
}

.progressbar li.active:not(:last-child)::before,
.progressbar li.active:not(:last-child)::after {
    border-left: 20px solid #007bff;
}

.progressbar li.active:not(:last-child)::before {
    border-left-color: #007bff;
}

.custom-tabs .nav-link {
    position: relative;
    transition: border-color 0.3s ease;
    font-size: 12px !important;
}

.custom-tabs .nav-link {
    margin-right: 1em;
    width: 10em;
    color: #999;
    border: 1px solid #ccc;
    background: #efefef;
}

.custom-tabs .nav-link.active {
    border-top: 4px solid red !important;
    font-weight: bold;
}

.tab-content {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 280px);
    overflow-y: auto;
}


.tab-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: calc(100vh - 300px);
    min-height: 0;
}

.tab-pane {
    width: 100%;
    overflow-x: hidden;
    display: none;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(10px);
}

.tab-pane.active {
    opacity: 1;
    transform: translateY(0);
    display: flex;
}

.flex-grow-1 {
    overflow-y: auto;
}

/* ----------------------------------------------------- */
/* csv upload form                                       */
/* ----------------------------------------------------- */

#error-message {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.error-item {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help; /* ツールチップ用 */
}