.hdr-visible {
    display: block;
}

.hdr-clickable {
    cursor: pointer;
}

.hdr-login {
    display: none;
    border-bottom: none;
}

.js-hidden {
    display: none;
}

.upd-switch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.upd-no-spacing {
    margin: 0;
    padding: 0;
}

.upd-back-btn {
    padding: 4px 10px;
    font-size: 11px;
}


.padzero {
    padding: 0px;
}

/* ========== New drop down code starts ============ */
/* 1. THE WRAPPER & GHOST HOVER FIX */
.upd-wrapper {
    position: relative !important;
    display: inline-block !important;
    width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1000 !important;
}

.upd-wrapper ul {
    border-top: none !important;
}

.upd-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    margin: 0 !important;
    gap: 8px;
    padding: 8px 16px !important;
    background: transparent;
    border-radius: 6px;
    color: #596999 !important;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.upd-trigger:hover {
    background: #f8fafc;
}

/* 2. THE SINGLE DROPDOWN MENU BOX */
.upd-dropdown-menu {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: absolute;
    top: 100%;
    right: -14px;
    width: 320px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 48px -12px rgba(89, 105, 153, 0.25), 0 0 0 1px rgba(89, 105, 153, 0.08);
    padding: 10px 20px 20px !important;
    margin-top: -2px;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none !important;
    /* Kills ghost hover */
}

.upd-dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto !important;
}

/* Smooth fade animation for the internal view swap */
.upd-view-animate {
    animation: viewSwapFade 0.2s ease-out forwards;
}

@keyframes viewSwapFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Top Company Name Label */
.upd-top-company-name {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    padding-bottom: 0px;
    padding-left: 4px;
    text-align: left;
    /* border-bottom: 1px solid rgba(89, 105, 153, 0.15); */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.upd-top-compname {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.upd-top-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.upd-top-headborder {
    border-top: 1px solid rgba(89, 105, 153, 0.15);
    height: 2px;
    padding: 0;
    margin: 0 0 6px 0;
}

/* Active Account Card (Main View) */
.upd-active-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 14px 16px !important;
    background: #f8fafc;
    border: 1px solid rgba(89, 105, 153, 0.12);
    border-radius: 14px;
}

.upd-brand-logo {
    height: 40px;
    width: auto;
    max-width: 160px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.upd-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

/* Buttons */
.upd-toggle-btn {
    background: transparent;
    color: #596999;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.upd-toggle-btn:hover {
    background: rgba(89, 105, 153, 0.1);
    border-color: rgba(89, 105, 153, 0.2);
}

/* Section Titles */
.upd-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #596999;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 16px 0 12px 0;
    padding-left: 4px;
    display: flex;
    align-items: center;
}

.upd-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(89, 105, 153, 0.10);
    margin-left: 12px;
}

/* Connect Action Links */
.upd-action-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upd-action-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px;
    text-decoration: none !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

.upd-action-link:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.upd-action-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}

.upd-action-link:hover .upd-action-icon {
    opacity: 1;
    color: #596999;
}

/* Switch Account List */
.upd-switch-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upd-switch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px !important;
    border: 1px solid rgba(89, 105, 153, 0.1);
    border-radius: 12px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.upd-switch-item:hover {
    background: #f8fafc;
    border-color: rgba(89, 105, 153, 0.3);
    box-shadow: 0 4px 12px -2px rgba(89, 105, 153, 0.1);
    transform: translateY(-2px);
}

.upd-switch-item:active {
    background: #f1f5f9;
    transform: scale(0.98);
    box-shadow: none;
    transition: all 0.1s;
}

/* FIX: Forces the missing text to ALWAYS appear */
.upd-switch-name-display {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #596999 !important;
    letter-spacing: -0.2px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Radio Button States */
.upd-radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #f8fafc;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.upd-switch-item:hover .upd-radio-circle {
    border-color: #596999;
    background: #ffffff;
}

.upd-switch-item:active .upd-radio-circle {
    background: rgba(37, 99, 235, 0.15) !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2) !important;
    transform: scale(0.9);
}

.upd-radio-circle.selected {
    border-color: #2563eb !important;
    background-color: #2563eb !important;
    box-shadow: inset 0 0 0 4px #ffffff, 0 0 0 5px rgba(37, 99, 235, 0.25) !important;
    transform: scale(1.1);
}

/* ========== New drop down code ends ============ */


/* ========== tabel and chart switch css starts ============ */
.dm_tablechart_switch {
    float: right;
    margin: 0 0 9px 0;
  }

  .dm_tablechart_switch .toggle-container {
    display: inline-flex !important;
    background-color: #e5e5e5 !important;
    border-radius: 4px !important;
    padding: 0px !important;
    gap: 0px !important;
    margin: 0 0 0 10px !important;
  }

  .dm_tablechart_switch .toggle-button {
    display: flex !important;
    align-items: center !important;
    gap: 0px !important;
    padding: 3px 6px !important;
    margin: 0 !important;
    border: none !important;
    background-color: transparent !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #666;
    width: auto !important;
    height: auto !important;
  }

  /*.dm_tablechart_switch .switch_leftbut {
		border-radius: 4px 0 0 4px !important;
	}
	.dm_tablechart_switch .switch_rightbut {
		border-radius: 0 4px 4px 0 !important;
	}*/
  .dm_tablechart_switch .toggle-button svg {
    width: 22px !important;
    height: 22px !important;
    fill: #666;
    transition: fill 0.3s ease;
    margin: 0px !important;
  }

  .dm_tablechart_switch .toggle-button.active {
    background-color: #596999 !important;
    color: white;
  }

  .dm_tablechart_switch .toggle-button.active svg {
    fill: white;
  }

  .dm_tablechart_switch .toggle-button:hover:first-child:not(.active) {
    background-color: #d8d8d8 !important;
    border-radius: 4px 0 0 4px !important;
  }

  .dm_tablechart_switch .toggle-button:hover:last-child:not(.active) {
    background-color: #d8d8d8 !important;
    border-radius: 0 4px 4px 0 !important;
  }

  .dm_tablechart_switch .toggle-button:first-child:not(.active) {
    border-right: 1px solid #fff !important;
  }

  .dm_tablechart_switch .toggle-button:last-child:not(.active) {
    border-left: 1px solid #fff !important;
  }

  .dm_tablechart_switch .toggle-button {
    position: relative !important;
  }

  .dm_tablechart_switch .toggle-button::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 10px);
    left: 1%;
    transform: translateX(-50%) translateY(-5px);
    background-color: #333;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 10;
  }

  /* Tooltip Arrow */ 
  .dm_tablechart_switch .toggle-button::before {
    content: '';
    position: absolute;
    top: calc(100% + 6px);
    left: 1%;
    transform: translateX(-50%) translateY(-5px);
    border: 5px solid transparent;
    border-bottom-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 10;
  }

  /* Show Tooltip on Hover */
  .dm_tablechart_switch .toggle-button:hover::after,
  .dm_tablechart_switch .toggle-button:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .dm_switchtabchart_onlyinsta {
    display: none;
  }

  .dm_tablechart_switch .toggle-button.dm_btn_hidden {
    display: none !important;
  }

/* ========== tabel and chart switch css ends ============ */

/* ========== head_lib file style starts ============ */
.hideElement {
        display: none !important;
    }

    .showElement {
        display: block !important;
    }

    .clearFix {
        clear: both;
    }
/* ========== head_lib file style ends ============ */