﻿:root
{
    --title-height: 26px;
    --data-line-height: 18px;
}

.mrning, .after
{
    width: 100%;
    display: block;
    overflow: auto;
    white-space: nowrap;
}

.mrning
{
    background-color: #E6E6FF;
}

.after
{
    background-color: #FFE6E6;
}

.ttl, .ttl2, .controlSpace
{
    width: 100%;
    display: flex;
    color: #ffffff;
    font-weight: bold;
    height: var(--title-height);
    align-items: center;
}

.ttl
{
    background-color: #171E33;
}

.ttl2
{
    background-color: #12AB3E;
}

.ttl .cap, .ttl2 .cap
{
    flex-grow: 1;
    white-space: nowrap;
    text-indent: 5px;
}

.itemNote
{
    height: 40px;
    white-space: normal;
    overflow: auto;
    background-color: rgb(255,255,255);
    width: 100%;
}

/* Buttons */
.titleButton
{
    flex-shrink: 0;
    width: var(--title-height);
    height: var(--title-height);
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 18px 18px;
    margin-right: 2px;
    transition-property: background-color, background-size;
    transition-duration: 100ms;
}

.titleButton:hover
{
    background-color: #8080FF;
    background-size: var(--title-height) var(--title-height);
}

.titleButton.delete
{
    background-image: url('../../images/delete.svg');
}

.titleButton.editor
{
    background-image: url('../../images/edit.svg');
}

.titleButton.print
{
    background-image: url('../../images/print.svg');
}

.titleButton.add
{
    background-image: url('../../images/plus_green.svg');
}

.titleButton.trf
{
    background-image: url('../../images/transfer.svg');
}

.titleButton.hgh
{
    background-image: url('../../images/highlight.svg');
}


.tripSpace
{
    display: flex;
    flex-direction: column;
    background-color: rgb(192,192,192);
}

.tripLine, .controlSpace
{
    display: flex;
    margin-top: 1px;
    width: 100%;
}

.tripLine
{
    line-height: var(--data-line-height);
}

.tripLine .tripCap
{
    width: 100px;
    flex-shrink: 0;
    background-color: rgb(255,255,255);
    text-align: right;
    text-decoration: underline;
    padding-right: 5px;
}

.tripLine .tripVal
{
    margin-left: 1px;
    flex-grow: 1;
    flex-basis: 10px;
    background-color: rgb(255,255,255);
    text-align: center;
    font-weight: bold;
}

.controlSpace
{
    background-color: rgb(255,255,255);
    justify-content: flex-end;
}

.clientList
{
    display: flex;
    flex-direction: column;
    background-color: rgb(192,192,192);
    width: 100%;
}

.clientHeader
{
    width: 100%;
    display: flex;
    font-weight: bold;
    margin-top: 1px;
}

.clientHeader div
{
    background-color: rgb(255,255,255);
}

.clNumber
{
    width: var(--data-line-height);
    text-indent: 2px;
    color: rgb(128,128,128);
    flex-shrink: 0;
}

.clientName
{
    width: 110px;
    text-indent: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.clientName:hover
{
    background-color: #8080FF;
}

.clientFill
{
    width: 101px;
    flex-shrink: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-indent: 2px;
    margin-left: 1px;
}

.commentTooltip
{
    display: none;
    position: fixed;
    min-width: 250px;
    max-width: 400px;
    padding: 1px 2px;
    background-color: #ffffcc;
    border: 1px solid #999;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    white-space: normal;
    word-wrap: break-word;
    z-index: 9999;
    font-size: 12px;
    line-height: 1.3;
    pointer-events: none;
}

.clientFull
{
    flex-grow: 1;
}


.clientHotel
{
    width: 35px;
    flex-shrink: 0;
    text-indent: 3px;
    margin-left: 1px;
}

.clientDetail
{
    width: 119px;
    flex-shrink: 0;
    text-indent: 2px;
    margin-left: 1px;
}

.clientRemark
{
    width: 135px;
    flex-shrink: 0;
    text-indent: 2px;
    margin-left: 1px;
}

.clientFirstLast
{
    width: 25px;
    flex-shrink: 0;
    text-align: center;
    margin-left: 1px;
}

.clientBool
{
    width: 25px;
    flex-shrink: 0;
    text-align: center;
    margin-left: 1px;
}

.clientLine, .clientLineAlt, .clientLineHigh1, .clientLineHigh2, .clientLineHigh3, .clientLineHigh4, .clientLineHigh5, .clientLineHigh6, .clientLineMax, .clientLineGrp1, .clientLineGrp2, .clientLineGrp3, .clientLineGrp4, .clientLineGrp5
{
    display: flex;
    margin-top: 1px;
    line-height: var(--data-line-height);
    user-select: none;
}

.clientLine div
{
    background-color: rgb(255,255,255);
}

.clientLineAlt div
{
    background-color: #e0e0ff;
}

/* Highlight colors (neon) */
.clientLineHigh1 div
{
    background-color: #39FF14;
}

.clientLineHigh2 div
{
    background-color: #FF3131;
}

.clientLineHigh3 div
{
    background-color: #04D9FF;
}

.clientLineHigh4 div
{
    background-color: #FF6700;
}

.clientLineHigh5 div
{
    background-color: #BF00FF;
    color: #FFFFFF;
}

.clientLineHigh6 div
{
    background-color: #FFFF00;
}

/* Group colors (pastel) */
.clientLineGrp1 div
{
    background-color: #C8E6C9;
}

.clientLineGrp2 div
{
    background-color: #FFCCBC;
}

.clientLineGrp3 div
{
    background-color: #B3E5FC;
}

.clientLineGrp4 div
{
    background-color: #FFF9C4;
}

.clientLineGrp5 div
{
    background-color: #E1BEE7;
}

.clientLineMax div
{
    background-color: #FFFF88;
}

.lineSpc .line, .lineSpc .lineAlt
{
    display: flex;
}

.lineSpc .line div
{
    background-color: rgb(255,255,255);
}

.lineSpc .lineAlt div
{
    background-color: #e0e0ff;
}

/* Color selector for highlight popup */
.highlightColorSelector
{
    display: flex;
    padding: 8px;
    gap: 6px;
    align-items: center;
    background-color: #171E33;
}

.highlightColorSelector .colorLabel
{
    color: #fff;
    font-weight: bold;
    margin-right: 4px;
}

.highlightColorSwatch
{
    width: 28px;
    height: 28px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
}

.highlightColorSwatch:hover
{
    border-color: #fff;
}

.highlightColorSwatch.selected
{
    border-color: #fff;
    box-shadow: 0 0 0 2px #4040FF;
}
