/**
 * 自定义下拉菜单样式
 */

/* 极简选择器样式 */
.simple-select-wrapper {
    position: relative;
    margin-bottom: 0;
}

.form-select-clean {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23495057' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    width: 100%;
    height: 38px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.15s ease;
}

.form-select-clean:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-select-clean option {
    padding: 8px;
    font-size: 14px;
}

/* 折叠式货币余额样式 */
.currency-dropdown {
    position: relative;
    min-width: 120px;
    flex-grow: 1;
}

.currency-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    height: 38px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.currency-main:hover {
    background-color: #f8f9fa;
    border-color: #b1bbc4;
}

.currency-values {
    display: flex;
    align-items: center;
    text-align: right;
}

.currency-toggle-icon {
    font-size: 12px;
    color: #6c757d;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.currency-main.open .currency-toggle-icon {
    transform: rotate(180deg);
}

.currency-dropdown-content {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    width: 100%;
    min-width: 120px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.currency-item {
    background-color: rgba(250, 252, 254, 0.8);
    padding: 8px 14px;
    transition: all 0.2s ease;
}

.currency-item:hover {
    background-color: rgba(240, 245, 253, 1);
}

.currency-item .d-flex {
    justify-content: space-between;
}

.currency-symbol {
    font-weight: 500;
    font-size: 14px;
    color: #6c757d;
    margin-right: 4px;
}

.currency-value {
    font-weight: 500;
    font-size: 14px;
    text-align: right;
}

/* 账户表格样式 */
.account-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 12px;
}

.account-table th {
    background-color: #f8f9fa;
    color: #6c757d;
    font-weight: 600;
    font-size: 11px;
    padding: 6px 4px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.account-table td {
    padding: 6px 4px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.account-table td:first-child {
    font-weight: 500;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-table td.amount-cell {
    position: relative;
    text-align: right;
    padding-left: 16px;
}

.account-table .currency-symbol {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.account-table .amount-value {
    font-weight: 500;
}

/* 统一部门筛选器和货币余额区域的样式 */
.select-currency-row {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    width: 100%;
}

.select-currency-row > div {
    flex: 1 1 50% !important;
    min-width: 0;
    max-width: 50%;
}

.select-currency-row .form-select-sm,
.select-currency-row .currency-main {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: none;
    transition: all 0.15s ease;
    width: 100%;
}

.select-currency-row .form-select-sm:hover,
.select-currency-row .currency-main:hover {
    border-color: #b1bbc4;
}

.select-currency-row .form-select-sm:focus,
.select-currency-row .currency-main:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* 确保按钮组水平显示 */
.btn-group {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.btn-group button {
    margin-right: 4px !important;
}

/* 确保管理页面按钮容器一致性 */
.action-buttons-container {
    margin-bottom: 1rem !important;
    padding: 0.5rem 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

/* 确保图标正确显示 */
.btn > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
} 