:host {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.toolbar {
    display: flex;
    align-items: center;
    position: relative;
    gap: 0.75rem;
    height: 40px;
    padding-right: 0.5rem;
    border-radius: 8px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.toolbar-btn {
    padding: 0.375rem 0.75rem;
    background: transparent;
    color: #4f46e5;
    border: 1px solid #4f46e5;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.toolbar-btn:hover {
    background: #eef2ff;
}

.toolbar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.back-btn {
    margin-left: 0.5rem;
}

.toolbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    font-size: 1.25rem;
    color: #333;
}

.spacer {
    flex: 1;
}

.error {
    font-size: 0.875rem;
    color: #dc2626;
    margin: 0 0 1rem;
}



.detail-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 480px;
    overflow: hidden;
}

.detail-card-header {
    display: flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.detail-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.detail-card-body {
    padding: 1.5rem;
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
}

.field-value {
    font-size: 0.9375rem;
    color: #333;
}

.field-input {
    padding: 0.375rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9375rem;
    outline: none;
}

.field-input:focus {
    border-color: #4f46e5;
}

.card-footer {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    border-top: 1px solid #eee;
}

.footer-btn {
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-dark-green {
    color: #15803d;
    border-color: #15803d;
}

.btn-dark-green:hover {
    background: #f0fdf4;
}

.success-label {
    font-size: 0.8125rem;
    color: #16a34a;
    opacity: 1;
    transition: opacity 1s ease;
}

.success-label.fade-out {
    opacity: 0;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.actions .toolbar-btn {
    min-width: 6rem;
}

.save-btn {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

.save-btn:hover {
    background: #4338ca;
}