/* sysIndex notification dropdown styles */

.notify-dropdown {
    position: relative;
}

.notify-dropdown .notifyFloat.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: var(--z-system-top);
    margin-top: 0;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.notify-toggle {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    width: 45px;
    height: 46px;
    line-height: 46px !important;
    padding: 0 !important;
    color: #333 !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.notify-toggle:focus,
.notify-dropdown.open > .notify-toggle {
    background: transparent !important;
    color: #333 !important;
    outline: none;
}

.notify-toggle:hover,
.notify-dropdown.open > .notify-toggle:hover {
    background: #e1e9fc !important;
    color: #376aea !important;
}

.notify-toggle .fa-bell {
    margin: 0;
}

.notify-toggle__icon {
    display: block;
    width: 22px;
    height: 22px;
    color: currentColor;
}

.notify-toggle__icon path {
    fill: currentColor;
}

.notify-toggle .label {
    position: absolute;
    top: 3px;
    right: -1px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #f56c6c !important;
    color: #fff;
    box-shadow: 0 1px 2px rgba(245, 108, 108, 0.3);
    font-size: 10px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
}

.notify-toggle .label:empty {
    display: none;
}

.theme-clean #main-navbar .notify-toggle {
    color: rgba(255, 255, 255, 0.85) !important;
}

.theme-clean #main-navbar .notify-toggle:focus,
.theme-clean #main-navbar .notify-dropdown.open > .notify-toggle {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.theme-clean #main-navbar .notify-toggle:hover,
.theme-clean #main-navbar .notify-dropdown.open > .notify-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #7aadff !important;
}

.theme-clean #main-navbar .notify-toggle .label {
    border-color: #2c3444;
}

.sys-alert-dot {
    display: none;
    position: absolute;
    top: 6px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #f56c6c;
    border: 1.5px solid #fff;
    border-radius: 50%;
}

.notifyFloat.dropdown-content,
.notify-flow-badge,
.notify-alert-badge,
.dropdown-oc-oa,
.dropdown-oc-alert,
.sys-alert-foot-badge {
    display: none;
}

.notify-foot {
    padding: 8px 0;
    border-top: 1px solid #eef0f3;
    text-align: center;
}

.notify-foot__link {
    color: #1989fa;
    font-size: 13px;
}

.sys-alert-foot-badge {
    margin-left: 4px;
    color: #f56c6c;
}

.notifyFloat {
    background-color: unset;
    visibility: visible;
    opacity: 1;
    margin-top: 15px !important;
    -webkit-transition: all .3s ease;
    font-size: 14px;
    text-align: left;
    list-style: none;
    text-shadow: none;
    width: 280px;
    padding: 0 !important;
    border: 1px solid #e5e9ec !important;
    margin: 10px 0 0;
}

.notifyFloat li {
    font-size: 14px;
    font-weight: 400;
}

.notifyFloat .dropdown-notifications {
    overflow-y: auto;
    max-height: 260px;
    min-height: 60px;
}

.notifyFloat .dropdown-notifications::-webkit-scrollbar {
    width: 6px !important;
}

.notifyFloat .dropdown-notifications::-webkit-scrollbar-thumb {
    background: #F2F2F2 !important;
}

.notifyFloat .dropdown-notifications::-webkit-scrollbar-track {
    background-color: #ffffff !important;
}

.notifyFloat .dropdown-notifications .dropdown-oc li:last-child a,
.notifyFloat .dropdown-notifications .dropdown-oc-flow li:last-child a,
.notifyFloat .dropdown-notifications .dropdown-oc-oa li:last-child a,
.notifyFloat .dropdown-notifications .dropdown-oc-alert li:last-child a {
    border-bottom: none !important;
}

.notifyFloat .dropdown-notifications .dropdown-oc li a,
.notifyFloat .dropdown-notifications .dropdown-oc-flow li a,
.notifyFloat .dropdown-notifications .dropdown-oc-oa li a,
.notifyFloat .dropdown-notifications .dropdown-oc-alert li a {
    border-bottom: 1px solid #e5e9ec;
    position: relative;
}

.notifyFloat .dropdown-notifications .dropdown-oc li a div,
.notifyFloat .dropdown-notifications .dropdown-oc-flow li a div,
.notifyFloat .dropdown-notifications .dropdown-oc-oa li a div,
.notifyFloat .dropdown-notifications .dropdown-oc-alert li a div {
    display: flex;
    flex-direction: column;
}

.notifyFloat .dropdown-notifications .dropdown-oc li a:hover,
.notifyFloat .dropdown-notifications .dropdown-oc-flow li a:hover,
.notifyFloat .dropdown-notifications .dropdown-oc-oa li a:hover,
.notifyFloat .dropdown-notifications .dropdown-oc-alert li a:hover {
    background: #f7f7f7 !important;
}

.notifyFloat li a {
    padding: 12px !important;
    color: #5f5f5f;
    font-size: 14px;
    display: block;
}

/* .slimScrollDiv 滚动样式已迁移到 .dropdown-notifications，以下保留备用 */
/*.notifyFloat .slimScrollDiv {
    height: auto !important;
    overflow-y: scroll !important;
    max-height: 260px;
    min-height: 100px;
}

.notifyFloat .slimScrollDiv::-webkit-scrollbar {
    width: 6px !important;
}

.notifyFloat .slimScrollDiv::-webkit-scrollbar-thumb {
    background: #F2F2F2 !important;
}

.notifyFloat .slimScrollDiv::-webkit-scrollbar-track {
    background-color: #ffffff !important;
}*/

.notifyFloat .drop-title {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom: 1px solid #e5e9ec !important;
    background: #fff;
    color: #6a6a6a;
    align-items: center;
    margin: 0;
    justify-content: space-between;
    display: flex !important;
    height: 45px;
    padding: 0 15px;
}

.notifyFloat .drop-title-link {
    height: 18px;
    width: 18px;
    float: right;
    display: inline !important;
    padding: 0 !important;
    overflow: hidden;
    vertical-align: text-top;
    line-height: 18px !important;
    text-align: center;
    border-radius: 100%;
}

.theme-default .notifyFloat li.drop-title a.drop-title-link:hover {
    background-color: #f7f7f7 !important;
}

/* 流程待办 / 消息通知 Tab 标签栏 */
.notifyFloat .notify-tab-bar {
    display: flex !important;
    border-bottom: 1px solid #e8e8e8;
    padding: 0;
    margin: 0;
}

.notifyFloat .notify-tab-bar .notify-tab {
    flex: 1;
    text-align: center;
    padding: 9px 0 !important;
    cursor: pointer;
    font-size: 13px;
    color: #999 !important;
    border-bottom: 2px solid transparent;
    line-height: 1.5 !important;
    border-radius: 0 !important;
}

.notifyFloat .notify-tab-bar .notify-tab.active {
    color: #376aea !important;
    border-bottom-color: #376aea;
    font-weight: 500;
}

.notifyFloat .notify-tab-bar .notify-tab:hover {
    background: #f7f7f7 !important;
    color: #376aea !important;
}

.notifyFloat .notify-tab-bar .notify-tab-more {
    font-size: 10px;
    color: #376aea;
    margin-left: 4px;
    cursor: pointer;
    opacity: 0.7;
    vertical-align: middle;
}
.notifyFloat .notify-tab-bar .notify-tab-more:hover {
    opacity: 1;
    text-decoration: underline;
}

.notifyFloat .notify-flow-badge {
    background: #f8ac59;
    color: #fff;
    border-radius: 8px;
    padding: 0 5px;
    font-size: 10px;
    margin-left: 3px;
    line-height: 16px;
    vertical-align: middle;
}

/* 到期提醒 Tab 角标：照搬 notify-flow-badge 结构，配色换红系（预警语义，区别于流程待办的橙色） */
.notifyFloat .notify-alert-badge {
    background: #f56c6c;
    color: #fff;
    border-radius: 8px;
    padding: 0 5px;
    font-size: 10px;
    margin-left: 3px;
    line-height: 16px;
    vertical-align: middle;
}

.notifyFloat:before {
    right: 16px;
    left: auto;
    position: absolute;
    display: inline-block !important;
    content: '';
    top: -8px;
    box-sizing: border-box;
    visibility: visible;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #e5e9ec;
    border-left: 8px solid transparent;
}

.notifyFloat:after {
    right: 17px;
    left: auto;
    position: absolute;
    display: inline-block !important;
    content: '';
    top: -7px;
    box-sizing: border-box;
    visibility: visible;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #ffffff;
    border-left: 7px solid transparent;
}

.notifyFloat .notification-info {
    padding: 0 15px;
    vertical-align: middle;
    font-weight: 400;
    font-family: Ubuntu, sans-serif;
    line-height: 25px;
    letter-spacing: 0.5px;
}

.notifyFloat .notification-date {
    color: #aaa !important;
    font-size: 11px !important;
    line-height: 20px !important;
    margin-left: 15px;
}

/* 通知浮层：对齐右上角设计稿的轻量卡片样式 */
.notify-dropdown .notifyFloat.dropdown-menu {
    right: 0;
    left: auto;
    width: 310px;
    margin-top: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.notifyFloat .notify-tab-bar {
    gap: 4px;
    padding: 6px;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
}

.notifyFloat .notify-tab-bar .notify-tab {
    height: 28px;
    padding: 0 8px !important;
    border: 0;
    border-radius: 6px !important;
    color: #606b7b !important;
    font-size: 12px;
    line-height: 28px !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.notifyFloat .notify-tab-bar .notify-tab.active {
    background: #eef4ff !important;
    color: #376aea !important;
    font-weight: 600;
}

.notifyFloat .notify-tab-bar .notify-tab:hover {
    background: #f6f8fb !important;
    color: #376aea !important;
}

.notifyFloat .dropdown-notifications {
    max-height: 300px;
    min-height: 56px;
    background: #fff;
}

.notifyFloat .dropdown-notifications .dropdown-oc li a,
.notifyFloat .dropdown-notifications .dropdown-oc-flow li a,
.notifyFloat .dropdown-notifications .dropdown-oc-oa li a,
.notifyFloat .dropdown-notifications .dropdown-oc-alert li a {
    display: flex !important;
    align-items: flex-start;
    gap: 0;
    padding: 10px 12px !important;
    border-bottom: 1px solid #f6f7f9;
    color: #1f2733;
    background: #fff;
    transition: background 0.15s ease;
}

.notifyFloat .dropdown-notifications .dropdown-oc li a:hover,
.notifyFloat .dropdown-notifications .dropdown-oc-flow li a:hover,
.notifyFloat .dropdown-notifications .dropdown-oc-oa li a:hover,
.notifyFloat .dropdown-notifications .dropdown-oc-alert li a:hover {
    background: #f8fafc !important;
}

.notifyFloat .dropdown-notifications .dropdown-oc li a div,
.notifyFloat .dropdown-notifications .dropdown-oc-flow li a div,
.notifyFloat .dropdown-notifications .dropdown-oc-oa li a div,
.notifyFloat .dropdown-notifications .dropdown-oc-alert li a div {
    min-width: 0;
    flex: 1;
}

.notifyFloat .notification-info {
    display: block;
    padding: 0;
    color: #1f2733 !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notifyFloat .notification-date {
    display: block;
    margin: 4px 0 0;
    color: #98a2b3 !important;
    font-size: 11px !important;
    line-height: 16px !important;
}

.notifyFloat .link-block {
    padding: 16px 12px !important;
    color: #98a2b3;
    font-size: 12px;
}

.notifyFloat .link-block a {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 0 !important;
    color: #376aea;
    font-size: 12px;
}

.notifyFloat .notify-foot {
    min-height: 42px;
    padding: 10px 12px;
    border-top: 0;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
    text-align: left;
}

.notifyFloat .notify-foot__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    min-height: 0 !important;
    height: 22px !important;
    padding: 0 !important;
    color: #1f2733 !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 22px !important;
}

.notifyFloat .notify-foot__link:hover {
    background: transparent !important;
    color: #376aea !important;
    text-decoration: none;
}

.notifyFloat .notify-foot__title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.notifyFloat .notify-foot__count {
    color: #f56c6c;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.notifyFloat .notify-foot__count:empty {
    display: none;
}

.notifyFloat .notify-foot__arrow {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    color: currentColor;
}

.notifyFloat .notify-foot__arrow path {
    fill: currentColor;
}

.notifyFloat:before {
    right: 14px;
    border-bottom-color: #e5e7eb;
}

.notifyFloat:after {
    right: 15px;
}
