/* SaaS Bar — fixed top bar injected by saas_remote_agent */
/* Flat CSS (no SCSS nesting) for direct browser loading */
/* Firefox-compatible: uses explicit widths, avoids gap in critical flex items */

#saas-bar-container {
    display: none;
    width: 100%;
}

.o_saas_bar {
    display: -webkit-flex !important;
    display: -moz-flex !important;
    display: flex !important;
    -webkit-align-items: center;
    -moz-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    justify-content: space-between;
    height: 40px;
    padding: 0 16px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 9999;
    box-sizing: border-box;
}

.o_saas_bar_left {
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    align-items: center;
    flex-shrink: 0;
    margin-right: 8px;
}

.o_saas_bar_icon {
    font-size: 18px;
    margin-right: 6px;
}

.o_saas_bar_title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.o_saas_bar_center {
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    align-items: center;
    flex: 1;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 12px;
}

.o_saas_bar_label {
    opacity: 0.75;
    font-size: 12px;
    white-space: nowrap;
    margin-right: 4px;
}

.o_saas_bar_value {
    font-weight: 500;
    white-space: nowrap;
    margin-right: 8px;
}

.o_saas_bar_separator {
    opacity: 0.4;
    margin: 0 4px;
}

.o_saas_bar_right {
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    align-items: center;
    flex-shrink: 0;
}

.o_saas_bar_button {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}

.o_saas_bar_button:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none !important;
    color: #fff !important;
}

/* Adjust Odoo's own top padding when the bar is visible */
body.o_saas_bar_visible .o_main {
    padding-top: 40px !important;
}
