/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark
*/

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

body {
    line-height: 1;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

nav ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

a {
    margin: 0;
    padding: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

ins {
    background-color: #ff9;
    color: #000;
    text-decoration: none;
}

mark {
    background-color: #ff9;
    color: #000;
    font-style: italic;
    font-weight: bold;
}

del {
    text-decoration: line-through;
}

abbr[title],
dfn[title] {
    border-bottom: 1px dotted;
    cursor: help;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin: 1em 0;
    padding: 0;
}

input,
select {
    vertical-align: middle;
}


/**********************************************/
/********************DESIGN SYSTEM************/
/**********************************************/

:root {
    /* Colors */
    --color-primary: #0065b2;
    --color-primary-hover: #004d8c;
    --color-primary-light: rgba(0, 101, 178, 0.08);
    --color-success: #10b981;
    --color-success-hover: #059669;
    --color-warning: #f59e0b;
    --color-warning-hover: #d97706;
    --color-danger: #ad3c0f;
    --color-danger-hover: #8a2f0c;
    --color-info: #c94fa0;
    --color-info-hover: #a8378a;

    /* Neutrals */
    --color-bg: #f6f4f2;
    --color-surface: #ffffff;
    --color-border: #e0e0e0;
    --color-border-dark: #c0c0c0;
    --color-text: #2c2c2c;
    --color-text-secondary: #6c6c6c;
    --color-text-muted: #999999;

    /* Specific */
    --color-highlight: #eff337;
    --color-table-header: #f5f5f5;
    --color-table-row-hover: #f9f9f9;
    --color-table-row-alt: #f8fbfc;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-family-base: 'Comfortaa', sans-serif;
    --font-family-heading: 'Exo', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --line-height-base: 1.6;
    --line-height-heading: 1.3;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/**********************************************/
/**********WINNER VIEW COMPONENTS**************/
/**********************************************/

/* Winner Action Component - Trophy + Cancel Button */
.winner-action-container {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--space-md) !important;
}

.winner-trophy-icon {
    font-size: 32px !important;
    color: #f59e0b !important;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.winner-cancel-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: var(--space-xs) var(--space-sm) !important;
    background-color: var(--color-danger) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-size: var(--font-size-sm) !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2) !important;
}

.winner-cancel-button:hover {
    background-color: #c82333 !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
    transform: translateY(-1px) !important;
}

.winner-cancel-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2) !important;
}

.winner-cancel-icon {
    font-size: 18px !important;
    margin-right: 4px !important;
}

/* Success Notification Banner */
.success-notification-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--space-md) !important;
    padding: var(--space-lg) var(--space-xl) !important;
    margin: var(--space-xl) auto !important;
    width: fit-content !important;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    border: 1px solid #6ee7b7 !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15) !important;
}

.success-notification-icon {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background-color: var(--color-success) !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.success-notification-content {
    flex: 1 !important;
    color: #065f46 !important;
    font-size: var(--font-size-base) !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

.success-notification-content b {
    color: #064e3b !important;
    font-weight: 600 !important;
}

/* Unified status boxes for tender/bid outcomes */
.status-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-lg) auto;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.status-box--success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
    color: #065f46;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.status-box--warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--color-warning);
    color: #92400e;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}

.status-box--danger {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid var(--color-danger);
    color: #7f1d1d;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.14);
}

.status-box b {
    color: inherit;
    font-weight: 600;
}

/**********************************************/
/********************GLOBAL********************/
/**********************************************/

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    line-height: var(--line-height-heading);
    font-weight: 600;
    color: var(--color-text);
}

h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

a:visited,
a:active,
a:link {
    text-decoration: none;
}

/* UPDATED: Ensure anchor tags with button classes maintain button text color */
a.btn,
a.btn:visited,
a.btn:hover,
a.btn:active,
a.btn:link {
    color: inherit;
}

a.btn-primary,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active {
    color: white;
}

a.btn-success,
a.btn-success:visited,
a.btn-success:hover,
a.btn-success:active {
    color: white;
}

a.btn-warning,
a.btn-warning:visited,
a.btn-warning:hover,
a.btn-warning:active {
    color: white;
}

a.btn-danger,
a.btn-danger:visited,
a.btn-danger:hover,
a.btn-danger:active {
    color: white !important;
}

a.btn-view-winner,
a.btn-view-winner:visited,
a.btn-view-winner:hover,
a.btn-view-winner:active {
    color: white;
}

a.btn-select-winner,
a.btn-select-winner:visited,
a.btn-select-winner:hover,
a.btn-select-winner:active {
    color: white;
}

a.btn-publish,
a.btn-publish:visited,
a.btn-publish:hover,
a.btn-publish:active {
    color: white;
}

a.btn-edit,
a.btn-edit:visited,
a.btn-edit:hover,
a.btn-edit:active {
    color: white;
}

/**********************************************/
/********************NAVBAR********************/
/**********************************************/

.application-header-exp {
    display: flex;
    flex-direction: column;
    gap: 0;
    background-color: var(--color-surface);
    width: 100%;
    height: fit-content;
    font-family: var(--font-family-heading);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.application-header-nav-exp {
    height: fit-content;
    background-color: var(--color-surface);
}

#application-header-nav-sub-div-exp-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    background-color: var(--color-primary);
    padding: 0 var(--space-lg);
}

#application-header-nav-sub-div-1-content-logo {
    width: fit-content;
}

#application-header-nav-sub-div-1-content-usernameLogout {
    width: fit-content;
}

#application-header-nav-sub-div-exp-2 {
    display: flex;
    height: 56px;
    font-size: var(--font-size-base);
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.application-header-nav-ul-exp {
    list-style-type: none;
    padding: 0;
    margin: auto;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    height: 56px;
    overflow: hidden;
    width: 90%;
}

.application-header-nav-ul-exp-li {
    position: relative;
    width: fit-content;
    height: fit-content;
    font-family: var(--font-family-base);
    color: var(--color-text) !important;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
    font-weight: 500;
}

.application-header-nav-ul-exp-li:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary) !important;
}

.application-header-nav-ul-exp-li.active-tab {
    border: 2px solid var(--color-warning);
    color: var(--color-warning) !important;
    font-weight: 600;
    background-color: rgba(245, 158, 11, 0.05);
}

.application-header-nav-website-name-div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    width: fit-content;
}

.application-header-nav-website-logout-and-user-div {
    position: relative;
    float: right;
    list-style-type: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    height: 80px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    font-family: var(--font-family-base);
    padding-right: var(--space-sm) !important;
    color: white;
}

.application-header-nav-website-logout-and-user-div a {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.application-header-nav-website-logout-and-user-div a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Legacy header support */
.application-header {
    display: block;
    background-color: var(--color-primary);
    width: 100%;
    height: 100px;
    color: white;
    font-family: var(--font-family-heading);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.application-header-nav {
    position: absolute;
    padding: 0;
    margin-top: 10px;
    display: block;
    width: 100%;
    height: 80px;
    overflow: hidden;
}

.application-header-nav-ul {
    position: absolute;
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    height: 80px;
    overflow: hidden;
    margin-left: var(--space-lg);
}

.application-header-nav-ul-li {
    position: relative;
    width: fit-content;
    height: fit-content;
    font-family: var(--font-family-base);
}

.active-tab {
    border: 2px solid var(--color-highlight);
    color: var(--color-highlight) !important;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
}

@media (max-width: 800px) {
    .application-header-nav-website-name-div {
        display: none;
    }
}

/**********************************************/
/********************BODY**********************/
/**********************************************/

.application-body-wrapper {
    display: flex;
    flex-flow: column wrap;
    justify-content: flex-start;
    align-items: flex-start;
    row-gap: var(--space-md);
    z-index: 0;
    background-color: var(--color-bg);
    min-height: calc(100vh - 236px);
    padding-bottom: var(--space-2xl);
}

/**********************************************/
/********************BUTTONS*******************/
/**********************************************/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-size: var(--font-size-base);
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    font-family: var(--font-family-base);
    line-height: 1.2;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:focus {
    outline: 3px solid rgba(0, 101, 178, 0.25);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, #0065b2 0%, #005a9e 100%);
    color: white !important;
    box-shadow: 0 2px 6px rgba(0, 101, 178, 0.2);
    border: 1px solid #005a9e;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a9e 0%, #004d8c 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 101, 178, 0.3);
    border: 1px solid #004d8c;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 101, 178, 0.25);
    color: white !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #0d9d6f 100%);
    color: white !important;
    box-shadow: 0 2px 6px rgba(15, 173, 75, 0.2);
    border: 1px solid #0d9d6f;
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #0d9d6f 0%, #059669 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 173, 75, 0.3);
    border: 1px solid #059669;
}

.btn-success:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(15, 173, 75, 0.25);
    color: white !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #5b6370 100%);
    color: white !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5b6370 0%, #4b5563 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    color: white !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #ea8e0a 100%);
    color: white !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #ea8e0a 0%, #d97706 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-warning:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    color: white !important;
}

.btn-info {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white !important;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.btn-info:hover:not(:disabled) {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.btn-info:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
    color: white !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25) !important;
    border: 1px solid rgba(239, 68, 68, 0.1) !important;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35) !important;
}

.btn-danger:active:not(:disabled) {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3) !important;
}

/* Semantic Button Aliases - For Consistent UX Across Procurement Actions */
.btn-publish {
    background: linear-gradient(135deg, #10b981 0%, #0d9d6f 100%);
    color: white !important;
    box-shadow: 0 2px 6px rgba(15, 173, 75, 0.2);
    border: 1px solid #0d9d6f;
}

.btn-publish:hover:not(:disabled) {
    background: linear-gradient(135deg, #0d9d6f 0%, #059669 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 173, 75, 0.3);
    border: 1px solid #059669;
}

.btn-publish:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(15, 173, 75, 0.25);
    color: white !important;
}

.btn-edit {
    background: linear-gradient(135deg, #f59e0b 0%, #ea8e0a 100%);
    color: white !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.btn-edit:hover:not(:disabled) {
    background: linear-gradient(135deg, #ea8e0a 0%, #d97706 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-edit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    color: white !important;
}

/* NEW: Semantic class for viewing winner actions */
.btn-view-winner {
    background: linear-gradient(135deg, #10b981 0%, #0d9d6f 100%);
    color: white !important;
    box-shadow: 0 2px 6px rgba(15, 173, 75, 0.2);
    border: 1px solid #0d9d6f;
}

.btn-view-winner:hover:not(:disabled) {
    background: linear-gradient(135deg, #0d9d6f 0%, #059669 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 173, 75, 0.3);
    border: 1px solid #059669;
}

.btn-view-winner:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(15, 173, 75, 0.25);
    color: white !important;
}

.btn-view-winner:focus {
    outline: 3px solid rgba(16, 185, 129, 0.25);
    outline-offset: 2px;
    color: white !important;
}

/* NEW: Semantic class for selecting winner actions */
.btn-select-winner {
    background: linear-gradient(135deg, #10b981 0%, #0d9d6f 100%);
    color: white !important;
    box-shadow: 0 2px 6px rgba(15, 173, 75, 0.2);
    border: 1px solid #0d9d6f;
}

.btn-select-winner:hover:not(:disabled) {
    background: linear-gradient(135deg, #0d9d6f 0%, #059669 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 173, 75, 0.3);
    border: 1px solid #059669;
}

.btn-select-winner:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(15, 173, 75, 0.25);
    color: white !important;
}

.btn-select-winner:focus {
    outline: 3px solid rgba(16, 185, 129, 0.25);
    outline-offset: 2px;
    color: white !important;
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25) !important;
    border: 1px solid rgba(239, 68, 68, 0.1) !important;
}

.btn-delete:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35) !important;
}

.btn-delete:active:not(:disabled) {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3) !important;
}

.btn-sm {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: var(--font-size-lg);
}

/**********************************************/
/********************FORMS*********************/
/**********************************************/

.form-control {
    display: block;
    width: 100%;
    padding: 11px 14px;
    font-size: var(--font-size-base);
    font-family: var(--font-family-base);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.form-control:hover {
    border-color: var(--color-border-dark);
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 4px var(--color-primary-light);
    background-color: #fafbfc;
}

.form-control::placeholder {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.form-group {
    margin-top: var(--space-md);
    width: 650px;
    height: fit-content;
}

.form-group.inline-inputs {
    margin-top: 0 !important;
    width: 650px;
    height: fit-content;
    display: inline-flex;
    gap: var(--space-md);
}

.form-group label,
.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    letter-spacing: 0.01em;
}

.form-text {
    display: block;
    margin-top: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    border: 2px solid var(--color-border-dark);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form-check-label {
    cursor: pointer;
    font-weight: 400;
    margin: 0;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c6c6c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 40px;
}

/**********************************************/
/********************TABLES********************/
/**********************************************/

/**********************************************/
/**********UNIFIED TABLE SYSTEM****************/
/**********************************************/

/* Table Container - Provides scrolling and spacing */
.ongoing-procurements-table-div {
    margin-top: var(--space-2xl);
    width: auto;
    max-width: calc(100vw - 100px);
    margin-left: auto;
    margin-right: auto;
    font-size: var(--font-size-base);
    height: fit-content;
    text-align: center;
    /* keeps nav links aligned */
    overflow-x: auto;
    overflow-y: visible;
    padding: 0;
    display: inline-block;
    /* let the white card hug the table width */
    /* Outer-only rounding for all procurement tables (buyer/supplier) */
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Offer/other table wrappers share the same outer rounding */
.wider-offers-table-wrapper {
    width: auto;
    max-width: calc(100vw - 100px);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Base Table - Clean Structure */
.ongoing-procurements-table {
    width: auto;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text);
    background-color: var(--color-surface);
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--font-size-sm);
    /* Keep grid square; rounding handled by wrapper */
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ongoing-procurements-table thead,
.ongoing-procurements-table tbody tr:first-child td:first-child,
.ongoing-procurements-table tbody tr:first-child td:last-child {
    border-radius: 0 !important;
}

/* Flatten green/highlighted row cells to keep grid rectangular */
.ongoing-procurements-table tbody tr td {
    border-radius: 0 !important;
}

/* Table Header */
.ongoing-procurements-table thead {
    background: linear-gradient(to bottom, #f8f9fa, var(--color-table-header));
}

.ongoing-procurements-table th {
    vertical-align: middle;
    padding: 14px 10px;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    text-align: center;
    letter-spacing: 0.02em;
    border-bottom: 2px solid var(--color-border-dark);
    white-space: normal;
    word-wrap: break-word;
    position: relative;
    line-height: 1.3;
}

/* Table Body */
.ongoing-procurements-table tbody tr {
    transition: background-color var(--transition-fast);
}

.ongoing-procurements-table tbody tr:nth-child(even) {
    background-color: var(--color-table-row-alt);
}

.ongoing-procurements-table tbody tr:hover {
    background-color: #f0f7fb;
}

/* Table Cells */
.ongoing-procurements-table td {
    height: 64px;
    vertical-align: middle;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.6);
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ongoing-procurements-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status styling simplified: keep colors/fonts, remove capsule look.
   Countdown rows ("Jäänud ...") intentionally untouched. */
.ongoing-procurements-table .status-pill,
.ongoing-procurements-table .winner-status-badge {
    display: inline;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-weight: 600;
    font-size: var(--font-size-sm);
    line-height: 1.2;
    text-decoration: none !important;
}

.ongoing-procurements-table .status-pill--success,
.ongoing-procurements-table .winner-status-badge {
    color: var(--color-success) !important;
}

.ongoing-procurements-table .status-pill--primary {
    color: var(--color-primary) !important;
}

.ongoing-procurements-table .status-pill--danger {
    color: var(--color-danger) !important;
}

/* Center the make-offer heading only on tenderer offer form */
.tenderer-make-offer-page .make-offer-title-wrapper {
    display: flex;
    justify-content: center;

}

/* Offer/tender accordion headers (scoped to offer summary view) */
.offer-summary-view .offer-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    margin: var(--space-md) auto var(--space-sm);
    padding: 12px 16px;
    background: #f1f3f5;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--color-text);
    font-weight: 600;
    font-size: var(--font-size-base);
    letter-spacing: 0.01em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.offer-summary-view .offer-accordion-header:hover {
    background: #e8edf3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #d6dde6;
}

.offer-summary-view .offer-accordion-header .offer-accordion-title {
    text-align: left;
}

.offer-summary-view .offer-accordion-header .offer-accordion-icon {
    font-size: 22px;
    color: var(--color-text);
    transition: transform var(--transition-fast);
}

.offer-summary-view .offer-accordion-header.is-open {
    background: #eef5ff;
    border-color: rgba(0, 101, 178, 0.3);
    box-shadow: 0 4px 10px rgba(0, 101, 178, 0.1);
    border-left: none;
    padding-left: 16px;
}

.offer-summary-view .offer-accordion-header.is-open .offer-accordion-icon {
    transform: rotate(180deg);
}

/* View-Specific Adjustments */
.ongoing-procurements-table.procurer-view,
.ongoing-procurements-table.tenderer-view {
    font-size: var(--font-size-sm) !important;
}

/* Action Cell Wrapper - Critical for Button Alignment */
.table-actions-cell {
    display: flex !important;
    gap: var(--space-sm);
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Ensure action cells can show badges */
.ongoing-procurements-table td:last-child {
    overflow: visible !important;
}

.table-actions-cell>* {
    position: relative;
}

/* Procurer View Action Buttons */
#procurer-view-open-procurement-button {
    font-size: var(--font-size-xs);
    width: 130px;
    height: 36px;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

#procurer-view-open-procurement-button:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

#procurer-view-open-procurement-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(52, 211, 153, 0.3);
}

#procurer-view-open-chat-button {
    font-size: var(--font-size-xs);
    width: 130px;
    height: 36px;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, #e879c0 0%, #d946a8 100%);
    border: 1px solid rgba(217, 70, 168, 0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(217, 70, 168, 0.3);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    line-height: 1;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

#procurer-view-open-chat-button:hover {
    background: linear-gradient(135deg, #d946a8 0%, #c026a0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 38, 160, 0.4);
}

/* Modern notification badge for Teabevahetus button */
#procurer-view-open-chat-button .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: #b91c74;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    min-width: 18px;
    height: 16px;
    line-height: 1;
    margin-left: 5px;
    box-shadow: 0 1px 3px rgba(185, 28, 116, 0.25), inset 0 0 0 1px rgba(185, 28, 116, 0.15);
    letter-spacing: 0.01em;
    transition: all var(--transition-fast);
}

#procurer-view-open-chat-button:hover .badge {
    background: rgba(255, 255, 255, 1);
    color: #9c1868;
    box-shadow: 0 2px 4px rgba(156, 24, 104, 0.3), inset 0 0 0 1px rgba(156, 24, 104, 0.2);
    transform: scale(1.05);
}

/* Column Widths - Procurer View */
.ongoing-procurements-table.procurer-view td:nth-child(1) {
    width: 60px;
}

/* Nr - compact */
.ongoing-procurements-table.procurer-view td:nth-child(2) {
    width: 450px;
}

/* Nimetus - WIDE */
.ongoing-procurements-table.procurer-view td:nth-child(3) {
    width: 70px;
}

/* Registreerunud pakkujaid - compact */
.ongoing-procurements-table.procurer-view td:nth-child(4) {
    width: 220px;
}

/* CPV-kood - more space */
.ongoing-procurements-table.procurer-view td:nth-child(5) {
    width: 90px;
}

/* Eeldatav maksumus - narrower */
.ongoing-procurements-table.procurer-view td:nth-child(6) {
    width: 100px;
}

/* Avaldamise aeg - narrower */
.ongoing-procurements-table.procurer-view td:nth-child(7) {
    width: 100px;
}

/* Tähtaeg - narrower */
.ongoing-procurements-table.procurer-view td:nth-child(8) {
    width: 60px;
}

/* Pakkumusi - compact */
.ongoing-procurements-table.procurer-view td:nth-child(9) {
    width: 140px;
}

/* Staatus - slightly narrower */
.ongoing-procurements-table.procurer-view td:last-child {
    width: 240px;
}

/* Haldus - keep for buttons */

/* Column Widths - Procurer View Headers (match td widths) */
.ongoing-procurements-table.procurer-view th:nth-child(1) {
    width: 60px;
}

.ongoing-procurements-table.procurer-view th:nth-child(2) {
    width: 450px;
}

.ongoing-procurements-table.procurer-view th:nth-child(3) {
    width: 70px;
}

.ongoing-procurements-table.procurer-view th:nth-child(4) {
    width: 220px;
}

.ongoing-procurements-table.procurer-view th:nth-child(5) {
    width: 90px;
}

.ongoing-procurements-table.procurer-view th:nth-child(6) {
    width: 100px;
}

.ongoing-procurements-table.procurer-view th:nth-child(7) {
    width: 100px;
}

.ongoing-procurements-table.procurer-view th:nth-child(8) {
    width: 60px;
}

.ongoing-procurements-table.procurer-view th:nth-child(9) {
    width: 140px;
}

.ongoing-procurements-table.procurer-view th:last-child {
    width: 240px;
}

/* Column Widths - Tenderer View */
.ongoing-procurements-table.tenderer-view td:nth-child(1) {
    width: 60px;
}

/* Nr - compact */
.ongoing-procurements-table.tenderer-view td:nth-child(2) {
    width: 450px;
}

/* Nimetus - WIDE */
.ongoing-procurements-table.tenderer-view td:nth-child(3) {
    width: 220px;
}

/* CPV-kood - more space */
.ongoing-procurements-table.tenderer-view td:nth-child(4) {
    width: 90px;
}

/* Eeldatav maksumus - narrower */
.ongoing-procurements-table.tenderer-view td:nth-child(5) {
    width: 100px;
}

/* Avaldamise aeg - narrower */
.ongoing-procurements-table.tenderer-view td:nth-child(6) {
    width: 100px;
}

/* Tähtaeg - narrower */
.ongoing-procurements-table.tenderer-view td:nth-child(7) {
    width: 180px;
}

/* Hankija - more space */
.ongoing-procurements-table.tenderer-view td:nth-child(8) {
    width: 90px;
}

/* Kas hankele on registreeritud? - compact toggle */
.ongoing-procurements-table.tenderer-view td:nth-child(9) {
    width: 90px;
}

/* Kas pakkumus on esitatud? - compact */
.ongoing-procurements-table.tenderer-view td:last-child {
    width: 240px;
}

/* Haldus - keep for buttons */

.ongoing-procurements-table.submitted-offers-view td:last-child {
    width: 240px;
}

.ongoing-procurements-table.submitted-offers-view th:last-child {
    width: 240px;
}

.submitted-offers-actions .material-symbols-outlined a,
.submitted-offers-actions .material-symbols-outlined a span:not(.material-symbols-outlined) {
    font-family: var(--font-family-base);
    letter-spacing: normal;
}

/* Column Widths - Tenderer View Headers (match td widths) */
.ongoing-procurements-table.tenderer-view th:nth-child(1) {
    width: 60px;
}

.ongoing-procurements-table.tenderer-view th:nth-child(2) {
    width: 450px;
}

.ongoing-procurements-table.tenderer-view th:nth-child(3) {
    width: 220px;
}

.ongoing-procurements-table.tenderer-view th:nth-child(4) {
    width: 90px;
}

.ongoing-procurements-table.tenderer-view th:nth-child(5) {
    width: 100px;
}

.ongoing-procurements-table.tenderer-view th:nth-child(6) {
    width: 100px;
}

.ongoing-procurements-table.tenderer-view th:nth-child(7) {
    width: 180px;
}

.ongoing-procurements-table.tenderer-view th:nth-child(8) {
    width: 90px;
}

.ongoing-procurements-table.tenderer-view th:nth-child(9) {
    width: 90px;
}

.ongoing-procurements-table.tenderer-view th:last-child {
    width: 240px;
}

/* Column Widths - Submitted Offers View (Tenderer) */
.ongoing-procurements-table.submitted-offers-view td:nth-child(1) {
    width: 60px;
}

/* Nr - compact */
.ongoing-procurements-table.submitted-offers-view td:nth-child(2) {
    width: 450px;
}

/* Nimetus - WIDE */
.ongoing-procurements-table.submitted-offers-view td:nth-child(3) {
    width: 100px;
}

/* Pakkumuse esitamise kp - narrow */
.ongoing-procurements-table.submitted-offers-view td:nth-child(4) {
    width: 100px;
}

/* Tähtaeg - narrow */
.ongoing-procurements-table.submitted-offers-view td:nth-child(5) {
    width: 90px;
}

/* Pakkumuse maksumus - narrow */
.ongoing-procurements-table.submitted-offers-view td:nth-child(6) {
    width: 90px;
}

/* Eeldatav maksumus - narrow */
.ongoing-procurements-table.submitted-offers-view td:nth-child(7) {
    width: 140px;
}

/* Staatus - medium */
.ongoing-procurements-table.submitted-offers-view td:nth-child(8) {
    width: 180px;
}

/* Hankija - more space */
.ongoing-procurements-table.submitted-offers-view td:last-child {
    width: 120px;
}

/* Haldus - compact for icons */

/* Column Widths - Submitted Offers View (Tenderer) Headers */
.ongoing-procurements-table.submitted-offers-view th:nth-child(1) {
    width: 60px;
}

.ongoing-procurements-table.submitted-offers-view th:nth-child(2) {
    width: 450px;
}

.ongoing-procurements-table.submitted-offers-view th:nth-child(3) {
    width: 100px;
}

.ongoing-procurements-table.submitted-offers-view th:nth-child(4) {
    width: 100px;
}

.ongoing-procurements-table.submitted-offers-view th:nth-child(5) {
    width: 90px;
}

.ongoing-procurements-table.submitted-offers-view th:nth-child(6) {
    width: 90px;
}

.ongoing-procurements-table.submitted-offers-view th:nth-child(7) {
    width: 140px;
}

.ongoing-procurements-table.submitted-offers-view th:nth-child(8) {
    width: 180px;
}

.ongoing-procurements-table.submitted-offers-view th:last-child {
    width: 120px;
}

/* Column Widths - Procurer Submitted Offers View */
.ongoing-procurements-table.procurer-submitted-offers-view td:nth-child(1) {
    width: 60px;
}

/* Nr - compact */
.ongoing-procurements-table.procurer-submitted-offers-view td:nth-child(2) {
    width: 450px;
}

/* Nimetus - WIDE */
.ongoing-procurements-table.procurer-submitted-offers-view td:nth-child(3) {
    width: 130px;
}

/* Viimase pakkumuse esitamise kuupäev */
.ongoing-procurements-table.procurer-submitted-offers-view td:nth-child(4) {
    width: 100px;
}

/* Tähtaeg - narrow */
.ongoing-procurements-table.procurer-submitted-offers-view td:nth-child(5) {
    width: 100px;
}

/* Hanke eeldatav maksumus */
.ongoing-procurements-table.procurer-submitted-offers-view td:nth-child(6) {
    width: 80px;
}

/* Pakkumuste arv - compact */
.ongoing-procurements-table.procurer-submitted-offers-view td:last-child {
    width: 180px;
}

/* Pakkumused - medium */

/* Column Widths - Procurer Submitted Offers View Headers */
.ongoing-procurements-table.procurer-submitted-offers-view th:nth-child(1) {
    width: 60px;
}

.ongoing-procurements-table.procurer-submitted-offers-view th:nth-child(2) {
    width: 450px;
}

.ongoing-procurements-table.procurer-submitted-offers-view th:nth-child(3) {
    width: 130px;
}

.ongoing-procurements-table.procurer-submitted-offers-view th:nth-child(4) {
    width: 100px;
}

.ongoing-procurements-table.procurer-submitted-offers-view th:nth-child(5) {
    width: 100px;
}

.ongoing-procurements-table.procurer-submitted-offers-view th:nth-child(6) {
    width: 80px;
}

.ongoing-procurements-table.procurer-submitted-offers-view th:last-child {
    width: 180px;
}

/* Tenderer View Action Buttons */
#tenderer-view-open-procurement-button {
    font-size: var(--font-size-xs);
    width: 130px;
    height: 36px;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    border: 1px solid rgba(217, 70, 168, 0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(217, 70, 168, 0.3);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    line-height: 1;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

#tenderer-view-open-procurement-button:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

#tenderer-view-open-procurement-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(52, 211, 153, 0.3);
}

#tenderer-view-open-chat-button {
    font-size: var(--font-size-xs);
    width: 130px;
    height: 36px;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, #e879c0 0%, #d946a8 100%);
    border: 1px solid rgba(217, 70, 168, 0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(217, 70, 168, 0.3);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    line-height: 1;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

#tenderer-view-open-chat-button:hover {
    background: linear-gradient(135deg, #d946a8 0%, #c026a0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 38, 160, 0.4);
}

/* Modern notification badge for Teabevahetus button */
#tenderer-view-open-chat-button .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: #b91c74;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    min-width: 18px;
    height: 16px;
    line-height: 1;
    margin-left: 5px;
    box-shadow: 0 1px 3px rgba(185, 28, 116, 0.25), inset 0 0 0 1px rgba(185, 28, 116, 0.15);
    letter-spacing: 0.01em;
    transition: all var(--transition-fast);
}

#tenderer-view-open-chat-button:hover .badge {
    background: rgba(255, 255, 255, 1);
    color: #9c1868;
    box-shadow: 0 2px 4px rgba(156, 24, 104, 0.3), inset 0 0 0 1px rgba(156, 24, 104, 0.2);
    transform: scale(1.05);
}

/* Feedback Button ("Anna tagasisidet") - Softer Pink CTA */
a[href="/provide_feedback"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-info) !important;
    border: 1px solid var(--color-info) !important;
    color: white !important;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1.2;
    border-radius: 6px;
    padding: 8px 16px;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.25s ease;
}

a[href="/provide_feedback"]:hover {
    background-color: var(--color-info-hover) !important;
    border-color: var(--color-info-hover) !important;
    box-shadow: none !important;
    transform: translateY(-1px);
}

a[href="/provide_feedback"]:active {
    transform: translateY(0);
    box-shadow: none !important;
}

a[href="/provide_feedback"]:focus {
    outline: 2px solid rgba(201, 79, 160, 0.5);
    outline-offset: 2px;
}

/* "Osalema kutsutavad ettevõtted" button - match feedback CTA styling */
.view-potential-tenderers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-info) !important;
    border: 1px solid var(--color-info) !important;
    color: white !important;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1.2;
    border-radius: 6px;
    padding: 8px 16px;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.25s ease;
}

.view-potential-tenderers:hover {
    background-color: var(--color-info-hover) !important;
    border-color: var(--color-info-hover) !important;
    box-shadow: none !important;
    transform: translateY(-1px);
}

.view-potential-tenderers:active {
    transform: translateY(0);
    box-shadow: none !important;
}

.view-potential-tenderers:focus {
    outline: 2px solid rgba(201, 79, 160, 0.5);
    outline-offset: 2px;
}

/* Invited Companies Modal - table layout */
.invited-companies-table {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #ffffff;
    overflow-x: auto;
}

.invited-companies-table__header,
.invited-companies-table__row {
    display: grid;
    grid-template-columns: 44px minmax(240px, 2.2fr) minmax(110px, 0.8fr) minmax(150px, 1fr) minmax(170px, 1fr) minmax(150px, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 900px;
}

.invited-companies-table__header {
    background-color: #f8f9fa;
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
}

.invited-companies-table__header .invited-companies-table__cell {
    text-align: center;
}

.invited-companies-table__row {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.invited-companies-table__row.border {
    border: 0 !important;
}

.invited-companies-table__row.rounded {
    border-radius: 0 !important;
}

.invited-companies-table__row.p-3 {
    padding: 10px 12px !important;
}

.invited-companies-table__row:last-child {
    border-bottom: none;
}

.invited-companies-table__row:hover {
    background-color: #f8f9fa;
}

.invited-companies-table__cell--check {
    display: flex;
    justify-content: center;
}

.invited-companies-table__cell--number {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.invited-companies-table__cell--status {
    text-align: center;
}

.invited-companies-table__row .invited-companies-table__cell--status {
    display: flex;
    justify-content: center;
}

.invited-companies-table__cell--company {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--color-text);
}

.invited-companies-table__company-name {
    font-weight: 600;
    color: var(--color-text);
    word-break: break-word;
}

.invited-companies-table__company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--color-text-secondary);
    overflow-wrap: anywhere;
}

.invited-companies-table__value--na {
    color: var(--color-text-secondary);
}

.invited-companies-table__row--empty {
    background: transparent;
}

.invited-companies-table__cell--full {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-secondary);
}

.invited-companies-table__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.invited-companies-table__tax-badge--na {
    background: rgba(108, 117, 125, 0.15) !important;
    color: var(--color-text-secondary) !important;
    box-shadow: none !important;
}

.invited-companies-table__remove {
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-text-secondary);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.invited-companies-table__remove:hover {
    color: var(--color-primary);
}

.invited-company-manual-add--compact {
    padding: 10px !important;
    margin-top: 10px !important;
}

.invited-company-manual-add--compact .invited-company-manual-add__title {
    margin-bottom: 4px !important;
}

.invited-company-manual-add--compact .row {
    --bs-gutter-y: 4px;
    --bs-gutter-x: 6px;
}

#invited-company-manual-add {
    margin-top: 6px !important;
}

/* Events Log Page Styling */
.events-log-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.events-log-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-warning);
    text-align: center;
    margin: var(--space-2xl) auto var(--space-xl);
}

.events-log-content {
    margin-top: var(--space-xl);
}

.events-log-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.events-log-item {
    display: grid;
    grid-template-columns: 160px 20px 1fr 20px 180px;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    /* Left bar removed per request; keep spacing intact */
    border-left: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-fast);
    position: relative;
    padding-left: 24px;
}

.events-log-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0, 101, 178, 0.15);
}

.events-log-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

.events-log-meta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    min-width: 0;
    flex-wrap: wrap;
}

.events-log-item .badge-new.badge-new--timeline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    line-height: 1.2;
    background: var(--color-success);
    color: white;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.25);
    border: none;
    min-width: 0;
}

.events-log-date {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    flex-shrink: 0;
}

.events-log-separator {
    color: var(--color-border-dark);
    font-size: var(--font-size-base);
    font-weight: 300;
    text-align: center;
}

.events-log-text {
    font-size: var(--font-size-base);
    color: var(--color-text);
    line-height: 1.5;
}

.events-log-link {
    font-size: var(--font-size-base);
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
}

/* Green text for "Vaata pakkumust" */
.events-log-link a[href*="offers_page"],
.events-log-link a[href*="offersPageForProcurer"] {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.events-log-link a[href*="offers_page"]:hover,
.events-log-link a[href*="offersPageForProcurer"]:hover {
    color: #059669;
    text-decoration: underline;
}

/* Pink text for "Teabevahetus" */
.events-log-link a[href*="information_exchange"] {
    color: #d946a8;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.events-log-link a[href*="information_exchange"]:hover {
    color: #c026a0;
    text-decoration: underline;
}

/* Default link style for "Vaata hanget" */
.events-log-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.events-log-link a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Responsive adjustments for events log */
@media (max-width: 968px) {
    .events-log-item {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .events-log-separator {
        display: none;
    }

    .events-log-link {
        justify-content: flex-start;
    }
}

.tooltiptext {
    position: absolute;
    display: none;
    color: white;
    background-color: var(--color-text);
    width: 200px;
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    font-size: var(--font-size-sm);
    margin-left: 100px;
    box-shadow: var(--shadow-md);
}

.ongoing-procurements-table td:nth-child(3):hover .tooltiptext {
    display: block;
}

.ongoing-offers-for-specific-procurement-table {
    display: block;
    color: var(--color-text);
    background-color: var(--color-surface);
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--font-size-base);
    width: 1000px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.ongoing-offers-for-specific-procurement-table th,
.ongoing-offers-for-specific-procurement-table td {
    width: 33.3%;
    overflow: hidden;
}

.ongoing-offers-for-specific-procurement-table td:nth-child(1),
.ongoing-offers-for-specific-procurement-table td:nth-child(3) {
    text-align: left;
}

.ongoing-offers-for-specific-procurement-table th {
    background-color: var(--color-table-header);
    vertical-align: middle;
    padding: var(--space-md);
    font-weight: 600;
    border-bottom: 2px solid var(--color-border);
}

.ongoing-offers-for-specific-procurement-table tr:nth-child(even) {
    background-color: var(--color-table-row-alt);
}

.ongoing-offers-for-specific-procurement-table td {
    height: 60px;
    vertical-align: middle;
    width: 160px;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.ongoing-offers-for-specific-procurement-table tbody tr:hover {
    background-color: var(--color-table-row-hover);
}

/* Wider Offers Table Wrapper - For Bids/Offers Page */
.wider-offers-table-wrapper {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.wider-offers-table-wrapper .ongoing-procurements-table {
    width: 100%;
    min-width: 900px;
}

.wider-offers-table-wrapper .ongoing-procurements-table th,
.wider-offers-table-wrapper .ongoing-procurements-table td {
    padding: 16px 20px;
}

/* Responsive adjustment for offers table */
@media (max-width: 1280px) {
    .wider-offers-table-wrapper {
        max-width: 95%;
    }
}

@media (max-width: 960px) {
    .wider-offers-table-wrapper .ongoing-procurements-table {
        min-width: auto;
        width: 100%;
    }

    .wider-offers-table-wrapper .ongoing-procurements-table th,
    .wider-offers-table-wrapper .ongoing-procurements-table td {
        padding: 12px 16px;
    }
}

/**********************************************/
/********************LOGIN PAGE****************/
/**********************************************/

#login-page-search-bar {
    width: 1000px;
    display: inline-flex;
    gap: var(--space-md);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: var(--space-2xl);
}

.login-page-auth-content-container {
    display: flex;
    flex-direction: column;
    width: fit-content;
    height: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--space-xl);
}

#login-page-text-container {
    width: fit-content;
    height: fit-content;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-warning);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

#login-page-button-container {
    height: fit-content;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    gap: var(--space-md);
}

#login-page-search-button {
    width: 100px;
}

.login-page-intro-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60%;
    max-width: 800px;
    margin: 32px auto 0;
    text-align: center;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.login-page-intro-text p {
    margin-bottom: 16px;
}

.login-page-intro-text a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

#login-page-button-information-text {
    margin-top: 150px !important;
}

#login-page-login-buttons-div {
    margin-top: 100px;
    align-items: center;
    max-width: 400px;
}

#login-page-option-buttons {
    background-color: var(--color-primary);
    height: 45px;
    font-size: var(--font-size-xl);
}

#user-registration-dropdown-selection {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    width: 650px;
    height: 40px;
    padding: 10px 12px;
}

#registration-page-error-div {
    width: 500px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: var(--space-md);
    color: var(--color-danger);
}

/**********************************************/
/********************ROLE PAGE*****************/
/**********************************************/

#role-page-role-buttons-div {
    margin-top: 215px;
    align-items: center;
    max-width: 400px;
}

#role-page-role-buttons {
    background-color: var(--color-primary);
    height: 45px;
    font-size: var(--font-size-xl);
}

#new-procurement-main-page-buttons-div {
    margin-top: 215px;
    align-items: center;
    max-width: 400px;
}

#new-procurement-main-page-buttons {
    background-color: var(--color-primary);
    height: 45px;
    font-size: var(--font-size-xl);
}

/**********************************************/
/********************MAIN INFO TEXT************/
/**********************************************/

.main-information-text {
    color: var(--color-warning);
    position: absolute;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 150px;
    font-size: var(--font-size-2xl);
    font-weight: 600;
    letter-spacing: 0.02em;
    word-spacing: 0.1em;
}

.contracting-authority-main-page-dashboard {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.rhr-homeInfoExchange {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rhr-homeInfoExchange__container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.rhr-infoExchangeDivider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin: var(--space-lg) auto var(--space-sm);
}

.rhr-homeInfoExchange__summary {
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.rhr-homeInfoExchange__summary .rhr-allMessagesPage__summary-chip {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    box-shadow: none;
}

.rhr-homeInfoExchange__summary .rhr-allMessagesPage__summary-label,
.rhr-homeInfoExchange__summary .rhr-allMessagesPage__summary-count {
    font-size: var(--font-size-sm);
    line-height: 1.1;
}

.rhr-homeInfoExchange__message-procurement {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    font-weight: 400;
}

/**********************************************/
/********************NEW PROCUREMENT SETUP*****/
/**********************************************/

.new-procurement-setup-form-container {
    position: relative;
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    margin: auto;
    margin-top: var(--space-2xl);
    width: calc(100vw - 400px) !important;
    min-height: calc(100vh - 300px);
    height: fit-content;
    margin-bottom: var(--space-2xl);
}

.new-procurement-setup-form-container form {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border);
    width: 100%;
    max-width: 750px;
}

.new-procurement-setup-form-container .form-group {
    padding: 14px 0;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    margin-top: 0 !important;
}

.new-procurement-setup-form-container .form-group:first-child {
    padding-top: 0;
}

.new-procurement-setup-form-container .form-group:last-of-type {
    border-bottom: none;
}

/* Reduce padding-top for form-groups that immediately follow section headers */
.new-procurement-setup-section-title-text-container+.form-group {
    padding-top: 0;
}

.title-text-no-margins {
    color: var(--color-warning);
    text-align: center;
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

#new-procurement-setup-from-title-text {
    margin-top: var(--space-xl);
}

/* ====================================================
   FORM SECTION SPACING - Unified spacing for all major form sections
   ==================================================== */

/* Main section title container - applies to all major sections */
.new-procurement-setup-section-title-text-container {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-top: 32px;
    /* Increased spacing above section headers */
    margin-bottom: 16px;
    /* Consistent spacing below section headers */
}

/* First section should not have top margin */
.new-procurement-setup-section-title-text-container:first-of-type {
    margin-top: 0;
}

/* Reduced spacing for "Uue hanke alustamine" section specifically */
#new-procurement-setup-input-div-radio-user-selected-flow .new-procurement-setup-section-title-text-container {
    margin-bottom: 10px;
    /* Narrower spacing for first section only */
}

/* Section title text styling */
#new-procurement-setup-section-title-text {
    color: var(--color-warning);
    font-size: var(--font-size-xl);
    display: flex;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Alternative section header styling for subsections */
.form-section-header {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--color-text);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

/* Subsection labels within form-groups (like "Hankelepingu kestus") */
.form-group>div:first-child:not([class]) {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

/* Remove top margin from first form-group to avoid double spacing */
.new-procurement-setup-section-title-text-container+.form-group,
.form-section-header+.form-group {
    padding-top: 0 !important;
}

/* Responsive spacing adjustments */
@media (max-width: 768px) {
    .new-procurement-setup-section-title-text-container {
        margin-top: 24px;
        margin-bottom: 12px;
    }
}

#new-procurement-setup-input-div-radio-user-selected-flow {
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

#new-procurement-setup-input-div-radio {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

#new-procurement-setup-input-div-radio-contract-duration input[type="number"] {
    width: 70px !important;
    height: 40px;
}

#new-procurement-setup-input-div-radio-comes-with-procurement,
#new-procurement-setup-input-div-radio-procurement-in-parts,
#new-procurement-setup-input-div-radio-announcement,
#new-procurement-setup-input-div-radio-contract-duration {
    margin-top: 0;
    /* Spacing handled by section header above */
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

#new-procurement-setup-input-div.extended {
    width: 1200px;
}

.new-procurement-setup-dropdown-selection {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    width: 500px;
    height: 40px;
    padding: 10px 12px;
}

.new-procurement-setup-radio-button-container {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
}

.new-procurement-raido-button-text {
    margin-left: 0;
}

/* 2x2 Grid Layout for Radio Groups */
.radio-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
    width: 100%;
    margin-top: var(--space-sm);
}

.radio-grid-wrapper .new-procurement-setup-radio-button-container {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.radio-grid-wrapper .new-procurement-setup-radio-button-container:hover {
    background-color: rgba(0, 101, 178, 0.04);
}

/* Responsive: collapse to single column on narrow screens */
@media (max-width: 768px) {
    .radio-grid-wrapper {
        grid-template-columns: 1fr;
    }
}

.new-procurement-setup-form {
    display: block;
    width: 400px;
}

/* UPDATED: Added newProcurementDeadlineDateTime to match other form inputs */
#new-procurement-setup-input,
#new-tender-cost-input,
#new-procurement-setup-input-name,
#new-procurement-setup-input-estimated-cost,
#new-procurement-setup-input-cpv,
#new-procurement-setup-input-deadline-date,
#new-procurement-setup-input-deadline-time,
#newProcurementDeadlineDateTime,
#new-procurement-description-textarea,
#new-procurement-setup-input-website-address,
#new-procurement-setup-input-contract-date-start,
#new-procurement-setup-input-contract-date-end {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

/* NEW: Ensure datetime input is responsive and doesn't overflow */
#newProcurementDeadlineDateTime {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* NEW: Base styles for inline-inputs container */
.form-group.inline-inputs {
    display: flex;
    width: 100%;
    max-width: 100%;
}

.cpv-spinner {
    width: 24px;
    height: 24px;
    display: inline-block;
    border: 4px solid var(--color-warning);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: cpvspin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: var(--space-sm);
}

@keyframes cpvspin {
    to {
        transform: rotate(360deg);
    }
}

#clear-search {
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: var(--font-size-base);
    line-height: 22px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

#clear-search:hover {
    background: var(--color-warning);
}

#new-procurement-setup-input-div-copy-address-input-div {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--color-text);
}

#new-procurement-setup-copy-address-button {
    appearance: button;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    text-align: left;
    cursor: pointer;
}

#new-procurement-setup-input-div-contract-date {
    width: 100%;
    height: fit-content;
    display: inline-flex;
    gap: var(--space-md);
}

.new-procurement-setup-input-div-label {
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    font-weight: 500;
}

.new-procurement-intext-input-field {
    width: 50px;
    height: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
}

/* NEW: Inline layout for rule row with checkbox and inputs */
.inline-rule-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.inline-rule-row .form-check-input {
    margin: 0;
    flex-shrink: 0;
}

.inline-rule-row label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin: 0;
}

/* NEW: Inline layout for checkbox with label */
.inline-checkbox-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.inline-checkbox-row .form-check-input {
    margin: 0;
    flex-shrink: 0;
}

.inline-checkbox-row label {
    margin: 0;
}

.new-procurement-setup-div-language-selection {
    display: flex;
    flex-direction: column;
}

.new-procurement-setup-language-and-del-button-container {
    display: inline-flex;
    align-items: center;
}

.new-procurement-setup-div-language-selection-sub-div {
    display: inline-flex;
    gap: var(--space-md);
}

#new-procurement-setup-language-select-tag {
    width: 500px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    height: 40px;
}

#new-procurement-unregistered-participants-select-box {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.new-procurement-setup-input-outermost-container {
    margin-top: var(--space-md);
    width: 650px;
    height: fit-content;
}

.new-procurement-setup-add-parts-container {
    width: 650px;
    margin-top: var(--space-md);
    background-color: #fafbfc;
    border: 1px solid rgba(224, 224, 224, 0.8);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-base);
}

.new-procurement-setup-add-parts-container:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--color-border-dark);
}

.new-procurement-setup-add-parts-input {
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md);
    height: 40px;
    width: 100%;
    padding: 10px 12px;
    background-color: var(--color-surface);
}

/* Scoped spacing for CPV button in Hankeosad section only */
.new-procurement-setup-add-parts-cpv-tree-button-container.cpv-button-spacing {
    margin-top: 20px;
}

#new-procurement-setup-add-parts-button {
    width: 100px;
}

#new-procurement-setup-delete-parts-button {
    width: 100px;
    background-color: var(--color-warning);
    border-color: var(--color-warning);
    height: 40px;
}

[id^="new-procurement-setup-upload-container"] {
    width: 100%;
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#make-an-offer-extra-information-div {
    width: 500px;
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 650px;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 0;
}

.dropzone.dragover {
    border: 2px dashed var(--color-primary);
    background-color: var(--color-primary-light);
    transition: all var(--transition-base);
    width: 650px;
    height: 100px;
}

/* Center dropzone content across all instances */
.dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 650px;
    max-width: 100%;
    min-height: 100px;
    box-sizing: border-box;
    padding: 0;
}

/* UPDATED: Changed to flex to ensure proper layout */
[id^="new-procurement-setup-upload-input-and-button-container"] {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    justify-content: center;
    width: 100%;
}

[id^="new-procurement-file-input"] {
    border: 1px solid var(--color-border);
    width: 240px;
}

/* UPDATED: Enhanced centering for the file upload label */
[id^="new-procurement-file-input-label"] {
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    /* NEW: Explicit horizontal centering */
    height: 100px;
    /* restore original visual height */
    width: 100%;
    max-width: 100%;
    /* NEW: Responsive width */
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    /* restore original padding */
    transition: all var(--transition-base);
    color: var(--color-text-secondary);
    background-color: var(--color-surface);
    box-sizing: border-box;
    /* NEW: Ensure padding doesn't affect centering */
    font-weight: 500;
    /* NEW: Moved from inline style for consistency */
    line-height: 1.4;
    margin: 0;
}

.dropzone-label-content {
    display: flex;
    width: 100%;
    height: 100%;
    text-align: center;
    align-items: center !important;
    justify-content: center !important;
}

[id^="new-procurement-file-input-label"]:hover {
    cursor: pointer;
    border-color: var(--color-primary-hover);
    background-color: var(--color-primary-light);
}

/* NEW: Responsive adjustments for file upload dropzone */
@media (max-width: 768px) {
    [id^="new-procurement-file-input-label"] {
        width: 100%;
        min-width: 280px;
    }

    [id^="new-procurement-setup-upload-input-and-button-container"] {
        width: 100%;
    }
}

[id^="new-procurement-setup-file-upload-button"],
[id^="new-procurement-setup-file-remove-button"],
[id^="new-procurement-setup-file-delete-button"] {
    display: flex;
    align-items: center;
    color: var(--color-success);
    background-color: white;
    border: 1px solid white;
    border-radius: var(--radius-md);
    height: fit-content;
    width: fit-content;
    padding: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

[id^="new-procurement-setup-file-remove-button"],
[id^="new-procurement-setup-file-delete-button"] {
    color: var(--color-danger);
}

[id^="new-procurement-setup-file-upload-button"]:hover,
[id^="new-procurement-setup-file-remove-button"]:hover,
[id^="new-procurement-setup-file-delete-button"]:hover {
    opacity: 0.8;
}

[id^="new-procurement-setup-file-upload-message-and-delete-box-container"] {
    display: flex;
    flex-direction: column;
    margin-top: var(--space-sm);
}

[id^="new-procurement-setup-file-upload-message-box"] {
    color: var(--color-danger);
    font-weight: bold;
}

/* Uploaded File List Styles - UPDATED: Support multiple containers */
#uploaded-file-name-container,
[id^="uploaded-file-name-container"] {
    margin-top: var(--space-md) !important;
    width: 100%;
}

#uploaded-file-name-container>div:first-child,
[id^="uploaded-file-name-container"]>div:first-child {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-success);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, rgba(15, 173, 75, 0.08) 0%, rgba(15, 173, 75, 0.03) 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 173, 75, 0.2);
}

.uploaded-files-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.uploaded-file-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary);
    transform: scaleY(0);
    transition: transform var(--transition-base);
    transform-origin: bottom;
}

.uploaded-file-item:hover {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    box-shadow: 0 3px 8px rgba(0, 101, 178, 0.15);
    transform: translateX(3px);
}

.uploaded-file-item:hover::before {
    transform: scaleY(1);
}

.uploaded-file-icon {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 24px !important;
    color: var(--color-primary);
    flex-shrink: 0;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(0, 101, 178, 0.08);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.uploaded-file-item:hover .uploaded-file-icon {
    background: rgba(0, 101, 178, 0.12);
    transform: scale(1.05);
}

.uploaded-file-name {
    flex: 1;
    word-break: break-word;
    line-height: 1.5;
    font-weight: 500;
    color: var(--color-text);
    min-width: 0;
}

.upload-success-icon {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 20px !important;
    color: var(--color-success);
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
    flex-shrink: 0;
    line-height: 1;
}

#new-procurement-setup-submit-button-div {
    margin-top: var(--space-xl);
    width: 700px;
    height: fit-content;
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

#tenderer-procurement-detail-view-button-div-column {
    margin-top: var(--space-xl);
    width: 600px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
}

#tenderer-procurement-detail-view-button-div {
    margin-top: var(--space-xl);
    width: 600px;
    height: fit-content;
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
}

#new-procurement-setup-page-button-review,
#new-procurement-setup-page-button-publish,
#new-procurement-setup-page-button-change,
#new-procurement-setup-page-button-delete {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    height: 48px;
    font-size: var(--font-size-xl);
    width: 200px;
}

#all-messages-mainpage-button {
    --bs-btn-bg: #e7bb37 !important;
    --bs-btn-border-color: #e7bb37 !important;
    --bs-btn-hover-bg: #e7bb37 !important;
    --bs-btn-hover-border-color: #e7bb37 !important;
    color: white;

    height: 48px;
    font-size: var(--font-size-xl);
    width: 200px;
}

#new-procurement-setup-page-new-deal {
    --bs-btn-bg: #10b981 !important;
    --bs-btn-border-color: #10b981 !important;
    --bs-btn-hover-bg: #059669 !important;
    --bs-btn-hover-border-color: #059669 !important;
    color: white;

    height: 48px;
    font-size: var(--font-size-xl);
    width: 200px;
}

#new-procurement-setup-page-button-publish {
    background-color: var(--color-success);
    border-color: var(--color-success);
}

#new-procurement-setup-page-button-publish:hover:not(:disabled) {
    background-color: var(--color-success-hover);
    border-color: var(--color-success-hover);
}

#new-procurement-setup-page-button-change,
.btn-warning {
    background-color: var(--color-warning);
    border-color: var(--color-warning);
    color: white;
}

#new-procurement-setup-page-button-change:hover:not(:disabled),
.btn-warning:hover:not(:disabled) {
    background-color: var(--color-warning-hover);
    border-color: var(--color-warning-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

#new-procurement-setup-page-button-change:active:not(:disabled),
.btn-warning:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
}

#new-procurement-setup-page-button-delete {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
}

#tenderer-procurement-detail-view-button-offer {
    height: 48px;
    font-size: var(--font-size-xl);
    width: 200px;
}

#tenderer-procurement-detail-view-button-cancel {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
    height: 48px;
    font-size: var(--font-size-xl);
    width: 200px;
}

#tenderer-procurement-detail-view-button-change {
    background-color: var(--color-warning);
    border-color: var(--color-warning);
    color: white;
    height: 48px;
    font-size: var(--font-size-xl);
    width: 200px;
}

#tenderer-procurement-detail-view-button-change:hover:not(:disabled) {
    background-color: var(--color-warning-hover);
    border-color: var(--color-warning-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

#tenderer-procurement-detail-view-button-change:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
}

#tenderer-procurement-detail-view-button-ask {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    height: 48px;
    font-size: var(--font-size-xl);
    width: 200px;
}

#new-procurement-page-checkbox,
#new-procurement-page-checkbox-automatically-lengthen {
    border: 1px solid var(--color-border);
}

/**********************************************/
/********************DETAIL VIEW***************/
/**********************************************/

.new-procurement-detail-view-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: 700px;
    height: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.submitted-tender-detail-view-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: 700px;
    height: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

#new-procurement-detail-view-title-text {
    display: flex;
    height: fit-content;
    width: 700px;
    justify-content: center;
    color: var(--color-warning);
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

.title-between-navigation-buttons{
    display: flex;
    height: 20px;
    margin-top: 5px;
    font-weight: 400;
    font-size: x-large;
    color: #5b666f;
    
}

#new-procurement-detail-view-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: var(--font-size-base);
    margin-bottom: var(--space-lg);
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border);
}

.new-procurement-detail-view-content-item {
    display: flex;
    gap: var(--space-lg);
    padding: 20px 0;
    background-color: transparent;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    transition: all var(--transition-base);
}

.new-procurement-detail-view-content-item:first-child {
    padding-top: 0;
}

.new-procurement-detail-view-content-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.new-procurement-detail-view-content-item:hover {
    background-color: rgba(0, 101, 178, 0.02);
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
}

.new-procurement-detail-view-content-static-part {
    font-weight: 600;
    width: 300px;
    color: var(--color-text);
    font-size: var(--font-size-sm);
    letter-spacing: 0.01em;
}

.new-procurement-detail-view-content-dynamic-part {
    width: 700px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.partial_messages {
    display: flex;
    justify-content: center;
    margin-top: var(--space-lg);
}

/**********************************************/
/********************ASSISTANT PAGE************/
/**********************************************/

.contracting-authority-assistant-page-div {
    position: relative;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    background-color: #ff9;
    margin: auto;
    width: calc(100vw - 10px);
    min-height: calc(100vh - 300px);
    height: fit-content;
    margin-bottom: var(--space-2xl);
}

.contracting-authority-docucom-page-div {
    position: relative;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    background-color: rgb(252, 252, 248);
    margin: auto;
    width: calc(100vw - 400px);
    min-height: calc(100vh - 300px);
    height: fit-content;
    margin-bottom: var(--space-2xl);
}

/**********************************************/
/********************CHAT/INFO EXCHANGE********/
/**********************************************/

/* Modern Chat Layout Container */
.rhr-chat-layout {
    width: 100%;
    max-width: calc(100vw - 100px);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

.specific-procurement-information-exchange-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: 700px;
    height: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    align-items: center;
}

#tenderer-question-to-specific-procurement-input {
    margin-top: calc(-1 * var(--space-lg));
}

/* Main Chat Page Title */
#new-procurement-detail-view-title-text {
    display: flex;
    height: fit-content;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--space-2xl);
    color: var(--color-warning);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
}

/* Chat Column Headers - Clean Simple Style (No Box) */
.rhr-chat-column-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 0;
    margin-bottom: var(--space-lg);
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.01em;
}

/* Variant classes retained for compatibility but no additional styling needed */
.rhr-chat-column-header--unanswered,
.rhr-chat-column-header--answered {
    background: transparent;
}

/* Message Count Badge - Modern Compact Style */
.rhr-chat-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 var(--space-sm);
    font-size: var(--font-size-sm);
    font-weight: 700;
    border-radius: var(--radius-lg);
    letter-spacing: 0;
}

/* UPDATED: Unanswered badge now uses coral attention color */
.rhr-chat-count-badge--unanswered {
    background: rgba(232, 111, 111, 0.15);
    color: #7f1d1d;
    border: none;
    box-shadow: 0 2px 4px rgba(232, 111, 111, 0.3);
}

.rhr-chat-count-badge--answered {
    background: linear-gradient(135deg, #52b07f 0%, #429d70 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 4px rgba(82, 176, 127, 0.3);
}

/* Legacy column headers - clean simple style (no box) */
.specific-information-exchange-column-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 0;
    margin-bottom: var(--space-lg);
    background: transparent;
    border: none;
    font-weight: 700;
    color: #1a1a1a;
    border-radius: 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.01em;
}

.specific-information-exchange-container {
    display: grid;
    grid-template-columns: 50% 50%;
    height: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--space-lg);
    background-color: var(--color-bg);
    width: 80%;
}

.specific-information-exchange-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    width: 100%;
    height: fit-content;
    align-items: center;
    padding-bottom: var(--space-xl);
}

.specific-information-exchange-company-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    width: 100%;
    height: fit-content;
    align-items: center;
    padding-bottom: var(--space-xl);
}

#specific-information-exchange-answers-column {
    background-color: var(--color-bg);
}

#specific-information-exchange-questions-column {
    width: 100%;
    height: auto;
    background-color: var(--color-bg);
}

#specific-information-exchange-answers-column-header {
    background-color: transparent;
    margin-top: 0;
    width: 100%;
    height: auto;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
}

div[id^="specific-information-exchange-questions-column-header-"] {
    background-color: transparent;
    margin-top: 0;
    width: 100%;
    height: auto;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
}

/* Modern Message Card System */
.rhr-message-card {
    width: 100%;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-base);
    overflow: hidden;
}

.rhr-message-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Company Header in Message Cards */
.rhr-message-card__company-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: white !important;
    letter-spacing: 0.01em;
    border-radius: 0 !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* UPDATED: Unanswered message header now uses coral attention color */
.rhr-message-card__company-header--unanswered {
    background: linear-gradient(135deg, #e86f6f 0%, #c54848 100%) !important;
}

.rhr-message-card__company-header--answered {
    background: linear-gradient(135deg, #52b07f 0%, #429d70 100%) !important;
}

.rhr-message-card__company-count {
    font-size: var(--font-size-xs);
    font-weight: 500;
    opacity: 0.95;
}

/* NEW: Pending message card variants for coral attention theme */
.rhr-message-card.pending-attention {
    border-color: #e86f6f;
    background: #fef0f0;
}

.rhr-message-card.pending-attention:hover {
    box-shadow: 0 4px 12px rgba(232, 111, 111, 0.12);
    border-color: #d85a5a;
}

/* NEW: Pending attention state for unanswered company divs */
.unanswered-company-div.pending-attention {
    border-color: #e86f6f !important;
    background-color: #fef0f0 !important;
}

.unanswered-company-div.pending-attention:hover {
    border-color: #d85a5a !important;
}

/* NEW: Helper classes for pending state styling */
.border-pending {
    border-color: #e86f6f !important;
}

.bg-pending-light {
    background-color: #fef0f0 !important;
}

.bg-pending {
    background-color: #e86f6f !important;
}

.bg-pending-dark {
    background-color: #d85a5a !important;
}

/* Individual Question/Message within Card */
.rhr-message-card__question {
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
}

.rhr-message-card__question:last-child {
    border-bottom: none;
}

.rhr-message-card__metadata {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
}

.rhr-message-card__metadata strong {
    color: #1f1f1f;
    font-weight: 600;
}

.rhr-message-card__metadata .text-muted {
    color: #666666;
    font-size: var(--font-size-xs);
}

/* Message Body - Question Bubble (slightly left-aligned) */
.rhr-message-card__body {
    padding: var(--space-md);
    background: linear-gradient(135deg, #d1e8f9 0%, #c9daea 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(59, 130, 246, 0.32);
    line-height: 1.6;
    margin-right: 20px;
    position: relative;
}

/* Subtle bubble tail for questions (left side) */
.rhr-message-card__body::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 14px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid rgba(59, 130, 246, 0.32);
}

.rhr-message-card__body::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid #d1e8f9;
}

.rhr-message-card__body p {
    margin-bottom: var(--space-sm);
    color: #1f1f1f;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Answer Section Styling */
/* Answer section wrapper - slightly right-aligned for conversation flow */
.rhr-message-card__answer-section {
    margin-left: 20px;
    margin-top: var(--space-md);
    position: relative;
}

.rhr-message-card__answer-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: #059669;
}

.rhr-message-card__answer-body {
    padding: var(--space-md);
    background: linear-gradient(135deg, #ddf4e4 0%, #cae8d5 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.38);
    line-height: 1.6;
    position: relative;
}

/* Subtle bubble tail for answers (lower-right corner) */
.rhr-message-card__answer-body::before {
    content: '';
    position: absolute;
    right: -6px;
    bottom: 8px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid rgba(16, 185, 129, 0.38);
}

.rhr-message-card__answer-body::after {
    content: '';
    position: absolute;
    right: -5px;
    bottom: 9px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #ddf4e4;
}

.rhr-message-card__answer-body p,
.rhr-message-card__answer-body>div {
    margin-bottom: var(--space-sm);
    color: #1f1f1f;
}

/* Responsive adjustments for chat bubbles */
@media (max-width: 768px) {
    .rhr-message-card__answer-section {
        margin-left: 12px;
    }

    .rhr-message-card__body {
        margin-right: 12px;
    }
}

/* Attachment Links */
.rhr-message-card__attachment {
    display: inline-flex !important;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.rhr-message-card__attachment:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary-hover);
}

.rhr-message-card__attachment .material-symbols-outlined {
    font-size: 18px;
}

/* Legacy Support */
.specific-information-exchange-column-company-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    min-height: fit-content;
    overflow: auto;
}

.specific-information-exchange-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #a0c7af;
}

.specific-information-exchange-item {
    width: 100%;
}

.specific-information-exchange-specific-message-info {
    display: flex;
    justify-content: center;
    padding-top: var(--space-md);
    color: var(--color-text);
}

.specific-information-exchange-specific-message-text {
    color: var(--color-text);
    font-size: var(--font-size-base);
    height: fit-content;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-bottom: var(--space-lg);
    background-color: var(--color-surface);
}

/* Chat Action Buttons */
.rhr-chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1.5px solid;
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1;
}

.rhr-chat-btn--answer {
    background: white;
    border-color: var(--color-primary);
    color: var(--color-primary);
    min-width: 90px;
}

.rhr-chat-btn--answer:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-hover);
    color: var(--color-primary-hover);
    transform: translateY(-1px);
}

.rhr-chat-btn--copy {
    background: white;
    border-color: var(--color-success);
    color: var(--color-success);
    min-width: 90px;
}

.rhr-chat-btn--copy:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--color-success-hover);
    color: var(--color-success-hover);
    transform: translateY(-1px);
}

/* Legacy button support */
button[id^="specific-information-exchange-specific-answer-copy-button-"],
.copy-answer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-success) !important;
    background: white !important;
    color: var(--color-success) !important;
    min-width: 90px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

button[id^="specific-information-exchange-specific-answer-copy-button-"]:hover,
.copy-answer-button:hover {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: var(--color-success-hover) !important;
    color: var(--color-success-hover) !important;
    transform: translateY(-1px);
}

.direct-to-answer-form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-primary) !important;
    background: white !important;
    color: var(--color-primary) !important;
    min-width: 90px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.direct-to-answer-form-button:hover {
    background: var(--color-primary-light) !important;
    border-color: var(--color-primary-hover) !important;
    color: var(--color-primary-hover) !important;
    transform: translateY(-1px);
}

.specific-information-exchange-specific-answer-text {
    color: var(--color-text);
    font-size: var(--font-size-base);
    height: fit-content;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: var(--space-md);
}

.accordion-button.specific-information-exchange-information-button {
    width: 100% !important;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    background-color: #cfe2ff;
}

.accordion-button.specific-information-exchange-information-button:not(.collapsed) {
    background-color: #cfe2ff;
}

#specific-information-exchange-specific-message-answer-button-container {
    display: block;
    width: 100%;
    height: fit-content;
    margin-bottom: calc(-1 * var(--space-md)) !important;
}

.accordion-button.specific-information-exchange-specific-message-answer-button {
    width: fit-content !important;
    height: fit-content !important;
    padding: 0 !important;
    float: right;
    background-color: #afe5b0c2 !important;
    margin: 0;
    box-shadow: none;
    border: none;
    outline: none;
}

.accordion-button.specific-information-exchange-specific-message-answer-button:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.accordion-button.specific-information-exchange-specific-message-answer-button.collapsed {
    border-bottom-right-radius: unset;
    border-bottom-left-radius: unset;
}

div[id^="specific-information-exchange-specific-message-answering-container-"] {
    width: 100%;
}

.specific-information-exchange-column-company-container-expanding-area {
    display: flex;
    justify-content: center;
    background-color: var(--color-warning);
    border: none;
    width: 100%;
    margin-top: auto;
    cursor: pointer;
}

.specific-information-exchange-column-company-container {
    width: 90%;
    height: 120px;
    background-color: #86b7fe;
    border: 1px solid #86b7fe;
    border-radius: var(--radius-md);
}

.specific-information-exchange-column-company-information-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: fit-content;
    background-color: #cfe2ff;
    border: 1px solid #cfe2ff;
    border-radius: var(--radius-sm);
}

.specific-information-exchange-column-company-container-name {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    height: fit-content;
    background-color: #cfe2ff;
    color: var(--color-text);
    border: 1px solid #cfe2ff;
    border-radius: var(--radius-sm);
}

.specific-information-exchange-column-company-information-unread-messages-container {
    display: flex;
    flex-direction: row;
    gap: var(--space-sm);
}

#accordionPanelsStayOpen {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.accordion-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    cursor: default;
    background-color: #cfe2ff;
}

.chat-item-container-div {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(60, 127, 213, 0.2);
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
    padding: var(--space-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-base);
}

.chat-item-container-div:hover {
    border-color: rgba(60, 127, 213, 0.35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.chat-interact-button-container {
    display: flex;
    align-items: center !important;
    justify-content: center !important;
}

button[id^="chat-answer-button-"] {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    margin-bottom: var(--space-md);
    width: 100px;
    height: 40px;
}

.chat-attachment-container-div {
    color: var(--color-primary);
}

/* Scrollable Message Panel */
.scrollable-panel {
    height: calc(100vh - 400px);
    min-height: 500px;
    overflow-y: auto;
    padding-right: var(--space-sm);
}

.scrollable-panel::-webkit-scrollbar {
    width: 8px;
}

.scrollable-panel::-webkit-scrollbar-track {
    background: var(--color-bg);
    border-radius: var(--radius-sm);
}

.scrollable-panel::-webkit-scrollbar-thumb {
    background: var(--color-border-dark);
    border-radius: var(--radius-sm);
}

.scrollable-panel::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

.chat-textarea-container-div {
    display: flex;
    flex-direction: column;
    min-height: 120px;
}

.chat-textarea {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    width: 100%;
    min-height: 120px;
    word-wrap: break-word;
    white-space: pre-wrap;
    margin: auto;
    padding: 16px;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: 1.6;
    transition: all var(--transition-base);
    background-color: var(--color-surface);
}

.chat-textarea:hover {
    border-color: var(--color-border-dark);
}

.chat-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-light);
    background-color: #fafbfc;
}

/**********************************************/
/********************JSTREE********************/
/**********************************************/

#jstree_demo_div .jstree-ocl {
    background: none !important;
    width: 24px;
    text-align: center;
}

#jstree_demo_div .jstree-closed>.jstree-ocl::before {
    content: "add";
    font-family: 'Material Icons';
    font-size: 25px;
    font-style: normal;
    color: var(--color-success);
}

#jstree_demo_div .jstree-open>.jstree-ocl::before {
    content: "remove";
    font-family: 'Material Icons';
    font-size: 25px;
    font-style: normal;
    color: var(--color-danger);
}

/**********************************************/
/********************TENDER STAR***************/
/**********************************************/

#tenderer_ongoing-procurement-table-icon-div_star {
    color: var(--color-text);
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}

#tenderer_ongoing-procurement-table-icon-div_star>a {
    color: var(--color-text);
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}

#tenderer_ongoing-procurement-table-icon-div_star:hover {
    cursor: pointer;
}

#submitted-tenders-page-details-icon>a {
    color: var(--color-success);
    font-size: x-large;
}

#submitted-tenders-page-notification-icon>a {
    color: var(--color-danger);
    font-size: x-large;
}

/**********************************************/
/********************FOOTER********************/
/**********************************************/

.application-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0;
    width: 100%;
    height: 100px;
    background-color: #4a4a49;
    color: white;
}

.application-footer-information-div {
    position: relative;
    color: white;
    text-align: center;
}

.application-footer-information-div a {
    color: white;
    text-decoration: underline;
}

.application-footer-information-div a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/**********************************************/
/********************MODALS********************/
/**********************************************/

.modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--color-border);
    padding: 20px 24px;
    background: linear-gradient(to bottom, #fafbfc, var(--color-surface));
}

.modal-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.01em;
}

.modal-body {
    padding: 24px;
    background-color: var(--color-surface);
}

.modal-footer {
    border-top: 1px solid var(--color-border);
    padding: 18px 24px;
    gap: var(--space-md);
    background-color: #fafbfc;
    display: flex;
    justify-content: flex-end;
}

.confirmation-modal {
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    animation: pop-in 0.25s ease-out;
}

.success-icon {
    display: inline-block;
    font-size: 60px !important;
    width: 1em;
    height: 1em;
    color: var(--color-success);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: pulse 1.2s infinite ease-in-out;
    font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 200, 'opsz' 48;
}

@keyframes pop-in {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/**********************************************/
/********************UTILITIES*****************/
/**********************************************/

.loader {
    width: 20px;
    aspect-ratio: 4;
    background: radial-gradient(circle closest-side, var(--color-primary) 90%, #0000) 0/calc(100%/3) 100% space;
    clip-path: inset(0 100% 0 0);
    animation: l1 1s steps(4) infinite;
}

@keyframes l1 {
    to {
        clip-path: inset(0 -34% 0 0);
    }
}

.accordion {
    background-color: #eee;
    color: #444;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: var(--transition-base);
}

.accordion:hover {
    background-color: var(--color-table-row-hover);
}

.accordion-body {
    width: 100%;
}

.panel {
    padding: 0 var(--space-lg);
    display: none;
    overflow: hidden;
}

.sandbox-div {
    height: 100px;
    width: 100px;
    background-color: rgb(160, 153, 255);
    margin-top: 100px;
}

/* Alert styles */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.alert-danger {
    background-color: rgba(173, 60, 15, 0.1);
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
}

.alert-success {
    background-color: rgba(15, 173, 75, 0.1);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--color-warning);
    color: var(--color-warning);
}

.alert-info {
    background-color: rgba(0, 101, 178, 0.1);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

/* Card Refinements */
.card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(to bottom, #fafbfc, var(--color-surface));
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--color-border);
    background-color: #fafbfc;
}

/* Text Utilities */
.text-muted {
    color: var(--color-text-muted) !important;
}

.text-primary {
    color: var(--color-primary) !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-danger {
    color: var(--color-danger) !important;
}

.text-warning {
    color: var(--color-warning) !important;
}

.text-center {
    text-align: center !important;
}

/* Spacing Utilities */
.mt-2 {
    margin-top: var(--space-sm) !important;
}

.mt-3 {
    margin-top: var(--space-md) !important;
}

.mt-4 {
    margin-top: var(--space-lg) !important;
}

.mb-2 {
    margin-bottom: var(--space-sm) !important;
}

.mb-3 {
    margin-bottom: var(--space-md) !important;
}

.mb-4 {
    margin-bottom: var(--space-lg) !important;
}

.p-3 {
    padding: var(--space-md) !important;
}

.p-4 {
    padding: var(--space-lg) !important;
}

/* Layout Utilities */
.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.gap-2 {
    gap: var(--space-sm) !important;
}

.gap-3 {
    gap: var(--space-md) !important;
}

.gap-4 {
    gap: var(--space-lg) !important;
}

/* Modern Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border-radius: 4px;
    min-width: 20px;
    height: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    line-height: 1.2;
    font-family: var(--font-family-base);
}

/* Bootstrap Badge Modifiers (matching RHR color tokens) */
.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #ea8e0a 100%);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

.badge.bg-warning.text-dark {
    color: #92400e;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: none;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #0d9d6f 100%);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
}

.badge-new,
span[style*="color: red"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--color-success) 0%, #34d399 100%);
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    border: none;
}

/* Modern Event Status Indicator */
.event-marker {
    display: none !important;
}

.diamond-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(148, 163, 184, 0.4);
    flex-shrink: 0;
}

/**********************************************/
/**********NAVIGATION BUTTON STYLES************/
/**********************************************/

/* Base navigation button - clean pill style */
.rhr-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-family-base);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    border: 1.5px solid transparent;
    background-color: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1.3;
    white-space: nowrap;
}

.rhr-nav-link:focus {
    outline: 2px solid rgba(0, 101, 178, 0.3);
    outline-offset: 3px;
}

/* Icon styling */
.rhr-nav-link__icon {
    font-size: 24px;
    line-height: 1;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

/* Label styling */
.rhr-nav-link__label {
    line-height: 1.3;
}

/* Back/left navigation variant (blue) */
.rhr-nav-link--primary {
    color: var(--color-primary);
    background: rgba(0, 101, 178, 0.06);
    border-color: rgba(0, 101, 178, 0.2);
}

.rhr-nav-link--primary:hover {
    color: var(--color-primary-hover);
    background: rgba(0, 101, 178, 0.12);
    border-color: rgba(0, 101, 178, 0.35);
    transform: translateX(-2px);
}

.rhr-nav-link--primary:hover .rhr-nav-link__icon {
    transform: translateX(-2px);
}

.rhr-nav-link--primary:active {
    transform: translateX(0);
    background: rgba(0, 101, 178, 0.16);
}

/* Forward/secondary navigation variant (pink) */
.rhr-nav-link--secondary {
    color: var(--color-info);
    background: rgba(209, 30, 170, 0.06);
    border-color: rgba(209, 30, 170, 0.2);
}

.rhr-nav-link--secondary:hover {
    color: var(--color-info-hover);
    background: rgba(209, 30, 170, 0.12);
    border-color: rgba(209, 30, 170, 0.35);
    transform: translateX(2px);
}

.rhr-nav-link--secondary:hover .rhr-nav-link__icon {
    transform: translateX(2px);
}

.rhr-nav-link--secondary:active {
    transform: translateX(0);
    background: rgba(209, 30, 170, 0.16);
}

/**********************************************/
/**********RESPONSIVE LAYOUT SYSTEM************/
/**********************************************/

/* Large screens (≥1440px) - Current design preserved exactly as-is */
/* No media query = base styles apply unchanged */

/* Medium laptops (1280px - 1439px) - Tighter vertical spacing */
@media (max-width: 1439px) and (min-width: 1280px) {

    /* Tables - reduce vertical padding and margins */
    .ongoing-procurements-table-div {
        margin-top: 32px;
        width: auto;
        max-width: calc(100vw - 80px);
    }

    .ongoing-procurements-table td {
        height: 56px;
        padding: 10px 8px;
    }

    .ongoing-procurements-table th {
        padding: 12px 10px;
    }

    /* Detail views - tighter spacing */
    .new-procurement-detail-view-wrapper,
    .submitted-tender-detail-view-wrapper {
        margin-top: 32px;
        margin-bottom: 32px;
    }

    .new-procurement-detail-view-content-item {
        padding: 16px 0;
    }

    /* Form containers - reduce vertical gaps */
    .new-procurement-setup-form-container {
        width: calc(100vw - 350px);
        margin-top: 32px;
        margin-bottom: 32px;
    }

    /* Login/landing - tighter intro */
    .login-page-intro-text {
        margin: 24px auto 0;
    }

    #login-page-button-information-text {
        margin-top: 120px !important;
    }

    #login-page-login-buttons-div {
        margin-top: 80px;
    }
}

/* Smaller laptops (1024px - 1279px) - More vertical compression, especially for 15.6" @ 125% */
@media (max-width: 1279px) {

    /* Aggressive vertical spacing reduction for more visible rows */
    .ongoing-procurements-table-div {
        margin-top: 24px;
        width: calc(100vw - 60px);
    }

    .ongoing-procurements-table td {
        height: 52px;
        padding: 8px 6px;
        font-size: 13px;
    }

    .ongoing-procurements-table th {
        padding: 10px 8px;
        font-size: 13px;
    }

    /* Column width adjustments for better fit */
    .ongoing-procurements-table.procurer-view td:nth-child(2),
    .ongoing-procurements-table.tenderer-view td:nth-child(2),
    .ongoing-procurements-table.procurer-view th:nth-child(2),
    .ongoing-procurements-table.tenderer-view th:nth-child(2) {
        width: 400px;
    }

    .ongoing-procurements-table.procurer-view td:nth-child(4),
    .ongoing-procurements-table.tenderer-view td:nth-child(3),
    .ongoing-procurements-table.procurer-view th:nth-child(4),
    .ongoing-procurements-table.tenderer-view th:nth-child(3) {
        width: 190px;
    }

    /* Forms - tighter vertical spacing */
    .new-procurement-setup-form-container {
        width: calc(100vw - 280px);
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .new-procurement-setup-form-container form {
        padding: 24px;
        max-width: 700px;
    }

    .new-procurement-setup-form-container .form-group {
        padding: 12px 0;
    }

    .form-group {
        margin-top: 12px;
        max-width: 650px;
    }

    /* Detail views - compact */
    .new-procurement-detail-view-wrapper,
    .submitted-tender-detail-view-wrapper {
        margin-top: 24px;
        margin-bottom: 24px;
        width: 90%;
        max-width: 700px;
    }

    #new-procurement-detail-view-content-wrapper {
        padding: 20px;
    }

    .new-procurement-detail-view-content-item {
        padding: 14px 0;
    }

    .new-procurement-detail-view-content-static-part {
        width: 260px;
    }

    /* Login/landing - much tighter */
    #login-page-search-bar {
        width: 92%;
        max-width: 900px;
        margin-top: 32px;
    }

    .login-page-intro-text {
        margin: 20px auto 0;
        width: 72%;
    }

    .login-page-intro-text p {
        margin-bottom: 12px;
    }

    #login-page-button-information-text {
        margin-top: 100px !important;
    }

    #login-page-login-buttons-div {
        margin-top: 70px;
    }

    /* Info exchange - tighter */
    .specific-procurement-information-exchange-wrapper {
        margin-top: 24px;
        margin-bottom: 24px;
        width: 90%;
    }

    /* Header navigation containers */
    div[style*="calc(100vw - 400px)"] {
        width: calc(100vw - 240px) !important;
        margin-top: 40px !important;
        margin-bottom: -40px !important;
    }

    div[style*="width: 700px"][style*="margin-top: 70px"] {
        margin-top: 50px !important;
    }

    /* Navigation buttons - slightly smaller */
    .rhr-nav-link {
        padding: 9px 18px;
        font-size: 14px;
    }

    .rhr-nav-link__icon {
        font-size: 22px;
    }

    /* Table action buttons - compact */
    #procurer-view-open-procurement-button,
    #procurer-view-open-chat-button,
    #tenderer-view-open-procurement-button,
    #tenderer-view-open-chat-button {
        width: 125px;
        height: 34px;
        font-size: 11px;
    }

    /* Body wrapper - less bottom padding */
    .application-body-wrapper {
        min-height: calc(100vh - 220px);
        padding-bottom: 24px;
    }

    /* Section titles - less margin */
    .title-text-no-margins {
        font-size: 1.35rem;
    }

    #new-procurement-detail-view-title-text {
        font-size: 1.35rem;
    }
}

/* Extra small laptops (992px - 1023px) - Very compact */
@media (max-width: 1023px) {
    .ongoing-procurements-table-div {
        width: calc(100vw - 40px);
        margin-top: 20px;
    }

    .ongoing-procurements-table td {
        height: 48px;
        padding: 7px 5px;
        font-size: 12px;
    }

    .ongoing-procurements-table th {
        padding: 9px 6px;
        font-size: 12px;
    }

    .ongoing-procurements-table.procurer-view td:nth-child(2),
    .ongoing-procurements-table.tenderer-view td:nth-child(2),
    .ongoing-procurements-table.procurer-view th:nth-child(2),
    .ongoing-procurements-table.tenderer-view th:nth-child(2) {
        width: 350px;
    }

    .ongoing-procurements-table.procurer-view td:nth-child(4),
    .ongoing-procurements-table.tenderer-view td:nth-child(3),
    .ongoing-procurements-table.procurer-view th:nth-child(4),
    .ongoing-procurements-table.tenderer-view th:nth-child(3) {
        width: 160px;
    }

    .new-procurement-setup-form-container {
        width: calc(100vw - 200px);
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .new-procurement-detail-view-wrapper,
    .submitted-tender-detail-view-wrapper {
        margin-top: 20px;
        margin-bottom: 20px;
        width: 92%;
    }

    .form-group {
        margin-top: 10px;
        width: 100%;
        max-width: 600px;
    }

    #login-page-search-bar {
        width: 94%;
        margin-top: 28px;
    }

    .login-page-intro-text {
        margin: 18px auto 0;
        width: 75%;
    }

    #login-page-button-information-text {
        margin-top: 80px !important;
    }

    #login-page-login-buttons-div {
        margin-top: 60px;
    }

    .application-body-wrapper {
        min-height: calc(100vh - 200px);
        padding-bottom: 20px;
    }

    #procurer-view-open-procurement-button,
    #procurer-view-open-chat-button,
    #tenderer-view-open-procurement-button,
    #tenderer-view-open-chat-button {
        width: 115px;
        height: 32px;
        font-size: 10px;
        padding: 6px 10px;
    }

    .table-actions-cell {
        gap: 5px;
    }
}

/* Tablets (768px - 991px) - Horizontal scroll for tables */
@media (max-width: 991px) {
    .ongoing-procurements-table-div {
        width: calc(100vw - 20px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ongoing-procurements-table {
        min-width: 1000px;
    }

    .new-procurement-setup-form-container {
        width: calc(100vw - 100px);
    }

    .new-procurement-detail-view-wrapper,
    .submitted-tender-detail-view-wrapper {
        width: 95%;
    }

    #login-page-search-bar {
        width: 95%;
        flex-direction: column;
    }

    .login-page-intro-text {
        width: 85%;
    }

    .specific-information-exchange-container {
        grid-template-columns: 1fr;
    }

    .table-actions-cell {
        flex-direction: column;
        gap: 4px;
    }

    #procurer-view-open-procurement-button,
    #procurer-view-open-chat-button,
    #tenderer-view-open-procurement-button,
    #tenderer-view-open-chat-button {
        width: 110px;
        height: 30px;
        font-size: 10px;
    }

    .rhr-nav-link {
        padding: 8px 14px;
        font-size: 13px;
    }

    .rhr-nav-link__icon {
        font-size: 20px;
    }
}

/* Mobile (≤767px) - Stack and scroll */
@media (max-width: 767px) {
    h1 {
        font-size: var(--font-size-2xl);
    }

    h2 {
        font-size: var(--font-size-xl);
    }

    .ongoing-procurements-table-div {
        width: calc(100vw - 10px);
        margin-top: 16px;
    }

    .ongoing-procurements-table {
        min-width: 900px;
    }

    .new-procurement-setup-form-container {
        width: calc(100vw - 40px);
        margin-top: 16px;
    }

    .new-procurement-setup-form-container form {
        padding: 16px;
    }

    .form-group.inline-inputs {
        flex-direction: column;
    }

    .new-procurement-detail-view-wrapper,
    .submitted-tender-detail-view-wrapper {
        width: 100%;
        padding: 0 var(--space-sm);
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .new-procurement-detail-view-content-item {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .new-procurement-detail-view-content-static-part,
    .new-procurement-detail-view-content-dynamic-part {
        width: 100%;
    }

    #login-page-search-bar {
        width: 95%;
        flex-direction: column;
    }

    .login-page-intro-text {
        width: 90%;
    }

    #login-page-button-container {
        flex-direction: column;
    }

    .specific-procurement-information-exchange-wrapper {
        width: 100%;
        padding: 0 var(--space-sm);
    }

    .application-header-nav-ul-exp {
        flex-wrap: wrap;
        justify-content: center;
    }

    div[style*="calc(100vw - 400px)"],
    div[style*="calc(100vw - 200px)"] {
        width: calc(100vw - 30px) !important;
        flex-wrap: wrap;
    }

    .rhr-nav-link {
        white-space: normal;
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* Offer comparison dummy yes/no toggle */

.offer-conditions-toggle-btn {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.1;
    padding: 5px 10px;
    min-width: 46px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.offer-conditions-toggle-btn:hover {
    background: #f3f4f6;
}

.offer-conditions-toggle-btn:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.4);
    outline-offset: 2px;
}

.offer-conditions-toggle-btn.is-active[data-state="yes"] {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    border-color: #16a34a;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.18);
}

.offer-conditions-toggle-btn.is-active[data-state="no"] {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fca5a5;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.12);
}

.offer-conditions-toggle-btn[data-state="no"]:hover {
    background: #ffe8ea;
}

/* Offer detail (Pakkumus hankele ...) table card fix — scope to this view only */
#offer-detail-view.ongoing-procurements-table-div {
    /* Neutralize global card skin on the outer wrapper; keep spacing */
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    display: block;
    padding: 0;
    overflow: visible;
}

#offer-detail-view .wider-offers-table-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: auto;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    overflow: hidden;
}



#offer-detail-view #decisionJustificationModal .modal-body {
    overflow-x: hidden;
}

#offer-detail-view #decisionJustificationModal .modal-body .form-group {
    width: 100%;
    max-width: 100%;
}

#offer-detail-view #decisionJustificationModal .modal-body textarea.form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ============================================
   TEHINGUD (Deals) - Centered Tabs & Table Styles
   ============================================ */

/* Wrapper to center the tabs on both pages */
.deals-tabs-wrap,
.deals-tabs-wrapper {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    margin-bottom: -60px;
}

.deals-tabs-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Table body left-alignment (scoped to other-deals-table only) */
.other-deals-table tbody td {
    text-align: left;
}

.deals-attachment-cell {
    text-align: center !important;
}

.other-deals-table th.deals-index-cell,
.other-deals-table td.deals-index-cell {
    text-align: center !important;
}

/* End of Tehingud styles */
/* ============================================ */


#offer-detail-view .ongoing-procurements-table {
    width: 100%;
    border-radius: 0 !important;
    /* keep cells rectangular */
    box-shadow: none;
    /* single card shadow comes from wrapper */
}

/* ============================================
   ALL MESSAGES PAGE - Scoped Styles
   ============================================ */

/* 
 * Scoped under .rhr-allMessagesPage to avoid affecting other pages 
 * Uses existing RHR design tokens where available
 */

.rhr-allMessagesPage {
    padding-bottom: var(--space-2xl);
}

.rhr-allMessagesPage__title {
    text-align: center;
    font-family: var(--font-family-heading);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-text);
    margin: var(--space-lg) auto var(--space-md) auto;
}

#chat-page-title-text-div.rhr-allMessagesPage__page-title {
    margin-top: var(--space-xl);
}

/* ============================================ */
/* ALL MESSAGES PAGE - Professional RHR Design */
/* ============================================ */

/* Summary Stats - Larger, more prominent */
.rhr-allMessagesPage__summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto var(--space-2xl);
    padding: 0 var(--space-md);
}

.rhr-allMessagesPage__summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.rhr-allMessagesPage__summary-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.rhr-allMessagesPage__summary-chip--unanswered {
    background-color: rgba(232, 111, 111, 0.15);
    color: #7f1d1d;
    border: 1px solid rgba(232, 111, 111, 0.4);
}

.rhr-allMessagesPage__summary-chip--answered {
    background-color: rgba(16, 185, 129, 0.15);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.rhr-allMessagesPage__summary-label {
    font-weight: 500;
}

.rhr-allMessagesPage__summary-count {
    font-size: var(--font-size-lg);
    font-weight: 700;
}

/* Main Container - Centered, consistent with RHR pages */
.rhr-allMessagesPage__container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-md) var(--space-2xl);
}

/* Company Group Styling */
.rhr-allMessagesPage__company-group {
    margin-bottom: 16px;
}

/* Company Header (accordion pattern from offer page) */
.rhr-allMessagesPage__company-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.rhr-allMessagesPage__company-header:hover {
    background: #eef2f7;
    border-color: #c8d1dc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.rhr-allMessagesPage__company-header.is-open {
    background: #eef5ff;
    border-color: rgba(0, 101, 178, 0.3);
    box-shadow: 0 2px 8px rgba(0, 101, 178, 0.1);
}

.rhr-allMessagesPage__company-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
}

.rhr-allMessagesPage__company-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

.rhr-allMessagesPage__company-separator {
    color: var(--color-text-secondary);
    font-size: 12px;
    line-height: 1;
}

.rhr-allMessagesPage__company-timestamp {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.2;
    white-space: nowrap;
}

.rhr-allMessagesPage__company-badges {
    display: flex;
    gap: 8px;
    margin: 0;
    flex-shrink: 0;
}

.rhr-allMessagesPage__company-icon {
    font-size: 20px;
    font-weight: 300;
    color: var(--color-text-secondary);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.rhr-allMessagesPage__company-header.is-open .rhr-allMessagesPage__company-icon {
    transform: rotate(180deg);
}

/* Company Panel (messages container) */
.rhr-allMessagesPage__company-panel {
    padding: 12px 0 0;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Individual Message Item */
.rhr-allMessagesPage__message-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.rhr-allMessagesPage__message-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Message Header (stable, always visible) */
.rhr-allMessagesPage__message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 12px;
}

.rhr-allMessagesPage__message-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.rhr-allMessagesPage__message-date {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.rhr-allMessagesPage__message-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.rhr-allMessagesPage__toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-sm);
    padding: 6px 12px;
    transition: all var(--transition-fast);
}

.rhr-allMessagesPage__toggle-icon {
    font-size: 16px !important;
    font-weight: 300;
    vertical-align: middle;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rhr-allMessagesPage__toggle-btn.is-open .rhr-allMessagesPage__toggle-icon {
    transform: rotate(180deg);
}

/* Message Details Panel (expands BELOW header, preventing layout wrapping) */
.rhr-allMessagesPage__message-details {
    border-top: 1px solid #f0f0f0;
    background: #f9fafb;
    padding: 0;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.rhr-allMessagesPage__message-content {
    padding: 16px;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--color-text);
}

/* Scoped badge styling for unanswered messages - reuse summary chip red */
.rhr-allMessagesPage__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    line-height: 1.1;
}

/* Scoped override: convert yellow "Vastamata" badges to the existing red */
.rhr-allMessagesPage__badge.rhr-badge-unanswered,
.rhr-allMessagesPage__company-badges .rhr-badge-unanswered,
.rhr-allMessagesPage__message-meta .rhr-badge-unanswered {
    background: rgba(232, 111, 111, 0.15) !important;
    color: #7f1d1d !important;
    border: 1px solid rgba(232, 111, 111, 0.4) !important;
    box-shadow: none;
}

/* Question and Answer sections styling */
.rhr-allMessagesPage__question-section,
.rhr-allMessagesPage__answer-section {
    margin-bottom: 16px;
}

.rhr-allMessagesPage__question-section:last-child,
.rhr-allMessagesPage__answer-section:last-child {
    margin-bottom: 0;
}

.rhr-allMessagesPage__section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.rhr-allMessagesPage__section-body {
    padding: 12px;
    background: #ffffff;
    border-radius: 4px;
}

.rhr-allMessagesPage__section-body p {
    margin: 0 0 12px;
    padding: 0;
    background: transparent;
    border-left: none;
    border-radius: 0;
}

.rhr-allMessagesPage__section-body p:last-child {
    margin-bottom: 0;
}

.rhr-allMessagesPage__message-attachment {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.rhr-allMessagesPage__message-attachment a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.rhr-allMessagesPage__message-attachment a:hover {
    color: #004a8f;
    text-decoration: underline;
}

.rhr-allMessagesPage__message-attachment .material-symbols-outlined {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rhr-allMessagesPage__summary {
        flex-direction: column;
        gap: 12px;
    }

    .rhr-allMessagesPage__summary-chip {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .rhr-allMessagesPage__container {
        padding: 0 12px var(--space-xl);
    }

    .rhr-allMessagesPage__company-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }

    .rhr-allMessagesPage__company-info {
        flex: 1 1 100%;
        width: 100%;
        flex-wrap: wrap;
    }

    .rhr-allMessagesPage__company-badges {
        order: 2;
        margin: 0;
        flex-wrap: wrap;
    }

    .rhr-allMessagesPage__company-icon {
        order: 3;
    }

    .rhr-allMessagesPage__message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .rhr-allMessagesPage__message-meta {
        width: 100%;
    }

    .rhr-allMessagesPage__message-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .rhr-allMessagesPage__toggle-btn,
    .rhr-allMessagesPage__message-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* End of All Messages Page styles */
/* ============================================ */
