input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 1; cursor: pointer; }
input[type="datetime-local"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 1; cursor: pointer; }

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

.dt-layout-row:has(.dt-search),
.dt-layout-row:has(.dt-length),
.dt-layout-row:has(.dt-paging),
.dt-scroll-body thead {
    display: none !important;
}

.dt-container table thead th {
    background-color: rgb(var(--layer));
    color: rgb(var(--muted-foreground-1));
    border-bottom: 1px solid rgb(var(--table-line));
}

.dt-container table tbody tr {
    background-color: transparent;
}

.dt-container table tbody tr:hover {
    background-color: rgb(var(--muted-hover) / 0.3);
}

.dt-container table tbody td {
    border-bottom: 1px solid rgb(var(--table-line));
    color: rgb(var(--foreground));
}

.dt-container .dt-paging-button {
    background-color: transparent;
    color: rgb(var(--foreground));
    border: 1px solid rgb(var(--table-line));
}

.dt-container .dt-paging-button:hover {
    background-color: rgb(var(--muted-hover));
    border-color: rgb(var(--table-line));
}

.dt-container .dt-paging-button.current {
    background-color: rgb(var(--muted-active));
    border-color: rgb(var(--table-line));
}

.dt-container .dt-paging-button.disabled {
    opacity: 0.5;
}

table.dataTable {
    border-collapse: collapse !important;
}

table.dataTable thead th,
table.dataTable tbody td {
    box-sizing: border-box;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    background-color: rgb(var(--muted-foreground));
    border: 2px solid rgb(var(--muted-hover));
    border-radius: 0.375rem;
    box-shadow: none;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before {
    background-color: rgb(var(--primary));
    border-color: rgb(var(--primary-hover));
}

table.dataTable > tbody > tr.child {
    background-color: rgb(var(--layer));
    border-bottom: 1px solid rgb(var(--table-line));
}

table.dataTable > tbody > tr.child ul.dtr-details > li {
    border-bottom: 1px solid rgb(var(--table-line) / 0.5);
    padding: 0.5rem 0;
}

table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
    border-bottom: none;
}

table.dataTable > tbody > tr.child span.dtr-title {
    color: rgb(var(--muted-foreground-1));
    font-weight: 500;
}

table.dataTable > tbody > tr.child span.dtr-data {
    color: rgb(var(--foreground));
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.status-draft { background-color: rgb(82 82 91 / 0.6); color: rgb(209 213 219); }
.status-sent { background-color: rgb(59 130 246 / 0.1); color: rgb(96 165 250); }
.status-accepted { background-color: rgb(34 197 94 / 0.1); color: rgb(74 222 128); }
.status-rejected { background-color: rgb(239 68 68 / 0.1); color: rgb(248 113 113); }
.status-expired { background-color: rgb(234 179 8 / 0.1); color: rgb(251 191 36); }

.action-btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.view-btn {
    color: rgb(156 163 175);
    background-color: rgb(30 30 32 / 0.6);
    border: 1px solid rgb(51 51 51 / 0.6);
}

.view-btn:hover {
    color: white;
    background-color: rgb(55 55 65 / 0.6);
}

.edit-btn {
    color: rgb(96 165 250);
    background-color: rgb(59 130 246 / 0.15);
    border: 1px solid rgb(59 130 246 / 0.3);
    cursor: pointer;
}

.edit-btn:hover {
    color: rgb(147 197 253);
    background-color: rgb(59 130 246 / 0.25);
    border-color: rgb(59 130 246 / 0.5);
}

.delete-btn {
    color: rgb(248 113 113);
    background-color: rgb(239 68 68 / 0.1);
    border: none;
    cursor: pointer;
}

.delete-btn:hover {
    color: rgb(254 114 114);
    background-color: rgb(239 68 68 / 0.2);
}

.action-btns {
    display: flex;
    gap: 0.5rem;
}

.choices {
    font-size: 0.875rem;
    margin-bottom: 0 !important;
}

.choices__inner {
    background-color: rgb(38 38 38 / 0.6) !important;
    border: 1px solid rgb(64 64 64 / 0.6) !important;
    border-radius: 0.5rem !important;
    padding: 0.375rem 2rem 0.375rem 0.625rem !important;
    min-height: auto !important;
    color: rgb(229 229 229) !important;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    background-color: rgb(38 38 38) !important;
    border: 1px solid rgb(64 64 64 / 0.6) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
    margin-top: 0.25rem !important;
}

.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
    color: rgb(229 229 229) !important;
    padding: 0.375rem 0.625rem !important;
    font-size: 0.875rem !important;
    line-height: 1.25 !important;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background-color: rgb(82 82 82 / 0.6) !important;
    color: white !important;
}

.choices__inner:hover {
    border-color: rgb(82 82 82) !important;
}

.choices.is-focused .choices__inner {
    border-color: rgb(82 82 82) !important;
    box-shadow: none !important;
}

.choices__list--single {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.choices__list--single .choices__item {
    color: rgb(229 229 229) !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.25 !important;
    padding: 0 !important;
}

.choices[data-type*=select-one]:after {
    border-color: rgb(115 115 115) transparent transparent transparent !important;
}

.choices[data-type*=select-one].is-open:after {
    border-color: transparent transparent rgb(115 115 115) transparent !important;
}

.choices__input {
    background-color: rgb(38 38 38) !important;
    color: rgb(229 229 229) !important;
}

.choices__input::placeholder {
    color: rgb(115 115 115) !important;
}

.choices__list--dropdown .choices__item--selectable:after {
    display: none !important;
}
