﻿/*仿照DNV软件做的统计图，相关式样*/
/*顶部标题栏*/
.top-header-row
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
    border-bottom: 1px solid #dee2e6;
    height: 65px;
}
.top-header-left
{
    font-size: 22px;
    font-weight: 500;
}
.filter-tags-bar
{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
}
.stat-range-label
{
    font-size: 13px;
    color: #6c757d;
    white-space: nowrap;
}

.filter-tag-wrapper
{
    background: #f0f2f5;
    border-radius: 6px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
}
.filter-tag
{
    background: #0077B6;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
    max-width: 220px;
}
.tag-category
{
    font-weight: bold;
    text-align: left;
}
.tag-content
{
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-remove
{
    color: #fff;
    background: #990000;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    margin-top: -5px;
    margin-right: -5px;
}

/*左侧查询项*/
.sidebar
{
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 15px 30px; /* 上下保持15px，左右置为0 */
    margin-left: 15px; /* 抵消 Bootstrap col-md-2 的15px padding */
    margin-right: -15px;
}

.form-control
{
    width: 180px;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    color: #555;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: left;
    position: relative;
}

/*多选框---放置到用户控件中*/
.ddlp_lnk
{
    position: relative;
    padding-right: 10px;
    text-align: left;
}
.ddlp_lnk_caret
{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 4px solid #333;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    width: 0;
    height: 0;
    pointer-events: none;
}
.dropdown-menu
{
    width: 99% !important;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    border-top: none !important;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #FFFFFF;
    border-radius: 4px;
    z-index: 999;
    margin-top: 0px !important;
}

.position-checkbox-list input[type="checkbox"]
{
    margin-right: 8px !important;
    vertical-align: middle;
}

.position-checkbox-list label
{
    cursor: pointer;
    margin-bottom: 5px;
}
a.form-control
{
    text-decoration: none !important;
    color: #555 !important;
}
/*图形部分*/
.card-header_DNV
{
    background-color: #0f3057;
    color: white;
    padding: 0 20px;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.badge-currency
{
    display: inline-block;
    padding: 5px 12px;
    background-color: #0F3057;
    color: #FFFFFF;
    font-size: 13px;
    border-radius: 4px;
}
.metric-card
{
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.chart-container
{
    position: relative;
    height: 200px;
    width: 100%;
}
/*统计方式切换按钮*/
.btn-stats
{
    background-color: #0F3057 !important;
    border: 1px solid #0A2463;
    color: #FFFFFF !important;
    font-size: 14px;
    padding: 6px 16px;
}

.btn-stats.active, .btn-stats:active, .btn-stats:focus
{
    background-color: #0077B6 !important;
    border-color: #0077B6;
    color: #FFFFFF !important;
    box-shadow: none;
    outline: none;
}

.btn-stats:hover:not(.active)
{
    background-color: #1A4070;
}

.btn-stats:first-child
{
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.btn-stats:last-child
{
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
/*日期相关控件式样*/
.date-input-group
{
    display: flex !important;
    align-items: center !important; /* 垂直居中 */
    gap: 38px !important; /* 输入框和按钮之间的间距，可调整 */
    width: 100% !important;
}
/* 日期输入框，完全对齐协作方下拉框输入样式 */
.date-textbox
{
    width: 100% !important;
    height: 34px !important; /* 关键：给输入框右侧留足 30px 空间，容纳按钮，不会被遮挡 */
    padding: 6px 30px 6px 12px !important;
    font-size: 16px !important;
    color: #555 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}
.ImageCalendar_Bs_Chart
{
    position: absolute !important;
    right: 5px !important; /* 距离右边框 5px */
    top: 50% !important; /* 垂直居中 */
    transform: translateY(-50%) !important;
    margin: 3px 0 0 10px !important;
    padding: 0 !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    text-align: center !important;
    vertical-align: middle !important;
    z-index: 10 !important;
    cursor: pointer !important;
}
/*日历样式*/
.MyCalendar_Chart .ajax__calendar_container
{
    border: 1px solid #646464;
    background-color: lemonchiffon;
    color: red;
    width: 210px;
    padding: 5px 5px 5px 0px;
}

.MyCalendar_Chart .ajax__calendar_container .ajax__calendar_body
{
    line-height: 10px;
    height: 180px;
}

.MyCalendar_Chart .ajax__calendar_container .ajax__calendar_body .ajax__calendar_days .ajax__calendar_day, .MyCalendar_Chart .ajax__calendar_container .ajax__calendar_body .ajax__calendar_days .ajax__calendar_dayname
{
    width: 22px;
    line-height: 22px;
    height: 22px;
}

.MyCalendar_Chart .ajax__calendar_other .ajax__calendar_day, .MyCalendar_Chart .ajax__calendar_other .ajax__calendar_year
{
    color: black;
}
.MyCalendar_Chart .ajax__calendar_hover .ajax__calendar_day, .MyCalendar_Chart .ajax__calendar_hover .ajax__calendar_month, .MyCalendar_Chart .ajax__calendar_hover .ajax__calendar_year
{
    color: black;
}
.MyCalendar_Chart .ajax__calendar_active .ajax__calendar_day, .MyCalendar_Chart .ajax__calendar_active .ajax__calendar_month, .MyCalendar_Chart .ajax__calendar_active .ajax__calendar_year
{
    color: black;
    font-weight: bold;
}
