@charset "UTF-8";
/* CSS Document */

/* ════════════════════════════════════════════════════════════════════
   DESIGN REFRESH (2026-06) — additive layer.
   Self-hosted Inter webfont (CSP font-src 'self') + design tokens.
   Single source of truth: change a token here, re-skin everywhere.
   ════════════════════════════════════════════════════════════════════ */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-700.woff2') format('woff2');
}

:root {
    /* Brand (kept on the existing #2d6a9f so logos + charts stay consistent) */
    --brand: #2d6a9f;
    --brand-600: #255b88;
    --brand-700: #1d4a70;
    --brand-ink: #13314a;
    --brand-soft: #eef4f9;
    --accent: #e8a13c;

    /* Status */
    --ok: #3f8d46;      --ok-bg: #e7f3e8;     --ok-line: #cce4cf;
    --warn: #b3801f;    --warn-bg: #fbf2dc;   --warn-line: #efddb3;
    --danger: #c0473f;  --danger-bg: #f8e6e4; --danger-line: #eecac6;
    --info: #2a7390;    --info-bg: #e4f1f6;   --info-line: #c3e0ea;

    /* Neutrals */
    --ink: #243747;
    --muted: #69788a;
    --line: #e3e8ee;
    --bg-soft: #f5f8fb;
    --card: #ffffff;

    --radius: 10px;
    --radius-sm: 6px;
    --shadow-1: 0 1px 3px rgba(16,42,67,.08), 0 1px 2px rgba(16,42,67,.05);
    --shadow-2: 0 8px 28px rgba(16,42,67,.14);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Apply the webfont everywhere without touching templates */
body {
    font-family: var(--font);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, .panel-title, .navbar, .btn {
    font-family: var(--font);
}
/* Numerals line up in dense currency columns under time pressure */
.table td, .table th,
td.currency, th.currency,
.tabular-nums, .money {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
}
/* ════════════════════════════════════════════════════════════════════ */

/* BASE RULES - start */
html{
    height: 100%;
    /* Re-anchor the root: bundled bootstrap.min.css sets html{font-size:10px},
       which would shrink the rem-based type scale below. Only this batch's
       headings/standing-rank use rem (Bootstrap itself is px-based). */
    font-size: 16px;
}
body{
    min-height: 100%;
    /* Photo stays the hero (subtle refresh); cover/fixed stops the awkward tiling */
    background: #1d4a70 url("../images/BreweryHome.jpg") center center / cover no-repeat fixed;
    padding-top: 150px;
}
footer{
    background: #ffffff;
    background-color: #ffffff;
    opacity: 0.6;
    filter: alpha(opacity=60); /* For IE8 and earlier */
}
ul{
    padding: 0;
    margin-bottom: 0;
}
li{
    list-style:none;
}
hr{
    border:1px solid #ddd;
}
p img{
    margin: 10px;
}
/* BASE RULES - end */

/* LAYOUT RULES - start */
.menu-icon-container{
    display: inline-block;
    width: 25px;
}
.menu-icon{
    height: 20px;
}
.navbar-nav li{
    white-space: nowrap;
}
.current-round{
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background-color: white;
}
table.no-border>tbody>tr>td, table.no-border>tbody>tr>th{
    border: none;
}
th.currency{
    text-align: center;
}
td.currency{
    text-align: right;
}
td.center{
    text-align: center;
}

.transparant {
    /* Translucency on the SURFACE only — never opacity on the subtree (that
       washed out every table, number and chart over the photo). */
    background-color: rgba(255, 255, 255, 0.97);
}
.center-block {
    float: none !important
}
#base-container{
    padding-bottom: 45px;
}
#footer-text {
    text-align: center;
    line-height: 30px;
    font-size: 12px;
    font-weight: bold;
    color: #111111;
}
.round-corners{
    border-radius: 6px;
}
.btn-group-justified{
    margin: 25px 0;
}
/* LAYOUT RULES - end */

/* MODULE RULES - start */
/* Form signin */
.form-signin {
    max-width: 330px;
    padding: 15px;
    margin: 0 auto;
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
    margin-bottom: 10px;
}
.form-signin .checkbox {
    font-weight: normal;
}
.form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
}
.form-signin .form-control:focus {
    z-index: 2;
}
.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.main-modal{
    padding: 22px 32px 44px 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 600px;
    /* Widen: a roomy real-centered card instead of the strand-25% col-md-9 */
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 767px) {
    .main-modal { padding: 16px 14px 36px 14px; }
}

/* liScroll styles */
.tickerbar{
    background-color: #D6D1CC;
    height: 27px;
    overflow: hidden;
    position: relative;
}
.tickerbar-label {
    position: absolute;
    left: 0;
    top: 0;
    height: 27px;
    line-height: 27px;
    padding: 0 10px;
    background-color: #2d6a9f;
    color: #ffffff;
    font: bold 11px Verdana;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    white-space: nowrap;
}
.tickercontainer { /* the outer div with the black border */
    border: none;/*1px solid #000;*/
    width: 100%;/*738px;*/
    height: 27px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.tickercontainer .mask { /* that serves as a mask. so you get a sort of padding both left and right */
    position: relative;
    left: 0px; /*10px*/
    top: 8px;
    width: 100%;/*718px;*/
    overflow: hidden;
}
ul.newsticker { /* that's your list */
    position: relative;
    left: 100%;/*750px;*/
    font: bold 12px Verdana;
    list-style-type: none;
    margin: 0;
    padding: 0;

}
ul.newsticker li {
    float: left; /* important: display inline gives incorrect results when you check for elem's width */
    margin: 0;
    padding: 0;
    background: #D6D1CC;
}
ul.newsticker a {
    white-space: nowrap;
    padding: 0;
    color: #2d6a9f;
    font: bold 12px Verdana;
    margin: 0 50px 0 0;
}
ul.newsticker span {
    margin: 0 10px 0 0;
}
.navbar-default{
    margin-top: 78px;
    margin-bottom: 0;
    border-top: 1px solid #D6D1CC;
}
#accordion a{
    display: inline-block;
    margin-top: 3px;
    color: white;
}
#accordion .panel-default a{
    color: #656565;
}
.newsticker-overview .panel {
    border-left: 4px solid #337ab7;
}
.newsticker-overview .panel-heading {
    background-color: #f5f8fc;
}
.newsticker-overview .panel-heading .btn {
    margin-top: -2px;
}

/* Constrain images in CMS content areas */
.info-text img,
.overlay-modal-text img {
    max-width: 100%;
    height: auto;
}
.info-text img:not([style*="float"]),
.overlay-modal-text img:not([style*="float"]) {
    display: block;
    margin: 10px auto;
    max-width: 60%;
}
/* Clearfix after CMS content with floated images */
.info-text::after,
.overlay-modal-text::after {
    content: "";
    display: table;
    clear: both;
}
/* Ensure floated CMS images don't exceed container */
.info-text img[style*="float"],
.overlay-modal-text img[style*="float"] {
    max-width: 40%;
    height: auto;
}

.info-text ul, ul.circle{
    display: block;
    list-style-type: disc;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    padding-left: 40px;
}
.info-text li, ul.circle > li{
    display: list-item;
    list-style: disc;
}

.overlay-modal-text ul{
    display: block;
    padding-left: 40px;
    margin-bottom: 1em;
}

.overlay-modal-text li, ul.circle > li{
    display: list-item;
    list-style: disc;
}
@media (min-width: 768px) {
    .modal-dialog {
        width: 800px;
        margin: 30px auto;
    }
}
.rfq-form select, .rfq-form input{
    margin-left: 10px;
    margin-right: 10px;
}
.rfq-form div{
    display: inline-block;
}
.rfq-form div[id^="appbundle_parent_quotation_buyerQuotations"]{
    margin-bottom: 5px;
}
.rfq-image{
    border: solid 1px grey;
    padding: 5px;
    width: 75px;
    height: 75px;
}
.rfq-image .img-responsive{
    display: block;
    width: auto;
    max-height: 100%;
}
.financial-sub-group, .financial-group, .financial-group-total, .financial-section-total{
    font-weight: bold;
}
.financial-sub-total td{
    text-decoration: underline;
}
.financial-result{
    font-weight: bold;
    font-style: italic;
}
#appbundle_buyer_strategy_text{
    height: 300px;
}
ul.ul-bullet{
    padding-left: 20px;
}
ul.ul-bullet li{
    list-style: disc;
}

/* Overlay */
#main-overlay-button{
    position: fixed;
    top: 150px;
    left:0px;
    width: 60px;
    border: 1px solid grey;
    padding: 5px;
    font-size: 20px;
    text-align: right;
    cursor: pointer;
    background-color: white;
    opacity:0.7;
    z-index:99;
}

.overlay {
    height: 80%;
    width: 0%;
    position: fixed;
    z-index: 1;
    top: 150px;
    left: 0;
    background-color: rgb(255,255,255);
    transition: 0.2s;
    overflow-x: auto;
    overflow-y: auto;
}

.overlay-content {
    position: relative;
    top: 0;
    width: 100%;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #777;
    display: block;
    transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
    color: #999;
}

.overlay .closebtn {
    position: absolute;
    top: 0;
    right: 5px;
    font-size: 20px;
}
.overlay h3{
    font-size: 18px;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 5px;
}
.overlay hr{
    margin-top: 5px;
    margin-bottom: 10px;
}

@media screen and (max-height: 450px) {
    .overlay {overflow-y: auto;}
    .overlay a {font-size: 20px}
    .overlay .closebtn {
        font-size: 10px;
    }
}
.flash-notice{
    color: red;
    font-weight: bold;
}
.commodity img{
    padding: 30px 10px;
}
.commodity .img-responsive {
    margin: 0 auto;
}.rfq-image .img-responsive {
    margin: 0 auto;
}
/* ── DESIGN IMPROVEMENTS (6.38, token-refreshed 2026-06) ── */

/* Panel enhancements */
.panel {
    box-shadow: var(--shadow-1);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
/* Lift only cards the user can actually click (accordion / linked headers),
   not every static info panel — the old global hover-lift felt jumpy. */
.panel-group .panel:hover,
a > .panel:hover,
.panel.clickable:hover {
    box-shadow: var(--shadow-2);
}
.panel > .panel-heading {
    border-top-left-radius: calc(var(--radius) - 1px);
    border-top-right-radius: calc(var(--radius) - 1px);
    font-weight: 600;
    letter-spacing: .01em;
}
.panel-primary {
    border-color: var(--brand);
}
.panel-primary > .panel-heading {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* Typography improvements */
h1 {
    color: var(--brand-ink);
    border-bottom: 2px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    font-size: 1.75rem;
}
h2 {
    color: var(--brand-ink);
    font-weight: 600;
    font-size: 1.4rem;
}
h3 {
    color: var(--brand);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.18rem;
}
hr {
    margin-top: 25px;
    margin-bottom: 25px;
    border-color: var(--line);
}
p {
    line-height: 1.6;
}
a {
    color: var(--brand);
}
a:hover, a:focus {
    color: var(--brand-700);
}

/* Main modal styling */
.main-modal {
    box-shadow: var(--shadow-2);
    border-color: var(--line);
}

/* Table header styling */
.table > thead > tr > th {
    background-color: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
    font-weight: 600;
    letter-spacing: .01em;
    border-bottom: none;
}
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--bg-soft);
}
/* Row hover aids scanning long financial / offer tables */
.table-hover > tbody > tr:hover,
.table > tbody > tr:hover {
    background-color: var(--brand-soft);
}
.table > tbody > tr > td {
    vertical-align: middle;
    border-color: var(--line);
}
.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > td {
    padding: 8px 10px;
}
/* Rounded clipping for tables wrapped in a panel or responsive scroller */
.panel > .table:first-child,
.panel > .table-responsive:first-child > .table {
    margin-bottom: 0;
}
.table-responsive {
    border-radius: var(--radius-sm);
}

/* Supplier logo containers */
.supplier-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 10px;
    margin-bottom: 15px;
}
.supplier-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}
@media (max-width: 767px) {
    .supplier-logo {
        height: 80px;
        margin-bottom: 10px;
    }
    .supplier-logo img {
        max-height: 60px;
    }
}

/* Supplier section spacing */
.supplier-section {
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}
.supplier-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* News ticker - CSS animation replaces jQuery li-scroller */
.ticker-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-scroll 60s linear infinite;
}
.ticker-track:hover {
    animation-play-state: paused;
}
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.ticker-track a {
    color: #2d6a9f;
    font: bold 12px Verdana, sans-serif;
    margin-right: 40px;
    text-decoration: none;
}
.ticker-track a:hover {
    text-decoration: underline;
}
.ticker-track .ticker-separator {
    color: #999;
    margin-right: 40px;
}

/* Metric badges for consumer market tables */
.metric-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 12px;
}
.metric-quality {
    background-color: #dff0d8;
    color: #3c763d;
}
.metric-price {
    background-color: #fcf8e3;
    color: #8a6d3b;
}

/* ── END DESIGN IMPROVEMENTS ── */

/* MODULE RULES - end */

/* RESPONSIVE TABLES - make all panel tables scrollable on small screens */
.panel-body > table,
.panel-body > .table-responsive {
    width: 100%;
}
.panel-body {
    overflow-x: auto;
}

/* Prevent main content from overflowing on mobile */
.main-modal {
    overflow-x: auto;
    word-wrap: break-word;
}

/* ── SCROLLABLE TABLE ENHANCEMENTS ── */
/* Always-visible, styled scrollbars for horizontal scroll areas */
.table-responsive,
.panel-body,
[style*="overflow-x: auto"] {
    scrollbar-width: thin;
    scrollbar-color: #9ab #e8e8e8;
}
.table-responsive::-webkit-scrollbar,
.panel-body::-webkit-scrollbar,
[style*="overflow-x: auto"]::-webkit-scrollbar {
    height: 10px;
}
.table-responsive::-webkit-scrollbar-track,
.panel-body::-webkit-scrollbar-track,
[style*="overflow-x: auto"]::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 5px;
}
.table-responsive::-webkit-scrollbar-thumb,
.panel-body::-webkit-scrollbar-thumb,
[style*="overflow-x: auto"]::-webkit-scrollbar-thumb {
    background: #9ab;
    border-radius: 5px;
}
.table-responsive::-webkit-scrollbar-thumb:hover,
.panel-body::-webkit-scrollbar-thumb:hover,
[style*="overflow-x: auto"]::-webkit-scrollbar-thumb:hover {
    background: #789;
}

/* Scroll shadow indicators — fade at edges when content overflows */
.scroll-shadow-wrapper {
    position: relative;
}
.scroll-shadow-wrapper::before,
.scroll-shadow-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 10px; /* above scrollbar */
    width: 20px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s;
}
.scroll-shadow-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.08), transparent);
}
.scroll-shadow-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.08), transparent);
}
.scroll-shadow-wrapper.can-scroll-left::before { opacity: 1; }
.scroll-shadow-wrapper.can-scroll-right::after { opacity: 1; }

/* Game control table — compact buttons on smaller screens */
@media (max-width: 1400px) {
    .game-control-table .btn {
        font-size: 11px;
        padding: 4px 6px;
        white-space: nowrap;
    }
    .game-control-table th {
        font-size: 11px;
        padding: 6px 4px;
    }
    .game-control-table td {
        padding: 4px 3px;
    }
}
@media (max-width: 1100px) {
    .game-control-table .btn {
        font-size: 10px;
        padding: 3px 4px;
    }
    .game-control-table th {
        font-size: 10px;
    }
}

/* Auto-scale wide tables to fit viewport */
@media (max-width: 992px) {
    .table-auto-scale {
        font-size: 0.85em;
    }
    .table-auto-scale .btn {
        font-size: 0.85em;
        padding: 3px 5px;
    }
}
@media (max-width: 768px) {
    .table-auto-scale {
        font-size: 0.75em;
    }
    .table-auto-scale .btn {
        font-size: 0.75em;
        padding: 2px 4px;
    }
}
/* ── END SCROLLABLE TABLE ENHANCEMENTS ── */

/* MEDIA - start */
@media (min-width: 993px) and (max-width: 1399px) {
    .navbar-nav>li>a {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 12px;
    }
    .menu-icon {
        height: 16px;
    }
    .menu-icon-container {
        width: 20px;
    }
}
@media (max-width: 992px) {
    .navbar-header {
        float: none;
    }
    .navbar-left,.navbar-right {
        float: none !important;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin-top: 7.5px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in{
        display:block !important;
    }
}
/* MEDIA - end */

/* CHARTIST - start */
.ct-label.ct-vertical.ct-start, .ct-label.ct-horizontal.ct-end{
    color: black;
    font-size: 11px;
}
/* CHARTIST - end */

/* Dynamic Sidebar */
#slider{
    width: 350px; /* if you wish to change the width, you also have to change it in => jquery.slidereveal.min.js */
    transition: all 300ms ease;
    height: 100%;
    background-color: white;
    color: #fff;
    z-index: 1002;
    margin-top: 150px;
    border-bottom-right-radius: 6px;
    border-top-right-radius: 6px;
}

.glyphicon{
    position: relative;
    top: 1px;
    display: inline-block;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

#sideslide .handle{
    background-color: #337ab7;
    padding: 10px;
    position: fixed;
    height: 40px;
    width: 40px;
    cursor: pointer;
    color: white;
    border-bottom-right-radius: 6px;
    border-top-right-radius: 6px;
    z-index: 1002;
}
/* Mobile: the expanded hamburger menu (fixed, z 1030) fills the top-left region
   and covers the slide-out panel trigger (z 1002, top:150px). Hide the trigger
   while the menu is open so they don't overlap; it returns when the menu closes. */
@media (max-width: 992px) {
    body:has(.navbar-collapse.in) #sideslide .handle,
    body:has(.navbar-collapse.collapsing) #sideslide .handle {
        opacity: 0;
        pointer-events: none;
    }
}

#sideslide h2 {
    background-color: #337ab7;
    font-size: 1.9em;
    padding: 20px;
    margin: 0;
    font-weight: 300;
    color: white;
    border-top-right-radius: 6px;
}

#sideslide a {
    border-bottom: 1px solid #D8D8D8;
    padding: 1em;
    display: block;
    color: #424242;
    font-size: 1.4em;
    font-weight: 300;
    text-decoration: none;
}

#sideslide small{
    color: #D8D8D8;
}

#sideslide kbd{
    background-color: #2d6a9f;
    color: #D8D8D8;
}

#sideslide-content{
    color: #2d6a9f;
}

.table-bordered > tbody > tr > td.double-right-border{
    border-right: 3px double #000000;
}

#taskDescription li,
#taskDescription ol li{
    list-style: disc;
}

/* GROUP CHAT WIDGET - start */
#chat-widget {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 340px;
    z-index: 1500;
    font-size: 13px;
}
#chat-widget .chat-header {
    background: #337ab7;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#chat-widget .chat-header:hover {
    background: #286090;
}
#chat-widget .chat-badge {
    background: #d9534f;
    color: #fff;
    border-radius: 10px;
    padding: 2px 7px;
    font-size: 11px;
    margin-left: 8px;
}
#chat-widget .chat-body {
    background: #fff;
    border: 1px solid #337ab7;
    border-top: none;
    display: none;
    max-height: 400px;
}
#chat-widget .chat-group-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}
#chat-widget .chat-group-list li {
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#chat-widget .chat-group-list li:hover {
    background: #f5f5f5;
}
#chat-widget .chat-group-list li .group-unread {
    background: #d9534f;
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
}
#chat-widget .chat-conversation {
    display: none;
}
#chat-widget .chat-conv-header {
    background: #f5f5f5;
    padding: 8px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#chat-widget .chat-conv-header .chat-back {
    cursor: pointer;
    color: #337ab7;
    margin-right: 10px;
}
#chat-widget .chat-messages {
    height: 280px;
    overflow-y: auto;
    padding: 10px;
    background: #fafafa;
}
#chat-widget .chat-msg {
    margin-bottom: 8px;
    max-width: 85%;
    clear: both;
}
#chat-widget .chat-msg.mine {
    float: right;
    text-align: right;
}
#chat-widget .chat-msg.theirs {
    float: left;
}
#chat-widget .chat-msg .msg-bubble {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 12px;
    word-wrap: break-word;
    max-width: 100%;
}
#chat-widget .chat-msg.mine .msg-bubble {
    background: #337ab7;
    color: #fff;
}
#chat-widget .chat-msg.theirs .msg-bubble {
    background: #e8e8e8;
    color: #333;
}
#chat-widget .chat-msg .msg-meta {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}
#chat-widget .chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}
#chat-widget .chat-input input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    font-size: 13px;
}
#chat-widget .chat-input button {
    border: none;
    background: #337ab7;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
}
#chat-widget .chat-input button:hover {
    background: #286090;
}
/* GROUP CHAT WIDGET - end */

/* AI NEGOTIATION WIDGET - start */
#negotiation-widget {
    position: fixed;
    bottom: 0;
    left: 20px;
    width: 340px;
    z-index: 1500;
    font-size: 13px;
}
#negotiation-widget .neg-header {
    background: #5cb85c;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#negotiation-widget .neg-header:hover {
    background: #4cae4c;
}
#negotiation-widget .neg-header > span:first-child {
    flex: 1;
    font-weight: bold;
}
#negotiation-widget .neg-hub-link,
#negotiation-widget .neg-hub-link:hover,
#negotiation-widget .neg-hub-link:focus {
    color: #fff;
    margin: 0 8px;
    text-decoration: none;
}
#negotiation-widget .neg-body {
    background: #fff;
    border: 1px solid #5cb85c;
    border-top: none;
    display: none;
}
#negotiation-widget .neg-supplier-picker {
    padding: 12px 15px;
}
#negotiation-widget .neg-supplier-picker label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}
#negotiation-widget .neg-supplier-select,
#negotiation-widget .neg-product-select {
    width: 100%;
    margin-bottom: 8px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}
#negotiation-widget .neg-start-btn,
#negotiation-widget .neg-send-btn {
    border: none;
    background: #5cb85c;
    color: #fff;
    padding: 8px 15px;
    cursor: pointer;
}
#negotiation-widget .neg-start-btn {
    width: 100%;
    border-radius: 3px;
}
#negotiation-widget .neg-start-btn:hover,
#negotiation-widget .neg-send-btn:hover {
    background: #4cae4c;
}
#negotiation-widget .neg-start-btn:disabled,
#negotiation-widget .neg-send-btn:disabled {
    background: #aaa;
    cursor: default;
}
#negotiation-widget .neg-conv-header {
    background: #f5f5f5;
    padding: 8px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}
#negotiation-widget .neg-back {
    cursor: pointer;
    color: #5cb85c;
    margin-right: 10px;
}
#negotiation-widget .neg-conv-name {
    flex: 1;
}
#negotiation-widget .neg-state-badge {
    font-size: 11px;
    background: #777;
    color: #fff;
    border-radius: 10px;
    padding: 2px 8px;
}
#negotiation-widget .neg-error {
    background: #f2dede;
    color: #a94442;
    border-bottom: 1px solid #ebccd1;
    padding: 6px 12px;
    font-size: 0.9em;
}
#negotiation-widget .neg-messages {
    height: 240px;
    overflow-y: auto;
    padding: 10px;
    background: #fafafa;
}
#negotiation-widget .neg-messages::after {
    content: "";
    display: table;
    clear: both;
}
#negotiation-widget .neg-msg {
    margin-bottom: 8px;
    max-width: 85%;
    clear: both;
}
#negotiation-widget .neg-msg-buyer {
    float: right;
    text-align: right;
}
#negotiation-widget .neg-msg-supplier {
    float: left;
}
#negotiation-widget .neg-msg-body {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 12px;
    word-wrap: break-word;
    max-width: 100%;
    text-align: left;
}
#negotiation-widget .neg-msg-buyer .neg-msg-body {
    background: #5cb85c;
    color: #fff;
}
#negotiation-widget .neg-msg-supplier .neg-msg-body {
    background: #e8e8e8;
    color: #333;
}
#negotiation-widget .neg-msg-system {
    max-width: 100%;
    float: none;
    text-align: center;
}
#negotiation-widget .neg-msg-system .neg-msg-body {
    background: none;
    color: #999;
    font-style: italic;
    font-size: 0.9em;
    padding: 2px;
}
#negotiation-widget .neg-msg-time {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}
#negotiation-widget .neg-typing {
    padding: 4px 12px 8px;
    color: #999;
    font-style: italic;
    font-size: 0.9em;
}
#negotiation-widget .neg-actions {
    padding: 6px 12px 0;
}
#negotiation-widget .neg-accept-btn {
    border: none;
    background: #5cb85c;
    color: #fff;
    padding: 7px 12px;
    cursor: pointer;
    border-radius: 3px;
    width: 100%;
    margin-bottom: 4px;
}
#negotiation-widget .neg-accept-btn:hover {
    background: #4cae4c;
}
#negotiation-widget .neg-close-btn {
    border: 1px solid #ccc;
    background: #fff;
    color: #777;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 3px;
    width: 100%;
    font-size: 0.9em;
}
#negotiation-widget .neg-close-btn:hover {
    background: #f5f5f5;
}
#negotiation-widget .neg-budget {
    padding: 6px 12px;
    color: #999;
    font-size: 0.85em;
    text-align: right;
}
#negotiation-widget .neg-budget-low {
    color: #a94442;
    font-weight: bold;
}
#negotiation-widget .neg-input {
    display: flex;
    border-top: 1px solid #ddd;
}
#negotiation-widget .neg-input input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    font-size: 13px;
}
#negotiation-widget .neg-debrief {
    padding: 12px 15px;
    max-height: 360px;
    overflow-y: auto;
}
#negotiation-widget .neg-debrief-title {
    margin-bottom: 6px;
}
#negotiation-widget .neg-debrief-headline {
    font-size: 1.1em;
    margin-bottom: 6px;
}
#negotiation-widget .neg-debrief-prices,
#negotiation-widget .neg-debrief-turns,
#negotiation-widget .neg-debrief-score-area,
#negotiation-widget .neg-debrief-badges,
#negotiation-widget .neg-debrief-coaching,
#negotiation-widget .neg-debrief-factors {
    margin-bottom: 8px;
}
#negotiation-widget .neg-debrief-nextstep {
    background: #d9edf7;
    color: #31708f;
    border: 1px solid #bce8f1;
    border-radius: 3px;
    padding: 8px 10px;
    margin: 8px 0;
    font-size: 0.9em;
}
#negotiation-widget .neg-debrief-factors ul {
    padding-left: 18px;
    margin-bottom: 0;
}
@media (max-width: 420px) {
    #negotiation-widget {
        left: 0;
        right: 0;
        width: auto;
    }
}
/* AI NEGOTIATION WIDGET - end */

/* ════════════════════════════════════════════════════════════════════
   2026-06 REFRESH — components (buttons, forms, flash, wayfinding,
   standing panel, responsive charts, newsticker). All additive.
   ════════════════════════════════════════════════════════════════════ */

/* Buttons */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.btn-primary {
    background-color: var(--brand);
    border-color: var(--brand);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--brand-600);
    border-color: var(--brand-700);
}
.btn-success { background-color: var(--ok); border-color: var(--ok); }
.btn-danger  { background-color: var(--danger); border-color: var(--danger); }
/* Visible keyboard focus ring (a11y) without changing mouse styling */
.btn:focus-visible, a:focus-visible, .form-control:focus-visible,
select:focus-visible, input:focus-visible {
    outline: 3px solid rgba(45,106,159,.45);
    outline-offset: 1px;
}

/* Form controls */
.form-control {
    border-radius: var(--radius-sm);
    border-color: var(--line);
    box-shadow: none;
}
.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(45,106,159,.15);
}

/* Branded range slider (strategy quality/cost split) */
input[type=range].spg-slider,
.strategy-slider input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--brand) 0 50%, var(--accent) 50% 100%);
    outline: none;
}
input[type=range].spg-slider::-webkit-slider-thumb,
.strategy-slider input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--brand);
    box-shadow: var(--shadow-1);
    cursor: pointer;
}
input[type=range].spg-slider::-moz-range-thumb,
.strategy-slider input[type=range]::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--brand);
    cursor: pointer;
}

/* Flash alerts — accent bar + icon so the round-staleness / auto-buy
   warnings the lost-work-prevention work depends on can't be missed.
   Scoped to .main-modal so widget alerts are untouched. */
.main-modal .alert {
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-1);
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.main-modal .alert::before {
    font-family: 'Glyphicons Halflings';
    font-size: 1.05em;
    line-height: 1.4;
    flex-shrink: 0;
}
.main-modal .alert-success { border-left-color: var(--ok);     background: var(--ok-bg);     color: #2c6630; }
.main-modal .alert-info    { border-left-color: var(--info);   background: var(--info-bg);   color: #1f5566; }
.main-modal .alert-warning { border-left-color: var(--warn);   background: var(--warn-bg);   color: #7a5a16; }
.main-modal .alert-danger  { border-left-color: var(--danger); background: var(--danger-bg); color: #8f322c; }
.main-modal .alert-success::before { content: "\e013"; color: var(--ok); }
.main-modal .alert-info::before    { content: "\e086"; color: var(--info); }
.main-modal .alert-warning::before { content: "\e101"; color: var(--warn); }
.main-modal .alert-danger::before  { content: "\e107"; color: var(--danger); }

/* ── Phase badge (wayfinding: surface the single most time-critical fact) ── */
.phase-badge {
    display: inline-block;
    padding: 2px 11px;
    border-radius: 999px;
    font-size: .8em;
    font-weight: 600;
    letter-spacing: .02em;
    vertical-align: middle;
    white-space: nowrap;
}
.phase-badge-rfq     { background: var(--warn-bg); color: #7a5a16; border: 1px solid var(--warn-line); }
.phase-badge-offer   { background: var(--info-bg); color: #1f5566; border: 1px solid var(--info-line); }
.phase-badge-order   { background: var(--ok-bg);   color: #2c6630; border: 1px solid var(--ok-line); }
.phase-badge-default { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }

/* ── Dashboard next-action strip (turns the dashboard into a real home) ── */
.next-action {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--brand-soft);
    border: 1px solid var(--info-line);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    margin: 0 0 22px 0;
}
.next-action .na-text { flex: 1; min-width: 220px; font-size: 1.02em; }
.next-action .na-text strong { color: var(--brand-ink); }
.next-action .btn { white-space: nowrap; }

/* ── "Your standing" satisfaction panel ── */
.standing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.standing-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    background: var(--card);
    box-shadow: var(--shadow-1);
}
.standing-card.is-preferred { border-color: var(--ok-line); background: var(--ok-bg); }
.standing-card .sc-supplier { font-weight: 600; color: var(--brand-ink); margin-bottom: 6px; }
.standing-card .sc-rank { font-size: 1.6rem; font-weight: 700; color: var(--brand); line-height: 1.1; }
.standing-card.is-preferred .sc-rank { color: var(--ok); }
/* Darkened greens/greys below pass WCAG AA on both the white and the green
   (.is-preferred) standing card; the bright --ok tokens did not at small sizes. */
.standing-card .sc-rank small { font-size: .9rem; font-weight: 600; color: #5a6573; }
.standing-card .sc-line { font-size: .9em; color: #5a6573; margin-top: 6px; }
.standing-card .sc-discount { font-weight: 700; color: #2c6630; }
.standing-badge-pref {
    display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
    font-size: .7em; font-weight: 700; letter-spacing: .04em;
    background: #2c6630; color: #fff; vertical-align: middle;
}

/* ── Responsive chart container (replaces server-side setWidth(800)) ── */
.spg-chart {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    overflow-x: auto;
}
.spg-chart > div { margin: 0 auto; }

/* ════════════════════════════════════════════════════════════════════
   NEWSTICKER — refreshed ticker bar + readable article cards
   ════════════════════════════════════════════════════════════════════ */
.tickerbar {
    background: linear-gradient(180deg, #ffffff, var(--bg-soft));
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-1);
}
.tickerbar-label {
    background-color: var(--brand);
    font: 700 11px var(--font);
    letter-spacing: .08em;
    display: flex;
    align-items: center;
}
.tickerbar-label::before {
    content: "\e105"; /* glyphicon bullhorn-ish chevrons */
    font-family: 'Glyphicons Halflings';
    margin-right: 7px;
    font-size: 10px;
}
.ticker-track a {
    color: var(--brand-700);
    font: 600 12.5px var(--font);
}
.ticker-track .ticker-separator { color: var(--accent); }

/* Article reading page (newsticker_show) — cleaner cards + readable measure */
.newsticker-overview .panel {
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    margin-bottom: 14px;
    overflow: hidden;
}
.newsticker-overview .panel-heading {
    background: var(--brand-soft);
    border-bottom: 1px solid var(--line);
    padding: 14px 18px;
}
.newsticker-overview .panel-title a {
    color: var(--brand-ink);
    font-weight: 600;
    font-size: 1.08em;
    text-decoration: none;
}
.newsticker-overview .panel-title a:hover { color: var(--brand); }
.newsticker-overview .panel-title a::before {
    content: "\e114"; /* chevron-down */
    font-family: 'Glyphicons Halflings';
    font-size: .7em;
    margin-right: 10px;
    color: var(--brand);
    transition: transform .2s ease;
    display: inline-block;
}
.newsticker-overview .panel-title a.collapsed::before { content: "\e080"; /* chevron-right */ }
.newsticker-overview .panel-body {
    padding: 20px 24px;
    line-height: 1.65;
    color: var(--ink);
}
/* Constrain CMS prose to a comfortable reading measure */
.newsticker-overview .panel-body > * { max-width: 70ch; }
.newsticker-overview .panel-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.newsticker-overview .panel-body h1,
.newsticker-overview .panel-body h2,
.newsticker-overview .panel-body h3 { border: none; padding: 0; margin: 18px 0 8px; }
/* Smooth-scroll so a ticker deep-link eases into the opened article */
html { scroll-behavior: smooth; }
:target.panel { box-shadow: 0 0 0 3px rgba(45,106,159,.35), var(--shadow-1); }

/* ════════════════════════════════════════════════════════════════════
   FIXED-WIDGET STACKING — keep the timed-round countdown off the
   language switcher and the mobile hamburger.
   ════════════════════════════════════════════════════════════════════ */
#language-switcher select {
    min-height: 40px;            /* touch target */
    min-width: 48px;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}
/* Little "Office" hub toggle next to the language switcher (when office_mode on) */
#office-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 40px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    color: var(--brand, #2d6a9f);
    text-decoration: none;
    font-size: 16px;
}
#office-toggle:hover, #office-toggle:focus {
    background: var(--brand-soft, #eef4f9);
    color: var(--brand-700, #1d4a70);
}
/* Desktop: park the language switcher to the LEFT of the timed-round countdown
   (≈175px wide) ONLY while the countdown is on screen — otherwise it keeps its
   default corner position. :has() is supported in all current browsers. */
@media (min-width: 993px) {
    body:has(#countdown-timer-box) #language-switcher { right: 195px !important; }
}
@media (max-width: 992px) {
    /* Mobile: drop the countdown to the bottom-right (above the chat widget)
       so it can't cover the language switcher or the collapsed nav toggle. */
    #countdown-timer-box {
        top: auto !important;
        bottom: 58px !important;
        right: 12px !important;
        left: auto !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; padding-left: 0; }
    html { scroll-behavior: auto; }
    .btn, .panel, .form-control { transition: none; }
}
/* ════════════════════════════════════════════════════════════════════ */