.el-menu {
  border-right: none !important;
  background-color: transparent !important;
}

.el-sub-menu__title,
.el-menu-item {
  height: 50px !important;
  line-height: 50px !important;
  border-radius: 12px;
  margin-bottom: 6px;
  font-weight: 600 !important;
  font-size: 14px !important;
}

.el-menu-item,
.el-sub-menu__title {
  color: #334155 !important;
}

.el-menu-item:hover,
.el-sub-menu__title:hover {
  background-color: #F1F5F9 !important;
  color: #0F172A !important;
}

.dark .el-menu-item,
.dark .el-sub-menu__title {
  color: #94a3b8 !important;
}

.dark .el-menu-item:hover,
.dark .el-sub-menu__title:hover {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

.el-menu > .el-menu-item.is-active {
  background-color: #3B82F6 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.el-menu > .el-sub-menu.is-active > .el-sub-menu__title {
  background-color: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

.el-menu--inline .el-menu-item {
  padding-left: 52px !important;
  height: 44px !important;
  line-height: 44px !important;
  font-size: 14px !important;
  color: #64748B !important;
  font-weight: 500 !important;
}

.dark .el-menu--inline .el-menu-item {
  color: #64748b !important;
}

.dark .el-menu--inline .el-menu-item:hover {
  color: #ffffff !important;
  background: transparent !important;
}

.minixpay-shell-menu .el-sub-menu__title > span,
.minixpay-shell-menu .el-menu-item > span {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.minixpay-shell-menu .el-sub-menu__title,
.minixpay-shell-menu .el-menu-item {
  padding-right: 14px !important;
}

.header-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.dark .header-btn {
  background: #0f172a;
  border-color: #1e293b;
  color: #94a3b8;
}

.header-btn:hover {
  background-color: #F8FAFC;
  color: #0F172A;
  border-color: #CBD5E1;
}

.dark .header-btn:hover {
  background-color: #1e293b;
  color: #f8fafc;
  border-color: #334155;
}

.el-dropdown-menu__item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
  gap: 10px;
  padding: 10px 20px;
}

.el-dropdown-menu__item.text-center {
  justify-content: center;
}

.el-dropdown-menu__item img {
  flex-shrink: 0;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Sidebar Popup Styling */
.el-menu--popup {
    min-width: 200px !important;
    border-radius: 12px !important;
    padding: 6px !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.dark .el-menu--popup {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3) !important;
}

.el-menu--popup .el-menu-item {
    height: 40px !important;
    line-height: 40px !important;
    margin-bottom: 2px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    background-color: transparent !important;
}

.el-menu--popup .el-menu-item:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.el-menu--popup .el-menu-item.is-active {
    background-color: #eff6ff !important;
    color: #3b82f6 !important;
    font-weight: 600 !important;
}

.dark .el-menu--popup .el-menu-item {
    color: #94a3b8 !important;
}

.dark .el-menu--popup .el-menu-item:hover {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

.dark .el-menu--popup .el-menu-item.is-active {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}

/* Unified Tooltip/Popper Style to match Menu Popup */
.el-popper,
.el-popper.is-dark,
.el-popper.is-light {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    color: #334155 !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
}

.el-popper__arrow::before {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    /* Ensure arrow border matches */
}

.dark .el-popper,
.dark .el-popper.is-dark,
.dark .el-popper.is-light {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #94a3b8 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3) !important;
}

.dark .el-popper__arrow::before {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

.hk-holiday-trigger {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.hk-holiday-trigger::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 999px;
    pointer-events: none;
}

.hk-holiday-trigger > * {
    position: relative;
    z-index: 1;
}

.hk-holiday-trigger.is-working {
    color: #059669;
    border-color: rgba(16, 185, 129, 0.22);
}

.hk-holiday-trigger.is-working::after {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.96));
}

.hk-holiday-trigger.is-off {
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.24);
}

.hk-holiday-trigger.is-off::after {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.96));
}

.dark .hk-holiday-trigger {
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.28);
}

.dark .hk-holiday-trigger.is-working {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.24);
}

.dark .hk-holiday-trigger.is-working::after {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.78), rgba(15, 23, 42, 0.95));
}

.dark .hk-holiday-trigger.is-off {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.24);
}

.dark .hk-holiday-trigger.is-off::after {
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.72), rgba(15, 23, 42, 0.95));
}

.hk-holiday-trigger__dot {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.72);
}

.dark .hk-holiday-trigger__dot {
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.72);
}

.hk-holiday-popper,
.hk-holiday-popper.el-popper {
    width: 360px !important;
    max-width: calc(100vw - 24px) !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 20px !important;
}

.hk-holiday-popper.el-popper .el-popper__arrow::before {
    border-color: #e2e8f0 !important;
}

.dark .hk-holiday-popper.el-popper .el-popper__arrow::before {
    border-color: #1e293b !important;
}

.hk-holiday-content {
    box-sizing: border-box;
    width: 100%;
    padding: 14px;
}

.hk-holiday-summary {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 45%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dark .hk-holiday-summary {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 45%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
}

.hk-holiday-summary__row,
.hk-holiday-summary__meta-row,
.hk-holiday-list__item,
.hk-holiday-list__header,
.hk-holiday-list__name-row {
    display: flex;
}

.hk-holiday-summary__row {
    align-items: flex-start;
    gap: 12px;
}

.hk-holiday-summary__body,
.hk-holiday-list__body {
    min-width: 0;
    flex: 1;
}

.hk-holiday-summary__eyebrow,
.hk-holiday-summary__meta-label {
    white-space: nowrap;
}

.hk-holiday-summary__headline {
    align-items: center;
}

.hk-holiday-summary__date {
    line-height: 1.5;
    word-break: keep-all;
}

.hk-holiday-summary__reason,
.hk-holiday-list__name {
    line-height: 1.6;
    word-break: break-word;
}

.hk-holiday-summary__status,
.hk-holiday-summary__meta-badge,
.hk-holiday-list__year {
    white-space: nowrap;
}

.hk-holiday-summary__meta-row {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hk-holiday-summary__meta-value {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}

.hk-holiday-summary__meta-sub,
.hk-holiday-list__subtitle,
.hk-holiday-list__note {
    line-height: 1.5;
}

.hk-holiday-list__subtitle {
    color: #94a3b8;
}

.hk-holiday-list {
    max-height: 228px;
    overflow-y: auto;
    padding-right: 2px;
}

.hk-holiday-list__header {
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hk-holiday-list__item {
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(226, 232, 240, 0.45);
}

.hk-holiday-list__item.is-upcoming {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hk-holiday-list__item.is-past {
    opacity: 0.78;
}

.hk-holiday-list__date {
    width: 76px;
    flex-shrink: 0;
    white-space: nowrap;
}

.hk-holiday-list__name-row {
    align-items: center;
    gap: 8px;
}

.hk-holiday-list__today {
    white-space: nowrap;
}

.dark .hk-holiday-list__item {
    border-color: rgba(51, 65, 85, 0.35);
}

.dark .hk-holiday-list__item.is-past {
    opacity: 0.72;
}

.hk-holiday-list::-webkit-scrollbar {
    width: 6px;
}

.hk-holiday-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 999px;
}

.hk-holiday-list::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 480px) {
    .hk-holiday-content {
        padding: 14px;
    }

    .hk-holiday-summary__meta-row {
        align-items: flex-start;
    }
}
