@import url(framework.css);

.banner {
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 0 5px;
    background-color: white;
}

.banner .user-info {
    margin-left: auto;
    display: flex;
    gap: 1em;
}

.menu {
    display: flex;
    justify-content: left;
    align-items: center;
    box-sizing: border-box;
    background-color: white;
    padding: 0.25rem;
}

.menu .menu-item {
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    font-size: 0.875rem;
    position: relative;
}

.menu .menu-item .menu-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2;

    .menu-submenu-item {
        padding: 0.25rem 0.5rem;
        /* border-radius: 0.5rem; */
        border: 1px solid #ccc;
        font-size: 0.875rem;
        background-color: white;
        white-space: nowrap;
    }

    .menu-submenu-item:hover {
        background-color: #eee;
    }

    .menu-submenu-item.active {
        background-color: #ddd;
    }
}

.menu .menu-item:hover .menu-submenu {
    display: block;
}

.menu .menu-item:hover {
    background-color: #eee;
}

.menu .menu-item.active {
    background-color: #ddd;
}

.menu .menu-item:last-child {
    margin-right: 0;
}

.page {
    max-width: 1240px;
    min-width: 1240px;
    margin: 0 auto;
}

.narrow .page {
    width: auto;
    min-width: auto;
    margin: 0 0.5rem;
}

.narrow {
    font-size: medium;
}

.home .welcome {
    text-align: center;
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0.5rem auto;
}

.group {
    border-radius: 0.5rem;
    background-color: white;
    padding: 0.5rem;
    margin: 0.5rem auto;
}

.group-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.group-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.input-item {
    display: flex;
    align-items: center;
    width: 33.33%;
    box-sizing: border-box;
    padding: 0.25em;
    position: relative;
    gap: 0.25em;
}

.input-item.not-needed {
    display: none;
}

input:not([type=radio]):not([type=checkbox]):not([type=file]) {
    font-family: Consolas;
    padding: 0.125em 0.25em;
    box-sizing: content-box;
    font-size: 0.875rem;
    line-height: 1.5em;
    min-width: 1ch;
}

select {
    font-family: Consolas;
    padding: 0.125em;
    box-sizing: content-box;
    font-size: 0.875rem;
    min-height: 1.5em;
}

button {
    font-size: 0.875rem;
    white-space: pre;
}

textarea {
    font-family: Consolas;
    padding: 0.25em;
    box-sizing: content-box;
    resize: none;
    field-sizing: content;
    font-size: 0.875rem;
    line-height: 1.5em;
}

.input-item>[name]:not([type=checkbox]):not([type=radio]):last-child {
    flex: 1;
}

.input-label {
    color: #333333;
    box-sizing: border-box;
    min-width: 5.5em;
    padding: 0 0 1px 0;
    font-size: 0.875rem;
}

.input-label::after {
    content: ':';
}

.input-action {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.invalid::before {
    content: '*';
}

.select {

    .select-condition {
        display: flex;
        flex-wrap: wrap;
    }

    .select-action {
        display: flex;
        justify-content: space-around;
        margin: 5px;
    }

    .select-list {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        flex-grow: 1;
    }

    .select-result {
        max-height: 400px;
        overflow-y: auto;
        overscroll-behavior: contain;

        .item {
            display: flex;
            padding: 2px 4px;
            justify-content: space-between;
            border: 1px solid #ccc;
            align-items: center;

            .name {
                font-size: 0.875rem;
                flex: 1;
            }

            .tags {
                display: flex;
                gap: 0.25em;
                justify-content: flex-end;
                align-items: center;
            }
        }
    }
}

.tags-select>.input-item {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 5px;
}

.tags-select .select-list label {
    width: 20%;
}

.narrow .tags-select .select-list label {
    width: 50%;
}

.narrow .tags-select .input-item {
    flex-wrap: wrap;
}

.narrow .tags-select .input-item .input-label {
    width: 100%;
}

.tag {
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 0.875rem;
    padding: 0.125em 0.25em;
    border: 1px solid #333;
    white-space: nowrap;
}

.lens-info {
    display: flex;
    flex-wrap: wrap;

    .input-item {
        width: 25%;
    }
}

.frame-info {
    display: flex;
    flex-wrap: wrap;


    .input-item {
        width: 25%;
    }
}

.deliver-info {
    display: flex;
    flex-wrap: wrap;


    .input-item {
        width: 25%;
    }
}

.results table {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    border-spacing: 0;
}

.results th,
.results td {
    font-weight: normal;
    border-bottom: 1px solid #cccccc;
    box-sizing: border-box;
    padding: 0.2em 0;
}

.results {
    margin: 0.2em auto;
}

.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25em;
}

.pager {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5em;
}

.pager .prev {
    width: 1em;
    height: 1em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url(images/icons-svg/arrow-l-black.svg);
    border: none;
}

.pager .next {
    width: 1em;
    height: 1em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url(images/icons-svg/arrow-r-black.svg);
    border: none;
}

.btn-group {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

.not-display {
    display: none;
}


.delivers table {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    border-spacing: 0;
}

.delivers th,
.delivers td {
    font-weight: normal;
    border-bottom: 1px solid #cccccc;
    box-sizing: border-box;
    padding: 0.25em 0;
}

.input-table {
    width: 100%;
    table-layout: fixed;
    border-spacing: 0;

    td {
        position: relative;
        box-sizing: border-box;
    }

    input:not([type=radio]):not([type=checkbox]):not([type=file]),
    select {
        width: 100%;
        box-sizing: border-box;
    }
}

.half-width {
    width: 50%;
    box-sizing: border-box;
}

.quarter-width {
    width: 25%;
    box-sizing: border-box;
}

.third-width {
    width: 33.33%;
    box-sizing: border-box;
}

.full-width {
    width: 100%;
    box-sizing: border-box;
}

.flex-center {
    display: flex;
    align-items: center;
}

.flex-center-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.flex-space-around {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.flex-space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-right {
    display: flex;
    justify-content: right;
    align-items: center;
}

label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.lens-form {

    display: flex;
    flex-wrap: wrap;

    .lens-form-action {
        width: 100%;
        display: flex;
        justify-content: space-around;
    }

}

.frame-form {

    display: flex;
    flex-wrap: wrap;

    .frame-form-action {
        width: 100%;
        display: flex;
        justify-content: space-around;
    }

}

.tag-form {

    display: flex;
    flex-wrap: wrap;

    .tag-form-action {
        width: 100%;
        display: flex;
        justify-content: space-around;
    }

}

.vendor-form {

    display: flex;
    flex-wrap: wrap;

    .vendor-form-action {
        width: 100%;
        display: flex;
        justify-content: space-around;
    }

}

[inert] ::placeholder {
    opacity: 0;
}

:disabled::placeholder {
    opacity: 0;
}

.exam-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.exam-item-actions {
    display: none;
}

.exam-actions {
    button {
        margin-left: 5px;
    }
}

.exam-list {
    margin-top: 10px;

    .exam-item {
        margin-top: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .exam-item-actions {
        display: flex;
        justify-content: flex-end;

        button {
            margin-left: 5px;
        }
    }
}

.only-print {
    display: none;
}

@media print {
    @page {
        margin: 0;
    }

    .only-print {
        display: block;
    }

    .no-print {
        display: none;
    }

    .place-order {
        padding: 10mm;
    }
}

input[type=radio] {
    appearance: none;

    border-radius: 50%;
    width: 1em;
    height: 1em;

    border: 2px solid #999;
    transition: 0.2s all linear;
    margin-right: 5px;
}

input[type=radio]:checked {
    border: 6px solid black;
}

input:not([type=radio]):not([type=checkbox]):not([type=file]),
textarea,
select {
    background-color: initial;
    color: initial;
    border: 1px solid #333;
}

.sys-name {
    margin: 0.5rem 0;
}

.capture-image {

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    .capture-video {
        width: 48%;
    }

    .capture-canvas {
        width: 48%;
    }

    .capture-actions {
        width: 100%;
    }
}

.wx-welcome {
    text-align: center;
    margin: 1em;
    font-size: 1.5rem;
}

.wx-home-actions {
    text-align: center;
    margin: 1rem;

    >div {
        margin: 0.5rem;
    }

    button {
        font-size: 1.5rem;
        padding: 0.25em 0.5em;
    }
}

.wx-scan-frame {
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
}

.wx-frame-title {
    text-align: center;
    align-items: center;
    padding: 0.5em;
}

.wx-frame-info {
    justify-content: center;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    padding: 0 0.5em;
}

.wx-frame-actions {
    text-align: center;
    align-items: center;
    padding: 0.5em;
    display: flex;
    justify-content: center;
    box-sizing: border-box;

    button {
        font-size: 1.2rem;
        padding: 0.25em 0.5em;
    }
}

.wx-frame-label {
    flex: 0 0 4em;
    display: flex;
    align-items: center;
    padding: 0.125em 0;
}

.wx-frame-field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0.125em 0;
}

.narrow .input-item {
    width: 100%;
}

.lens-limits>div {
    display: flex;
    text-align: center;
    font-size: 0.875rem;
    gap: 0.5em;
}

.lens-limits>div>div {
    flex: 1;
}

.lens-limits>div>div>input:not([type=radio]):not([type=checkbox]):not([type=file]),
.lens-limits>div>div>select {
    width: 100%;
    box-sizing: border-box;
}

.box-radius {
    box-sizing: border-box;
    padding: 0.5em;
    border: 1px solid #666;
    border-radius: 0.5em;
}

.float-right {
    float: right;
}

div[data-type=money]::before,
span[data-type=money]::before {
    content: '￥';
}

.dock-right {
    position: absolute;
    right: 0.5em;
    top: 0;
    bottom: 0.2em;
    display: flex;
    align-items: center;
    font-size: 0.875em;
    background-color: transparent;
    z-index: 1;
}

.flex-grow {
    flex: 1;
}

.box-radius-white {
    box-sizing: border-box;
    border-radius: 0.5rem;
    background-color: white;
    padding: 0.5rem;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.column-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5em;
}

.column-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5em;
}

table.border-table {
    border-spacing: 0;

    td,
    th {
        border: 1px solid #333;
    }
}

.sticky {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: inherit;
}

.range-2 {
    display: grid;
    flex: 1;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5em;
    align-items: center;
}