/* Barlow font loaded from Google Fonts (see index.html) */

@font-face {
    font-family: onelove;
    src: url(fonts/onelove.ttf); 
}

@font-face {
    font-family: Paul Signature;
    src: url(fonts/PaulSignature.ttf);
}

@font-face {
    font-family: Royalia;
    src: url(fonts/Royalia.ttf);
}

@font-face {
    font-family: Saitik Handwritten;
    src: url(fonts/Saithik-Handwritten.ttf);
}

@font-face {
    font-family: Tahu;
    src: url(fonts/Tahu!.ttf);
}

@font-face {
    font-family: Segoe Script;
    src: url(fonts/segoesc.ttf);
}

@font-face {
    font-family: Impact;
    src: url(fonts/Impact.ttf);
}

@font-face {
    font-family: Calibri;
    src: url(fonts/calibri-regular.ttf);
}

@font-face {
    font-family: a Amenity Kits;
    src: url(fonts/aAmenityKits.ttf);
}

@font-face {
    font-family: a Apotik;
    src: url(fonts/aApotik.ttf);
}

@font-face {
    font-family: a Authorized Signature;
    src: url(fonts/aAuthorizedSignature.ttf);
}

@font-face {
    font-family: Bestermind;
    src: url(fonts/BestermindRegular.ttf);
}

@font-face {
    font-family: Bringshoot;
    src: url(fonts/Bringshoot.ttf);
}

@font-face {
    font-family: Indonesian;
    src: url(fonts/Indonesian.ttf);
}

@font-face {
    font-family: a Auto signature;
    src: url(fonts/aAutoSignature.ttf);
}

@font-face {
    font-family: My_handwriting;
    src: url(fonts/My_handwriting.ttf);
}
/* path app-v4.css */
:root {
    /* dominant colors - will change with theme */
    --primary: #0D99FF;
    --primary-rgb: 13 153 255;
    --primary-bg-opacity: rgb(var(--primary-rgb) / 5%);
    --secondary: #0D73B1;
    --tertiary: #6244bb;

    /* fixed colors - does not change with theme */
    --error: #dc3545;
    --success: #198754;
    --information: #4684f7;
    --caution: #dda809;
    --muted: #808080;
    --purple: #F402D1;
    --orange: #FB651E;

    /* text color dependent on theme */
    --primary-text: #0f1216;
    --secondary-text: #797979;

    /* background colors dependent on theme */
    --primary-bg: white;
    --secondary-bg: #ebebeb;
    --secondary-bg-gradient: radial-gradient(circle at 18.7% 37.8%, rgb(250, 250, 250) 0%, rgb(225, 234, 238) 90%);
    --body-bg: #e9e9e9;
    --card-bg: #f5f5f5;
    --selected-bg: #f5f5f5;
    --footer-bg: #e1e2e2;

    /* border colors dependent on theme */
    --primary-border: rgba(0, 0, 0, 0.15);
    --secondary-border: rgba(0, 0, 0, 0.02);
    --tertiary-border: rgba(0, 0, 0, 0.03);

    --font-family: 'Barlow', sans-serif;
    --base-font: 1.063rem;
    --font-sm: 0.875rem;
    --font-xs: 0.75rem;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    --shadow: 0px 0px 25px -5px rgba(0, 0, 0, 0.1);

    --i-entity-list-even: rgb(255, 255, 255);
    --i-entity-list-odd: rgb(0 0 0 / 5%);
    --i-entity-list-hover: rgb(0, 123, 255, 0.1);
    --i-entity-list-selected: rgb(0, 123, 255, 0.2);

    --i-entity-list-border-width: 1px;
    --i-entity-list-border-color: #ccc;
    --i-entity-list-border-style: solid;

    --i-entity-list-border: var(--i-entity-list-border-width)
        var(--i-entity-list-border-color) var(--i-entity-list-border-style);

    /* active achievement */
    --ach-bg: #fffbf0;
    --ach-border: #fde68a;
    --ach-name-color: #0f1216;
    --ach-remaining-color: #6b7280;
    --ach-all-done-color: #16a34a;

    /* chat package (packages/chat) */
    --chat-primary: var(--primary);
    --chat-secondary: var(--secondary);
    --chat-primary-rgb: var(--primary-rgb);
    --chat-bubble-bg: var(--secondary-bg);

    /* coach vars (paaal-talk-panel; the coach widget itself is now the chat
       package using --chat-*). Must live in :root, not only :root.dark — vars
       defined solely in the dark block don't exist in light theme. Dark
       overrides stay in :root.dark below. */
    --coach-primary: var(--primary);
    --coach-secondary: var(--secondary);
    --coach-primary-rgb: var(--primary-rgb);
    --coach-bubble-bg: var(--secondary-bg);
}

:root.dark {
    /* dominant colors */
    --primary-text: #f8f8ff;
    /* background colors dependent on theme */
    --primary-bg: #242526;
    --secondary-bg: #3a3b3c;
    --secondary-bg-gradient: radial-gradient(
        circle at 18.7% 37.8%,
        rgb(30, 30, 30) 0%,
        rgb(15, 24, 28) 90%
    );
    --body-bg: #1c1d1e;
    /* border colors dependent on theme */

    --primary-border: rgba(255, 255, 255, 0.15);

    --subtle-bg: rgba(255, 255, 255, 0.05);

    --indeterminate: #4a9be8;
    --indeterminate-hover: #3a8bd8;
    --indeterminate-border: #1e90ff;

    /* ===== Excel Data Table Dark Theme Variables ===== */
    --excel-table-border: #444;
    --excel-cell-border: #444;
    --excel-header-text: white;
    --excel-header-border: rgba(255, 255, 255, 0.2);
    --excel-row-bg: #1e1e1e;
    --excel-row-alt-bg: #252525;
    --excel-row-hover-bg: #2a3343;
    --excel-add-row-bg: #252525;
    --excel-add-row-border: #2b579a;
    --excel-add-row-hover-bg: #2a3343;
    --excel-placeholder-text: #888;
    --excel-cell-text: #e0e0e0;
    --excel-comment-color: #4a9be8;
    --excel-comment-hover: #6db1f1;
    --excel-add-icon-bg: #4a6bb5;
    --excel-add-icon-color: #e0e0e0;
    --excel-add-row-bg: #1f2a3f;
    --excel-add-row-hover-bg: #2a3a5f;
    --excel-add-row-border: #4a6bb5;
    --excel-placeholder-text: #9a9a9a;

    --i-entity-list-even: rgba(255, 255, 255, 0.1);
    --i-entity-list-odd: rgba(255, 255, 255, 0.15);
    --i-entity-list-hover: rgba(0, 0, 0, 0.3);
    --i-entity-list-selected: rgba(0, 0, 0, 1);

    --state-connection-box-bg: #475569;
    --state-connection-box-border: #e5e5e5;
    --state-connection-box-shadow: rgba(0, 0, 0, 1);

    --event-connection-bg: #475569;

    /* active achievement */
    --ach-bg: rgba(253, 200, 80, 0.1);
    --ach-border: rgba(253, 230, 138, 0.22);
    --ach-name-color: #fde68a;
    --ach-remaining-color: #9ca3af;
    --ach-all-done-color: #4ade80;

    /* coach chat */
    --coach-primary: var(--primary);
    --coach-secondary: var(--secondary);
    --coach-primary-rgb: var(--primary-rgb);
    --coach-bubble-bg: rgba(255, 255, 255, 0.08);
}

/* The app mark, in one place. Everything that shows a logo — the modal header,
   and the four user-package auth dialogs — renders .brand-logo, so this variable
   is the single switch. It was previously hardcoded twice (light and dark, both
   identical) to a remote Azure blob holding the *pg* app's Instacode PNG: a
   cross-app, cross-network dependency for the first pixel of our own brand.

   The logo is a single-colour black SVG, so dark mode inverts it to white rather
   than shipping a second asset. That only holds while the mark stays monochrome
   — a coloured version needs a real dark variant here instead. */
:root {
    --brand-logo: url("image/paaal-logo.svg");
}

.brand-logo {
    background-image: var(--brand-logo);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

.dark .brand-logo {
    filter: invert(1);
}

/* .brand-mark is the square icon form of the same asset, for places that show
   the mark beside their own text rather than a standalone logo — the sidebar
   and mobile top bar. It lives here rather than in app-shell.html so the whole
   app keeps ONE logo switch, and because a `self`-scoped component style cannot
   express theme selectors. Components pair it with their own class for sizing,
   the same way the auth dialogs do (`brand-logo uld-logo`).

   TINTED, not drawn. The logo is painted by background-color and the SVG is
   only a MASK, so the mark and the PAAAL wordmark beside it can share one
   variable and cannot drift apart. It has to be a mask: `filter` cannot turn
   black into one specific colour (the invert/sepia/hue-rotate trick is an
   approximation and cannot read a CSS variable at all), and background-image
   cannot be recoloured at all. The mask reads the SVG's alpha, which works here
   only because the file is a single <path> with no background rect.

   --primary-text, not --primary: the lockup is the app's name set in the app's
   text colour, not a blue accent. It is #0f1216 in light and #f8f8ff in dark,
   so this needs no dark-mode rule and no invert — the one variable covers both
   themes, and whatever the wordmark does the mark does too. */
.brand-mark {
    background-color: var(--primary-text);
    -webkit-mask-image: var(--brand-logo);
    mask-image: var(--brand-logo);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    flex: 0 0 auto;
}

input[type="date"] {
    color-scheme: light;
}

.dark input[type="date"] {
    color-scheme: dark;
}


*,
:after,
:before {
    border: 0 solid #e5e7eb;
}

html, body {
    color: var(--primary-text);
    background-color: var(--primary-bg);
    font-family: var(--font-family);
    font-size: var(--base-font);
    font-weight: 400;
    margin: 0;
    padding: 0;

}

a {
    color: #0D99FF;
}

.container {
    background-color: var(--body-bg);
}
.btn-error,
.bg-error {
    background-color: var(--error);
}
.btn-success,
.bg-success {
    background-color: var(--success);
}
tr:hover {
          background-color: rgba(0,0,0,.05);
        }
main.content{
    padding: 30px 40px;
}

header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: var(--primary-bg);
    border-bottom: 1px solid var(--secondary-border);
    z-index: 999999999;
}

.page-logo {
    width: 100%;
    height: 100%;
    min-height: 24px;
    max-height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
}

.page-title {
    font-family: 'Barlow', sans-serif; /* Corrected font name */
    font-size: 26px;
    font-weight: 700;
    text-align: center;
}

.dialog-footer {
    padding: 0 40px;
    border-top: 1px solid var(--primary-border);
}

.dialog-footer > div {
    display: flex;
    padding: 20px 0;
    column-gap: 4px;
}

.area-content {
    font-weight: 600;
    color: var(--caution);
}

.action-icon.reset {
    background-color: var(--caution);
}

.add-entity > span {
    display: inline-flex;
    align-items: center;
}

.entity-count {
    font-weight: 500;
}

.autocomplete, .fields .input-set{
    border: 1px solid var(--primary-border);
    /* border-radius: 5px ; */
}

.form-label {
    font-weight: 500;
    margin-bottom: 4px;
}

.autocomplete-items {
    background-color: var(--primary-bg);
}

.pagination-bar {
    padding-bottom: 15px;
}

.sms-risk {
    color: black;
    padding: 6px 8px;
    text-align: center;
    display: inline-block;
    border-radius: 5px;
}

.footer-new{
    background-color: var(--footer-bg) !important;
    padding: 0 2px !important;
    bottom: 8px !important;
}

.footer-new > div {
    padding: 0 3px !important;
}


.icon-support::before {
    display: inline-block;
    width: 20px;
    height: 20px;
    content: "";
    background-image: url(https://360audit.azurewebsites.net/app/image/support-black-256.png);
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-warning::before {
    content: url(https://360audit.azurewebsites.net/app/image/warning.svg);
}

.icon-bell::before {
    content: url(https://360audit.azurewebsites.net/app/image/bell.svg);
}

.icon-bell.alert{
    animation: alert 300ms infinite;
    display: inline-block;
}

@keyframes alert {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.file-icon {
    width: 15px;
}

/* @specific page elements */
.question-label {
    padding-top: 7px;
    padding-bottom: 7px;
    background: var(--secondary-bg);
    border: 1px dashed var(--primary-border);
    border-radius: 24px;
}

/* @ui styling */
.ui-content-panel { /* main page content inner wrapper */
    margin: 30px 0;
    background-color: var(--primary-bg);
    padding: 30px;
    /* border-radius: 5px; */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ui-label { /*  */
    color: white;
    background: var(--primary); /* Subject for QA */
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.ui-status {
    padding: 4px 8px;
    border-radius: 5px;
    display: inline-block;
}

.ui-boxed-middle {
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-link {
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
}

/* @utilities */
.relative {
    position: relative;
}

.inline {
    display: inline-block;
}

.w-full {
    width: 100%;
}

.w-half {
    width: 50%;
}

.text-sm {
    font-size: var(--font-sm);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.font-normal {
    font-style: normal !important;
}

.font-semi-bold {
    font-weight: var(--font-semi-bold);
}

.font-bold {
    font-weight: var(--font-bold);
}

.underline {
    text-decoration: underline;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.border-0 {
    border: 0;
}

.border {
    border-width: 1px;
    border-color: var(--primary-border);
}

.border-b {
    border-bottom-width: 1px;
    border-color: var(--primary-border);
}

.shadow {
    box-shadow: var(--shadow);
}

.gap {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.m-2 {
    margin: 0.5rem;
}

.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.my-4 { /* Default margin top & bottom */
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.mx-4 { /* Default margin left & right */
    margin-left: 1rem;
    margin-right: 1rem;
}

.mt {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb { 
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mr { 
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-8 {
    margin-right: 2rem;
}

.ml-auto {
    margin-left: auto;
}

.ml {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.ml-8 {
    margin-left: 2rem;
}

.px {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.pr-4 {
    padding-right: 1rem;
}

.pl {
    padding-left: 0.25rem
}

.uppercase {
    text-transform: uppercase;
}

.pointer {
    cursor: pointer;
}

/* Station */
.station-inactive img, .station-inactive button{
    background-color: var(--muted);
    cursor: not-allowed;
}

/* @form elements */
select,
input,
textarea {
    height: auto;
    padding: 10px;
    /* border-radius: 1px;  */
    border: solid 1px var(--primary-border);
    background-color: var(--primary-bg);
    color: var(--primary-text);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 1rem;
    box-sizing: border-box;
}

input:focus {
    box-shadow:  0 0 0.15rem rgba(13, 153, 255, 0.25);
}

.search-box {
    padding: 0.063rem;
    /* border-radius: 5px !important; */
    background-color: var(--primary-bg);
}

button {
    background: var(--primary);
}

button {
    font-size: 18px;
    color: white;
    cursor: pointer;
    /* display: inline-flex; */
    align-items: center;
    letter-spacing: 0;
    line-height: 1;
    font-size: 16px;
    font-family: var(--font-family);
    font-weight: 500;
    margin: 0 0.2em;
    padding: 14px 25px;
    border-radius: 3px;
    text-align: center;
    text-transform: capitalize;
    touch-action: manipulation;
    transition: all 0.3s ease 0s;
    vertical-align: middle;
    white-space: nowrap;
    border: 0;
}

button.small {
    padding: 4px 6px;
    border-radius: 2px;
    font-size: 12px;
    min-height: 24px;
}

button.button-circular {
    border-radius: 50%;
    width: 34px;
    height: 34px;
    padding: 0.5em;
}

.fields > div {
    display: flex;
    padding: 8px 0;
    margin-bottom: 10px;
}

.fields > div > div:first-child {
    font-weight: 600;
    font-size: 1rem;
    margin-right: 10px;
    flex: 0 0 70px;
}

.fields > div > div:not(div:first-child) {
    flex-grow: 1;
}


/*
    ** @list 
    ** .icode-list - simple list
    ** .icode-list2 - list with extra div
*/
.icode-list,
.icode-list2 {
    width: 100%;
    margin-top: 10px;
    font-weight: 500;
}

.icode-list > div {
    display: flex;
}

.icode-list > div,
.icode-list2 > div {
    padding: 15px;
    border-left: 1px dashed var(--primary-border);
    border-top: 1px dashed var(--primary-border);
    border-bottom: 1px dashed var(--primary-border);
}

.icode-list > div:not(div:first-child):nth-child(odd),
.icode-list2 > div:not(.icode-list-header):nth-child(odd) {
    background-color: var(--secondary-border);
}

.icode-list > div:not(div:first-child):hover,
.icode-list2 > div:not(.icode-list-header):hover {
    background-color: var(--tertiary-border);
}

.icode-list > div:first-child,
.icode-list2 .icode-list-header {
    align-items: center;
    text-transform: capitalize;
    background: var(--secondary-bg);
}

.icode-list2 .icode-list-header,
.icode-list2 .icode-list-items {
    display: flex;
}

/* @flexbox */
.flex { display: flex; }

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-0 { flex: 0; }

.flex-1 { flex: 1; }

.flex-shrink-5 { flex: 0 0 5%; }

.flex-items-center {
    display: flex;
    align-items: center;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

.flex-start {
    display: flex;
    justify-content: flex-start;
}

.flex-evenly { justify-content: space-evenly; }

.flex-all-start {
    align-items: flex-start;
    justify-content: flex-start;
}

.flex-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.justify-start {
    justify-content: start;
}

.selected {
    color: var(--primary-text) !important;
    background: var(--selected-bg)
}

.capitalize{
    text-transform: capitalize;
}
.lowercase{
    text-transform: lowercase;
}
.uppercase{
    text-transform: uppercase;
}

/**** three-dots   ****/
@keyframes blink-dot {
    0% {
        opacity: .2;
        /* background-color: rgb(197, 197, 197); */
    }
    20% {
        opacity: 1;
        /* background-color: rgb(0, 0, 0); */
    }
    100% {
        opacity: .2;
        /* background-color: rgb(197, 197, 197); */
    }
}

/*animation for spinner component*/
/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes opacity-animation {
    0% {
        opacity: .2;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: .2;
    }
}

.warning-alert-icon img {
    width: 24px; 
    margin-right: 5px;

    animation-name: opacity-animation;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

@media only screen and (max-width: 600px) {
    main.content{
        padding-left: 15px;
        padding-right: 15px;
    }
}

.more-container .more {
    display:none !important;
}

.only-print {
    display: none !important;
}

@media print
{    
    body {    
        background-color: white !important;
    }

    .only-print {
        display: inherit !important;
    }

    .no-print, .no-print *
    {
        display: none !important;
    }

    .public-dialog{
        display: none !important;
    }

    .page-footer,
    .footer-new,
    .demo{
        display: none !important;
    }

    .page-break{
        /* page-break-before: always;
        break-after: page; */

        /* https://stackoverflow.com/questions/55399491/how-to-avoid-splitting-div-in-html-across-pages */
        page-break-inside: avoid;
    }
}

.icode-list-template {
    font-size: 0.9rem;
}

.icode-list-template .header {
    justify-content: start!important;
    position: relative;
}

.icode-list-template .body {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--primary-bg);
    flex-grow: 1;
    min-height: 250px;
}

.icode-list-template .body>div:hover {
    background-color: #ffff0033;
    color: #000 !important;
}

.icode-list-template .body .selected {
    background-color: yellow !important;
    color: #000 !important;
}

.icode-list-template {
    margin-right: 4px;
    border: solid 1px silver;
}

.icode-list-template .header>div{
    display: flex;
    padding: 8px 4px;
}

.icode-list-template .body>div {
    display: flex;
    border-bottom: solid 1px lightgray;
    padding: 8px 4px;
    cursor: pointer;
}

.icode-list-template .body:empty::after {
    content: "No data available";
    color: var(--secondary-text);
    font-size: 1.2em;
    display: block;
    text-align: center;
}

.icode-list-template .header {
    border-top: solid 1px lightgray;
    background-color: maroon !important;
    color: white;
    align-items: center;
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    z-index: 0 !important;
}

.icode-list-template .header>div {
    display: none !important;
    align-items: center;
}

.icode-list-template .header>div,
.icode-list-template .body>div>div {
    flex: 0 0 100px;
    width: 100px;
    padding: 2px 8px;
    /* border-left: solid 1px rgb(221, 221, 221); */
    text-overflow: ellipsis;
    /* white-space: nowrap; */
    overflow: hidden;
    margin: auto 0;
    display: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    word-break: break-word;
}

.icode-list-template .body>div>.actions {
    display: flex;
    order: 999999; /* must be last on the list always */
}

.icode-list-template .header>div {
    cursor: pointer;
    display: flex;
}

.icode-list-template #sort-icon {
    width: 24px;
    height: 24px;
}

div[title="asc"] {
    background-image: url("image/sort-down-icon.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 4px;
}

div[title="desc"] {
    background-image: url("image/sort-up-icon.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 4px;
}

.icode-list-template .temporary>div {
    display: flex;
}

.icode-list-template #generate-path-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.icode-list-template #generate-path-container>input {
    width: 300px;
}

.icode-list-template .icode-list .body:hover {
    background-color: var(--primary-bg) !important;
}

.icode-list-template .icode-list {
    overflow: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    position: relative;
}

.icode-list-template .icode-list > div {
    padding: 0px !important;
}

.icode-list-template .icode-list > .header {
    padding: 15px !important;
}

.icode-list-template .icode-list > .body {
    padding: 15px !important;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--primary-bg);
}

.icode-list-template .code-mirror-template {
    min-height: 700px;
    max-height: 700px;
    overflow-y: auto;
}

.icode-list-template .bold {
    font-weight: bold;
}

.icode-list-template .search-by {
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.icode-list-template .search-by small {
    max-width: 300px;
    word-break: break-all;
}

.icode-list-template button {
    vertical-align: top;
}

.pagination-component {
    flex-wrap: wrap;
    display: flex;
    border-width: 0;
}

.pagination-component button:disabled {
    background-color: #ccc;
    color: #aaa;
}

.pagination-component button:disabled:hover {
    background-color: #ccc !important;
    color: #aaa !important;
}

.pagination-component button {
    margin: 4px;
    background: var(--primary-bg);
    color: var(--primary-text);
    padding: 5px 10px !important;
}

.pagination-component button:hover {
    background-color: #0D99FF80 !important;
    color: var(--primary-text) !important;
}

.pagination-component .active-page {
    background-color: #0d99ff !important;
    color: #fff !important;
}


.icode-list-template .sort-by option {
    display: none;
}

.icode-list-template .icode-list #template-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff80;
}

.icode-list-template select,
.icode-list-template input[type="checkbox"] {
    cursor: pointer !important; 
}

.icode-list-template select:hover {
    border: solid 1px silver;
}

.icode-list-template .entity-container {
    flex-wrap: wrap;
}

.icode-list-template .entity-select {
    display: flex;
    align-items: center;;
}

.icode-list-template .template-container > div {
    margin-bottom: 20px;
}

.icode-item-template .icode-field-list .errors-text {
    color: #d44950 !important;
    font-size: 14px !important;
    margin: 0;
}

.icode-item-template .icode-field-list .w-100{
    width: 100%;
}

.icode-item-template .icode-field-list {
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
}

.icode-item-template .icode-field-list>div {
    padding: 8px;
    display: flex;
}

.icode-item-template .icode-field-list>div {
    padding: 8px;
    display: none;
}

.icode-item-template .icode-field-list>div>div:first-child {
    width: 100px;
    min-width: 100px;
    text-transform: capitalize;
    padding-top: 4px;
}

.icode-item-template .icode-field-list>div>div:not(:first-child){
    width: 100%;
    margin: 0 !important;
}

.icode-item-template .icode-field-list>div>div:first-child {
    color: teal;
    flex: 0 0 75px;
}

.icode-item-template .spinner-small {
    margin-left: 4px;
}

.icode-item-template .btn-save {
    display: inline-flex;
}

.icode-item-template .required::after {
    content: "*";
    color: red;
    margin-left: 4px;
}

.red-bg {
    background: red;
}

.red-text {
    color: red !important;
}

.amber-text {
    color: #b45309 !important;
}

.green-text {
    color: green
}

.blue-text {
    color: blue
}

.after-comma:not(:last-child)::after {
    content: ", ";
}

.hidden {
    display: none !important;
}

.spinner-small>.loader {
    height: 10px !important;
    width: 10px !important;
    border: 4px solid #f3f3f3 !important;
    border-top: 4px solid #3498db !important;
}

.spinner-small {
    align-self: center;
    margin: 4px;
}

.filter-section>div:not(:last-child){
    margin-right: 1rem;
}

.filter-section{
    display: flex;
    flex-wrap: wrap;
}

.filter-section .view-by{
    display: flex;
    height: 44px;
    align-items: center;
}

.filter-section .view-by select{
    margin: 0 4px;
}

@keyframes pump {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.1);
    }
}


.custom-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.custom-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%; /* Position the tooltip above the link */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    bottom: 130%; /* Position the arrow */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-tooltip:hover::before,
.custom-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 480px) {
    .icode-list-template .sort-by{
        width: 100%;
        margin-bottom: 8px;
        margin-right: 0px !important;
    }
    .icode-list-template .sort-by select {
        width: 100%;
    }
    .icode-list-template .search-by{
        width: 100%;
        margin-bottom: 8px;
        margin-right: 0px !important;
    }
    .icode-list-template .search-by small {
        max-width: 100%;
    }
    .icode-list-template .view-by{
        width: 100%;
    }
    .icode-list-template .view-by > span:first-child{
        display: none;
    }
    .icode-list-template .view-by select {
        width: 100%;
        margin: 0;
        margin-right: 4px;
    }
    .icode-list-template .entity-container .entity-select {
        order: 2;
        width: 100%;
    }
    .icode-list-template .entity-container .entity-select>span:first-child {
        display: none;
    }
    .icode-list-template .entity-container button {
        margin-left: 0;
        margin-bottom: 8px;
    }
    .icode-list-template .entity-container select {
        width: 100%;
        margin-left: 0px;
    }
    .icode-list-template .search-filter-simple-v3>div {
        width: 100%;
    }
    .icode-list-template .template-container > div {
        width: 100%;
        margin-bottom: 20px;
    }
    .icode-list-template .template-btn button {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .icode-list-template .template-container > div {
        width: 100%;
        margin-bottom: 20px;
    }
    .icode-list-template .template-btn button {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .icode-list-template .template-container > div {
        width: 100%;
        margin-bottom: 20px;
    }
}

div[id="caret-down"] {
    background-image: url("image/sort-down-icon-black.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 3px;
    min-width: 18px;
    min-height: 18px;
    width: 18px;
    height: 18px;
}

div[id="caret-up"] {
    background-image: url("image/sort-up-icon-black.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 3px;
    min-width: 18px;
    min-height: 18px;
    width: 18px;
    height: 18px;
}

.copy-icon-v2 {
    background: #3498db;
}

::placeholder {/* Firefox */
    color: #cbcbcb;
    opacity: 1;
}
  
::-ms-input-placeholder { /* Edge 12-18 */
    color: #cbcbcb;
}

.draggable-icon{
    display: inline-block;
    width: 15px;
    height: 4px;
    rotate: 90deg;
    margin-left: 10px;
    margin-bottom: 10px;
    cursor: move;
    margin-top: 12px;
}
.draggable-icon,
.draggable-icon::before {
    background-image: radial-gradient(#1277d9 30%, transparent 50%);
    background-size: 5px 5px;
    background-position: 0 100%;
    background-repeat: repeat-x;
}
.draggable-icon::before{
    content: '';
    display: block;
    width: 15px;
    height: 10px;
}

.errors-text {
    color: #d44950 !important;
    font-size: 14px !important;
    margin: 0;
}

.divider.horizontal {
    height: 2px;
    background-color: #cccccc;
}

.w-100 {
    width: 100%;
}

.w-50{
    width: 50%;
}

.border-dashed {
    border: 1px dashed #aaa;
}

.underline-hover:hover {
    text-decoration: underline;
}

.error-found {
    border: 2px solid red !important;
}


/* THIS AREA IS FOR LOADING ONLY */
/* :root {
    --safe-area-inset-y: calc(env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px));
    --safe-area-inset-x: calc(env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px));

    --safe-100vh: calc(100vh - var(--safe-area-inset-y));
    --safe-100vw: calc(100vw - var(--safe-area-inset-x));
}

body {
    height: var(--safe-100vh);
    margin:0px;
    padding:0px;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
} */

#init-loading-div {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#init-progress-bar-container {
    height: 9px;
    width: 50%;
    background: silver;
    border-radius: 28px;
}

#init-progress-bar {
    height: 8px;
    border-radius: 28px;
    animation: init-progress-bar-pulse 2s infinite;
}

@keyframes init-progress-bar-pulse {
    0% {
        background-color: #464646;
    }

    50% {
        background-color: #7b7b7b;
    }

    100% {
        background-color: #464646;
    }
}
@keyframes fade-in-animation {
    0% { 
        opacity: 0; 
        transform: translateY(10vh);
    }
    100% {
        opacity: 1; 
        transform: translateY(0);
    }
}
.run-fade-in-animation { animation: fade-in-animation 2s; }

/* ============================================================================
   Dialog Entrance Animation: Fade
   Usage: <base-dialog entrance-animation="fade">
   ============================================================================ */
@keyframes dialog-entrance-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

[data-entrance-fade="true"] .cloak {
    animation: dialog-entrance-fade 0.5s ease-out both;
}

[data-entrance-fade="true"] .container {
    opacity: 0;
    animation: dialog-entrance-fade 0.5s ease-out forwards;
    transition: none !important;
}

.input-with-mic .speech-to-text {
    position: absolute;
    /* top: 4px; */
    right: 24px;
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
}

.input-with-mic.input-multiline .speech-to-text {
    top: 8px;
    transform: unset;
}

.input-with-mic .speech-to-text button {
    height: 20px !important;
    width: 20px !important;
}

dialog {
    min-height: fit-content;
    min-width: 500px;
    max-width: 500px;
    background: var(--primary-bg);
    color: var(--primary-text);
    padding: 0;
    border: 2px solid var(--primary-border);
    border-radius: 4px;
}

dialog .action-buttons {
    display: flex;
    justify-content: flex-end;
    padding: 8px;
}

.base-dialog .action-buttons {
    display: flex;
    justify-content: flex-end;
}

.base-dialog .dialog-content,
dialog .dialog-content {
    display: flex;
    flex-direction: column;
}

dialog .dialog-content > span {
    text-align: left;
    padding: 24px;
}

.base-dialog .dialog-content > span {
    padding-bottom: 24px;
}

dialog .dialog-content b.dialog-title {
    text-align: left;
    padding: 16px 24px 0;
}

dialog .dialog-content.title-only b.dialog-title {
    padding: 16px 24px;
}

/* Shared native prompt. Keep confirmations compact, readable, and visually
   distinct from full application dialogs. */
dialog.app-prompt-dialog {
    box-sizing: border-box;
    width: min(390px, calc(100vw - 32px));
    min-width: 0;
    max-width: 390px;
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--primary-border));
    border-radius: 16px;
    box-shadow: 0 20px 60px rgb(0 0 0 / 0.24);
    overflow: hidden;
}

dialog.app-prompt-dialog::backdrop {
    background: rgb(15 23 42 / 0.48);
    backdrop-filter: blur(2px);
}

dialog.app-prompt-dialog .dialog-content {
    gap: 12px;
    padding: 22px;
}

dialog.app-prompt-dialog .dialog-content b.dialog-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-size: 16px;
    line-height: 1.3;
}

dialog.app-prompt-dialog .dialog-title::before {
    content: "?";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    font-size: 16px;
}

dialog.app-prompt-dialog.is-alert-prompt .dialog-title::before {
    content: "i";
}

dialog.app-prompt-dialog.chat-readonly-prompt .dialog-title::before {
    content: "\2197";
}

dialog.app-prompt-dialog.danger-prompt .dialog-title::before {
    content: "!";
    background: color-mix(in srgb, var(--error, #dc2626) 12%, transparent);
    color: var(--error, #dc2626);
}

dialog.app-prompt-dialog .dialog-content > .dialog-message {
    padding: 0 0 2px 40px;
    color: var(--secondary-text, #6b7280);
    font-size: 13px;
    line-height: 1.5;
}

dialog.app-prompt-dialog .action-buttons {
    gap: 8px;
    padding: 6px 0 0;
}

dialog.app-prompt-dialog .action-buttons button {
    min-height: 36px;
    margin: 0;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
}

dialog.app-prompt-dialog .app-prompt-cancel {
    border: 1px solid var(--primary-border);
    background: transparent;
    color: var(--primary-text);
}

dialog.app-prompt-dialog .app-prompt-confirm,
dialog.app-prompt-dialog .app-prompt-secondary {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
}

dialog.app-prompt-dialog .action-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.14);
}

dialog.app-prompt-dialog .action-buttons button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.red-btn {
    border: 1px solid var(--error, #dc2626);
    background-color: var(--error, #dc2626);
    color: #fff;
}
