﻿/* tag */
.mti-field {
    margin-bottom: 1.25rem;
}

.mti-label {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #344767;
}

.mti-hint {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.mti-shell {
    position: relative;
}

.mti-icon {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: var(--bs-secondary);
    z-index: 3;
}

.mti-box {
    min-height: 52px;
    border: 1px solid #d7dee7;
    border-radius: 0.9rem;
    background: #fff;
    padding: 0.55rem 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.mti-shell.has-icon .mti-box {
    padding-left: 3.55rem;
}

.mti-box:focus-within {
    border-color: var(--bs-primary);
}

.mti-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.mti-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    background: color-mix(in srgb, var(--bs-primary) 10%, white);
    color: var(--bs-primary);
    border-radius: 0.7rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
}

.mti-tag__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mti-tag__remove {
    border: none;
    background: transparent;
    color: var(--bs-primary);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mti-input {
    border: none;
    outline: none;
    background: transparent;
    min-width: 160px;
    flex: 1 1 160px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #344767;
    padding: 0.25rem 0;
}

.mti-input::placeholder {
    color: #9aa4b2;
    font-weight: 400;
}

.mti-shell.has-error .mti-box {
    border-color: #dc3545;
}

[data-bs-theme="dark"] .mti-label {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .mti-hint {
    color: #98a2b3;
}

[data-bs-theme="dark"] .mti-icon {
    background: #151b2b;
    border-color: #344054;
    color: #d0d5dd;
}

[data-bs-theme="dark"] .mti-box {
    background: #1f2637;
    border-color: #344054;
    box-shadow: none;
}

[data-bs-theme="dark"] .mti-input {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .mti-input::placeholder {
    color: #98a2b3;
}

