body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sidebar {
    width: 220px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    min-height: calc(100vh - 56px);
}

.sidebar .nav-link {
    color: #212529;
    border-radius: 0.375rem;
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}

/* Legacy component height normalization to match sc-* design system */
.form-field {
    margin-bottom: 0;
}

.form-label {
    font-weight: 700;
    color: var(--simrs-on-surface);
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.form-control,
.form-select {
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--simrs-outline-variant);
    background: #ffffff;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--simrs-on-surface);
    outline: none;
    transition: all 0.2s;
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(13,148,136,0.4);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
    background: #ffffff;
}

.form-control::placeholder {
    color: var(--simrs-on-surface-variant);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .material-symbols-outlined {
    position: absolute;
    left: 10px;
    font-size: 18px;
    color: var(--simrs-on-surface-variant);
    pointer-events: none;
}

.input-wrapper .with-icon {
    padding-left: 2.25rem;
}

.input-wrapper.has-error .form-control,
.form-control.input-error {
    border-color: var(--simrs-tertiary);
}

.error-text {
    font-size: 11px;
    color: var(--simrs-tertiary);
    margin-top: 4px;
}

.hint-text {
    font-size: 11px;
    color: var(--simrs-on-surface-variant);
    margin-top: 4px;
}

.text-danger {
    color: var(--simrs-tertiary);
}

/* Currency input styling */
.currency-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.currency-wrapper .currency-prefix {
    height: 2.5rem;
    padding: 0 0.625rem;
    border-radius: 0.75rem 0 0 0.75rem;
    border: 1px solid var(--simrs-outline-variant);
    border-right: none;
    background: var(--simrs-surface-low);
    font-size: 12px;
    font-weight: 600;
    color: var(--simrs-on-surface-variant);
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.currency-wrapper .currency-input {
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem 0.75rem;
    border: 1px solid var(--simrs-outline-variant);
    border-left: none;
    background: #ffffff;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--simrs-on-surface);
    outline: none;
    transition: all 0.2s;
    width: 100%;
    flex: 1;
}

.currency-wrapper .currency-input:focus {
    border-color: rgba(13,148,136,0.4);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
    background: #ffffff;
}

.currency-wrapper .currency-input::placeholder {
    color: var(--simrs-on-surface-variant);
}

.currency-wrapper .currency-input.input-error {
    border-color: var(--simrs-tertiary);
}

/* Multiselect tag styling */
.ts-wrapper .ts-control {
    border-radius: 0.75rem !important;
    border: 1px solid var(--simrs-outline-variant) !important;
    height: 2.5rem !important;
    min-height: 2.5rem !important;
    max-height: none !important;
    padding: 0 0.75rem !important;
    font-size: 12px !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

.ts-wrapper .ts-control .ts-input {
    flex: 1 !important;
    min-width: 80px !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 12px !important;
    color: var(--simrs-on-surface) !important;
}

.ts-wrapper .ts-control .ts-input::placeholder {
    color: var(--simrs-on-surface-variant) !important;
}

.ts-wrapper .ts-control .item {
    background: rgba(13,148,136,0.12) !important;
    color: rgba(13,148,136,0.9) !important;
    border: 1px solid rgba(13,148,136,0.2) !important;
    border-radius: 0.375rem !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2px 6px !important;
    margin: 2px !important;
    max-width: 150px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    line-height: 1.4 !important;
}

.ts-wrapper .ts-control .item .remove {
    color: rgba(13,148,136,0.6) !important;
    margin-left: 4px !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.ts-wrapper .ts-control .item .remove:hover {
    color: var(--simrs-tertiary) !important;
}

.ts-wrapper.has-items .ts-control {
    padding-left: 0.5rem !important;
}

.ts-wrapper.focus .ts-control {
    border-color: rgba(13,148,136,0.4) !important;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1) !important;
}

/* Single select alignment */
.ts-wrapper.single .ts-control {
    display: flex !important;
    align-items: center !important;
}

.ts-wrapper.single .ts-control .ts-input {
    padding: 0 !important;
}

.ts-wrapper.single .ts-control .item {
    margin: 0 !important;
    flex-shrink: 1 !important;
    overflow: hidden !important;
}