.modal-dialog.edit-modal-with-calendar{width:95%;max-width:1400px}.modal-dialog.edit-modal-with-calendar .calendar-container{margin-top:20px;border-top:1px solid #ddd;padding-top:20px}.modal-dialog.edit-modal-with-calendar .calendar-container .calendar{min-height:400px}.project-calendar-event{display:flex;flex-direction:column;gap:2px}.project-calendar-event-time{font-weight:600;opacity:.85;line-height:1.1}.project-calendar-event-title{line-height:1.15;word-break:break-word}

/* Resource Planning Gantt Styles */
.resource-planning-gantt-container { position: relative; }

/* Toolbar */
.resource-planning-gantt-container .gantt-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}
.resource-planning-gantt-container .toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.resource-planning-gantt-container .toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.resource-planning-gantt-container .project-filter {
    min-width: 200px;
    max-width: 300px;
}
.resource-planning-gantt-container .date-range-filter {
    min-width: 130px;
}

/* Gantt Wrapper */
.resource-planning-gantt-container .gantt-wrapper {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    min-height: 300px;
}
.resource-planning-gantt-container .gantt-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.resource-planning-gantt-container .gantt-chart { font-family: inherit; }

/* Gantt Row Styles */
.resource-planning-gantt-container .summary-row { background: #f1f5f9 !important; font-weight: 600; }
.resource-planning-gantt-container .resource-row { background: #fafafa; }
.resource-planning-gantt-container .resource-row:hover { background: #f0f9ff !important; }
.resource-planning-gantt-container .human-resource { border-left: 3px solid #3b82f6; }
.resource-planning-gantt-container .asset-resource { border-left: 3px solid #10b981; }
.resource-planning-gantt-container .assigned-row { background: #f0fdf4 !important; }
.resource-planning-gantt-container .assigned-row:hover { background: #dcfce7 !important; }

/* Gantt Bar Styles */
.resource-planning-gantt-container .phase-bar { background: #4299e1 !important; border-radius: 4px; }
.resource-planning-gantt-container .busy-range { opacity: 0.6; border-radius: 2px; }

/* Add button in grid */
.resource-planning-gantt-container .gantt_cell .fa-plus-circle { opacity: 0.5; transition: opacity 0.2s; }
.resource-planning-gantt-container .gantt_row:hover .fa-plus-circle { opacity: 1; }

/* Weekend Highlighting */
.resource-planning-gantt-container .weekend { background: #f8fafc !important; }

/* Legend */
.resource-planning-gantt-container .gantt-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    margin-top: 8px;
    font-size: 11px;
    color: #6b7280;
}
.resource-planning-gantt-container .legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.resource-planning-gantt-container .legend-color {
    display: inline-block;
    width: 14px;
    height: 8px;
    border-radius: 2px;
}

/* Fullscreen Mode */
.resource-planning-gantt-container .gantt-wrapper:fullscreen { padding: 20px; background: #fff; }
.resource-planning-gantt-container .gantt-wrapper:fullscreen .gantt-chart { height: calc(100vh - 40px) !important; }

/* Items Table - Detail View (ReceivedDeliveryNote, SupplierInvoice, etc.) */
.detail .field[data-name="items"] .list > table {
    table-layout: auto;
    width: 100%;
    border-collapse: collapse;
}

.detail .field[data-name="items"] .list > table th,
.detail .field[data-name="items"] .list > table td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    font-size: 13px;
}

.detail .field[data-name="items"] .list > table thead th {
    background-color: rgb(114, 129, 148);
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.detail .field[data-name="items"] .list > table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.detail .field[data-name="items"] .list > table tbody tr:hover {
    background-color: #f0f7ff;
}

.detail .field[data-name="items"] .list > table td.cell[data-name="name"] {
    white-space: normal;
    min-width: 150px;
    word-break: break-word;
}

.detail .field[data-name="items"] .list > table td.cell[data-name="quantity"],
.detail .field[data-name="items"] .list > table td.cell[data-name="taxRate"],
.detail .field[data-name="items"] .list > table td.cell[data-name="withTax"] {
    text-align: center;
}

.detail .field[data-name="items"] .list > table td.cell[data-name="unitPrice"],
.detail .field[data-name="items"] .list > table td.cell[data-name="purchasePrice"],
.detail .field[data-name="items"] .list > table td.cell[data-name="amount"],
.detail .field[data-name="items"] .list > table td.cell[data-name="taxAmount"],
.detail .field[data-name="items"] .list > table td.cell[data-name="amountWithTax"] {
    text-align: right;
}

.detail .field[data-name="items"] .recordList {
    overflow-x: auto;
}

/* SupplierInvoice Compare View - Items Table */
.record-grid-compare .field[data-name="items"] .list > table {
    table-layout: auto;
    width: 100%;
}

.record-grid-compare .field[data-name="items"] .list > table th,
.record-grid-compare .field[data-name="items"] .list > table td {
    white-space: nowrap;
    padding: 6px 8px;
    font-size: 12px;
}

.record-grid-compare .field[data-name="items"] .list > table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.record-grid-compare .field[data-name="items"] .list > table td.cell[data-name="name"] {
    white-space: normal;
    min-width: 150px;
    max-width: 250px;
    word-break: break-word;
}

.record-grid-compare .field[data-name="items"] .list > table td.cell[data-name="quantity"],
.record-grid-compare .field[data-name="items"] .list > table td.cell[data-name="taxRate"],
.record-grid-compare .field[data-name="items"] .list > table td.cell[data-name="withTax"] {
    text-align: center;
    min-width: 60px;
}

.record-grid-compare .field[data-name="items"] .list > table td.cell[data-name="unitPrice"],
.record-grid-compare .field[data-name="items"] .list > table td.cell[data-name="purchasePrice"],
.record-grid-compare .field[data-name="items"] .list > table td.cell[data-name="amount"],
.record-grid-compare .field[data-name="items"] .list > table td.cell[data-name="taxAmount"],
.record-grid-compare .field[data-name="items"] .list > table td.cell[data-name="amountWithTax"] {
    text-align: right;
    min-width: 90px;
}

.record-grid-compare .field[data-name="items"] .recordList {
    overflow-x: auto;
}


/* CostTypeSummaries - center add button */
.field[data-name="costTypeSummaries"] .list-buttons-container {
    display: flex;
    justify-content: center;
}

.field[data-name="costTypeSummaries"] .list-buttons-container .btn-group {
    float: none;
}

/* #9 - Fix dropdown arrow: point down when closed, up when open */
.selectize-control.single .selectize-input:after {
    content: ' ';
    display: block;
    position: absolute;
    top: 50%;
    right: 15px;
    margin-top: -3px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: #808080 transparent transparent transparent;
}
.selectize-control.single .selectize-input.dropdown-active:after {
    margin-top: -3px;
    border-width: 0 5px 5px 5px;
    border-color: transparent transparent #808080 transparent;
}

/* #3 - PDF buttons: no color (default gray style) */
.detail-action-item[data-name="printPdf"],
.detail-action-item[data-name="emailPdf"] {
    background-color: #fff !important;
    border-color: #d8d8d8 !important;
    color: #333 !important;
}
.detail-action-item[data-name="printPdf"]:hover,
.detail-action-item[data-name="emailPdf"]:hover {
    background-color: #e6e6e6 !important;
    border-color: #adadad !important;
}

/* #12 - Inline edit icons: checkmark green, cancel gray */
.inline-save-link {
    color: #28a745 !important;
}
.inline-cancel-link {
    color: #999 !important;
}

/* #29 - Billing status: colored badges with background */
[data-name="billingStatus"] .text-danger,
[data-name="billingStatus"] .text-success,
[data-name="billingStatus"] .text-warning,
[data-name="billingStatus"] .text-default {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: 600;
    color: #fff !important;
}
[data-name="billingStatus"] .text-danger {
    background-color: #dc3545 !important;
}
[data-name="billingStatus"] .text-success {
    background-color: #28a745 !important;
}
[data-name="billingStatus"] .text-warning {
    background-color: #f0ad4e !important;
}
[data-name="billingStatus"] .text-default {
    background-color: #999 !important;
}

/*# sourceMappingURL=main.css.map */
/**
 * Project Calendar - All Projects View
 * Clean styles for weekly and monthly calendar views
 */

/* ==================== MAIN CONTAINER ==================== */
.project-calendar-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
    background: #fff;
}

/* ==================== TOOLBAR ==================== */
.project-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
    flex-wrap: wrap;
    gap: 10px;
}

.toolbar-left,
.toolbar-center,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.toolbar-center {
    flex: 1;
    justify-content: center;
}

.period-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.project-calendar-toolbar .btn {
    padding: 5px 10px;
    font-size: 13px;
}

.project-calendar-toolbar .btn.active {
    background: #337ab7;
    border-color: #337ab7;
    color: #fff;
}

/* ==================== RESOURCE POOLS ==================== */
.resource-pools {
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
    overflow-x: auto;
}

.resource-pool {
    flex: 1;
    min-width: 180px;
    max-width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.pool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    font-size: 12px;
}

.pool-header i {
    margin-right: 5px;
}

.pool-count {
    color: #666;
    font-weight: normal;
}

.pool-items {
    padding: 8px;
    max-height: 120px;
    overflow-y: auto;
    overflow-x: hidden;
}

.pool-item {
    display: flex;
    align-items: center;
    padding: 5px 8px;
    margin-bottom: 4px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 12px;
    cursor: grab;
    transition: all 0.15s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.pool-item:hover {
    background: #e8f4fd;
    border-color: #337ab7;
}

.pool-item:active {
    cursor: grabbing;
}

.pool-item i {
    margin-right: 6px;
    color: #666;
}

.pool-item.worker-item i { color: #28a745; flex-shrink: 0; }
.pool-item.asset-item i { color: #007bff; flex-shrink: 0; }
.pool-item.task-item i { color: #ffc107; flex-shrink: 0; }

.pool-item .pool-item-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

/* Ensure tasks pool doesn't overflow */
.tasks-pool .pool-item {
    max-width: 100%;
    box-sizing: border-box;
}

.tasks-pool .pool-items {
    width: 100%;
}

.pool-empty {
    color: #999;
    font-size: 12px;
    text-align: center;
    padding: 10px;
}

/* ==================== CALENDAR CONTAINER ==================== */
.calendar-container {
    flex: 1;
    overflow: auto;
    padding: 15px;
}

/* ==================== WEEKLY GRID TABLE ==================== */
.weekly-grid {
    width: 100%;
}

.weekly-grid-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}

.weekly-grid-table th,
.weekly-grid-table td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
}

.weekly-grid-table thead th {
    background: #f5f5f5;
    font-weight: 600;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.weekly-grid-table th.project-header {
    width: 180px;
    text-align: left;
}

.weekly-grid-table th.day-header {
    min-width: 80px;
}

.weekly-grid-table th.day-header.today {
    background: #d9edf7;
}

.weekly-grid-table th.day-header .day-name {
    font-weight: 600;
    display: block;
}

.weekly-grid-table th.day-header .day-date {
    font-size: 11px;
    color: #666;
    font-weight: normal;
}

.weekly-grid-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.weekly-grid-table tbody tr:hover {
    background: #f0f7ff;
}

.weekly-grid-table td.project-name-cell {
    background: #f9f9f9;
    font-weight: 500;
}

.weekly-grid-table .project-name-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.weekly-grid-table .project-color-indicator {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.weekly-grid-table .project-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.weekly-grid-table td.day-cell {
    min-height: 40px;
    height: 40px;
    vertical-align: middle;
}

.weekly-grid-table td.day-cell.today {
    background: #eef7ff;
}

.weekly-grid-table td.day-cell.has-assignments {
    background: #efffef;
}

.weekly-grid-table .cell-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.weekly-grid-table .assignment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
}

/* ==================== SIMPLE MONTHLY CALENDAR ==================== */
.simple-monthly-calendar {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.cal-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.cal-header-cell {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.cal-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal-cell {
    min-height: 80px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 5px;
    background: #fff;
}

.cal-cell:nth-child(7n) {
    border-right: none;
}

.cal-cell.other-month {
    background: #fafafa;
}

.cal-cell.other-month .cal-day-num {
    color: #bbb;
}

.cal-cell.today {
    background: #e3f2fd;
}

.cal-cell.today .cal-day-num {
    background: #1976d2;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cal-cell.weekend {
    background: #fafafa;
}

.cal-day-num {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.cal-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.cal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: default;
}

.cal-dot:hover {
    transform: scale(1.3);
}

.cal-dot-more {
    font-size: 9px;
    color: #666;
}

/* ==================== DRAG AND DROP ==================== */
.weekly-grid-table td.day-cell.drag-over {
    background: #d4edda !important;
    box-shadow: inset 0 0 0 2px #28a745;
}

/* ==================== NO DATA ==================== */
.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

/* ==================== MONTH TABLE ==================== */
.month-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.month-table th {
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}

.month-table td.month-cell {
    border: 1px solid #ddd;
    padding: 5px;
    height: 80px;
    vertical-align: top;
    background: #fff;
}

.month-table td.month-cell.other {
    background: #f9f9f9;
}

.month-table td.month-cell.other .day-num {
    color: #aaa;
}

.month-table td.month-cell.today {
    background: #e3f2fd;
}

.month-table td.month-cell.weekend {
    background: #fafafa;
}

.month-table .day-num {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}

.month-table .dots {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.month-table .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
/* Monthly Calendar with colored bars */
.mcal {
    position: relative;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.mcal-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.mcal-header-cell {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.mcal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.mcal-day {
    min-height: 90px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 4px;
    background: #fff;
    box-sizing: border-box;
}

.mcal-day:nth-child(7n) {
    border-right: none;
}

.mcal-day.other {
    background: #f8f8f8;
}

.mcal-day.other .mcal-day-num {
    color: #aaa;
}

.mcal-day.today {
    background: #e8f4fc;
}

.mcal-day.today .mcal-day-num {
    background: #1976d2;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mcal-day.weekend {
    background: #fafafa;
}

.mcal-day-num {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.mcal-bars {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mcal-bar {
    height: 6px;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.mcal-bar:hover {
    transform: scaleY(1.5);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.mcal-more {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

/* Popup */
.mcal-popup {
    display: none;
    position: absolute;
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.mcal-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 15px;
    border: 5px solid transparent;
    border-top-color: #333;
}
