:root {
  /* === General Theme Variables (Outlook Style) === */

  /* Backgrounds */
  --bg-color: #ffffff;
  /* Outlook typically uses a clean white background for content areas and active elements like tabs. */

  /* Translucent background - Retained as is. While core tab UIs are usually opaque,
       this could be used for other UI elements like panes or dialogs in a broader Outlook-style theme. */
  --bg-color-translucent: rgba(255, 255, 255, 0.95);

  /* Text Colors */
  --text-color: #323130;
  /* A standard dark grey text color from Fluent UI, offers good readability. Slightly adjusted from #333333 for closer Office feel. */
  --muted-color: #605e5c;
  /* A muted grey for secondary text or less emphasized UI elements, also from Fluent UI. Adjusted from #767676. */

  /* Accent Colors */
  --primary-color: #0078d4;
  /* Unchanged, as requested. This is the main Outlook blue. */

  /* Secondary accent color - Outlook primarily relies on its blue.
       A strong secondary accent like teal (#2a9d8f) is uncommon in main navigation/tab elements.
       If used, it would be for distinct call-to-actions or illustrations.
       For tab styling, we'll lean on neutrals and the primary color.
       You can keep this for other parts of your UI if needed, or change it to a more neutral tone if it's meant for general use.
       For an Outlook context, if a secondary is needed, it's often a lighter shade of blue or grey.
       Let's adjust it to a more subtle, complementary color or a neutral if it's not for a specific distinct purpose.
       Given no specific use, I'll make it a neutral grey, but you can override this if #2a9d8f has a defined role.
    */
  --accent-color: #797775;
  /* Adjusted to a neutral grey, as strong secondary accents are rare in Outlook's core navigation. */

  /* Borders and Hover States */
  --border-color: #c8c6c4;
  /* A common border color in Fluent UI, slightly more visible than #eaeaea, providing clear but soft separation. */
  --hover-bg: #f3f2f1;
  /* A light grey background for hover states, standard in Office applications. This is a specific color rather than a calculated rgba for consistency. */

  /* Background Blur - Retained as is.
       This can be used for effects like Acrylic/Mica in Fluent Design on specific surfaces, not typically on tabs themselves. */
  --backgroud-blur: rgba(0, 0, 0, 0.1);

  --ms-blue: #0078d4;
  --ms-blue-light: #106ebe;
  --ms-blue-dark: #005a9e;
  --ms-gray-10: #faf9f8;
  --ms-gray-20: #f3f2f1;
  --ms-gray-30: #edebe9;
  --ms-gray-40: #d2d0ce;
  --ms-gray-130: #605e5c;
  --ms-gray-160: #323130;
  --ms-font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto",
    "Helvetica Neue", sans-serif;
  --ms-shadow: 0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132),
    0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108);

  /* Outlook/Fluent toolbar icon palette */
  --toolbar-icon-brand: #0078d4;
  --toolbar-icon-brand-hover: #005a9e;
  --toolbar-icon-green: #107c10;
  --toolbar-icon-green-hover: #0b5a0b;
  --toolbar-icon-danger: #c50f1f;
  --toolbar-icon-danger-hover: #a80000;
  --toolbar-icon-orange: #ca5010;
  --toolbar-icon-orange-hover: #8e3a0d;
  --toolbar-icon-purple: #5c2e91;
  --toolbar-icon-purple-hover: #4b1f6f;
  --toolbar-icon-teal: #038387;
  --toolbar-icon-teal-hover: #006666;
  --toolbar-icon-gold: #986f0b;
  --toolbar-icon-gold-hover: #6d5108;
  --toolbar-icon-neutral: #605e5c;
  --toolbar-icon-neutral-hover: #323130;
}

html,
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  min-height: 100vh;
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- NEW --- Global style to prevent text selection during resize */
body.resizing-active {
  cursor: col-resize;
  user-select: none;
}

h1:focus {
  outline: none;
}

.primary-button:hover:not([disabled]) {
  background: rgb(0, 111.4205607477, 198.7);
  border-color: rgb(0, 111.4205607477, 198.7);
  box-shadow: none;
  color: #fff;
}

.primary-button {
  background: #0078d6;
  border-color: #0078d6;
  color: #fff;
}

.e-row {
  cursor: pointer !important;
}

.error-row {
  background-color: #ffe5e5 !important;
}

.e-grid .e-fixedfreeze.e-freezeleftborder {
  border-left-color: rgb(9, 209, 9) !important;
}

.e-grid .e-fixedfreeze.e-freezerightborder {
  border-right-color: rgb(10, 224, 10) !important;
}

a,
.btn-link {
  /* color: #0071c1; */
  color: inherit;
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
  cursor: pointer;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
  padding-top: 1.1rem;
}

.valid.modified:not([type="checkbox"]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid red;
}

#blazor-error-ui {
  color-scheme: light only;
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZHRoPSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My45MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem,
    #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

.loading-progress {
  position: relative;
  display: block;
  width: 8rem;
  height: 8rem;
  margin: 20vh auto 1rem auto;
}

.loading-progress circle {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 0.6rem;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}

.loading-progress circle:last-child {
  stroke: #1b6ec2;
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
  transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
  position: absolute;
  text-align: center;
  font-weight: bold;
  inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
  content: var(--blazor-load-percentage-text, "Loading");
}

/* <FluentIcon Value="@(new Icons.Regular.Size20.Accessibility())" Color="@Color.Default" /> */

code {
  color: #c02d76;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
  text-align: start;
}

.primary-text {
  color: var(--primary-color);
}

/* Outlook/Fluent semantic colors for Font Awesome toolbar action icons. */
.tms-toolbar-icon {
  --toolbar-icon-color: var(--toolbar-icon-neutral);
  --toolbar-icon-interaction-color: var(--toolbar-icon-neutral-hover);
  color: var(--toolbar-icon-color);
  font-size: 14px;
  line-height: 1;
  padding-left: 0.8rem;
  padding-top: 0.2rem;
}

/* Refresh is an icon-only action, so it does not need the text-icon alignment offset. */
.tms-toolbar-icon--refresh {
  padding-left: 0;
  padding-top: 0.2rem;
}

/* Retained Syncfusion glyphs already include their own toolbar alignment. */
.tms-toolbar-icon.e-icons {
  padding-left: 0;
  padding-top: 0;
}

.tms-toolbar-icon--blue {
  --toolbar-icon-color: var(--toolbar-icon-brand);
  --toolbar-icon-interaction-color: var(--toolbar-icon-brand-hover);
}

.tms-toolbar-icon--green {
  --toolbar-icon-color: var(--toolbar-icon-green);
  --toolbar-icon-interaction-color: var(--toolbar-icon-green-hover);
}

.tms-toolbar-icon--red {
  --toolbar-icon-color: var(--toolbar-icon-danger);
  --toolbar-icon-interaction-color: var(--toolbar-icon-danger-hover);
}

.tms-toolbar-icon--orange {
  --toolbar-icon-color: var(--toolbar-icon-orange);
  --toolbar-icon-interaction-color: var(--toolbar-icon-orange-hover);
}

.tms-toolbar-icon--purple {
  --toolbar-icon-color: var(--toolbar-icon-purple);
  --toolbar-icon-interaction-color: var(--toolbar-icon-purple-hover);
}

.tms-toolbar-icon--teal {
  --toolbar-icon-color: var(--toolbar-icon-teal);
  --toolbar-icon-interaction-color: var(--toolbar-icon-teal-hover);
}

.tms-toolbar-icon--gold {
  --toolbar-icon-color: var(--toolbar-icon-gold);
  --toolbar-icon-interaction-color: var(--toolbar-icon-gold-hover);
}

.tms-toolbar-icon--neutral {
  --toolbar-icon-color: var(--toolbar-icon-neutral);
  --toolbar-icon-interaction-color: var(--toolbar-icon-neutral-hover);
}

.e-toolbar .e-toolbar-item .e-tbar-btn .tms-toolbar-icon,
.e-toolbar-pop .e-toolbar-item .e-tbar-btn .tms-toolbar-icon,
.e-toolbar .e-toolbar-item .e-tbar-btn:focus .tms-toolbar-icon,
.e-toolbar .e-toolbar-item .e-tbar-btn:focus-visible .tms-toolbar-icon,
.e-toolbar-pop .e-toolbar-item .e-tbar-btn:focus .tms-toolbar-icon,
.e-toolbar-pop .e-toolbar-item .e-tbar-btn:focus-visible .tms-toolbar-icon {
  color: var(--toolbar-icon-color);
}

.e-toolbar .e-toolbar-item:not(.e-overlay, .e-disabled) .e-tbar-btn:not(:disabled):hover .tms-toolbar-icon,
.e-toolbar .e-toolbar-item:not(.e-overlay, .e-disabled) .e-tbar-btn:not(:disabled):active .tms-toolbar-icon,
.e-toolbar-pop .e-toolbar-item:not(.e-overlay, .e-disabled) .e-tbar-btn:not(:disabled):hover .tms-toolbar-icon,
.e-toolbar-pop .e-toolbar-item:not(.e-overlay, .e-disabled) .e-tbar-btn:not(:disabled):active .tms-toolbar-icon {
  color: var(--toolbar-icon-interaction-color);
}

.e-toolbar .e-toolbar-item:is(.e-overlay, .e-disabled) .e-tbar-btn .tms-toolbar-icon,
.e-toolbar .e-tbar-btn:disabled .tms-toolbar-icon,
.e-toolbar-pop .e-toolbar-item:is(.e-overlay, .e-disabled) .e-tbar-btn .tms-toolbar-icon,
.e-toolbar-pop .e-tbar-btn:disabled .tms-toolbar-icon {
  color: var(--toolbar-icon-neutral);
}

/* Custom css for toolbar custom icon */
.custom-icon {
  padding-left: 1rem !important;
  padding-top: 0.3rem !important;
  margin-right: 0.4rem !important;
}

.outlook-title {
  /* A professional, muted blue similar to the image */
  color: var(--primary-color);

  /* Use a common sans-serif font */
  font-family: Arial, Helvetica, sans-serif;

  /* Override the default bold weight of the h2 tag */
  font-weight: normal;

  /* Add space between the letters */
  letter-spacing: 3px;

  /* Ensures text is uppercase, even if the server-side logic changes */
  text-transform: uppercase;
}

/*
 This makes our main container fill the entire viewport height
 and establishes a flexbox layout.
*/
.page-container {
  height: calc(100vh - 150px);
  /* Adjust 60px to the actual height of your top blue header bar */
  display: flex;
  flex-direction: column;
  position: relative;
}

/*The below styles is used to render the text in the right*/
.right-aligned-numeric {
  text-align-last: end !important;
  padding-right: 0.2rem !important;
}

.middle-aligned-numeric {
  text-align-last: center !important;
}

/* .save-btn-autocomplete-right e-small {
  margin-bottom: 14px !important;
} */
.e-grid {
  position: relative;
  /*z-index: 3000;*/
  /* iznad splittera */
}

/* Podiži freeze line iznad splittera */
.e-grid .e-frozen-left-border {
  margin-left: 10px;
  /* mali offset da se ne zalepi */
  /*z-index: 3001 !important;*/
  /* iznad .e-split-bar */
  position: relative;
}

/* Ali split-bar neka ostane ispod freeze line */
/* .e-split-bar {
     z-index: 2000 !important;
} */

/* jači highlight selektovanog reda */
/* .e-grid .e-row[aria-selected="true"] td {
  background-color: rgba(0, 123, 255, 0.08);
} */

.update-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  background-color: #333;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  /* High z-index to appear above other content */
  display: flex;
  align-items: center;
  gap: 20px;
}

.update-notification button {
  margin-left: 15px;
}

.processing-overlay {
  /* position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; */

  position: absolute;
  /* Stick to the viewport */

  /* --- ADJUST THESE VALUES to match your layout --- */
  /* top: 60px; 
  left: 250px;  */

  /* --- These calculate the remaining space --- */
  width: 100%;
  height: 100%;

  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.custom-dialog-footer {
  /* Establishes the main flex container */
  display: flex;
  justify-content: space-between;
  /* Pushes left and right sections apart */
  align-items: center;
  /* Vertically aligns the content in the middle */
  width: 100%;
  padding: 1rem;
  /* Adds some spacing around the content */
}

.footer-section-right {
  /* This section will stack its children (RUC text and button group) vertically */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* Aligns the children to the right */
}

.button-group {
  /* This group will keep the two buttons next to each other */
  display: flex;
  gap: 0.5rem;
  /* Adds a small space between the buttons */
}


/* SfGrid promena zaglavlja konone kada je filterirana na Jelenin zahtev */
.e-grid .e-headercell:has(.e-filtered) {
  background-color: #d6edff !important;

}

/* Change the color of the header text span within the filtered header cell */
.e-grid .e-headercell:has(.e-filtered) .e-headertext {
  color: #0078d6 !important;
}

.e-grid .e-filtermenudiv {
  margin: -28px -7px !important;
  font-size: 1rem !important
}

/* FILTER DIALOZI U GRIDU SA CUSTOM ELEMENTIMA */
.e-dialog.e-lib.e-filter-popup.e-popup.e-control.e-popup-open:has(.e-multiselect) {
  width: 350px !important;
}

.e-dialog.e-lib.e-filter-popup.e-popup.e-control.e-popup-open:has(.e-multiselect) .e-flm_optrdiv {
  display: none;
}

.e-dialog.e-lib.e-filter-popup.e-popup.e-control.e-popup-open:has(.e-calendar) {
  width: 300px !important;
  max-height: 450px !important;
}

.e-dialog .e-dlg-content:has(.e-calendar) {
  padding: 0;
}

.e-dialog .e-dlg-content:has(.e-multiselect) {
  padding: 0px 25px 0px;
}


.e-dialog.e-lib.e-filter-popup.e-popup.e-control.e-popup-open:has(.e-calendar) .e-flm_optrdiv {
  display: none;
}

.e-dialog.e-lib.e-filter-popup.e-popup.e-control.e-popup-open:has(.e-calendar) .e-flmenu-valuediv {
  display: flex;
  align-items: center;
  justify-content: center;
}


.scrollable-content {
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 1rem;
  /* Add some space above the fixed footer */
}

.e-toolbar .e-toolbar-item .e-tbar-btn.e-tbtn-txt .e-icons.e-btn-icon.e-icon-right {
  padding-top: 0.2rem !important;
  padding-left: 0.7rem !important;
  padding-right: 0 !important;
}


/* ARCHIVE PAGE FILTER LAYOUT */
/* * Main Filter Container (The 4-Column Grid) 
            * This creates the main layout with four columns.
            */
.filter-container {
  display: grid;
  /* Create 4 columns. '1fr' means each takes up an equal fraction of the available space. */
  grid-template-columns: repeat(4, 1fr);
  /* This is the space BETWEEN the columns. */
  /* gap: 2rem; */
  padding: 1rem;
  padding-left: 0;
}

/* * A Single Column in the Grid 
            * This uses flexbox to stack the form fields vertically within a column.
            */
.filter-column {
  display: flex;
  flex-direction: column;
  /* This is the vertical space BETWEEN each field in a column. */
  gap: 1rem;
}

/* * A Single Form Field (Label + Input) 
            * This is the most important part for alignment.
            */
.field-form {
  display: grid;
  /* This creates two sub-columns: one for the label, one for the input. */
  /* The label column is a fixed width (110px). The input takes the rest (1fr). */
  /* THIS IS THE KEY TO ALIGNING THE INPUTS VERTICALLY. */
  grid-template-columns: 110px 1fr;
  /* Vertically aligns the label text with the center of the input box. */
  align-items: center;
  /* Sets the small gap between the label and its input box. */
  column-gap: 0.75rem;
}

/*
            * Styling for the Label
            */
.form-label {
  /* Aligns the label text to the right, making it look clean against the input. */
  text-align: right;
  font-size: 0.875rem;
  /* 14px */
  color: #4a5568;
  font-weight: 500;
}

/* Specific alignment for checkboxes since they don't have a large height */
.field-form-checkbox {
  align-items: center;
}

.field-form-checkbox .e-checkbox-wrapper {
  /* Ensures the checkbox doesn't try to stretch */
  justify-self: start;
}

/* END ARCHIVE PAGE FILTER LAYOUT */

/* ===========ANIMATIONS================= */

/* Spinner animation */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--ms-gray-30);
  border-radius: 50%;
  border-top-color: var(--ms-blue);
  animation: spin 1s ease-in-out infinite;
  margin: 8px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}





@keyframes ellipsis {
  to {
    width: 1.25em;
    /* Make space for '...' */
  }
}

@keyframes dot-animation {
  0% {
    content: ".";
  }

  33% {
    content: "..";
  }

  66% {
    content: "...";
  }

  100% {
    content: ".";
  }
}

.animated-loading-text {
  /* Use flex or inline-flex to ensure the text and dots are on the same line */
  display: inline-flex;
  align-items: center;
}

.animated-loading-text::after {
  content: ".";
  /* Initial state */
  display: inline-block;
  vertical-align: bottom;
  text-align: left;
  overflow: hidden;

  /* Fixed width prevents layout shift as dots appear/disappear */
  width: 1em;

  /* The animation that cycles the content */
  animation: dot-animation 1.5s linear infinite;
}

/* ================================================== */

#dotnet-compile-error:empty {
  visibility: hidden;
  display: none;


  .outlook-header {
    /* A professional, muted blue similar to the image */
    color: var(--primary-color);

    /* Use a common sans-serif font */
    font-family: Arial, Helvetica, sans-serif;

    /* Override the default bold weight of the h2 tag */
    font-weight: normal;

    /* Add space between the letters */
    letter-spacing: 3px;

    /* Ensures text is uppercase, even if the server-side logic changes */
    text-transform: uppercase;
  }


}


.shipment-toolbar-icon {
  padding-top: 0.2rem !important;
  font-weight: 900 !important;
  font-size: 1.5rem !important;
}

.icon-bold {
  font-weight: 900 !important;
}

.icon-blue {
  color: #6AA0FF !important;
}

.icon-green {
  color: #7aa894 !important;
}

.icon-gray {
  color: #747272 !important;
}

.icon-red {
  color: #F7673D !important;
}


/* INPUT BOOTSTRAP ALIGINMENT */
.text-center input.e-textbox {
  text-align: center !important;
}

/* Tango guide me implementation */
/* .e-dlg-container {
  z-index: 2147483600 !important;
}
.e-popup-open {
  z-index: 2147483600 !important;
} */


/* 1. Allow the filter popup to break out of the Splitter Pane boundaries */
.e-splitter .e-pane:has(.flex-layout-column) {
  overflow: visible !important;
}

/* 2. Ensure the splitter panes themselves don't overlap the popups */
.e-splitter .e-pane-wrapper {
  overflow: visible !important;
}

/* 3. Force the Excel filter dialog to the absolute front */
.e-grid .e-excelfilter.e-popup,
.e-grid .e-filter-popup {
  z-index: 999999 !important;
}

/* 4. Keep the draggable splitbar below the popup so it doesn't slice through it */
.e-splitter .e-splitbar {
  z-index: 10 !important;
}


.mini-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #edebe9;
  /* Light neutral gray for the track */
  border-top: 2px solid #0078d4;
  /* Outlook blue for the spinning indicator */
  border-radius: 50%;
  animation: mini-spin 1s linear infinite;

  /* Ensures it aligns nicely with any adjacent text if you add some later */
  vertical-align: middle;
}

@keyframes mini-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


.clickable-icon {
  cursor: pointer;
}

/* Visually indicate read-only fields for better UX */
.e-input-group.e-control-wrapper.e-readonly,
.e-input-group.e-readonly,
.e-readonly .e-input,
.e-readonly input,
.e-readonly textarea {
  background-color: #f3f2f1 !important;
  color: #605e5c !important;
  cursor: not-allowed !important;
}

.ft-14 {
  font-size: 14px !important;
}


/* Keep invoice grid checkbox/excel filters visible inside Syncfusion accordions. */
.e-accordion .e-acrdn-item:has(.torder-invoices-grid-host) {
  overflow: visible !important;
  position: relative;
  z-index: 20;
}

.e-accordion .e-acrdn-item:has(.torder-invoices-grid-host)>.e-acrdn-panel,
.e-accordion .e-acrdn-item:has(.torder-invoices-grid-host)>.e-acrdn-panel>.e-acrdn-content,
.e-accordion .e-acrdn-item:has(.torder-invoices-grid-host)>.e-acrdn-panel>.e-acrdn-content>.torder-invoices-grid-host,
.e-accordion .e-acrdn-item:has(.torder-invoices-grid-host)>.e-acrdn-panel>.e-acrdn-content>.torder-invoices-grid-host>.e-grid {
  overflow: visible !important;
}

.e-filter-popup.e-popup-open:has(.e-checkboxlist),
.e-grid-popup.e-popup-open:has(.e-checkboxlist),
.e-excelfilter.e-popup-open {
  height: auto !important;
  max-height: min(430px, calc(100vh - 80px)) !important;
  z-index: 999999 !important;
}

.e-filter-popup.e-popup-open:has(.e-checkboxlist) .e-checkboxlist,
.e-grid-popup.e-popup-open:has(.e-checkboxlist) .e-checkboxlist,
.e-excelfilter.e-popup-open .e-checkboxlist {
  height: clamp(96px, calc(100vh - 320px), 180px) !important;
  min-height: 96px !important;
  overflow-y: auto !important;
}


/* .e-splitter.e-splitter-horizontal .e-pane.e-pane-horizontal,
.e-splitter.e-splitter-vertical .e-pane.e-pane-horizontal {
  overflow: visible !important;
} */



.relation-suggestion-anchor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  position: relative;
  overflow: visible;
}

.relation-suggestion-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  position: relative;
}

.relation-suggestion-trigger .clickable-icon {
  cursor: pointer;
}

.fs-7 {
  font-size: 0.875rem !important;
}

.calculation-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.calculation-header-icon {
  font-size: 18px;
}


.fluent-nav-link .fluent-nav-text {
  font-family: "Segoe UI", "GeezaPro", "DejaVu Serif", sans-serif, "-apple-system", "BlinkMacSystemFont" !important;
  color: #333 !important;
  font-weight: 400 !important;
}

.fluent-nav-link.active .fluent-nav-text {
  font-family: "Segoe UI", "GeezaPro", "DejaVu Serif", sans-serif, "-apple-system", "BlinkMacSystemFont" !important;
  color: #0078d4 !important;
  font-weight: 500 !important;
}

.fa-lg {
  font-size: 1.25em !important;
}


.pr-4 {
  padding-right: 1.2rem !important;
}

.footer-divider {
    height: 20px;
    width: 1px;
    background-color: #e1dfdd; /* A light gray divider */
}