/* URL IMPORTS (SUCH AS FONT IMPORTS) SHOULD BE KEPT ABOVE TAILWIND IMPORTS - DO NOT DELETE THIS COMMENT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

@layer tailwind-base,
primereact,
tailwind-utilities;

@layer tailwind-base {
  @tailwind base;
}

@layer tailwind-utilities {
  @tailwind components;
  @tailwind utilities;
}

@font-face {
  font-family: "ProseAntiqueBold";
  src: url("/fonts/ProseAntiqueBold.ttf") format("truetype");
}

@font-face {
  font-family: "ProseCorsivaRegular";
  src: url("/fonts/Monotype-Corsiva-Regular.ttf") format("truetype");
}

* {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}


/* Hide spinner controls in Chrome, Edge, Safari */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide in Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  display: none;
}

/* Firefox */
* {
  scrollbar-width: none;
}

/* IE / old Edge */
* {
  -ms-overflow-style: none;
}



@layer base {
  :root {
    /* font */
    --font-inter: Inter;
    /* colors */
    --border-color: rgb(240, 240, 240);
    --select-border: rgb(228, 228, 228);
    /* text colors */
    --color-text-base: 75, 86, 117;
    --color-text-header: 7, 20, 55;
    --color-text-sub-header: 156, 161, 183;
    --color-text-table-data: 128, 130, 157;
    --color-text-muted: 88, 88, 88;
    --color-text-increase: 84, 203, 139;
    --color-text-dicrease: 241, 65, 108;
    --color-text-hover: 62, 151, 255;
    --color-text-invert: 219, 223, 233;
    --color-text-invert-muted: 133, 133, 133;
    --color-text-invert-hover: 252, 252, 252;
    --color-icon-muted: 41, 41, 41;
    --color-nav-main: 93, 103, 131;
    --color-nav-second: 153, 161, 183;
    --color-nav-hover-mute: 158, 166, 186;
    --color-nav-hover-header: 37, 47, 74;
    --color-nav-hover-text: 104, 113, 139;
    /* background colors */
    --color-nav-item-hover: 239, 246, 255;
    --color-background-base: 252, 252, 252;
    --color-background-invert: 19, 19, 19;
    --color-background-content: 255, 255, 255;
    --color-background-table: 249, 249, 249;
    --color-background-table-button: 241, 241, 244;
    --color-background-table-select: 241, 241, 244;
    --color-background-pagination-hover: 249, 249, 249;
    --color-background-button: 62, 151, 255;
    --color-background-button-highlight: 7, 20, 55;
    --color-background-button-muted: 241, 241, 242;
    --color-background-button-muted-highlight: 219, 223, 233;
    --color-background-button-hover: 37, 136, 248;
    --color-background-button-invert: 34, 35, 41;
    --color-background-nav: 252, 252, 252;
    --color-background-nav-hover: 244, 244, 244;
    --color-background-success: 228, 255, 237;
    --color-background-sidebar-button: 255, 255, 255;
    --color-background-nav-active: 252, 252, 252;
    --color-background-dashboard-icon: 241, 241, 244;
    --color-background-dashbord-left: 251, 251, 251;
    --color-background-dashbord-right: 249, 249, 249;
    --color-background-sidebar: 251, 250, 255;
    /* Spacing */
    --padding-section: 2rem;
    --padding-sidebar-x: 1.1rem;
    /* Size */
    --size-logo: 1.2rem;
    --size-h1: 2rem;
    --size-h2: 1.5rem;
    --size-text-muted: 1rem;
    --size-text-muted-sm: 0.7rem;
  }

  .theme-dark {
    --border-color: rgb(80, 80, 80);
    --select-border: rgb(44, 44, 44);
    /* text colors */
    --color-text-base: 154, 156, 164;
    --color-text-header: 245, 245, 245;
    --color-text-sub-header: 156, 161, 183;
    --color-text-muted: 165, 178, 203;
    --color-text-increase: 84, 203, 139;
    --color-text-dicrease: 241, 65, 108;
    --color-text-hover: 62, 151, 255;
    --color-text-invert: 219, 223, 233;
    --color-text-invert-muted: 133, 133, 133;
    --color-text-invert-hover: 252, 252, 252;
    --color-icon-muted: 41, 41, 41;
    --color-nav-main: 181, 183, 200;
    --color-nav-second: 99, 102, 116;
    --color-nav-hover-mute: 87, 91, 103;
    --color-nav-hover-header: 181, 183, 200;
    --color-nav-hover-text: 126, 128, 143;
    /* background colors */
    --color-background-base: 18, 18, 18;
    --color-background-invert: 19, 19, 19;
    --color-background-content: 38, 39, 47;
    --color-background-table: 21, 23, 28;
    --color-background-table-button: 27, 28, 34;
    --color-background-table-select: 38, 39, 47;
    --color-background-pagination-hover: 27, 28, 34;
    --color-background-button: 62, 151, 255;
    --color-background-button-highlight: 7, 20, 55;
    --color-background-button-muted: 26, 26, 26;
    --color-background-button-muted-highlight: 26, 26, 26;
    --color-background-button-hover: 37, 136, 248;
    --color-background-button-invert: 34, 35, 41;
    --color-background-nav: 19, 19, 19;
    --color-background-nav-hover: 244, 244, 244;
    --color-background-success: 228, 255, 237;
    --color-background-sidebar-button: 38, 39, 47;
    --color-background-nav-active: 27, 28, 34;
    --color-background-dashboard-icon: 38, 39, 47;
    --color-background-dashbord-left: 28, 29, 34;
    --color-background-dashbord-right: 27, 28, 34;
    --color-background-sidebar: 28, 29, 34;
  }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* List item style dot */

.list-dot,
.list-dot-light {
  position: relative;
}

.list-dot::before,
.list-dot-light::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -5%;
  width: 4px;
  height: 4px;
  background-color: rgb(68, 68, 68);
  border-radius: 100%;
}

.list-dot-light::before {
  background-color: rgb(75, 86, 117);
}

.list-dot-light:hover::before {
  background-color: rgb(62, 151, 255);
}

@screen md {
  .md\:group-hover\:flex:hover .group:hover .md\:flex {
    display: flex !important;
  }
}

@screen md {
  .md\:group-hover\:block:hover .group:hover .md\:block {
    display: block !important;
  }
}

.navlink {
  text-decoration: none;
}

.active {
  border-radius: 7px;
  color: black;
}

.active a {
  color: black;
}

.defulattable {
  font-size: 12px;
}

.defulattable .p-datatable-header {
  background-color: transparent;
  border: none;
}

.p-toast {
  font-size: 12px;
}

.p-toast-message-content {
  min-height: 70px;
  max-width: min(420px, 90vw);
  overflow: visible;
}

.p-toast-message-content .p-toast-message-text,
.p-toast-message-content .p-toast-summary,
.p-toast-message-content .p-toast-detail {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.p-toast-message-content svg {
  height: 25px;
}

.p-toast-icon-close {
  height: 25px;
}

.nav-active {
  background-color: rgb(var(--color-nav-item-hover));
  color: rgb(var(--color-text-hover));
}

.pending {
  background-color: #ffcdd2;
  color: #c63737;
  border-radius: 2px;
  padding: 0.25em 0.5rem;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.new {
  background-color: #b3e5fc;
  color: #23547b;
  border-radius: 2px;
  padding: 0.25em 0.5rem;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.complete {
  background-color: #c8e6c9;
  color: #256029;
  border-radius: 2px;
  padding: 0.25em 0.5rem;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.file-input-container {
  position: relative;
  display: inline-block;
}

.real-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.custom-file-label {
  display: block;
  background-color: #7068e9;
  color: #fff;
  padding: 7px;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.custom-file-label:hover {
  background-color: #7068e9;
}

.custom-file-label span {
  padding: 8px;
  font-size: 13px;
  max-width: 100%;
}

.permission .p-checkbox-icon {
  width: 13px;
}

.permission .p-checkbox-box {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.canvasjs-chart-credit {
  display: none;
}

.d-month-chart {
  background-color: #f1f1f1;
}

.d-month-chart .canvasjs-chart-canvas {
  box-shadow: 1px 3px 4px 1px rgba(128, 128, 128, 0.108);
  border-radius: 5px;
  padding: 20px;
}

.shadow-custom {
  box-shadow: 1px 3px 4px 1px rgba(128, 128, 128, 0.108);
}

/* Hide spinner arrows for number input */

.no-arrow::-webkit-outer-spin-button,
.no-arrow::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
}

.b-code svg {
  transform: translate(-40px, 0) !important;
  height: 4rem;
  width: 240px;
}

.pos-search .p-component {
  width: 100% !important;
}

/* LC Module: tabs wrap; single active bar only; panel/table break properly */
.lc-module-tabs-wrapper .p-tabview-nav-container {
  overflow: visible;
}

.lc-module-tabs-wrapper .p-tabview-nav-content {
  overflow: visible !important;
}

.lc-module-tabs-wrapper .p-tabview-nav {
  flex-wrap: wrap;
  gap: 2px;
}

/* Hide PrimeReact's ink bar (can draw a second line); we draw only one bar via TabStepForm */
.lc-module-tabs-wrapper .p-tabview-ink-bar {
  display: none !important;
}

/* Single active bar: remove theme borders/shadows from all tabs; only nth-child(activeIndex+1) gets bar via TabStepForm inline style */
.lc-module-tabs-wrapper .p-tabview-nav li,
.lc-module-tabs-wrapper .p-tabview-nav li .p-tabview-nav-link {
  border: none !important;
  box-shadow: none !important;
  border-bottom: 2px solid transparent !important;
}

.lc-module-tabs-wrapper .p-tabview-nav li.p-highlight,
.lc-module-tabs-wrapper .p-tabview-nav li.p-highlight .p-tabview-nav-link {
  border: none !important;
  box-shadow: none !important;
  border-bottom: 2px solid transparent !important;
}

.lc-module-tabs-wrapper .p-tabview-nav li::before,
.lc-module-tabs-wrapper .p-tabview-nav li::after,
.lc-module-tabs-wrapper .p-tabview-nav .p-tabview-nav-link::before,
.lc-module-tabs-wrapper .p-tabview-nav .p-tabview-nav-link::after {
  display: none !important;
}

/* Only the tab with data-lc-active gets the bar (set by TabStepForm ref); fallback nth-child in inline style */
.lc-module-tabs-wrapper .p-tabview-nav li[data-lc-active="true"] .p-tabview-nav-link {
  border-bottom-color: var(--p-primary-color, #6366f1) !important;
}

/* LC modal: tab panel content and tables break/wrap properly */
.lc-module-tabs-wrapper .p-tabview-panels {
  overflow: visible;
  word-wrap: break-word;
}

.lc-module-tabs-wrapper .p-tabview-panel-content {
  overflow-x: auto;
  word-break: break-word;
}

.lc-module-tabs-wrapper table {
  table-layout: fixed;
  word-break: break-word;
  max-width: 100%;
}

.lc-module-tabs-wrapper .p-datatable-wrapper {
  overflow-x: auto;
  max-width: 100%;
}

/* Settings page: tab layout */
.settings-tabview .p-tabview-nav {
  margin-bottom: 0;
  border-radius: 0.5rem 0.5rem 0 0;
}

.settings-tabview .p-tabview-panels {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 0;
}

.settings-tabview .p-tabview-panel-content {
  padding: 0;
}

/* ========== Settings Rule tab design ========== */
.settings-rules-tab {
  min-height: 320px;
}

.settings-rules-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.settings-rules-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: rgb(17 24 39);
  margin: 0 0 0.25rem 0;
}

.settings-rules-desc {
  font-size: 0.8125rem;
  color: rgb(107 114 128);
  margin: 0;
  line-height: 1.4;
}

.settings-rules-add-btn {
  flex-shrink: 0;
  font-weight: 600 !important;
  padding: 0.625rem 1.25rem !important;
  border-radius: 0.5rem !important;
  border: 1px solid rgb(99 102 241) !important;
  color: rgb(99 102 241) !important;
  background: transparent !important;
  transition: background 0.2s, color 0.2s !important;
}

.settings-rules-add-btn:hover {
  background: rgb(99 102 241) !important;
  color: #fff !important;
}

.settings-rules-card {
  background: rgb(255 255 255);
  border: 1px solid rgb(229 231 235);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0 0 0 / 0.04);
}

.settings-rules-empty {
  text-align: center;
  padding: 3rem 2rem;
}

.settings-rules-empty-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(243 244 246), rgb(229 231 235));
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-rules-empty-icon i {
  font-size: 1.75rem;
  color: rgb(156 163 175);
}

.settings-rules-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(55 65 81);
  margin: 0 0 0.375rem 0;
}

.settings-rules-empty-desc {
  font-size: 0.875rem;
  color: rgb(107 114 128);
  margin: 0;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.settings-rules-table-wrap {
  overflow-x: auto;
}

.settings-rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.settings-rules-table thead {
  background: linear-gradient(180deg, rgb(249 250 251) 0%, rgb(243 244 246) 100%);
  border-bottom: 1px solid rgb(229 231 235);
}

.settings-rules-table th {
  text-align: left;
  font-weight: 600;
  color: rgb(55 65 81);
  padding: 0.875rem 1rem;
  white-space: nowrap;
}

.settings-rules-table th.settings-rules-th-action {
  width: 5rem;
  text-align: center;
}

.settings-rules-table tbody tr.settings-rules-row {
  border-bottom: 1px solid rgb(243 244 246);
  transition: background 0.15s;
}

.settings-rules-table tbody tr.settings-rules-row:hover {
  background: rgb(249 250 251);
}

.settings-rules-table tbody tr.settings-rules-row:last-child {
  border-bottom: none;
}

.settings-rules-table td {
  padding: 0.625rem 1rem;
  vertical-align: middle;
}

.settings-rules-table td.settings-rules-td-action {
  width: 5rem;
  text-align: center;
  padding-left: 0.5rem;
}

.settings-rules-input {
  max-width: 100%;
  width: 100%;
  min-width: 10rem;
  height: 2.25rem !important;
  border-radius: 0.5rem !important;
  border-color: rgb(209 213 219) !important;
  font-size: 0.875rem !important;
}

.settings-rules-input:enabled:focus {
  border-color: rgb(99 102 241) !important;
  box-shadow: 0 0 0 2px rgba(99 102 241 / 0.2) !important;
}

.settings-rules-input:disabled {
  background: rgb(249 250 251) !important;
  color: rgb(75 85 99) !important;
  cursor: default;
}

.settings-rules-delete-btn {
  width: 2rem !important;
  height: 2rem !important;
  min-width: 2rem !important;
  padding: 0 !important;
  border-radius: 0.5rem !important;
  color: #fff !important;
  background: rgb(185 28 28) !important;
  border: none !important;
  transition: background 0.15s, filter 0.15s !important;
}

.settings-rules-delete-btn:hover {
  background: rgb(153 27 27) !important;
  filter: brightness(1.1);
}