@keyframes animateLeftToRight {
  from { transform: translateX(-100%); }
  to { transform: translateX(0%); }
}
@keyframes animateRightToLeft {
  from { transform: translateX(100%);  }
  to { transform: translateX(0%);  }
}
@keyframes animateTopToBottom {
  from { transform: translateY(-100%);  }
  to { transform: translateY(0%);  }
}
@keyframes animateBottomToTop {
  from { transform: translateY(100%);  }
  to { transform: translateY(0%);  }
}
@keyframes animateVisible {
  from { opacity:0;  }
  to { opacity:1;  }
}
@keyframes animateInVisible {
  from { opacity:1;  }
  to { opacity:0;  }
}
.tk-placingcontainer.pc-group{
 border-color:rgba(225, 225, 225, 1);
 fill:rgba(225, 225, 225, 1); 
border-width: 1px 1px 1px 1px ;
 border-style: solid;
border-radius: 5px 5px 5px 5px ;
 margin: 10px 5px 0px 5px ;
 padding: 10px 10px 10px 10px ;
}
.tk-placingcontainer.pc-boarder-bottom{
 border-color:rgba(115, 115, 115, 1);
 fill:rgba(115, 115, 115, 1); 
border-width: 0px 0px 1px 0px ;
 border-style: solid;
}
.tk-placingcontainer.pc-padding{
 padding: 5px 5px 5px 5px ;
}
.tk-component.Text_11_Italic:not(.isgridrowdiv *) input.Text_11_Italic{
font-size: 11px;
 text-align: left;
 vertical-align: text-top;
 font-weight: normal;
 font-style: italic;
}
.tk-component.Text_11_Italic:not(.isgridrowdiv *) .tk-select__native.Text_11_Italic{
font-size: 11px;
 text-align: left;
 vertical-align: text-top;
 font-weight: normal;
 font-style: italic;
}
.tk-component.Text_11_Italic:not(.isgridrowdiv *) .tk-button__native.Text_11_Italic{
}
.tk-component.Text_11_Italic:not(.isgridrowdiv *) .tk-static-text__native.Text_11_Italic{
font-size: 11px;
 text-align: left;
 vertical-align: text-top;
 font-weight: normal;
 font-style: italic;
}
.tk-placingcontainer.pc-box{
 border-color:rgba(115, 115, 115, 1);
 fill:rgba(115, 115, 115, 1); 
border-width: 1px 1px 1px 1px ;
 border-style: solid;
border-radius: 5px 5px 5px 5px ;
-webkit-box-shadow:unset;
box-shadow:0px 4px 8px rgba(115, 115, 115, 1);
 margin: 7px 5px 0px 5px ;
 padding: 7px 7px 7px 7px ;
}
.tk-placingcontainer.pc-box-prim{
 background-color: rgba(200,212,224,1);
 border-color:rgba(115, 115, 115, 1);
 fill:rgba(115, 115, 115, 1); 
border-width: 2px 2px 2px 2px ;
 border-style: solid;
border-radius: 5px 5px 5px 5px ;
 margin: 10px 5px 0px 5px ;
 padding: 7px 7px 7px 7px ;
}
.tk-placingcontainer.pc-box-sec{
 background-color: rgba(227,239,255,1);
 border-color:rgba(115, 115, 115, 1);
 fill:rgba(115, 115, 115, 1); 
border-width: 2px 2px 2px 2px ;
 border-style: solid;
border-radius: 5px 5px 5px 5px ;
 margin: 10px 5px 0px 5px ;
 padding: 7px 7px 7px 7px ;
}
.tk-placingcontainer.pc-box-text{
 background-color: rgba(225,225,225,1);
}
.tk-placingcontainer.Status_Warning{
 background-color: rgba(255,133,133,1);
border-radius: 2px 2px 2px 2px ;
 margin: 0px 0px 0px 0px ;
 padding: 2px 2px 2px 2px ;
}
.tk-component.Status_Warning:not(.isgridrowdiv *) input.Status_Warning{
 text-align: left;
 vertical-align: text-top;
 font-weight: normal;
 font-style: normal;
 padding: 2px 2px 2px 2px ;
}
.tk-component.Status_Warning:not(.isgridrowdiv *) .tk-select__native.Status_Warning{
 text-align: left;
 vertical-align: text-top;
 font-weight: normal;
 font-style: normal;
 padding: 2px 2px 2px 2px ;
}
.tk-component.Status_Warning:not(.isgridrowdiv *) .tk-button__native.Status_Warning{
 padding: 2px 2px 2px 2px ;
}
.tk-component.Status_Warning:not(.isgridrowdiv *) .tk-static-text__native.Status_Warning{
 text-align: left;
 vertical-align: text-top;
 font-weight: normal;
 font-style: normal;
 padding: 2px 2px 2px 2px ;
}
.tk-placingcontainer.Status_Attention{
 background-color: rgba(255,251,193,1);
}
.tk-placingcontainer.Status_Info{
 background-color: rgba(244,244,244,1);
border-radius: 2px 2px 2px 2px ;
 margin: 2px 2px 2px 2px ;
}
.tk-component.Text_11_Bold:not(.isgridrowdiv *) input.Text_11_Bold{
font-size: 11px;
 text-align: left;
 vertical-align: text-top;
 font-weight: bold;
 font-style: normal;
}
.tk-component.Text_11_Bold:not(.isgridrowdiv *) .tk-select__native.Text_11_Bold{
font-size: 11px;
 text-align: left;
 vertical-align: text-top;
 font-weight: bold;
 font-style: normal;
}
.tk-component.Text_11_Bold:not(.isgridrowdiv *) .tk-button__native.Text_11_Bold{
}
.tk-component.Text_11_Bold:not(.isgridrowdiv *) .tk-static-text__native.Text_11_Bold{
font-size: 11px;
 text-align: left;
 vertical-align: text-top;
 font-weight: bold;
 font-style: normal;
}
.tk-component.ButtonOrange:not(.isgridrowdiv *):not(:has(img)){
 border-color:rgba(200, 212, 224, 1);
 fill:rgba(200, 212, 224, 1); 
border-width: 1px 1px 1px 1px ;
 border-style: solid;
border-radius: 10px 10px 10px 10px ;
}
.tk-component.ButtonOrange:not(.isgridrowdiv *) img.ButtonOrange{
 border-color:rgba(200, 212, 224, 1);
 fill:rgba(200, 212, 224, 1); 
border-width: 1px 1px 1px 1px ;
 border-style: solid;
border-radius: 10px 10px 10px 10px ;
}
.tk-component.ButtonOrange:not(.isgridrowdiv *) input.ButtonOrange{
 color: rgba(115,115,115,1);
 text-align: left;
 vertical-align: text-top;
 font-weight: normal;
 font-style: normal;
}
.tk-component.ButtonOrange:not(.isgridrowdiv *) .tk-select__native.ButtonOrange{
 color: rgba(115,115,115,1);
 text-align: left;
 vertical-align: text-top;
 font-weight: normal;
 font-style: normal;
}
.tk-component.ButtonOrange:not(.isgridrowdiv *) .tk-button__native.ButtonOrange{
border-width: 1px 1px 1px 1px ;
 border-style: solid;
border-radius: 10px 10px 10px 10px ;
}
.tk-component.ButtonOrange:not(.isgridrowdiv *) .tk-static-text__native.ButtonOrange{
 color: rgba(115,115,115,1);
 text-align: left;
 vertical-align: text-top;
 font-weight: normal;
 font-style: normal;
}
.tk-component.InfoBox:not(.isgridrowdiv *) input.InfoBox{
 text-align: left;
 vertical-align: text-top;
 font-weight: normal;
 font-style: normal;
 margin: 0px 15px 0px 15px ;
 padding: 0px 25px 0px 0px ;
}
.tk-component.InfoBox:not(.isgridrowdiv *) .tk-select__native.InfoBox{
 text-align: left;
 vertical-align: text-top;
 font-weight: normal;
 font-style: normal;
 margin: 0px 15px 0px 15px ;
 padding: 0px 25px 0px 0px ;
}
.tk-component.InfoBox:not(.isgridrowdiv *) .tk-button__native.InfoBox{
 margin: 0px 15px 0px 15px ;
 padding: 0px 25px 0px 0px ;
}
.tk-component.InfoBox:not(.isgridrowdiv *) .tk-static-text__native.InfoBox{
 text-align: left;
 vertical-align: text-top;
 font-weight: normal;
 font-style: normal;
 margin: 0px 15px 0px 15px ;
 padding: 0px 25px 0px 0px ;
}
.tk-component.ImageCarousel:not(.isgridrowdiv *):not(:has(img)){
 background-color: rgba(244,244,244,1);
 border-color:rgba(255, 133, 133, 1);
 fill:rgba(255, 133, 133, 1); 
border-width: 1px 1px 1px 1px ;
 border-style: solid;
border-radius: 2px 2px 2px 2px ;
 margin: 2px 2px 2px 2px ;
 max-height: 150px;
 min-height: unset;
 height: unset;
 max-width: 150px;
 min-width: unset;
 width: unset;
}
.tk-component.ImageCarousel:not(.isgridrowdiv *) img.ImageCarousel{
 background-color: rgba(244,244,244,1);
 border-color:rgba(255, 133, 133, 1);
 fill:rgba(255, 133, 133, 1); 
border-width: 1px 1px 1px 1px ;
 border-style: solid;
border-radius: 2px 2px 2px 2px ;
 margin: 2px 2px 2px 2px ;
 max-height: 150px;
 min-height: unset;
 height: unset;
 max-width: 150px;
 min-width: unset;
 width: unset;
}
:root {
}
:root {
  /* Ensure core font and colors are set based on provided variables */
  --base-font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  --app-font-family: "Roboto", "Helvetica", "Arial", sans-serif; /* Also Roboto */
  --app-icon-font: "Material Icons";
  --base-font-size: 14px; /* Slightly smaller for tight mobile layout */
  --label-font-size: 0.875rem; /* Smaller labels */

  /* Colors - using provided rgb values as direct custom properties */
  --primary-color: 245, 156, 26;
  --primary-color-dark: 0, 67, 131; /* Original was rgba(0,67,131,1) */
  --text-on-primary: 0, 0, 0;

  --error-clr: 211, 47, 47;
  --text-on-error: 255, 255, 255;

  --warning-color: 240, 173, 78;
  --text-on-warning: 255, 255, 255;
  --warning-color-dark: 216, 155, 70; /* Assuming a darker version for hover/dark state */

  --info-clr: 11, 84, 97;
  --text-on-info: 255, 255, 255;

  --success-color: 93, 184, 91;
  --text-on-success: 255, 255, 255;
  --success-color-dark: 84, 166, 82; /* Assuming a darker version for hover/dark state */

  --danger-color: 211, 47, 47; /* Re-using error color for danger as no specific danger-color provided beyond description */
  --text-on-danger: 255, 255, 255; /* Re-using text-on-error */
  --danger-color-dark: 176, 0, 32; /* Assuming a darker version for hover/dark state */

  --base-bg-color: 255, 255, 255;
  --text-on-app-bg: 0, 0, 0; /* Text color on main background */

  /* Navbar specific colors */
  --navbar-height: 48px; /* Slightly reduced height for mobile */
  --navbar-bg-color: 33, 33, 33; /* Dark background for high contrast */
  --navbar-link-color: 255, 255, 255; /* White text for high contrast */
  --navbar-brand-color: var(--navbar-link-color); /* Brand color same as link color for high contrast */

  /* Sidebar specific colors */
  --sidebar-width: 220px; /* Slightly narrower for mobile */
  --sidebar-bg-color: 255, 255, 255;
  --sidebar-border-clr: 0, 0, 0;
  --sidebar-divider-clr: 189, 189, 189;
  --sidebar-divider-alpha: 0.2; /* Slightly more transparent for a lighter look */
  --sidebar-item-height: 36px; /* Reduced height */

  /* Button colors */
  --btn-default-clr: 234, 234, 234;
  --text-on-default-btn: 0, 0, 0;
  --btn-border-radius: 4px;

  /* Form elements */
  --textfield-bg-clr: 255, 255, 255;
  --textfield-border-clr: 0, 0, 0; /* Black for default borders */
  --textfield-icon-clr: 0, 0, 0; /* Black for icons */
  --textfield-border-radius: 4px;
  --textfield-label-clr: var(--text-on-app-bg);
  --textfield-disabled-bg-clr: 239, 239, 239;
  --text-in-textfield: 0, 0, 0;
  --input-border-radius: 4px; /* Alias for textfield-border-radius */

  --select-border-clr: 0, 0, 0; /* Black for default borders */
  --select-border-radius: 4px;
  --select-disabled-bg-clr: 239, 239, 239;

  --fileupload-label-clr: var(--text-on-app-bg);

  /* Toolbar */
  --toolbar-bg-color: 246, 247, 247;
  --toolbar-item-color: 0, 0, 0; /* Black for toolbar items */

  /* Tooltip */
  --tooltip-bg-clr: 97, 97, 97;
  --tooltip-text-clr: 255, 255, 255;
  --tooltip-border-radius: 4px;

  /* Table */
  --table-bg-clr: 255, 255, 255;
  --table-border-radius: 4px;
  --table-border-width: 1px;
  --table-border-clr: 218, 220, 224;
  --data-table-header-bg-color: 230, 230, 230; /* Lighter gray for header */
  --data-table-header-text-color: 0, 0, 0; /* Black text for header */
  --data-table-row-height: 40px; /* Reduced row height */
  --data-table-header-height: 40px; /* Reduced header height */
  --table-current-row-clr: var(--primary-color); /* Selected row highlight */
  --table-selected-row-bg-clr: var(--primary-color); /* Selected row background */

  /* Image sizes */
  --extra-small: 80px;
  --small: 120px;
  --medium: 160px;
  --large: 200px;
  --extra-large: 240px;

  /* Savebar */
  --savebar-height: 48px; /* Reduced height */
  --save-action-bg-color: var(--primary-color);
  --save-action-bg-color-dark: var(--primary-color-dark);
  --save-action-text-color: var(--text-on-primary);
  --cancel-action-bg-color: var(--error-clr);
  --cancel-action-bg-color-dark: var(--danger-color-dark);
  --undo-action-bg-color: var(--btn-default-clr);
  --undo-action-bg-color-dark: 200, 200, 200; /* Assuming a darker default for hover */
  --undo-action-text-color: var(--text-on-default-btn);
  --redo-action-bg-color: var(--btn-default-clr);
  --redo-action-bg-color-dark: 200, 200, 200; /* Assuming a darker default for hover */
  --redo-action-text-color: var(--text-on-default-btn);
}

/* Base Styles & Typography */
html,
body {
  font-family: var(--base-font-family);
  font-size: var(--base-font-size);
  background-color: rgb(var(--base-bg-color));
  line-height: 1.2; /* Tight line height for mobile */
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Global Layout adjustments for mobile */
#bodyWrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: var(--navbar-height) auto;
  height: 100%;
}

#globalContentWrapper {
  grid-row: 2;
  height: calc(100vh - var(--navbar-height));
}

#contentWrapper {
  display: grid;
  grid-template-columns: 1fr; /* Single column for mobile */
  height: 100%; /* Occupy full height minus navbar */
  width: 100%;
  box-sizing: border-box;
}

#viewmodelWrapper {
  grid-column: 1; /* Always column 1 for mobile */
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

#viewmodelSection {
  padding: 8px; /* Reduced padding for tightness */
  flex: 1 1 0%;
  align-content: start;
  overflow-y: auto;
  box-sizing: border-box;
  height: 100%;
}

/* Navbar - High Contrast for Main Menu */
.navbar {
  background-color: rgb(var(--navbar-bg-color));
  color: rgb(var(--navbar-link-color));
  min-height: var(--navbar-height);
  box-shadow: none; /* Remove shadow for tighter mobile feel */
}

.navbar__header {
  height: var(--navbar-height);
}

.navbar__brand {
  color: rgb(var(--navbar-brand-color));
  margin-left: 5px; /* Tighter spacing */
  margin-right: 5px; /* Tighter spacing */
  font-size: 1.1rem; /* Adjust brand font size */
}

.navbar__toggle {
  color: rgb(var(--navbar-link-color));
  margin: 0px 2px; /* Tighter spacing */
  width: 36px; /* Slightly smaller toggle */
  height: 36px; /* Slightly smaller toggle */
}

.navbar__toggle .icon-bar {
  background-color: rgb(var(--navbar-link-color));
  width: 18px; /* Smaller icon bars */
  height: 2px;
}

.navbar__link {
  color: rgb(var(--navbar-link-color));
  padding: 5px 8px; /* Adjusted padding for mobile links */
  font-size: 0.9rem; /* Smaller font size */
}

.navbar__link .ripple-container {
  background-color: rgba(var(--navbar-link-color), 0.2); /* Slightly less opaque ripple */
}

/* Dropdown Menu Styling */
.dropdown__menu {
  background-color: rgb(51, 51, 51); /* Dark gray background for dropdown */
  padding: 5px 0px; /* Reduced padding for tightness */
  position: static; /* Stack vertically for mobile */
  width: 100%; /* Full width for mobile */
  box-shadow: none; /* Remove shadow for mobile */
}

.dropdown__item {
  width: 100%;
}

.dropdown__link {
  color: rgb(255, 255, 255); /* Contrasting white text */
  padding: 10px 15px; /* Standard padding for dropdown items */
  font-size: 0.9rem;
  white-space: normal; /* Allow text to wrap if needed */
}

.dropdown__link:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Light hover effect */
}

.dropdown--nested {
  margin-left: 0; /* Remove left margin for nested dropdowns on mobile */
  padding-left: 15px; /* Indent for nested items */
}

/* Sidebar Styling */
#sidebar {
  background: rgb(var(--sidebar-bg-color));
  box-shadow: 1px 0 0 rgba(var(--sidebar-border-clr), 0.2);
  width: var(--sidebar-width);
}

.tk-sidebar__header {
  padding: 0 5px; /* Tighter spacing */
}

.tk-sidebar__group .tk-sidebar__group-header {
  padding-left: 10px; /* Tighter spacing */
}

.tk-sidebar__group .tk-sidebar__item {
  padding-left: 10px; /* Tighter spacing */
}

.tk-sidebar__subgroup::before {
  background-color: rgba(var(--sidebar-divider-clr), var(--sidebar-divider-alpha));
  left: 15px; /* Adjusted position */
  bottom: 5px; /* Adjusted position */
  width: 1px; /* Thinner divider */
}

.tk-sidebar__subgroup .tk-sidebar__item {
  padding-left: 25px; /* Tighter spacing for nested items */
}

.tk-sidebar__state-actions {
  padding: 2px 0; /* Tighter spacing */
}

.tk-sidebar__state-actions .tk-sidebar__item {
  margin: 2px 4px; /* Tighter margins */
}

.tk-sidebar__group-header {
  padding: 2px 4px; /* Tighter padding */
  font-size: 0.9375rem; /* Smaller font size */
  height: var(--sidebar-item-height); /* Ensure consistent height */
}

.tk-sidebar__subgroup-header {
  padding: 2px 4px 2px 10px; /* Tighter padding */
  font-size: 0.8125rem; /* Smaller font size */
  height: var(--sidebar-item-height); /* Ensure consistent height */
}

.tk-sidebar__item {
  padding: 0 4px; /* Tighter padding */
  font-size: 0.8125rem; /* Smaller font size */
  height: var(--sidebar-item-height); /* Ensure consistent height */
}

.tk-sidebar__item::before {
  margin-top: 1px;
  margin-left: 2px;
  margin-right: 5px;
}

/* Buttons */
.tk-button,
.n-tk-button {
  padding: 0; /* Remove default component padding */
}

.tk-placingcontainer .tk-button {
  padding-top: 0;
}

button.tk-button__native,
a.tk-button__native {
  padding: 0 8px; /* Tighter padding for buttons */
  height: 32px; /* Standard button height for mobile */
  font-size: 0.8125rem; /* Smaller font size */
  line-height: 1; /* Tight line height */
}

.tk-state-action {
  margin: 4px; /* Tighter margins for state actions */
  font-size: 0.8125rem;
  height: 32px; /* Consistent height */
}

.tk-state-action + .tk-state-action {
  margin-top: 2px; /* Tighter vertical spacing */
}

/* Button colors using variables */
.tk-state-action.save-action {
  background-color: rgb(var(--save-action-bg-color));
  color: rgb(var(--save-action-text-color));
}

.tk-state-action.cancel-action {
  background-color: rgb(var(--cancel-action-bg-color));
  color: rgb(var(--text-on-cancel-clr));
}

.tk-state-action.undo-action {
  background-color: rgb(var(--undo-action-bg-color));
  color: rgb(var(--undo-action-text-color));
}

.tk-state-action.redo-action {
  background-color: rgb(var(--redo-action-bg-color));
  color: rgb(var(--redo-action-text-color));
}

/* Links */
.tk-link {
  padding: 0; /* Remove default component padding */
}

.tk-link.NoLabel {
  padding: 0;
}

a.tk-link__native:not(.tk-button__native) {
  font-size: 0.875rem; /* Slightly smaller font size */
  height: 32px; /* Consistent height */
}

/* Form Fields */
.tk-text-field,
.tk-number-field,
.tk-float-field,
.tk-textarea,
.tk-datepicker,
.tk-timespan,
.tk-file-upload,
.tk-file-download,
.tk-image-upload,
.tk-select,
.tk-checkbox,
.tk-switch,
.n-tk-checkbox,
.n-tk-datepicker,
.n-tk-file-download,
.n-tk-file-upload,
.n-tk-image-upload,
.n-tk-textfield,
.n-tk-timepicker,
.n-tk-select,
.n-tk-textarea,
.n-tk-typography {
  padding: 0; /* Remove component padding to tighten layout */
}

.tk-text-field.NoLabel,
.tk-number-field.NoLabel,
.tk-float-field.NoLabel,
.tk-textarea.NoLabel,
.tk-datepicker.NoLabel,
.tk-timespan.NoLabel,
.tk-file-upload.NoLabel,
.tk-file-download.NoLabel,
.tk-image-upload.NoLabel,
.tk-select.NoLabel {
  padding: 0; /* Remove NoLabel specific padding */
}

.tk-text-field__label,
.tk-number-field__label,
.tk-float-field__label,
.tk-textarea__label,
.tk-datepicker__label,
.tk-timespan__label,
.tk-checkbox__label,
.tk-switch__label,
.n-tk-checkbox__label,
.n-tk-datepicker__label,
.n-tk-file-download__label,
.n-tk-file-upload__label,
.n-tk-image-upload__label,
.n-tk-image__label,
.n-tk-textfield__label,
.n-tk-timepicker__label,
.n-tk-select__label,
.n-tk-textarea__label,
.n-tk-typography__label {
  line-height: 1.2; /* Tight line height for labels */
  font-size: var(--label-font-size); /* Use consistent label font size */
}

.tk-text-field__native,
.tk-number-field__native,
.tk-float-field__native,
.tk-textarea__native {
  padding: 4px 6px; /* Reduced padding */
  height: 32px; /* Consistent height */
  border: 1px solid rgb(var(--textfield-border-clr));
  border-radius: var(--textfield-border-radius);
  font-size: 0.875rem; /* Smaller font size */
}

.tk-text-field__native:hover,
.tk-number-field__native:hover,
.tk-float-field__native:hover,
.tk-textarea__native:hover {
  box-shadow: none; /* Remove box-shadow on hover for tighter look */
  border-color: rgba(var(--textfield-border-clr), 0.6);
}

.tk-text-field__native[readonly],
.tk-number-field__native[readonly],
.tk-float-field__native[readonly],
.tk-textarea__native[readonly] {
  box-shadow: none;
  border-color: rgba(var(--textfield-border-clr), 0.57);
  background-color: rgba(0, 0, 0, 0.024);
}

.tk-text-field__native:disabled,
.tk-number-field__native:disabled,
.tk-float-field__native:disabled,
.tk-textarea__native:disabled {
  background: rgb(var(--textfield-disabled-bg-clr));
  box-shadow: none;
  border-color: rgba(var(--textfield-border-clr), 0.12);
}

.tk-input-field__label {
  padding-left: 0.3rem; /* Tighter padding */
}

.tk-input-field__native {
  padding: 0.3rem 0.5rem; /* Tighter padding */
}

.has-error .tk-input-field__native {
  padding-right: 2rem; /* Adjusted for smaller icon */
}

.has-error .tk-input-field__container::after {
  font-size: 1rem; /* Smaller icon */
  top: 0.45rem; /* Adjusted position */
  right: 0.5rem; /* Adjusted position */
}

.tk-input-field__icon {
  font-size: 1rem; /* Smaller icon */
  top: 0.45rem; /* Adjusted position */
  color: rgb(var(--textfield-icon-clr));
}

.tk-input-field__helper {
  padding-left: 0.3rem;
  padding-right: 0.3rem;
  line-height: 1.2; /* Tight line height */
}

.tk-static-text {
  padding: 0; /* Remove padding */
}

.tk-static-text__native {
  padding: 2px 0; /* Minimal padding */
  font-size: 0.875rem; /* Smaller font size */
  line-height: 1.2; /* Tight line height */
}

.tk-static-text.chip .tk-static-text__native {
  padding: 0 8px; /* Tighter padding */
  height: 28px; /* Smaller height */
  font-size: 0.8125rem; /* Smaller font size */
  line-height: 1.2; /* Tight line height */
}

.tk-static-text.chip .tk-static-text__native.danger {
  background: rgba(var(--error-clr), 0.1); /* Use rgba for transparency */
  color: rgb(var(--error-clr));
}

.tk-static-text.chip .tk-static-text__native.warning {
  background: rgba(var(--warning-color), 0.1);
  color: rgb(var(--warning-color));
}

.tk-static-text.chip .tk-static-text__native.success {
  background: rgba(var(--success-color), 0.1);
  color: rgb(var(--success-color));
}

.tk-static-text.chip .tk-static-text__native.info {
  background: rgba(var(--info-clr), 0.1);
  color: rgb(var(--info-clr));
}

.tk-static-text.info-text .tk-static-text__native {
  padding-left: 20px; /* Tighter padding */
}

.tk-static-text.info-text .tk-static-text__native::before {
  top: 2px; /* Adjusted position */
}

.tk-modal__content {
  padding: 8px 16px; /* Tighter padding */
}

.tk-modal__actions {
  padding: 4px; /* Tighter padding */
  min-height: 48px; /* Consistent height */
}

.tk-modal__actions .tk-button__native.outlined.success {
  margin-left: 5px; /* Tighter margin */
}

.tk-select__label {
  padding-left: 0.3rem; /* Tighter padding */
}

.tk-select__native {
  padding: 4px 20px 4px 6px; /* Reduced padding */
  height: 32px; /* Consistent height */
  border: 1px solid rgb(var(--select-border-clr));
  border-radius: var(--select-border-radius);
  font-size: 0.875rem; /* Smaller font size */
}

.tk-select__native:hover {
  border-color: rgba(var(--select-border-clr), 0.87);
}

.tk-select__native[disabled],
.tk-select__native[readonly] {
  border-color: rgb(var(--select-border-clr));
  background: rgb(var(--select-disabled-bg-clr));
}

.tk-select__dropdown-icon {
  right: 5px; /* Tighter position */
  top: 0.6em; /* Adjusted vertical position */
}

.tk-file-upload__name {
  margin-top: 3px; /* Tighter margin */
  line-height: 1; /* Tight line height */
}

.tk-file-download__content {
  padding-left: 8px; /* Tighter padding */
  padding-right: 8px; /* Tighter padding */
  height: 32px; /* Consistent height */
}

.tk-file-download__content::before {
  margin-right: 5px; /* Tighter margin */
}

.tk-datepicker__label::after,
.tk-timespan__label::after {
  margin-top: 1px;
  margin-left: 2px;
}

.tk-datepicker__native,
.tk-timespan__native {
  padding: 4px 6px; /* Reduced padding */
  height: 32px; /* Consistent height */
}

/* Data Table */
.tk-data-table {
  padding: 0; /* Remove component padding */
}

.tk-data-table__content {
  margin-top: 5px; /* Tighter margin */
  border-width: var(--table-border-width);
  border-color: rgb(var(--table-border-clr));
  border-radius: var(--table-border-radius);
  background: rgb(var(--table-bg-clr));
}

.tk-data-table__native thead th {
  background-color: rgb(var(--data-table-header-bg-color));
  color: rgb(var(--data-table-header-text-color));
  height: var(--data-table-header-height);
}

.tk-data-table__label {
  font-size: 1.1rem; /* Slightly smaller header font */
  line-height: 1.2;
}

.tk-data-table__header-cell {
  padding: 0 8px; /* Tighter padding */
  font-size: 0.8125rem; /* Smaller font size */
  line-height: 1.2; /* Tight line height */
}

.order-enabled:not(.numeric) span::after,
.order-enabled.numeric span::before {
  margin-left: 2px;
  margin-right: 2px;
}

.tk-data-table__row {
  height: var(--data-table-row-height);
}

.tk-data-table__cell {
  padding: 0 8px; /* Tighter padding */
  font-size: 0.8125rem; /* Smaller font size */
  line-height: 1.2; /* Tight line height */
}

/* Validation Message Wrapper */
#validationMessageWrapper {
  max-height: 100px; /* Reduced max height */
  grid-row: auto; /* Allow flexible positioning */
}

.validation__item {
  padding: 5px 5px 5px 15px; /* Tighter padding */
  font-size: 0.8125rem; /* Smaller font size */
  line-height: 1.2; /* Tight line height */
}

.validation__item::before {
  top: 4px; /* Adjusted position */
  left: 4px; /* Adjusted position */
}

.validation__item + .validation__error {
  margin-top: 2px; /* Tighter margin */
}

.validation-card__wrapper {
  margin: 0; /* Remove margin */
}

/* Ensure floated validation card uses correct colors */
.validation-card.floated tk-icon {
  color: rgb(var(--text-on-error));
}

.validation-card.floated .validation-card__wrapper.error tk-icon {
  color: rgb(var(--text-on-error));
}

.validation-card.floated .validation-card__wrapper.warning tk-icon {
  color: rgb(var(--text-on-warning));
}

.validation-card.floated .validation-card__wrapper.info tk-icon {
  color: rgb(var(--text-on-info));
}

/* Snackbar */
.tk-snackbar {
  margin: 4px; /* Tighter margins */
}

.tk-snackbar__label {
  padding: 8px; /* Tighter padding */
  font-size: 0.8125rem; /* Smaller font size */
  line-height: 1.2; /* Tight line height */
}

/* Groupbox */
.tk-groupbox.card {
  padding: 10px 15px; /* Tighter padding */
}

.tk-groupbox__header {
  font-size: 1rem; /* Smaller font size */
}

/* Toolbar */
#contentToolbar {
  padding: 5px 8px 0; /* Tighter padding */
}

.toolbar__container {
  gap: 8px; /* Tighter gap */
  padding: 4px; /* Tighter padding */
}

.toolbar__list,
.vmactions__list {
  gap: 0.5rem; /* Tighter gap */
  font-size: 0.9375rem; /* Smaller font size */
}

.vmactions__list .tk-state-action {
  height: 1.8rem; /* Consistent height */
}

.toolbar__link,
.tk-toolbar__button,
.toolbar-drop__button {
  padding: 0 0.4rem; /* Tighter padding */
  font-size: 0.8125rem; /* Smaller font size */
  height: 1.6rem; /* Consistent height */
}

/* Auth related styles (mostly mobile-friendly already, just tightening up) */
.tk-auth__content {
  padding: 10px 15px;
}

.tk-auth__header {
  font-size: 1.5rem;
}

.tk-auth__caption {
  font-size: 0.8125rem;
}

.tk-auth__action {
  padding: 10px;
}

.tk-auth__validation-summary {
  margin-top: 5px;
}

.tk-auth__validation-summary .validation-summary-errors ul li {
  font-size: 0.8125rem;
  line-height: 1.2;
  padding: 5px 10px;
}

.tk-auth__validation-summary .validation-summary-errors ul li::before {
  margin-right: 5px;
}

.tk-auth__info {
  padding: 10px;
}

.tk-auth__advice {
  margin-top: 10px;
}

.tk-auth__divider::before,
.tk-auth__divider::after {
  margin: 0 2px;
}

.tk-auth__divider {
  padding: 5px 0;
}

.tk-auth__link {
  margin-top: 8px;
  height: 32px;
  line-height: 1.2;
}

.tk-auth-form {
  padding: 5px 0;
}

.tk-auth-form__group {
  margin-top: 5px;
}

.tk-auth-form__group + .tk-auth-form__group {
  margin-top: 10px;
}

.tk-auth-form__group.inline {
  margin-top: 15px;
}

.tk-auth-form__group button.tk-button__native {
  padding: 0 8px;
}

.tk-auth-form__input {
  height: 40px;
  font-size: 0.875rem;
}

.tk-auth-form__input.confirmation {
  margin: 5px 0;
}

span.field-validation-error {
  margin-top: 2px;
  font-size: 0.8125rem;
}

.tk-auth-form__checkbox label {
  font-size: 0.8125rem;
}

.tk-auth-social__info {
  padding: 5px;
  font-size: 10px;
}

.tk-auth-social__item::before {
  margin-right: 5px;
}

.tk-auth-social .tk-auth-social__form .tk-auth-social__item {
  margin: 2px 0;
  font-size: 14px;
  height: 36px;
}

.tk-auth-social .tk-auth-social__form .tk-auth-social__item::before {
  width: 15px;
  height: 15px;
}

.navbar .tk-auth-social__form {
  padding: 5px 15px;
}

.navbar .tk-auth-social__form .tk-auth-social__item + .tk-auth-social__item {
  margin-top: 5px;
  margin-left: 5px;
}

.tk-auth-socials p {
  padding: 5px;
  font-size: 0.8125rem;
}

.manage__header {
  height: 60px;
}

.manage__wrapper {
  padding: 0 8px;
}

.account {
  padding: 0.8em 1em;
  bottom: -20px;
  font-size: 10px;
}

.account__username {
  font-size: 12px;
}

.manage__content {
  padding-top: 20px;
}

.account-linked__list {
  padding: 10px 5px;
}

.manage__text-header {
  font-size: 14px;
}

.manage__text-header .mi {
  margin-right: 5px;
  font-size: 20px;
}

.account-linked__item {
  padding: 8px 15px;
}

.account-linked__item + .account-linked__item {
  margin-top: 10px;
}

.account-linked__logo {
  width: 30px;
  height: 30px;
}

.account-linked__item span {
  margin: 0 10px;
  font-size: 14px;
}

.account-linked__remove {
  width: 30px;
  height: 30px;
  font-size: 18px;
}

.account-add {
  padding: 8px 5px;
}

.account-add .auth-social__info {
  padding: 10px 5px;
}

.account-add__list {
  padding: 5px 8px;
}

.account-add__item {
  margin-top: 8px;
  padding: 8px 10px;
}

.account-add__logo {
  width: 30px;
  height: 30px;
}

.account-add__btn {
  margin-left: 10px;
  width: 30px;
  height: 30px;
  font-size: 16px;
}

.account__alert {
  margin: 5px 0;
  padding: 5px 5px 5px 15px;
}

/* New N-Tk Components - Apply similar tightening */
.n-tk-checkbox,
.n-tk-datepicker,
.n-tk-file-download,
.n-tk-file-upload,
.n-tk-image-upload,
.n-tk-textfield,
.n-tk-timepicker,
.n-tk-select,
.n-tk-textarea,
.n-tk-typography {
  padding: 0; /* Remove default padding for components */
}

.n-tk-checkbox__label,
.n-tk-datepicker__label,
.n-tk-file-download__label,
.n-tk-file-upload__label,
.n-tk-image-upload__label,
.n-tk-image__label,
.n-tk-textfield__label,
.n-tk-timepicker__label,
.n-tk-select__label,
.n-tk-textarea__label,
.n-tk-typography__label {
  font-size: var(--label-font-size);
  line-height: 1.2;
  gap: 5px; /* Smaller gap for icons */
}

.n-tk-textfield__container,
.n-tk-datepicker__container,
.n-tk-timepicker__container,
.n-tk-select__container,
.n-tk-textarea__container {
  margin-top: 2px; /* Tighter margin from label */
  font-size: 0.875rem; /* Smaller base font size for inputs */
  line-height: 1.2;
}

.n-tk-textfield__input,
.n-tk-datepicker__input,
.n-tk-timepicker__input,
.n-tk-textarea__input {
  font-size: 0.8125rem; /* Even smaller text inside inputs */
  padding: 0.5em 0.3em; /* Reduced padding */
}

.n-tk-checkbox__helpertext,
.n-tk-datepicker__helpertext,
.n-tk-timepicker__helpertext,
.n-tk-textfield__helpertext,
.n-tk-select__helpertext,
.n-tk-textarea__helpertext {
  margin-left: 5px; /* Tighter margin */
  margin-top: 2px; /* Tighter margin */
  line-height: 1; /* Tight line height */
  font-size: 0.7rem; /* Even smaller helper text */
  margin-right: 8px; /* Consistent right margin */
}

.n-tk-table__container {
  font-size: var(--base-font-size); /* Ensure base font size */
}

.n-tk-table__header {
  padding: 5px 8px; /* Tighter padding */
}

.n-tk-table__header label {
  font-size: 1.1rem; /* Consistent header label size */
}

.n-tk-table__cell {
  font-size: 0.8125rem; /* Smaller cell font size */
  line-height: 1.2; /* Tight line height */
  padding: 0.3rem 0.5rem; /* Reduced padding */
  height: var(--data-table-row-height);
}

.n-tk-savebar {
  height: var(--savebar-height);
  padding: 0; /* Remove default padding */
}

.n-tk-savebar__wrapper {
  padding: 0 0.5rem; /* Tighter padding */
}

.n-tk-savebar__message {
  font-size: 0.8125rem; /* Smaller font size */
  line-height: 1.2;
}

.n-tk-savebar__actions {
  gap: 2px; /* Tighter gap between actions */
}

.n-tk-snackbar__surface {
  margin: 4px; /* Tighter margins */
}

.n-tk-snackbar__label {
  padding: 8px; /* Tighter padding */
  font-size: 0.8125rem;
  gap: 5px;
  line-height: 1.2;
}

.n-tk-switch__label {
  font-size: 0.875rem;
  line-height: 1.2;
}

.n-tk-switch__surface {
  height: 32px; /* Reduced height */
  width: 48px; /* Reduced width */
  padding: 8px; /* Reduced padding */
}

.n-tk-switch__thumb {
  padding: 6px; /* Reduced padding */
}

.n-tk-switch__circle {
  height: 16px; /* Reduced size */
  width: 16px; /* Reduced size */
}

.n-tk-switch__native:checked ~ .n-tk-switch__interactive .n-tk-switch__thumb {
  transform: translateX(16px); /* Adjust thumb position */
}

.n-tk-menu__action {
  padding: 0.4rem 8px; /* Tighter padding */
}

.n-tk-sidebar__list {
  padding-inline: 6px; /* Tighter inline padding */
}

.n-tk-sidebar-group__header {
  padding-block: 4px;
  padding-inline: 10px;
}

.n-tk-sidebar-group__content::before {
  bottom: 5px; /* Adjust position */
  width: 1px; /* Thinner line */
}

.n-tk-sidebar-action {
  padding-block: 8px;
  padding-left: 20px; /* Tighter padding */
  padding-right: 8px;
}

.n-tk-button__base {
  font-size: 0.8125rem; /* Smaller font size */
  padding-block: 4px; /* Reduced padding */
  padding-inline: 8px; /* Reduced padding */
  height: 32px; /* Ensure consistent height */
  line-height: 1.2; /* Tight line height */
}

.n-tk-select__container md-select md-select-value {
  padding: 0.5em 0.3em; /* Reduced padding */
  min-height: 1em; /* Ensure single line height */
  height: 32px;
}

/* Ensure CSSGrid placements are respected and adjusted for mobile */
.pcHomeMainCase_0 {
  margin-bottom: 5px; /* Reduced margin */
}

/* Explicitly setting background for spinner using primary color */
.spinner__element {
  border-color: rgb(var(--primary-color)) transparent transparent;
}

