*:focus {
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
}

a:link,
a:visited,
a:active,
a:hover {
    color: var(--accent);
}

p {
    margin: 0;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
}

::-webkit-scrollbar-track {
    background: var(--gray300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray400);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-height: 24px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray500);
    cursor: grabbing;
}

::-webkit-scrollbar-thumb:active {
    background: var(--gray500);
}

::-webkit-scrollbar-button,
::-webkit-scrollbar-corner {
    display: none;
}

button {
    color: var(--white);
    background-color: var(--accent);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
    padding: 0 8px;
    margin: 0;
    height: 32px;
    max-height: 32px;
    border: none;
    border-radius: 4px;
    white-space: nowrap;
    user-select: none;
    gap: 8px;
    cursor: pointer;
}

button{
    background-color: var(--green);
}

button:active:not([disabled]) {
    color: var(--gray400);
    background: var(--gray200);
}

button[disabled],
form[disabled] button {
    color: var(--gray400);
    background: var(--gray200);
    cursor: default;
    pointer-events: none;
    outline: none;
}


input:not([type="checkbox"]),
textarea,
md-select,
md-autocomplete{
    color: var(--white);
    outline: 2px solid var(--gray300);
    background: var(--black);
    border-radius: 4px;
    border: none;
    line-height: 32px;
    width: 100%;
    height: 32px;
    max-height: 32px;
}

md-autocomplete md-autocomplete-wrap {
    height: inherit;
}

input:not([type="checkbox"]),
textarea,
md-select,
md-autocomplete input{
    padding: 0 15px;
}
input:not([type="checkbox"]):focus,
textarea:focus,
md-select:focus,
md-autocomplete input:focus{
    outline: 2px solid var(--gray500);
}

input:not([type="checkbox"])::placeholder,
textarea::placeholder,
md-select .md-select-value.md-select-placeholder{
    color: var(--gray300);
}


[ng-click],
[ui-sref] {
    cursor: pointer;
    user-select: none;
}

input[disabled],
md-select[disabled] {
    background-color: var(--disabled) !important;
}


input[type="checkbox"] {
    cursor: pointer;
    width: 20px;
    height: 20px;
    background: var(--gray100);
    border-radius: 4px;
    accent-color: var(--accent);
    appearance: none;
    -webkit-appearance: none;
    outline: 2px solid var(--gray300);
}

input[type="checkbox"]:checked {
    appearance: auto;
    -webkit-appearance: auto;
}

body[data-theme="light"],
body[theme="light"] {
    --black: #f5f7fa;
    --gray50: #ffffff;
    --gray100: #eef2f7;
    --gray200: #dde3ec;
    --gray300: #9aa6b2;
    --gray400: #6b7785;
    --gray500: #1f2937;
    --white: #0f172a;
    --disabled: #e5e7eb;
    --accent: #2563eb;
    --green: #16a34a;
    --blue: #2563eb;
    --red: #dc2626;
    --pay: #db2777;
}

body[data-theme="ocean"],
body[theme="ocean"] {
    --black: #0b1f2a;
    --gray50: #0f2a38;
    --gray100: #123447;
    --gray200: #1d4e63;
    --gray300: #6fa3b8;
    --gray400: #a7d0e0;
    --gray500: #e6f4fa;
    --white: #eaf6fb;
    --disabled: #1a3a4a;
    --accent: #0ea5e9;
    --green: #22c55e;
    --blue: #38bdf8;
    --red: #f43f5e;
    --pay: #a855f7;
}

body[data-theme="forest"],
body[theme="forest"] {
    --black: #0f1a14;
    --gray50: #132019;
    --gray100: #1a2b22;
    --gray200: #2a4033;
    --gray300: #7a9b88;
    --gray400: #b3c9bc;
    --gray500: #f1f7f3;
    --white: #e9f2ec;
    --disabled: #1f2e25;
    --accent: #22c55e;
    --green: #4ade80;
    --blue: #34d399;
    --red: #f87171;
    --pay: #f472b6;
}











table {
    display: table;
    width: 100%;
    min-width: 400px;
}

table thead th {
    padding: 16px 16px;
}

table tfoot td {
    padding: 16px 8px;
}

table tbody td {
    padding: 8px 8px;
}

table tbody tr {
    height: 50px;
}

table th,
table td {
    text-wrap: nowrap;
}

table th,
table tfoot td {
    background-color: var(--gray100);
    font-weight: 600;
}

table tbody tr[ng-click]:hover,
table tbody tr[ui-sref]:hover,
table tbody tr[ui-state]:hover {
    cursor: pointer;
    background-color: var(--gray100);
}

table {
    border-collapse: separate;
    border-spacing: 0;
}
table th, table td {
    border-top: 1px solid var(--gray300);
    border-left: 1px solid var(--gray300);
}
table tr th:last-child, table tr td:last-child {
    border-right: 1px solid var(--gray300);
}
table tr:last-child th, table tr:last-child td {
    border-bottom: 1px solid var(--gray300);
}

table tbody tr:last-child td {

}

tfoot {
    font-weight: 600;
}

th[ng-click]::after, th.asc::after, th.desc::after {
    font-size: 9px;
    font-weight: 400;
    height: 1em;
    line-height: 1em;
    opacity: .8;
    margin: 0 0 0 .5em;
}

th[ng-click]::after {
    color: var(--gray400);
    content: "▼";
}

th.asc::after {
    color: var(--white);
    content: "▲";
}

th.desc::after {
    color: var(--white);
    content: "▼";
}

th[ng-click]:hover::after {
    color: var(--white);
}

table {
    width: min-content;
}

table th {
    position: relative;
}

table td span {
    display: block;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
}

.resizer {
    position: absolute;
    right: 0;
    top: 0;
    width: 12px;
    cursor: col-resize;
    height: 100%;
    user-select: none;
    z-index: 10;
    background: transparent;
}

th.asc, th.desc {
    background-color: var(--gray300);
    font-weight: 600;
}





.md-errors-spacer,
md-select md-select-value,
md-autocomplete md-progress-linear,
md-autocomplete[disabled] md-autocomplete-wrap button,
md-select[required].ng-empty.ng-invalid:not(.md-no-asterisk) .md-select-value span:first-child:after{
    display: none;
}

md-select md-select-value {
    border: none !important;
}

.md-open-menu-container,
.md-open-menu-container.md-active,
.md-open-menu-container md-menu-content {
    transition: none !important;
    animation: none !important;
}

md-dialog-content {
    padding: 0 !important;
}

md-select[disabled] .md-select-value,
md-select-menu md-content md-option[selected].md-focused{
    color: var(--white);
}

md-menu-item {
    display: flex;
    align-items: center;
    padding-right: 16px;
}

md-icon { width: auto; margin: 0; }