/* 
 * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
 * See LICENSE in the project root for license information.
 */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #1f2328;
    background: #f4f6f8;
}

* {
    box-sizing: border-box;
}

.sideload {
    padding: 24px;
    text-align: center;
}

/* Required field asterisk in labels — red for visibility */
.label-required {
    color: #c00;
}

.create-hint {
    font-size: 12px;
    color: #5a6773;
    margin: 0 0 8px;
}

.page {
    min-height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page__title h1 {
    margin: 0;
    font-size: 20px;
}

.page__title p {
    margin: 6px 0 0;
    font-size: 12px;
    color: #5a6773;
}

.card {
    background: #ffffff;
    border-radius: 4px;
    padding: 18px;
    /*box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);*/
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card__header h2 {
    margin: 0;
    font-size: 16px;
}

.pill {
    background: #eef2f6;
    color: #516070;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field--row {
    flex-direction: row;
    gap: 12px;
}

.field--row > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 12px;
    color: #5a6773;
}

select,
input {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
}

.combo {
    position: relative;
}

.combo input {
    width: 100%;
    padding-right: 32px;
    background: #fff;
}

.combo::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #5a6773;
    border-bottom: 2px solid #5a6773;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.combo__list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 10;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.combo__list.is-open {
    display: block;
}

.combo__option {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
}

.combo__option:hover,
.combo__option.is-active {
    background: #eef2f6;
}

.combo select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

input[readonly] {
    background: #f2f5f8;
    color: #556170;
}

.input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.input-group select,
.input-group input {
    border: none;
    border-radius: 0;
}

.input-group__left {
    min-width: 60px;
    background: #f8fafc;
}

.input-group__middle {
    display: flex;
    align-items: center;
    flex: 1;
}

.input-group__middle input {
    flex: 1;
    margin-left: -20px;
}

.input-group__country {
    font-size: 12px;
    color: #5a6773;
    background: transparent;
    padding: 0;
    min-width: 72px;
}

.input-group--phone select {
    background-color: #f8fafc;
}

.btn {
    border: none;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn--primary {
    background: #4e3228;
    color: #fff;
    /*box-shadow: 0 10px 18px rgba(15, 76, 129, 0.2);*/
}

.btn--ghost {
    background: #e5ecf3;
    color: #1f2d3d;
}

.btn--icon {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: #eef2f6;
    color: #516070;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}

.btn--icon:hover {
    background: #e1e7ee;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stack--tight {
    gap: 6px;
}

.stack--muted {
    opacity: 0.6;
}

.status {
    margin: 0;
    font-size: 12px;
    color: #5a6773;
    min-height: 16px;
}

.status--success {
    color: #0f6b43;
}

.status--error {
    color: #b42318;
}

@media (max-width: 520px) {
    .page__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .field--row {
        flex-direction: column;
    }
}
