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(--foreground));
    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(--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(--foreground));
    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(255 255 255 / 0.05); color: rgb(255 255 255 / 0.5); }
.status-sent { background-color: rgb(0 170 255 / 0.1); color: rgb(0 170 255); }
.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(255 255 255 / 0.5);
    background-color: rgb(28 28 28);
    border: 1px solid rgb(42 42 42);
}

.view-btn:hover {
    color: white;
    background-color: rgb(42 42 42);
}

.edit-btn {
    color: rgb(0 170 255);
    background-color: rgb(0 170 255 / 0.1);
    border: 1px solid rgb(0 170 255 / 0.2);
    cursor: pointer;
}

.edit-btn:hover {
    color: rgb(51 187 255);
    background-color: rgb(0 170 255 / 0.2);
    border-color: rgb(0 170 255 / 0.3);
}

.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;
}

.select2-results__options {
    scrollbar-width: thin;
    scrollbar-color: #555 #222;
}

.select2-container--tailwindcss-3 .select2-selection--single {
    background-color: #1c1c1c;
    border-color: #2a2a2a;
}

.select2-container--tailwindcss-3 .select2-selection--single:focus-within,
.select2-container--tailwindcss-3.select2-container--open .select2-selection--single {
    border-color: #00AAFF;
}

.select2-container--tailwindcss-3 .select2-selection--single .select2-selection__rendered {
    color: #fff;
}

.select2-container--tailwindcss-3 .select2-selection--single .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.select2-container--tailwindcss-3 .select2-selection--single .select2-selection__arrow b {
    border-color: rgba(255, 255, 255, 0.5) transparent transparent transparent;
}

.select2-container--tailwindcss-3 .select2-dropdown {
    background-color: #1c1c1c;
    border-color: #2a2a2a;
}

.select2-container--tailwindcss-3 .select2-search--dropdown .select2-search__field {
    background-color: #0c0c0c;
    border-color: #2a2a2a;
    color: #fff;
}

.select2-container--tailwindcss-3 .select2-results__option--highlighted,
.select2-container--tailwindcss-3 .select2-results__option--highlighted[aria-selected] {
    background-color: #00AAFF !important;
    color: #000 !important;
}

.select2-container--tailwindcss-3 .select2-results__option[aria-selected="true"] {
    background-color: rgba(0, 170, 255, 0.15);
    color: #00AAFF;
}

.select2-container--tailwindcss-3 .select2-selection--multiple {
    background-color: #1c1c1c;
    border-color: #2a2a2a;
}

.select2-container--tailwindcss-3 .select2-selection--multiple .select2-selection__choice {
    background-color: #00AAFF;
    border-color: #00AAFF;
    color: #000;
}

.select2-container--tailwindcss-3 .select2-selection--multiple .select2-selection__choice__remove {
    color: #000;
}

.select2-container--tailwindcss-3 .select2-selection--multiple .select2-selection__choice__remove:hover {
    background-color: rgba(0, 170, 255, 0.2);
    color: #000;
}

.select2-container--tailwindcss-3.select2-container--focus .select2-selection--single {
    border-color: #00AAFF !important;
    box-shadow: 0 0 0 1px #00AAFF;
}

.select2-container--tailwindcss-3.select2-container--focus .select2-selection--multiple {
    border-color: #00AAFF !important;
    box-shadow: 0 0 0 1px #00AAFF;
}

.select2-container--tailwindcss-3 .select2-search--dropdown .select2-search__field:focus {
    border-color: #00AAFF;
    box-shadow: 0 0 0 1px #00AAFF;
}

.select2-container--tailwindcss-3 .select2-results__option--selected:after {
    color: #00AAFF !important;
}

.select2-container--tailwindcss-3 .select2-results__option--loading,
.select2-container--tailwindcss-3 .select2-results__option--load-more,
.select2-container--tailwindcss-3 .select2-results__option--message,
.select2-container--tailwindcss-3 .select2-results__message,
.select2-no-results {
    color: rgba(255, 255, 255, 0.5) !important;
}

.select2-container--tailwindcss-3 .select2-results__option--loading:after {
    border-top-color: #00AAFF;
}

.select2-container--tailwindcss-3 .select2-results__options::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.select2-container--tailwindcss-3 .select2-results__options::-webkit-scrollbar-track {
    background: #1c1c1c;
}

.select2-container--tailwindcss-3 .select2-results__options::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
    border: 2px solid #1c1c1c;
}
