/* Native inputs on the static login page, styled to match MudBlazor. */
.login-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    color: var(--mud-palette-text-secondary);
    font-family: var(--mud-typography-default-family);
    font-size: var(--mud-typography-body2-size);
}

.login-field input {
    font: inherit;
    font-size: 1rem;
    padding: 10px 12px;
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: var(--mud-default-borderradius);
    background: transparent;
    color: var(--mud-palette-text-primary);
}

.login-field input:focus {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: -1px;
}

/* Canvas editor: a picture with boxes on it, positioned in percent of the picture. */
.editor-stage {
    position: relative;
    width: 100%;
    line-height: 0;
    user-select: none;
    touch-action: none;
    background: #000;
}

.editor-stage > img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.editor-box {
    position: absolute;
    box-sizing: border-box;
    border: 2px solid var(--mud-palette-warning);
    background: rgba(255, 200, 0, 0.08);
    cursor: move;
}

.editor-box.photo { border-color: var(--mud-palette-info); background: rgba(0, 150, 255, 0.06); }

.editor-box.point {
    width: auto;
    height: auto;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font: 12px/1.4 var(--mud-typography-default-family);
    white-space: nowrap;
}

.editor-box [data-resize] {
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: currentColor;
    color: var(--mud-palette-warning);
    cursor: nwse-resize;
}

.editor-box.photo [data-resize] { color: var(--mud-palette-info); cursor: ew-resize; }

/* Cost page. Colours for the services: fixed order, checked for colour vision against MudBlazor's light and dark surface. */
.cost-s1 { --cost: #2a78d6; }
.cost-s2 { --cost: #eb6834; }
.cost-s3 { --cost: #1baf7a; }
.cost-s4 { --cost: #eda100; }
.cost-s5 { --cost: #e87ba4; }
@media (prefers-color-scheme: dark) {
    .cost-s1 { --cost: #3987e5; }
    .cost-s2 { --cost: #d95926; }
    .cost-s3 { --cost: #199e70; }
    .cost-s4 { --cost: #c98500; }
    .cost-s5 { --cost: #d55181; }
}
.cost-number { text-align: right !important; font-variant-numeric: tabular-nums; }
.cost-total td { font-weight: 600; }
.cost-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; background: var(--cost); }
.cost-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0 0 12px; padding: 0; font-size: .8125rem; color: var(--mud-palette-text-secondary); }
.cost-plot { position: relative; height: 220px; margin-left: 48px; }
.cost-plot--small { height: 120px; }
.cost-grid { position: absolute; inset: 0; pointer-events: none; }
.cost-gridline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--mud-palette-lines-default); }
.cost-gridline span { position: absolute; right: 100%; top: -9px; padding-right: 8px; font-size: .75rem; color: var(--mud-palette-text-secondary); white-space: nowrap; }
.cost-columns { position: absolute; inset: 0; display: flex; }
.cost-hit { flex: 1 1 0; min-width: 0; height: 100%; display: flex !important; align-items: flex-end; justify-content: center; }
.cost-hit:hover { background: var(--mud-palette-action-default-hover); }
.cost-column { width: 100%; max-width: 24px; display: flex; flex-direction: column-reverse; gap: 2px; border-radius: 4px 4px 0 0; overflow: hidden; }
.cost-columns--days .cost-column { background: var(--cost); max-width: 12px; margin: 0 1px; }
.cost-column--partial { opacity: .4; }
.cost-segment { flex: 1 1 0; min-height: 1px; background: var(--cost); }
.cost-labels { display: flex; margin: 4px 0 0 48px; font-size: .75rem; color: var(--mud-palette-text-secondary); }
.cost-labels span { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; }
.cost-labels--days span { overflow: visible; }
.cost-tip { text-align: left; }
