﻿@import url('https://fonts.googleapis.com/css2?family=Anek+Latin:wght@100;200;300;400;500;600;700;800&family=Shadows+Into+Light&family=Titillium+Web&display=swap');

@font-face {
    font-family: TwemojiMozilla;
    src: url(TwemojiMozilla.ttf);
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067,U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
}

:root {
    --header-height: 4rem;
    --header-width: 240px;
    --left-menu-closed-width: 60px;
    --primary-color: #264089 /*#dc354b*/;
}

* {
    /*--ag-line-height: 20px;*/
}

html {
    font-size: 14px;
}

body {
    font-family: 'TwemojiMozilla', 'Anek Latin', sans-serif !important;
}

.fs-7 {
    font-size: 0.875rem !important
}

.fs-8 {
    font-size: 0.75rem !important
}

.fs-9 {
    font-size: 0.60rem !important
}

.mt-10 {
    margin-top: 6rem !important;
}

.mt-15 {
    margin-top: 9rem !important;
}

.p-015 {
    padding: 0.15rem !important
}

.p-010 {
    padding: 0.10rem !important
}

.p-005 {
    padding: 0.05rem !important
}

.opacity-15 {
    opacity: .15 !important;
}

.btn-xs {
    padding: 0.1rem 0.3rem;
    font-size: 0.75rem;
    border-radius: 0.2rem
}

.clickable-link {
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap !important;
}

.agLineThrough > * {
    text-decoration: line-through;
}

.deleted-row {
    text-decoration: line-through;
}

.clickable-link:hover {
    text-decoration: underline;
}

.ts-control {
    padding: 0.10rem 0.4rem;
}

.ts-wrapper.multi .ts-control > div {
    margin: 0 3px 2px 0;
}

.ts-wrapper.multi.has-items .ts-control {
    padding-left: calc(0.55rem - 5px);
}

.ts-wrapper.multi .ts-control > div {
    background: transparent !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 1px !important;
}

    .ts-wrapper.multi .ts-control > div.active {
        border: 0 solid transparent;
        text-decoration: underline;
        color: unset !important
    }



.ts-control > input {
    min-width: 1rem;
}

.ts-dropdown {
    min-width: 250px;
}

.drop-shadow {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

drop-grid .dropgrid-textbox.invalid {
    outline: 1px solid #b53939;
    outline-offset: -2px;
    transition: outline-offset 200ms ease;
}


.swal2-question {
    border-color: #565656 !important;
    background-color: #ebebeb;
}

    .swal2-question .swal2-icon-content {
        color: #565656 !important;
    }


[data-bs-theme="dark"] .ts-control {
    color: white !important;
}

[data-bs-theme="dark"] .icon-primary {
    color: white !important;
}

[data-bs-theme="dark"] .menu-top-transparent.bg-light {
    background-color: black !important;
    color: white !important;
}

[data-bs-theme="dark"] .dropdown-large, [data-bs-theme="dark"] .menuGrup:hover {
    background-color: black !important;
    color: white !important;
}

[data-bs-theme="dark"] .menuGrup a {
    color: var(--bs-secondary-text-emphasis) !important;
}

[data-bs-theme="dark"] .disabled .ts-control {
    background-color: var(--bs-gray-800) !important;
}

[data-bs-theme="dark"] .priceitem {
    background-color: var(--bs-gray-800) !important;
}

[data-bs-theme="dark"] .priceitemnumber, [data-bs-theme="dark"] .nochange {
    background-color: var(--bs-gray-700) !important;
}

[data-bs-theme="dark"] .ts-wrapper.multi .ts-control > div {
    color: var(--bs-gray-500) !important;
}

[data-bs-theme="dark"] .ts-dropdown {
    background-color: var(--bs-gray-800) !important;
    color: var(--bs-gray-500) !important;
}

    [data-bs-theme="dark"] .ts-dropdown .active {
        background-color: var(--bs-black) !important;
        color: var(--bs-white) !important;
    }

[data-bs-theme="dark"] .btn-tool {
    background-color: #232222;
    border-color: #565656;
    color: #fafafa;
}

[data-bs-theme="dark"] .btn-tool:hover {
    background-color: #2f2d2d;
    border-color: #565656;
    color: #fafafa;
}

[data-bs-theme="dark"] .ag-paging-row-summary-panel-number[ref="lbRecordCount"] {
    font-weight: bold;
    color: var(--ag-secondary-foreground-color);
    border-radius: 4px 4px 4px 4px;
    background-color: var(--bs-body-bg) !important;
    padding-left: 4px;
    padding-right: 4px;
}

[data-bs-theme="dark"] .ag-paging-page-summary-panel path {
    fill: #dadada !important;
    stroke: rgba(196,184,196,1) !important;
}

.font-icon {
    font-family: TwemojiMozilla;
}

.pageOverlay {
    top: 0px;
    position: fixed;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.3);
    width: 100%;
    text-align: center;
    z-index: 9999;
}

.pageOverlay div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.pageOverlay div span {
    padding: 10px;
    border: 1px solid rgb(159, 159, 159);
    background: rgb(251, 251, 251);
    border-radius: 4px;
}


[data-bs-theme="dark"] .pageOverlay div span {
background-color: #565656;
}

/* Talay Amber Theme - Using #ffc107 as the primary brand color */

.tabulator {
  font-size:0.8rem;
  background-color: #ffffff;
  color: #212529;
  border: 1px solid #dee2e6;
}

.tabulator .tabulator-header {
  background-color: #fff8e1; /* soft amber tint */
  border-bottom: 1px solid #ffd54f;
}

.tabulator .tabulator-header .tabulator-col {
  background-color: #ffecb3; /* lighter brand tone */
  color: #7a4f01; /* readable on amber */
  border-right: 1px solid #ffe082;
}

.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover {
  background-color: #ffe082;
}

.tabulator .tabulator-row {
  background-color: #ffffff;
  border-bottom: 1px solid #f1f3f5;
}

.tabulator .tabulator-row:nth-child(even) {
  background-color: #fafafa;
}

.tabulator .tabulator-row:hover {
  background-color: #fff3cd; /* soft amber hover */
}

/* Talay Amber Dark Theme - Uses #ffc107 for highlights on a dark base */

[data-bs-theme="dark"] .tabulator {
  background-color: #1e1e1e;
  color: #f0f0f0;
  border: 1px solid #333;
}

[data-bs-theme="dark"] .tabulator .tabulator-header {
  background-color: #2b2b2b;
  border-bottom: 1px solid #444;
}

[data-bs-theme="dark"] .tabulator .tabulator-header .tabulator-col {
  background-color: #3a3a3a;
  color: #ffc107;
  border-right: 1px solid #444;
}

[data-bs-theme="dark"] .tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover {
  background-color: #4a4a4a;
}

[data-bs-theme="dark"] .tabulator .tabulator-row {
  background-color: #1e1e1e;
  border-bottom: 1px solid #2c2c2c;
}

[data-bs-theme="dark"] .tabulator .tabulator-row:nth-child(even) {
  background-color: #252525;
}

[data-bs-theme="dark"] .tabulator .tabulator-row:hover {
  background-color: #3c3c3c;
}

[data-bs-theme="dark"] .tabulator .tabulator-row.tabulator-selected {
  background-color: #ffc107;
  color: #000;
}

[data-bs-theme="dark"] .tabulator .tabulator-cell {
  border-right: 1px solid #333;
}

/* Footer */
[data-bs-theme="dark"] .tabulator .tabulator-footer {
  background-color: #2b2b2b;
  color: #ccc;
  border-top: 1px solid #444;
}

/* Sort arrow color */
[data-bs-theme="dark"] .tabulator .tabulator-col .tabulator-arrow {
  color: #ffc107;
}

