/* Платежи в банк — самодостаточные стили (как upd-pdf-xml) */

.bp-shell {
    max-width: 48rem;
}

.bp-shell .hidden {
    display: none !important;
}

.bp-page-head {
    margin-bottom: 2rem;
}

.bp-back {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
}

.bp-back a {
    color: #059669;
    text-decoration: none;
}

.bp-back a:hover {
    text-decoration: underline;
}

.bp-page-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
}

.bp-page-lead {
    margin: 0;
    font-size: 1.0625rem;
    color: #64748b;
    line-height: 1.55;
}

.bp-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .bp-panel {
        padding: 2rem;
    }
}

.bp-dropzone {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.bp-dropzone:hover,
.bp-dropzone.is-drag-over {
    border-color: #34d3a8;
    background: #f0fdf9;
}

.bp-dropzone__hint {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #64748b;
}

.bp-dropzone__sub {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.bp-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 220px;
    color: #047857;
    font-weight: 500;
}

.bp-processing__text {
    margin: 0;
    font-size: 1.0625rem;
    text-align: center;
}

.bp-spinner {
    width: 2rem;
    height: 2rem;
    animation: bp-spin 0.8s linear infinite;
}

.bp-spinner__track {
    opacity: 0.25;
}

.bp-spinner__head {
    opacity: 0.85;
}

@keyframes bp-spin {
    to { transform: rotate(360deg); }
}

.bp-notice {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.bp-notice.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.bp-notice.is-success {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.bp-workspace {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bp-workspace__section + .bp-workspace__section {
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.bp-section-title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.bp-section-hint {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.bp-section-hint a {
    color: #059669;
}

.bp-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.375rem;
}

.bp-combobox-field {
    position: relative;
    min-width: 0;
}

.bp-combobox {
    position: relative;
}

.bp-combobox__control {
    position: relative;
    display: flex;
    align-items: stretch;
}

.bp-combobox__input {
    flex: 1;
    min-width: 0;
    padding-right: 2.25rem;
}

.bp-combobox__toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
}

.bp-combobox__toggle::before {
    content: '▾';
}

.bp-combobox.is-open .bp-combobox__toggle::before {
    content: '▴';
}

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

.bp-combobox__menu {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    margin-top: 0.35rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.bp-combobox__list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    max-height: 14rem;
    overflow-y: auto;
}

.bp-combobox__option {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.875rem;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    font-size: 0.875rem;
    color: #0f172a;
    cursor: pointer;
}

.bp-combobox__option:hover,
.bp-combobox__option.is-active {
    background: #ecfdf5;
    color: #047857;
}

.bp-combobox__empty {
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.bp-combobox__add {
    display: block;
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 0;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #059669;
    cursor: pointer;
}

.bp-combobox__add:hover {
    background: #ecfdf5;
}

.bp-input,
.bp-select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    border: 1px solid #cbd5e1;
    border-radius: 0.625rem;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.bp-input:hover,
.bp-select:hover {
    border-color: #94a3b8;
}

.bp-input:focus,
.bp-select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.bp-field-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.bp-field-row .bp-input {
    flex: 1;
    min-width: 0;
}

.bp-form-grid {
    display: grid;
    gap: 0.875rem;
    grid-template-columns: 1fr;
}

.bp-form-grid--spaced {
    margin-top: 0.75rem;
}

@media (min-width: 640px) {
    .bp-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.bp-form-grid__full {
    grid-column: 1 / -1;
}

.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 0.625rem;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.bp-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bp-btn--primary {
    background: #059669;
    color: #fff;
    border-color: #059669;
}

.bp-btn--primary:hover:not(:disabled) {
    background: #047857;
    border-color: #047857;
}

.bp-btn--secondary {
    background: #fff;
    color: #334155;
    border-color: #cbd5e1;
}

.bp-btn--secondary:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #94a3b8;
}

.bp-btn--large {
    min-width: 200px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: 1rem;
}

.bp-btn--download {
    min-width: 220px;
    padding: 1rem 2rem;
    border: none;
    border-radius: 1rem;
    background: linear-gradient(135deg, #059669 0%, #10b896 100%);
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.25);
}

.bp-btn--download:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.32);
}

.bp-result-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bp-result-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.125rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    background: #f8fafc;
}

.bp-result-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.bp-result-item__info {
    flex: 1 1 200px;
    min-width: 0;
}

.bp-result-item__source {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
    word-break: break-word;
}

.bp-result-item__name {
    margin: 0.125rem 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.bp-result-item__meta {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.bp-result-item__amount {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.bp-result-item__fields {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.bp-field--amount {
    max-width: 12rem;
}

.bp-field--purpose textarea.bp-input {
    min-height: 3.25rem;
    resize: vertical;
    line-height: 1.45;
}

.bp-result-item__vat {
    margin: -0.25rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.bp-result-item__warn {
    flex: 1 1 100%;
    margin: 0;
    font-size: 0.8125rem;
    color: #b45309;
}

.bp-result-item__remove {
    padding: 0.375rem 0.75rem;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    background: #fff;
    color: #dc2626;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
}

.bp-result-item__remove:hover {
    background: #fef2f2;
}

.bp-result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.bp-inline-add {
    margin-top: 0.75rem;
}

.bp-link-summary {
    font-size: 0.875rem;
    color: #059669;
    cursor: pointer;
}

.cabinet-main .bp-shell {
    max-width: none;
}

.cabinet-main .bp-page-head {
    display: none;
}
