/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Helvetica, Arial, sans-serif;
}

body {
    font-size: 16px;
}

.container {
    display: flex;
    min-height: 100vh;
}

.dashboard, .dashboard-pane {
    width: 250px;
    background-color: #2e3445;
    padding: 20px;
    border-right: 1px solid #ccc;
}

.dashboard h2, .dashboard-pane h2 {
    margin-bottom: 20px;
    color: white;
}

.dashboard ul, .dashboard-pane ul {
    list-style: none;
}

.dashboard ul li, .dashboard-pane ul li {
    margin: 10px 0;
}

.dashboard ul li a, .dashboard-pane ul li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
}

.project-plans {
    position: relative;
}

.project-list, .submenu {
    margin-left: 20px;
    font-size: 14px;
    display: none;
}

.project-list.show, .submenu.show {
    display: block;
}

.project-list li, .submenu li {
    margin: 5px 0;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
}

.main-content h1 {
    margin-bottom: 20px;
}

#taskForm, #createProjectForm {
    margin-bottom: 20px;
}

#taskForm input, #createProjectForm input {
    padding: 8px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#taskForm select {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#taskForm button, #createProjectForm button {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

#taskForm button:hover, #createProjectForm button:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    position: relative;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    position: relative; /* For positioning insert-point */
}

th {
    background-color: #f4f4f4;
}

tr.subtask td:first-child::before {
    content: '↳ ';
}

tr.task-row {
    position: relative;
}

td.editable {
    cursor: pointer;
}

td.editable:hover {
    background-color: #f0f0f0;
}

td input, td select {
    width: 100%;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    padding: 0;
}

.context-menu {
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.context-menu div {
    padding: 5px 10px;
    cursor: pointer;
}

.context-menu div:hover {
    background: #f0f0f0;
}

.drag-handle {
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

tr.dragging {
    opacity: 0.5;
    background-color: #e0e0e0;
}

tr.drop-target {
    border-top: 2px solid #007bff;
}

.out-of-sequence {
    color: red;
}

td.out-of-sequence[title] {
    position: relative;
    cursor: help;
}

.insert-point {
    position: absolute;
    left: -10px; /* Position outside table for left edge */
    top: -2.5px; /* Center vertically between rows */
    width: 10px;
    height: 5px;
    background: transparent;
    z-index: 10;
    cursor: pointer;
    display: none; /* Hidden until hover */
}

tr.task-row:hover .insert-point,
tr.subtask:hover .insert-point {
    display: block; /* Show on row hover */
}

.insert-point::before {
    content: '▼';
    position: absolute;
    left: 2px;
    top: -5px;
    color: #007bff;
    font-size: 12px;
    z-index: 11;
}

.insert-point:hover::before {
    color: #0056b3;
}

.insert-tooltip {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 5px;
    min-width: 120px;
}

.tooltip-option {
    padding: 5px 10px;
    cursor: pointer;
}

.tooltip-option:hover {
    background: #f0f0f0;
}

/* Budget Wizard Modal */
.budget-wizard-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.budget-wizard-overlay.show {
    opacity: 1;
    visibility: visible;
}

.budget-wizard {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.budget-wizard h3 {
    margin: 0 0 20px;
    font-size: 1.4rem;
    text-align: center;
}

.wizard-options {
    margin-bottom: 25px;
}

.wizard-option {
    display: flex;
    align-items: center;
    margin: 12px 0;
    font-size: 1rem;
    cursor: pointer;
}

.wizard-option input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
}

.btn-primary, .btn-secondary {
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.active-label {
    color: #28a745;
    font-size: 0.8em;
    font-weight: normal;
}

/* Hamburger button in Line Item column */
.line-item-cell {
    position: relative;
    padding-right: 40px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.line-item-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.hamburger-btn:hover {
    opacity: 1;
}

/* Calculator Modal */
.calc-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s; z-index: 2000;
}
.calc-overlay.show { opacity: 1; }

.calc-modal {
    background: white; width: 90%; max-width: 360px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); overflow: hidden;
}

.calc-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: #f8f9fa; border-bottom: 1px solid #eee;
}

.calc-close {
    background: none; border: none; font-size: 1.4rem; cursor: pointer; padding: 0;
}

.calc-body { padding: 16px; }

.calc-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}

.calc-btn {
    padding: 14px; font-size: 1.1rem; border: 1px solid #ddd; border-radius: 6px;
    background: #f8f9fa; cursor: pointer; transition: background 0.2s;
}

.calc-btn:hover { background: #e9ecef; }
.calc-btn.calc-clear { background: #dc3545; color: white; }
.calc-btn.calc-clear:hover { background: #c82333; }

/* Hamburger Icon – 3 lines, slim, right-aligned */
.hamburger-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;           /* pushes to the right */
    opacity: 0.65;
    transition: opacity 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    position: relative;
}

.hamburger-btn::before,
.hamburger-btn::after,
.hamburger-btn span {
    content: '';
    display: block;
    width: 18px;
    height: 1.8px;
    background: #222;
    border-radius: 1px;
    transition: background 0.2s;
}

/* Middle line slightly shorter for visual balance */
.hamburger-btn span {
    width: 14px;
}

.hamburger-btn:hover {
    opacity: 1;
}

.hamburger-btn:hover::before,
.hamburger-btn:hover::after,
.hamburger-btn:hover span {
    background: #000;
}

.line-item-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 8px !important;   /* small buffer from table edge */
    position: relative;
}

.line-item-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
}

/* Wide modal for Kitchen */
.calc-modal.wide {
    max-width: 800px;
    width: 95%;
}

.kitchen-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.kitchen-table th,
.kitchen-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.kitchen-table th {
    background: #f8f9fa;
}

.kitchen-table input {
    width: 100%;
    border: none;
    text-align: center;
    padding: 4px;
    font: inherit;
}

.total-row {
    font-weight: bold;
    background: #f0f8ff !important;
}

.modal-actions {
    margin-top: 16px;
    text-align: right;
}

.generic-table input {
    width: 100%;
    border: none;
    padding: 4px;
    text-align: center;
    font: inherit;
}
.generic-table .total-cost { text-align: right; font-weight: 500; }
#addRow { margin-left: 8px; }

#budgetNameInput::placeholder {
    color: #95a5a6;
    font-style: italic;
}

#budgetNameInput:focus {
    outline: none;
}
#totalsDisplay span {
    font-weight: 500;
}

#archiveModal input[type="checkbox"] {
    margin-right: 8px;
}
#confirmModal p {
    margin: 8px 0;
}

.budget-table td.editable:hover {
    background-color: #f0f4f8 !important;
    cursor: pointer;
}

.budget-table td.amount,
.budget-table td.actual,
.budget-table td.variance,
.budget-table tfoot td {
    text-align: right !important;
}

#calcModal tr:nth-child(1) {
    background: #f0f4f8 !important;
    font-weight: 600;
}
#calcModal input {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px;
    font: inherit;
}
#calcModal .calc-table th,
#calcModal .calc-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

#genericModal input {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px;
    font: inherit;
}
#genericModal .calc-table th,
#genericModal .calc-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

#calcModal input {
    outline: none !important;
    box-shadow: none !important;
}
#calcModal thead th {
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}
#calcModal tbody tr:nth-child(1) td {
    font-weight: normal;
}


#calcModal input {
    outline: none !important;
    box-shadow: none !important;
}
#calcModal thead th {
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}
#calcModal tbody tr:nth-child(1) td {
    font-weight: normal;
}

#totalsDisplay {
    line-height: 1.4;
    font-size: 0.95rem;
}
#runningVariance {
    font-weight: 600;
}
.budget-table .variance {
    font-weight: 500;
}

#budgetNameInput {
    display: block;
    margin: 0;
}
#totalsLine {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.95rem;
    color: #7f8c8d;
}
#totalsLine > div:first-child {
    display: flex;
    gap: 20px;
    align-items: center;
}
#runningVariance {
    font-weight: 600;
}

/* -------------------------------------------------
   1. Dashboard – nicer font
   ------------------------------------------------- */
#projectContent h2,
#projectContent p {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    line-height: 1.4;
}
#projectContent h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
}
#projectContent p {
    font-size: 1rem;
    color: #7f8c8d;
}

/* -------------------------------------------------
   2. Smaller text inside toggle menus
   ------------------------------------------------- */
#budgetList li a {
    font-size: 0.875rem;          /* 14px */
    padding: 6px 12px;
    display: block;
}

/* -------------------------------------------------
   3. Budget page – sticky header (name + totals + table thead)
   ------------------------------------------------- */
.budget-page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.budget-page-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}
.budget-table-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* make the <thead> sticky inside the scrolling container */
.budget-table-container table thead {
    position: sticky;
    top: 0;
    background: #f4f4f4;
    z-index: 9;
}

/* -------------------------------------------------
   4. Dashboard pane – independent scroll (focus-aware)
   ------------------------------------------------- */
.dashboard-pane {
    height: 100%;
    overflow-y: auto;
    transition: scroll-behavior 0.2s;
}
.dashboard-pane:focus {
    outline: none;               /* remove default focus ring if you want */
}

.dashboard-pane {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    font-family: 'Roboto', Arial, sans-serif;
}
.dashboard-pane:focus {
    outline: none;
}

.calc-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s; z-index: 1000;
}
.calc-overlay.show { opacity: 1; }
.calc-modal { background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.calc-header { padding: 16px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.calc-header h4 { margin: 0; font-size: 1.1rem; }
.calc-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #999; }
.calc-body { padding: 20px; }
.calc-table input { font: inherit; padding: 6px 0; }
.modal-actions { padding: 12px 20px; border-top: 1px solid #eee; text-align: right; }
.modal-actions button { margin-left: 8px; }

/* === CONTRACTS PAGE LAYOUT === */
.contracts-page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.contracts-page-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}
.contracts-table-container {
    flex: 1;
    overflow-y: auto;
}

/* === CONTRACTS TABLE === */
.contracts-table {
    width: 100%;
    border-collapse: collapse;
}
.contracts-table th {
    text-align: left;
    padding: 12px;
    background: #f4f4f4;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
}
.contracts-table td {
    padding: 12px;
}
.contract-row {
    border-bottom: 1px solid #eee;
}
.contract-row:last-child {
    border-bottom: none;
}

/* === HAMBURGER BUTTON (3-line icon) === */
.hamburger-btn {
    width: 36px;
    height: 36px;
    background: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
    transition: background 0.2s;
}
.hamburger-btn:hover {
    background: #0056b3;
}
.hamburger-btn::before,
.hamburger-btn::after,
.hamburger-btn span {
    content: '';
    width: 18px;
    height: 2px;
    background: white;
    display: block;
    border-radius: 1px;
}
.hamburger-btn span {
    width: 14px;
}

/* === ACTION CELL CENTERING === */
.action-cell {
    text-align: center;
}
.hamburger-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
}
.hamburger-btn::before,
.hamburger-btn::after,
.hamburger-btn span {
    content: '';
    width: 18px;
    height: 2px;
    background: #666;
    display: block;
    border-radius: 1px;
}
.hamburger-btn span { width: 14px; }
.hamburger-btn:hover { background: #f5f5f5; }

#contractsMenu {
    background-color: #2e3445;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
}

#contractsMenu.show {
    background-color: #3a4257; /* Lighter blue */
}

#contractsMenu li a {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #fff;
    padding: 3px 0 3px 20px;
    display: block;
    text-decoration: none;
}

#contractsMenu li:first-child a {
    font-weight: 400;
    color: #007bff;
}

.modal-cell {
    cursor: pointer;
    padding: 12px !important;
    transition: background 0.2s;
}
.modal-cell:hover {
    background: #f0f0f0;
}

/* Email Icon */
#emailIcon {
    cursor: pointer;
    transition: color 0.2s;
}
#emailIcon:hover {
    color: #007bff;
}

/* Approve Button */
#approveBtn {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Email Icon - Heroicons Paper Airplane */
#emailIcon {
    cursor: pointer;
    transition: color 0.2s;
}
#emailIcon:hover {
    color: #007bff;
}

/* Approve Button */
#approveBtn {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Close Button - Smaller */
.btn-secondary.calc-close {
    font-size: 0.8rem !important;
    padding: 4px 10px !important;
}

td[data-field="dependency"] {
    background: #f9f9f9;
    font-family: 'Courier New', monospace;
    min-width: 80px;
}
td[data-field="dependency"]:focus {
    outline: 2px solid #007bff;
    background: white;
}

* === PROJECT LIST TOGGLE === */
.project-list {
    display: none;
    margin-left: 20px;
    list-style: none;
    padding-left: 0;
}

.project-list.show {
    display: block;
}

/* Optional: smooth open */
.project-list {
    transition: all 0.2s ease;
}

/* Invoices Menu */
#invoicesMenu {
    background-color: #2e3445;
    padding: 0;
    margin: 0;
    list-style: none;
}

#invoicesMenu.show {
    background-color: #3a4257;
}

#invoicesMenu li a {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #fff;
    padding: 3px 0 3px 20px;
    display: block;
    text-decoration: none;
}

#invoicesMenu li:first-child a {
    color: #007bff;
    font-weight: 500;
}

/* Invoices Page */
.invoices-page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.invoices-page-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.invoices-table {
    width: 100%;
    border-collapse: collapse;
}

.invoices-table th {
    text-align: left;
    padding: 12px;
    background: #f4f4f4;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
}

.invoices-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.invoices-table .clickable {
    cursor: pointer;
    color: #007bff;
}

.invoices-table .clickable:hover {
    text-decoration: underline;
}

/* Add Row */
.add-invoice-row {
    border-top: 2px dashed #007bff !important;
}

.add-invoice-row:hover {
    background-color: #e7f3ff !important;
}

/* Upload Icons */
.upload-icon {
    cursor: pointer;
    color: #007bff;
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.9rem;
}

.upload-icon:hover {
    color: #0056b3;
}

.upload-cell a {
    color: #28a745;
    text-decoration: underline;
    font-size: 0.9rem;
}

.upload-cell a:hover {
    color: #1e7e34;
}

/* Inline Add Row */
.add-invoice-row,
.new-invoice-row td {
    background-color: #f8f9fa !important;
    font-style: italic;
    color: #007bff;
}

.add-invoice-row:hover,
.new-invoice-row:hover {
    background-color: #e7f3ff !important;
}

/* Editable Cells */
.editable {
    cursor: text;
    padding: 6px 4px !important;
    min-height: 20px;
}

.editable:focus {
    background-color: #fff;
    outline: 2px solid #007bff;
    border-radius: 4px;
}

/* Delete Icon */
.delete-icon {
    cursor: pointer;
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
}

.delete-icon:hover {
    color: #c82333;
}

/* Upload */
.upload-icon {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
    font-size: 0.9rem;
}

.file-link {
    color: #28a745;
    text-decoration: underline;
    font-size: 0.9rem;
}

/* Table: Remove interior vertical borders */
.invoices-table td,
.invoices-table th {
    border-left: none !important;
    border-right: none !important;
}

/* First and last cells: keep only top/bottom */
.invoices-table td:first-child,
.invoices-table th:first-child {
    border-left: 1px solid #dee2e6 !important;
}

.invoices-table td:last-child,
.invoices-table th:last-child {
    border-right: 1px solid #dee2e6 !important;
}

/* Add Row: Match normal row background */
.add-invoice-row {
    background-color: #fff !important;
    border-top: 1px solid #dee2e6 !important;
}

.add-invoice-row:hover {
    background-color: #f8f9fa !important;
}

/* Ensure Roboto is loaded */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');

/* Delete Icon - Trash Symbol */
.delete-icon {
    cursor: pointer;
    color: #dc3545;
    font-size: 1.1rem;
    font-weight: bold;
}

.delete-icon:hover {
    color: #c82333;
}

/* Date Picker - No border */
.date-input {
    border: none !important;
    background: transparent;
    font: inherit;
    padding: 4px 0;
    width: 100%;
}

/* Amount Placeholder */
.amount-placeholder {
    color: #aaa;
    font-style: italic;
}

.amount-cell {
    text-align: left !important;
}

/* Upload Icons Only */
.upload-icon {
    cursor: pointer;
    color: #007bff;
    font-size: 1.1rem;
}

.upload-icon:hover {
    color: #0056b3;
}

.file-link {
    color: #28a745;
    text-decoration: none;
}

.file-link i {
    margin-right: 4px;
}

.file-link:hover {
    text-decoration: underline;
}


/* === TABLE BORDERS: Normal rows === */

/* First and last cells: full vertical borders */
.invoices-table td:first-child,
.invoices-table th:first-child {
    border-left: 1px solid #dee2e6 !important;
}

.invoices-table td:last-child,
.invoices-table th:last-child {
    border-right: 1px solid #dee2e6 !important;
}

/* === NO BORDER ON EDIT (remove temporary outline) === */
.editable:focus,
.date-input:focus,
.amount-placeholder:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background-color: #fff !important;
}

/* Optional: subtle background on edit (no border) */
.editable:focus,
.amount-placeholder:focus {
    background-color: #f8f9fa !important;
}

/* === STATUS COLUMN: Left-aligned, centered vertically === */
.invoices-table td:nth-child(7),
.invoices-table th:nth-child(7) {
    text-align: left !important;
    padding-left: 12px !important;
}

.invoices-table .status-dropdown {
    width: 100%;
    max-width: 150px;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: white;
}

/* === AMOUNT COLUMN: Right-aligned, consistent === */
.invoices-table td:nth-child(6),
.invoices-table th:nth-child(6) {
    text-align: right !important;
    padding-right: 12px !important;
    font-weight: 600;
}

.amount-cell,
.amount-placeholder {
    display: inline-block;
    width: 100%;
    text-align: right !important;
}