/* Hotel Offer Table */
.hotel-offer-table {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hotel-offer-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    font-weight: 600;
    color: var(--gray-600);
    position: sticky;
    top: 0;
    z-index: 10;
    top: 72px;
}

.hotel-offer-body {
    display: flex;
    flex-direction: column;
}

.hotel-offer-total-row {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 16px;
    align-items: center;
    padding: 4px 0;
}

.hotel-offer-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: center;
    padding: 4px 0;
}

.hotel-offer-row.capacity-header {
    grid-template-columns: 1fr;
    padding: 0;
}

.hotel-offer-row.capacity-header .hotel-offer-cell {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #D6D6D6;
    box-shadow: 0px 0px 75.4px rgba(84, 153, 143, 0.03);
    backdrop-filter: blur(25px);
    border-radius: 12px;
    padding: 12px 16px 12px 40px;
    justify-content: space-between;
    text-align: left;
}

.capacity-toggle-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: color 0.2s ease, transform 0.2s ease;
    border-radius: 4px;
}

.capacity-toggle-button:hover {
    color: var(--green-400);
    background: rgba(84, 153, 143, 0.1);
}

.capacity-toggle-button .toggle-icon {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.hotel-offer-row.total-separator {
    grid-template-columns: 1fr;
    padding: 16px 0 8px 0;
    border-top: 2px solid var(--gray-300);
    margin-top: 16px;
}

.hotel-offer-row.total-row {
    padding: 12px 0;
    border-radius: 8px;
}

.hotel-offer-row.warning-row {
    grid-template-columns: 1fr;
    margin-top: 8px;
    border-radius: 8px;
}

.hotel-offer-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
}

.hotel-offer-cell.first-column {
    justify-content: flex-start;
    padding: 0;
}

.hotel-offer-cell.full-width {
    justify-content: center;
    font-weight: 600;
}

.first-column-wrapper {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #D6D6D6;
    box-shadow: 0px 0px 75.4px rgba(84, 153, 143, 0.03);
    border-radius: 12px;
    padding: 8px 12px 8px 40px;
    width: 100%;
    text-align: left;
}

.other-columns-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #D6D6D6;
    box-shadow: 0px 0px 75.4px rgba(84, 153, 143, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

.other-columns-wrapper .hotel-offer-cell {
    flex: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-columns-wrapper .hotel-offer-cell .cell-wrapper {
    width: 100%;
    padding: 8px 16px;
    border-right: 1px solid #D6D6D6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Agency data styling - green background for all agency-related data */
.hotel-offer-cell.agency-data,
.comment-container.agency-data {
    background: #D9EEE9;
}

.other-columns-wrapper .hotel-offer-cell:last-child .cell-wrapper {
    border-right: none;
}

.hotel-offer-header .other-columns-wrapper {
    padding: 12px 0px 12px 0px;
    display: flex;
    background: var(--white);
    /* border: none;
    box-shadow: none;
    border-radius: 0; */
}

.hotel-offer-header .other-columns-wrapper .hotel-offer-cell {
    flex: 1;
    font-weight: 600;
    color: var(--gray-600);
    padding: 0;
    border-right: 1px solid #D6D6D6;
}

.hotel-offer-header .other-columns-wrapper .hotel-offer-cell:last-child {
    flex: 1;
    font-weight: 600;
    color: var(--gray-600);
    padding: 0;
    border-right: none;
}

.hotel-offer-header .other-columns-wrapper .hotel-offer-cell .cell-wrapper {
    border-right: none;
    padding: 0 16px;
}

/* Discrete Input Styling */
.hotel-offer-table .input-field {
    padding: 0;
    text-align: center;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    transition: border-bottom-color 0.2s ease;
}

.hotel-offer-table .input-field:focus {
    outline: none;
    border-bottom-color: var(--green-400);
    background: rgba(84, 153, 143, 0.05);
}

/* Calculated Field Styling */
.hotel-offer-table .input-field.calculated-field {
    background-color: rgba(214, 214, 214, 0.15);
    cursor: not-allowed;
    color: var(--gray-600);
}

.hotel-offer-table .input-field.calculated-field:focus {
    border-bottom-color: var(--gray-400);
    background: rgba(214, 214, 214, 0.25);
}

/* Info Icon */
.room-type-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    color: var(--gray-400);
    font-size: 16px;
    flex-shrink: 0;
    transition: color 0.2s ease;
    cursor: help;
}

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

/* Room Type Tooltip - Right positioning for hotel offer table */
.hotel-offer-table .room-type-header {
    position: relative;
}

.hotel-offer-table .room-type-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 12px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.hotel-offer-table .room-type-header:hover .room-type-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Comment Containers */
.comments-row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.comment-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

textarea.comment-textarea.form-control {
    width: 100%;
    min-height: auto;
    height: 40px;
    border: 1px solid #D6D6D6;
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    background-color: white;
    resize: vertical;
    transition: border-color 0.2s ease;
}

textarea.comment-textarea.form-control:focus {
    outline: none;
    border-color: var(--green-400);
    box-shadow: 0 0 0 2px rgba(84, 153, 143, 0.1);
}

/* Payment Table Specific Styles */
.hotel-offer-table.payment-table .hotel-offer-header {
    grid-template-columns: 300px 1fr; /* Wider first column for payment tables */
}

.hotel-offer-table.payment-table .hotel-offer-header .other-columns-wrapper {
    padding: 6px 0;
}

.hotel-offer-table.payment-table .hotel-offer-row {
    grid-template-columns: 300px 1fr; /* Wider first column for payment tables */
}

.hotel-offer-table.payment-table .hotel-offer-row .first-column-wrapper {
    padding: 22px 16px;
}

.hotel-offer-table.payment-table .hotel-offer-row .room-type-header {
    justify-content: center;
}

.hotel-offer-cell.payment-first-column {
    justify-content: flex-start;
    padding: 0;
}

.other-columns-wrapper.payment-columns .hotel-offer-cell {
    flex: 1;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-columns-wrapper.payment-columns .hotel-offer-cell .cell-wrapper {
    width: 100%;
    padding: 8px 12px; /* Slightly less padding for payment columns */
    border-right: 1px solid #D6D6D6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.other-columns-wrapper.payment-columns .hotel-offer-cell:last-child .cell-wrapper {
    border-right: none;
}

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

.pending-modifications-notice {
    padding: 8px 16px;
    background-color: #FEF3C7;
    border-radius: 6px;
    border: 1px solid #F59E0B;
}

/* Status Badges - Using dashboard styles */
.badge-warning {
    background-color: #FEE580;
    color: #8B5A00;
}

.badge-success {
    background-color: #B3DCD3;
    color: #1B5E20;
}

.badge-danger {
    background-color: #FCA0A0;
    color: #C62828;
}

.badge-secondary {
    background-color: #E0E0E0;
    color: #424242;
}

/* Small buttons for batch actions */
.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-success {
    background-color: #10B981;
    color: white;
}

.btn-success:hover:not(.btn-disabled) {
    background-color: #059669;
}

.btn-danger {
    background-color: #EF4444;
    color: white;
}

.btn-danger:hover:not(.btn-disabled) {
    background-color: #DC2626;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #D1D5DB !important;
    color: #6B7280 !important;
}

.btn-disabled:hover {
    background-color: #D1D5DB !important;
}

/* Batch modifications - stack changes vertically */
.batch-changes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Request Summary Component - Uses existing hotel-offer-table styles */

.request-summary-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    font-weight: 600;
    color: var(--gray-600);
    position: sticky;
    top: 0;
    z-index: 10;
}

.request-summary-body {
    display: flex;
    flex-direction: column;
}

.request-summary-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
    padding: 4px 0;
}

.request-summary-columns {
    display: flex;
    overflow: hidden;
}

.request-summary-columns .hotel-offer-cell {
    flex: 1;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-summary-columns .hotel-offer-cell .cell-wrapper {
    width: 100%;
    padding: 8px 16px;
    border-right: 1px solid #D6D6D6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.request-summary-columns .hotel-offer-cell:last-child .cell-wrapper {
    border-right: none;
}

.offer-summary-cell-wrapper {
    border-right: 1px solid #D6D6D6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
        width: 100%;

}

.request-summary-columns .hotel-offer-cell:last-child .offer-summary-cell-wrapper {
    border-right: none;
}

.other-columns-wrapper .hotel-offer-cell:last-child .offer-summary-cell-wrapper {
    border-right: none;
}

.first-column-content {
    padding: 10px;
    text-align: center;
}

/* ========================================================================= */
/* Offer Option Container */
/* ========================================================================= */

.offer-option-container {
    gap: 0px;
}

/* ========================================================================= */
/* Offer Option Status and Deadline */
/* ========================================================================= */

.offer-option-status {
    margin-bottom: 16px;
}

.offer-option-deadline {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    margin-left: 8px;
}

.offer-option-deadline.deadline-safe {
    color: #065F46;
}

.offer-option-deadline.deadline-warning {
    color: #9A3412;
}

.offer-option-deadline.deadline-urgent {
    color: #991B1B;
}

/* ========================================================================= */
/* Offer Option Expiration Date Section */
/* ========================================================================= */

.offer-option-expiration-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.offer-option-expiration-section label {
    flex-shrink: 0;
}

.offer-option-expiration-section .offer-option-date-input {
    width: 100px;
    max-width: 100px;
}