/* Pending Request Details Styles */

.pending-request-header {
    display: flex;
    gap: 24px;
    margin-bottom: 45px;
}

.pending-request-header-summary {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr;
}


.pending-request-header-summary-header {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    color: var(--gray-500);
}

.pending-request-header-summary-header > * {
    border-right: 1px solid var(--gray-200);
    padding: 0 16px;
    text-align: center;
}

.pending-request-header-summary-header > *:last-child {
    border-right: none;
}

.pending-request-header-summary-row-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    border-radius: 24px;
    border: 1px solid var(--gray-50);
    background: white;
}

.pending-request-header-summary-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 16px 0px;
    color: var(--gray-900);
}

.pending-request-header-summary-row > * {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--gray-100);
    padding: 0 16px;
    overflow: hidden;
}

.pending-request-header-summary-row > * > * {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.pending-request-header-summary-row > *:last-child {
    border-right: none;
}

.pending-request-header-offers {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    background: var(--white);
}

.pending-request-header-offers-total {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    color: var(--gray-500);
}

.pending-request-header-offers-total span {
    font-size: 48px;
    line-height: 64px;
    text-align: center;
    color: var(--green-600);
    display: block;
}

.pending-request-header-offers-last {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    color: var(--gray-500);
}

.pending-request-header-offers-last > div:last-child {
    color: var(--black);
}

.pending-request-header-time {
    flex: 1;
    display: flex;
    gap: 40px;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    background: var(--white);
}

.pending-request-header-time-remaining {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
    color: var(--black);
}

.pending-request-header-time-remaining > div:last-child {
    border-radius: 100px;
    padding: 4px 12px;
    background: var(--green-50);
    color: var(--green-500);
    text-align: center;
}

.pending-request-header-time-cancel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 8px 16px;
    background: var(--gray-25);
    border: 1px solid var(--gray-300);
    text-align: center;
    color: var(--gray-700);
    cursor: pointer;
}

/* Room Type Header with Image Tooltip */
.room-type-header {
    position: relative;
    cursor: help;
}

.room-type-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    padding: 8px 8px 12px 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0px 4px 29.4px 0px #0000000D;
}

.room-type-tooltip-image-container {
    width: 100%;
    height: 182px;
    border-radius: 16px;
    background: var(--green-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-type-tooltip-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.room-type-tooltip-title {
    text-align: center;
    color: var(--green-400);
}

.room-type-tooltip-description {
    text-align: center;
    color: var(--gray-500);
}

.room-type-header:hover .room-type-tooltip {
    opacity: 1;
}

.request-details-table {
    display: flex;
}

.request-details-table-row-label-list {
    width: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.request-details-table-row-label-list > * {
    margin-bottom: 8px;
}

.request-details-table-row-label{
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 12px;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    backdrop-filter: blur(50px);
    display: flex;
    justify-content: center;
    height: 21px;
    margin-right: 8px;
}

.request-details-table-row-option-label {
    background-color: var(--gray-25);
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 12px;
    border: 1px solid var(--gray-300);
    backdrop-filter: blur(50px);
    display: flex;
    justify-content: center;
    margin-right: 8px;
}

.request-details-table-content {
    display: grid;
    flex: 1;
}

.request-details-table-header {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    position: sticky;
    top: 74px;
    background-color: var(--gray-100);
}

.request-details-table-header > * {
    border-right: 1px solid var(--gray-200);
    padding: 0 16px;
    text-align: center;
}

.request-details-table-header > *:last-child {
    border-right: none;
}

.request-details-table-row > .input-field {
    height: 21px;
    border-radius: 0px;
    border: none;
    background-color: white;
    border-right: 1px solid var(--gray-200);
}

.request-details-table-row > .input-field:hover:not(:disabled) {
    border-color: var(--gray-200);
}

.request-details-table-row > *:last-child {
    border-right: none;
}

.sticky-header {
    position:sticky;
    top: 75px;
}

.w-150 {
    width: 150px;
    min-width: 150px;
    margin: 0;
    padding: 0;
}

.w-200 {
    width: 200px;
    min-width: 200px;
    margin: 0;
    padding: 0;
}

.w-400 {
    width: 200px;
    min-width: 200px;
    margin: 0;
    padding: 0;
}

/* Request Details - Room Types Header Sticky */
.request-details .room-types-header-sticky {
    position: sticky;
    top: 72px;
    z-index: 100;
    background-color: #F7F7F7;
}

.request-details .room-types-header-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    font-weight: 600;
    color: var(--gray-600);
}

.request-details .room-type-column-empty {
    background: transparent;
}

.request-details .room-types-header-sticky .other-columns-wrapper {
    display: flex;
    background: #F7F7F7;
    border: none;
    overflow: initial;
    border: 1px solid transparent;
}

.request-details .room-types-header-sticky .other-columns-wrapper .room-type-column {
    width: 5.405%;
    max-width: 5.405%;
    min-width: 5.405%;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.request-details .room-types-header-sticky .other-columns-wrapper .room-type-column:last-child {
    width: 8.108%;
    max-width: 8.108%;
    min-width: 8.108%;
    flex: none;
}

.request-details .room-type-title {
    text-align: center;
    padding: 8px 16px;
}

/* Info Icon for Request Details */
.request-details .info-icon {
    color: var(--gray-400);
    font-size: 16px;
    flex-shrink: 0;
    transition: color 0.2s ease;
    cursor: help;
}

.request-details .info-icon:hover {
    color: var(--green-400);
}

/* Room Type Tooltip for Request Details */
.request-details .room-type-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: help;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
}

.request-details .room-type-column .room-type-header {
    border-right: 1px solid #D6D6D6;
}

.request-details .room-type-column:last-child .room-type-header {
    border-right: 0;
}

/* Request Details Table Structure */
.request-details .request-details-table {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.request-details .request-details-table-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.request-details .request-details-table-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: center;
}

.request-details .request-details-table-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
}

.request-details .request-details-table-cell.first-column {
    justify-content: flex-start;
    padding: 0;
}

.request-details .first-column-wrapper {
    background: #F5F5F5;
    border-radius: 12px;
    padding: 0px;
    width: 100%;
    text-align: left;
}

.request-details .request-details-table-row .other-columns-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #D6D6D6;
    border-radius: 12px;
    overflow: hidden;
}

.request-details .request-details-table-row .other-columns-wrapper .request-details-table-cell {
    width: 5.405%;
    max-width: 5.405%;
    min-width: 5.405%;
    flex: none;
    padding: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-details .request-details-table-row .other-columns-wrapper .request-details-table-cell:last-child {
    width: 8.108%;
    max-width: 8.108%;
    min-width: 8.108%;
    flex: none;
}

.request-details .request-details-table-row .other-columns-wrapper .request-details-table-cell .cell-wrapper {
    width: 100%;
    padding: 4px 4px;
    border-right: 1px solid #D6D6D6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.request-details .request-details-table-row .other-columns-wrapper .request-details-table-cell:last-child .cell-wrapper {
    border-right: none;
}

/* Green background for totals column (last column) */
.request-details .request-details-table-row .other-columns-wrapper .request-details-table-cell:last-child {
    background: var(--green-100);
}

/* Comments Section for Request Details */
.request-details .comments-row {
    display: flex;
    gap: 20px;
    margin: 0;
}

.request-details .comment-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.request-details .comment-container.half-width {
    flex: 1;
}

.request-details .comment-container.full-width {
    width: 100%;
}

.request-details .comment-container.agency-data {
    background: #D9EEE9;
}

.request-details .comment-label {
    display: block;
    color: black;
    font-weight: 600;
    margin-bottom: 12px;
}

.request-details .request-comment-display {
    color: var(--gray-700);
    line-height: 1.5;
}

/* Hotel Proposals Section */
.request-details .hotel-proposals-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.request-details .hotel-proposals {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.request-details .hotel-proposal-single-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FCFCFC;
    border: 1px solid #D6D6D6;
    border-radius: 10px;
    padding: 16px 24px;
}

.request-details .hotel-proposal-left-group {
    display: flex;
    align-items: center;
    gap: 24px;
}

.request-details .hotel-proposal-right-group {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: flex-end;
}

.request-details .hotel-details-btn,
.request-details .btn-negotiate {
    min-width: 150px;
    padding: 8px 16px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: #424242;
    font-family: 'Lufga';
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}

.request-details .hotel-details-btn:hover,
.request-details .btn-negotiate:hover {
    border-color: var(--green-400);
    background: var(--green-25);
    color: var(--green-600);
    text-decoration: none;
}

.request-details .proposal-date {
    min-width: 120px;
}

.request-details .hotel-proposal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.request-details .hotel-proposal-actions button {
    padding: 8px 16px;
    border-radius: 12px;
    font-family: 'Lufga';
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.request-details .hotel-details-link {
    text-decoration: none;
    transition: color 0.2s;
}

.request-details .hotel-details-link:hover {
    color: var(--green-600);
    text-decoration: none;
}

.request-details .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-family: 'Lufga';
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
}

.request-details .status-sent {
    background: var(--green-100);
    color: var(--green-600);
    border: 1px solid var(--green-400);
}

.request-details .status-option {
    background: rgba(255, 204, 0, 0.15);
    color: var(--yellow);
    border: 1px solid var(--yellow);
}

.request-details .status-accepted {
    background: var(--green-100);
    color: var(--green-600);
    border: 1px solid var(--green-400);
}

.request-details .status-declined {
    background: var(--red-200);
    color: black;
}

.request-details .status-rejected {
    background: var(--red-200);
    color: black;
}

.request-details .status-closed {
    background: var(--red-200);
    color: black;
}

.request-details .status-negotiation {
    background: var(--green-100);
    color: var(--green-600);
}

.request-details .status-booked {
    background: var(--green-100);
    color: var(--green-600);
}

.request-details .status-unknown {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.request-details .status-pending {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.request-details .no-proposals {
    text-align: center;
    padding: 40px 20px;
}

/* Options Comparison Table */
.request-details .options-comparison-table {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.request-details .options-header {
    margin-bottom: 8px;
}

.options-header-sticky {
    position: sticky;
    top: 72px;
    z-index: 100;
    margin-bottom: 24px;
    background-color: #F7F7F7;
}


.request-details .options-header-content {
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 16px;
    font-weight: 600;
    color: var(--gray-600);
}

.request-details .options-column-empty {
    background: transparent;
}

.request-details .options-header .options-other-columns-wrapper {
    display: flex;
    background: #F7F7F7;
    border: none;
    overflow: initial;
}

.request-details .options-header .options-other-columns-wrapper .options-column {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #D6D6D6;
    position: relative;
}

.request-details .options-header .options-other-columns-wrapper .options-column:last-child {
    border-right: none;
}

.request-details .options-column-title {
    text-align: center;
}

.request-details .options-table-row {
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 16px;
    align-items: stretch;
    margin-top: 8px;
}

.request-details .options-table-cell.first-column {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
}

.request-details .options-table-row .first-column-wrapper {
    background: white;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    text-align: left;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-details .options-row-header {
    font-weight: 600;
    color: var(--gray-800);
}

.request-details .options-table-row .options-other-columns-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #D6D6D6;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.request-details .options-table-row .options-other-columns-wrapper .options-table-cell {
    flex: 1;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-details .options-table-row .options-other-columns-wrapper .options-table-cell .options-cell-wrapper {
    width: 100%;
    padding: 10px 4px;
    border-right: 1px solid #D6D6D6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.request-details .options-table-row .options-other-columns-wrapper .options-table-cell:last-child .options-cell-wrapper {
    border-right: none;
}

/* Options Comments Column */
.request-details .options-column-comments {
    background: #F7F7F7;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-details .options-table-cell.comments-column {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

.request-details .options-comments-wrapper {
    background: white;
    border: 1px solid #D6D6D6;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    height: auto;
    text-align: left;
    color: var(--gray-700);
    line-height: 1.5;
    overflow-y: auto;
    display: flex;
    align-items: center;
}

.request-details .hotel-header-row {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #D6D6D6;
    border-radius: 12px;
    padding: 14px 24px;
    margin-top: 24px;
}

.request-details .hotel-header-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.request-details .hotel-header-content .hotel-name {
    font-weight: 600;
    color: var(--gray-900);
}

.request-details .options-table-row.hotel-options-row .first-column-wrapper {
    background: rgba(255, 255, 255, 0.8);
}

/* Payment Comparison Table */
.request-details .payment-comparison-table {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.request-details .payment-header {
    margin-bottom: 8px;
}

.request-details .payment-header-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    font-weight: 600;
    color: var(--gray-600);
}

.request-details .payment-column-empty {
    background: transparent;
}

.request-details .payment-header .payment-other-columns-wrapper {
    display: flex;
    background: #F7F7F7;
    border: none;
    overflow: initial;
}

.request-details .payment-header .payment-other-columns-wrapper .payment-column {
    flex: 1;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #D6D6D6;
    position: relative;
}

.request-details .payment-header .payment-other-columns-wrapper .payment-column:last-child {
    border-right: none;
}

.request-details .payment-column-title {
    text-align: center;
    padding: 8px 16px;
}

.request-details .payment-table-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 16px;
    align-items: stretch;
}

.request-details .payment-table-cell.first-column {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
}

.request-details .payment-table-row .first-column-wrapper {
    background: #F5F5F5;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    text-align: left;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-details .payment-row-header {
    font-weight: 600;
    color: var(--gray-800);
}

.request-details .payment-table-row .payment-other-columns-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #D6D6D6;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.request-details .payment-table-row .payment-other-columns-wrapper .payment-table-cell {
    flex: 1;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-details .payment-table-row .payment-other-columns-wrapper .payment-table-cell .payment-cell-wrapper {
    width: 100%;
    padding: 10px 4px;
    border-right: 1px solid #D6D6D6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.request-details .payment-table-row .payment-other-columns-wrapper .payment-table-cell:last-child .payment-cell-wrapper {
    border-right: none;
}

/* Pending Modifications Styling */
.request-details .pending-modification {
    background-color: #FEF3C7 !important;
}

/* Section Spacing */
.request-details-section {
    margin-top: 48px;
}

.request-details-section-title {
    margin: 0 0 24px 0;
}

/* Declined Tables Styling - Lighter appearance */
.declined-section .first-column-content,
.declined-section .options-row-header,
.declined-section .options-comments-wrapper,
.declined-section .hotel-name,
.declined-section .payment-row-header,
.declined-section .room-type-header,
.declined-section .cell-wrapper,
.declined-section .options-cell-wrapper,
.declined-section .payment-cell-wrapper {
    color: var(--gray-500);
}

/* Group composition summary table in pending request header */
.pending-request-header-summary .request-summary-table {
    margin-top: 16px;
}

.pending-request-header-summary .other-columns-wrapper {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #D6D6D6;
    border-radius: 12px;
    overflow: hidden;
}