.quotation-table-container {
    display: flex;
    align-items: flex-start;
    min-height: 300px;
    width: 100%;
    height: auto;
    gap: 10px;
    align-self: stretch;
    border-radius: 6px;
    border: 1px solid #F1F1F2;
    background: #FFF;
    flex-direction: column;
    position: relative;
    overflow-x: auto;
}

.quotation-empty-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    flex: 1;
}


.header-cell {
    display: flex;
    padding: 0 10px;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 40px;
    line-height: 40px;
}

.header-typography {
    color: #4B5675;
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
}

.datepicker-container {
    position: relative;
    z-index: 1060;
    overflow: visible !important;
}

.header--start-date,
.cell--start-date {
    width: 120px;
}

.header--number,
.cell--number {
    width: 220px;
}

.header--roles,
.cell--roles {
    justify-content: center;
    width: 100px;
}

.header--milestones,
.cell--milestones {
    justify-content: center;
    width: 110px;
}

.header--proposed,
.cell--proposed {
    width: 160px;
}

.header--remaining,
.cell--remaining {
    width: 160px;
}

.header--remarks,
.cell--remarks {
    width: 126px;
}

.manpower-header--role,
.manpower-cell--role {
    width: 400px;
    flex: 0 0 400px;
    min-width: 400px;
    max-width: 400px;
}

.manpower-header--proposed,
.manpower-cell--proposed {
    width: 240px;
    flex: 0 0 240px;
    min-width: 240px;
    max-width: 240px;
}

.manpower-header--limit,
.manpower-cell--limit {
    width: 150px;
    flex: 0 0 150px;
    min-width: 150px;
    max-width: 150px;
}

.table-body-container {
    display: flex;
    flex-direction: column;
}

.table-row {
    display: flex;
    width: 100%;
}

.table-cell {
    display: flex;
    align-items: center;
    padding: 0 10px;
    height: 66px;
    gap: 10px;
    border-bottom: 1px solid #F1F1F2;
    box-sizing: border-box;
    flex-shrink: 0;
}


.quotation-input-group-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-self: stretch;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.quotation-input-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
    align-self: stretch;
}

.quotation-remark-input {
    display: flex;
    height: 150px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1 0 0;
}

.remark-input-container {
    display: flex;
    padding: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    flex: 1 0 0;
    align-self: stretch;
    border-radius: 6px;
    border: 1px solid #E1E3EA;
    text-align: left;
}

.project_quotation_remark {
    width: 100%;
}

.role-container-title,
[data-controller="manpower"] {
    width: 100%;
}

.role-container-title,
[data-controller="milestone"] {
    width: 100%;
}

.limit-basic-badge {
    display: flex;
    padding: 5px 6px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    border: 1px solid rgba(153, 209, 123, 0.20);
    background: #EAF7E1;
}


.text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
}

.text-box-typography {
    color: #181C32;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 14px;
}

.create-quotation-modal-content {
    display: flex;
    width: 900px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0px 8px 16px 0px rgba(54, 54, 54, 0.10);
}

.modal-dialog {
    max-width: 900px;
}

.create-quotation-modal-header {
    display: flex;
    padding: 24px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-bottom: 1px solid #E9EBED;
    background: #FFF;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.create-quotation-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.create-milestone-modal-title {
    color: #181C32;
    font-family: Inter, sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.22px;
}


.create-quotation-modal-body {
    display: flex;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    align-self: stretch;
}

.create-quotation-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
}

.create-quotation-input-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    align-self: stretch;
    width: 100%;
}

.detail-label {
    display: flex;
    padding: 12px;
    align-items: flex-start;
    gap: 10px;
    flex: 1 0 0;
    align-self: stretch;

    border-radius: 6px;
    border: 1px solid var(--Gray-Gray-300, #E1E3EA);
}

.milestone-label {
    color: #3F4254;
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 14px;
}

.create-quotation-input-container {
    display: flex;
    height: 48px;
    padding: 17px 15px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;

    border-radius: 6px;
    border: 1px solid #E1E3EA;
    background: #FFF;
    width: 100%;
}


.create-quotation-cta {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    padding: 1rem 1rem;
}

.header-milestone {
    display: flex;
    width: 130px;
    padding: 0px 10px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
}

.header-detail {
    display: flex;
    padding: 0px 10px;
    align-items: center;
    gap: 10px;
    flex: 1 0 300px;
    align-self: stretch;
    max-width: 400px;
    min-width: 300px;
}

.header-amount,
.header-expected-billing {
    display: flex;
    width: 160px;
    padding: 0px 10px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
}

.select2-container .select2-selection--single {
    height: 48px !important;
    line-height: 48px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box;
}

.select2-container .select2-selection--multiple {
    line-height: 48px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box;
}

.result-muted-typography {
    color: #ABACBE;
    text-align: center;

    font-family: Inte, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 12px;
}

.result-typography {
    color: #484964;
    text-align: center;

    font-family: Inte, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 12px;
}

.icon-btn {
    display: flex;
    padding: 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    background: #ECF8FF;
}

/* Milestone table cell alignment */
.milestone-cell--name {
    display: flex;
    width: 130px;
    padding: 0px 10px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    flex: 0 0 130px;
    min-width: 130px;
    max-width: 130px;
}

.milestone-cell--detail {
    display: flex;
    padding: 0px 10px;
    align-items: center;
    gap: 10px;
    flex: 1 0 300px;
    align-self: stretch;
    max-width: 400px;
    min-width: 300px;
}

.milestone-cell--amount,
.milestone-cell--expected-billing {
    display: flex;
    width: 160px;
    padding: 0px 10px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    flex: 0 0 160px;
    min-width: 160px;
    max-width: 160px;
}

/* Milestone table specific styles */
[data-controller="milestone"] .table-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 0 0;
    position: relative;
    width: 100%;
    min-width: 1100px; /* Increased for show page with more columns */
}

[data-controller="milestone"] .table-header {
    display: flex;
    width: 100%;
    min-width: fit-content;
}

/* Additional milestone columns for show page */
.header-status,
.header-comment {
    display: flex;
    width: 120px;
    padding: 0px 10px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
}

.header-comment {
    width: 100px;
}

.milestone-cell--status,
.milestone-cell--comment {
    display: flex;
    width: 120px;
    padding: 0px 10px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    flex: 0 0 120px;
    min-width: 120px;
    max-width: 120px;
}

.milestone-cell--comment {
    width: 100px;
    flex: 0 0 100px;
    min-width: 100px;
    max-width: 100px;
}

/* Milestone Status Dropdown Styles */
.milestone-status-dropdown-container {
    position: relative;
    display: inline-block;
}

.milestone-status-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px;
    border-radius: 9999px;
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    user-select: none;
    height: 24px;
    box-sizing: border-box;
}

.milestone-status-badge:hover {
    opacity: 0.8;
}

.milestone-status-badge.loading {
    cursor: not-allowed;
}

.milestone-status-badge--pending {
    background: #FFF8DD;
    color: #F1BC00;
}

.milestone-status-badge--request {
    background: #ECF8FF;
    color: #009EF6;
}

.milestone-status-badge--billed {
    background: #E8FFF3;
    color: #47BE7D;
}

.milestone-status-dropdown-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.milestone-status-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: #FFFFFF;
    border: 1px solid #F1F1F2;
    border-radius: 6px;
    box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03);
    min-width: 120px;
    margin-top: 4px;
}

.milestone-status-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.milestone-status-option:hover {
    background: #F9F9F9;
}

.milestone-status-option.selected {
    background: #F9F9F9;
}

.milestone-status-option:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.milestone-status-option:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.milestone-status-option-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 9999px;
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 14px;
    height: 24px;
    box-sizing: border-box;
}

/* Ensure daterangepicker appears above modals */
.modal .daterangepicker,
.modal-open .daterangepicker {
    z-index: 1060 !important;
}
