.no-wrap {
    white-space: nowrap;
}

.tooltip-header {
    margin-bottom: 2px !important;
    text-align: center; /* Added from Header component props */
    font-size: 1rem; /* Added from Header as='h4' */
    font-weight: bold; /* Added from Header as='h4' */
}

.column {
    padding: 5px !important;
    display: inline-block; /* Basic column layout */
    vertical-align: top; /* Basic column layout */
    /* Add border for divided effect if needed */
    /* border-right: 1px solid #ccc; */
    /* padding-right: 10px; */
    /* padding-left: 10px; */
}
/* .column:last-child { border-right: none; } */


.tooltip-item-icon {
    vertical-align: middle !important;
    display: inline-block; /* For layout */
    width: 1em; /* Approximate size of tiny icon */
    height: 1em; /* Approximate size of tiny icon */
    border-radius: 50%; /* Make it a circle */
    margin-right: 5px; /* Space between icon and text */
}

.item-tooltip {
    width: 180px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block; /* Allow width */
    vertical-align: middle; /* Align with icon */
}

/* Basic List structure */
.tooltip-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tooltip-list-item {
    padding: 2px 0;
}

/* Basic Popup/Hover Structure */
.tooltip-trigger-container {
    position: relative;
    display: inline-block; /* Or block, depending on layout */
}

.tooltip-popup-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1;
    min-width: 200px; /* Adjust as needed */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    white-space: normal; /* Override no-wrap if needed inside */
    /* Position it - below the trigger for example */
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px; /* Small gap */
}

.tooltip-trigger-container:hover .tooltip-popup-content {
    display: block;
}

/* Label Styles */
.tooltip-label {
    display: inline-block;
    padding: 0.5em 0.8em;
    color: white;
    border-radius: 0.28571429rem; /* Semantic UI default */
    font-weight: bold;
}

.tooltip-label h3 {
    margin: 0;
    font-size: 1em; /* Adjust as needed */
}

/* Tenant selector dropdown chevron — rotates via the button's own
   aria-expanded state, which tenant-selector.js already toggles.
   Keyed off a class rather than an id: the icon() macro has no id
   param, and adding one would touch every branch of that shared
   macro for one caller. Selector is #tenant-selector-btn[aria-expanded]
   .tenant-selector-chevron rather than the class alone, because the
   class alone carries no open/closed state — aria-expanded is the one
   place that state already lives (tenant-selector.js sets it for
   accessibility regardless of this rule), so styling reads it instead
   of introducing a second, JS-driven source of truth.

   This is the file base.html and dashboard.html actually link
   (stylesheet('css/dashboard.css', endpoint='dashboard.static') resolves
   through this blueprint's own static_folder) — there is a second,
   unrelated flask_app/static/css/dashboard.css that only auth/profile.html
   loads. A first attempt at this fix put the rule there by mistake, so the
   chevron never rotated despite the rule itself being correct (caught in
   review). Don't add tenant-selector-chevron rules to that other file. */
#tenant-selector-btn[aria-expanded="true"] .tenant-selector-chevron {
    transform: rotate(180deg);
}
