/* ==========================================================================
   Crave SalesPort — brand design tokens (maroon primary + gold accent).
   Blue is kept only as a secondary/link colour. Change a value here and it
   cascades across the whole portal.
   ========================================================================== */
:root {
  --brand: #69241d;          /* primary maroon */
  --brand-dark: #4a1712;     /* deep maroon (headers, hovers) */
  --brand-soft: #f4e8e5;     /* tinted maroon surface */
  --accent: #feba00;         /* gold accent */
  --accent-deep: #f08c1b;    /* deep gold */
  --secondary: #0d6efd;      /* blue — links / secondary only */

  --ink: #241a17;            /* primary text */
  --muted: #6b625e;          /* secondary text */
  --faint: #9a8f8a;          /* hints / disabled */

  --bg: #f6f3f1;             /* app background */
  --surface: #ffffff;        /* cards / panels */
  --rule: #ece3df;           /* hairline borders */

  --ok: #2c7a50; --warn: #9a6410; --danger: #b23b2e;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(36, 26, 23, .06);
  --shadow: 0 1px 2px rgba(36, 26, 23, .05), 0 10px 26px -14px rgba(36, 26, 23, .18);
}

html,
body {
  font-family: "Poppins", sans-serif !important;
  font-size: 12px;
  background-color: var(--bg);
}

.cursurorclass {
  cursor: pointer;
}

.row {
  margin: 0;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: lightgrey;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: grey;
}

::-webkit-input-placeholder {
  /* Edge */
  color: #bfc4ce !important;
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #bfc4ce !important;
}

::placeholder {
  color: #bfc4ce !important;
}

video {
  object-fit: cover;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
}

.viewport-header {
  position: relative;
  height: 100vh;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.socialMediaIcon {
  width: 1rem;
  margin: 0 0.5rem;
  cursor: pointer;
}

.footerText {
  font-size: 0.85rem;
  font-family: sans-serif;
  font-weight: 500;
  /* cursor: pointer; */
}

.lightGrey {
  color: #727272;
}
.blueFont {
  color: var(--secondary);
}

.blackFont {
  color: #151515;
}

.whiteFont {
  color: #ffffff;
}

.logo {
  width: 80%;
}

.loginBox {
  background: white;
  border: 1px solid lightgray;
  border-radius: 1rem;
  width: 100%;
  display: inline-block;
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
}

.treeBlock {
  display: none;
}

.prepend-icon {
  background-color: transparent;
  border: 0px;
}

.btn-signin {
  padding: 1rem;
  font-weight: 700;
  background-color: var(--accent);
  width: 100%;
  border-radius: 1rem;
}

#loginInput1,
#loginInput2 {
  outline: none;
  border: 0px solid;
  text-align: center;
}

#loginInput1 {
  background: url(/static/img/svg/email.svg) no-repeat scroll;
  background-size: 1rem;
  background-position: left;
}
#loginInput2 {
  background: url(/static/img/svg/password.svg) no-repeat scroll;
  background-size: 1rem;
  background-position: left;
}

.form-control:focus {
  border-color: transparent;
  box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0.075), 0 0 0px rgba(0, 0, 0, 0.6);
}

.loginIcon {
  width: 1rem;
}

.footer-bottom {
  position: fixed;
  right: 0;
  bottom: 0rem;
  left: 0;
  padding: 0.3rem;
  background-color: #ffffff;
  z-index: 1030;
}
.iconAlignment {
  text-align: right;
}
.break {
  display: none;
}

.hyphen {
  display: inline;
  font-family: sans-serif;
}
.badge {
  box-sizing: border-box;
  display: inline-block;
  background-color: var(--accent);
  color: #333;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  position: absolute;
  left: 1rem;
  top: 2.2rem;
}

.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  font-size: 0.8rem;
}

/* rows hidden by filtering (needed for child rows) */
.tablesorter .filtered {
  display: none;
}

/* ajax error row */
.tablesorter .tablesorter-errorRow td {
  text-align: center;
  cursor: pointer;
  background-color: #e6bf99;
}

.dashboardLogo {
  height: 52px;
  width: auto;
  border-radius: 10px;
}
.comingSoon {
  background-image: url(/static/img/png/bg_ComingSoon.png);
  background-repeat: no-repeat;
  background-size: cover;
}
.comingSoonContainer {
  background-image: url(/static/img/png/comingSoon.png);
  background-repeat: no-repeat;
  background-size: 25%;
  background-position: center;
}

.no_track_section{
  background-image: url(/static/img/png/no_track_record.png);
  background-repeat: no-repeat;
  background-size: 25%;
  background-position: center;
  height: 400px;
}


.no_track_section{
  background-image: url(/static/img/png/no_track_record.png);
  background-repeat: no-repeat;
  background-size: 25%;
  background-position: center;
  height: 400px;
}


.notFoundContainer {
  background-image: url(/static/img/png/404.png);
  background-repeat: no-repeat;
  background-size: 25%;
  background-position: center;
}

.permissionDeniedContainer {
  background-image: url(/static/img/png/permission_denied.png);
  background-repeat: no-repeat;
  background-size: 25%;
  background-position: center;
}
.searchInput {
  border: 0px;
  height: calc(2rem + 0.75rem + 2px);
  border-top-left-radius: 2rem;
  background-image: url(/static/img/svg/search.svg);
  background-position: 0.5rem;
  border-bottom-left-radius: 2rem;
  background-repeat: no-repeat;
  padding-left: 2.5rem;
  background-size: 1.7rem;
  font-size: 0.9rem;
  box-shadow: 0.98px -0.02px 24px 0px rgba(0, 0, 0, 0.08);
}

.menuIconContainer {
  border-top-right-radius: 3rem !important;
  border-bottom-right-radius: 3rem !important;
  background-color: #ffffff;
  border: 0;
  z-index: 1;
  padding: 0.375rem 0.375rem;
  box-shadow: 6.971px 0.971px 8px 0px rgba(0, 0, 0, 0.08);
}

.menuIcon {
  cursor: pointer;
  width: 2rem;
}

i.fa-bell {
  display: inline-block;
  border-radius: 60px;
  box-shadow: 0px 0px 2px #888;
  padding: 0.55em 0.55em;
  background: var(--brand);
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
}
i.fa-starDropdown {
  display: inline-block;
  border-radius: 60px;
  box-shadow: 0px 0px 0px #888;
  padding: 0.45em 0.45em;
  background: #ffffff;
  color: #dbdbdb;
  font-size: 1.5rem;
  cursor: pointer;
}

.btn-logout {
  border-radius: 2rem;
  margin: 0.2rem;
  padding: 0.7rem;
  width: 100%;
  text-align: left;
  background: var(--brand);
  color: #fff;
  box-shadow: 16.971px 16.971px 46px 0px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.angleDown {
  font-size: 1rem !important;
  color: #fff;
  margin-top: 0.1rem;
  margin-left: 0.7rem;
}

.signout {
  position: absolute;
  top: 3px;
  font-size: 1.5rem !important;
  right: -4px;
  width: 2.5rem;
}

.footer-bottom {
  position: fixed;
  right: 0;
  bottom: 0rem;
  left: 0;
  padding: 0.3rem;
  background-color: #e8e8e8;
  z-index: 1030;
}

.dropdown-menu {
  margin: 1rem;
  width: 78rem;
  background-color: rgba(255, 255, 255, 0.5);
  background-color: rgb(255, 255, 255);
  opacity: 1.902;
  box-shadow: 0px 7px 84px 0px rgba(0, 115, 224, 0.19);
  position: absolute;
  z-index: 70;
  border: 0px;
  right: -2rem;
  border-radius: 1rem;
  padding:0px;
}

.logoutContainer {
  margin: 0.5rem 0rem;
  padding: 0.5rem;
  width: auto;
  background-color: rgba(255, 255, 255, 0.5);
  background-color: rgb(255, 255, 255);
  opacity: 0.902;
  box-shadow: 0px 7px 84px 0px rgba(0, 115, 224, 0.19);
  position: absolute;
  z-index: 70;
  border: 0px;
  right: 0rem;
  border-radius: 1rem;
  text-align: right;
}

.addFavContainer {
  margin: -3.2rem 0.5rem;
  padding: 0.5rem;
  width: auto;
  background-color: rgba(255, 255, 255, 0.5);
  background-color: rgb(255, 255, 255);
  opacity: 1;
  box-shadow: 0px 7px 84px 0px rgba(0, 115, 224, 0.19);
  position: absolute;
  z-index: 70;
  border: 0px;
  right: 0rem;
  border-radius: 1rem;
  text-align: right;
  overflow: auto;
}

.addFav:hover > .dropdown-menu {
  display: block;
}

.logoutItem {
  padding: 0.3rem 1rem !important;
  white-space: nowrap !important;
  cursor: pointer;
}

.columnHideItem {
  padding: 0.3rem 1rem !important;
  white-space: nowrap !important;
  text-align: left !important;
  cursor: pointer;
}

.logoutIcons {
  width: 1.2rem;
}

.dropdown-head {
  display: block;
  width: 100%;
  padding: 0.25rem 1rem;
  clear: both;
  color: var(--brand-dark);
  white-space: nowrap;
  border: 0;
  font-weight: 900;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.2rem 1rem;
  clear: both;
  color: #131313;
  font-size: 0.9rem;
  text-align: inherit;
  white-space: normal;
  background-color: transparent;
  border: 0;
  font-weight: 500;
  line-height: 1.2rem;
}

.dropdown-item:hover {
  color: var(--accent-deep);
  background-color: transparent;
}

.top-arrow {
  position: absolute;
  width: 0px;
  top: -1rem;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-top-color: #fefeff;
  right: 1.5rem;
  z-index: 71;
  border-width: 1rem 0.8rem 0;
  -webkit-transition: left 0.5s ease-in-out;
  -moz-transition: left 0.5s ease-in-out;
  -ms-transition: left 0.5s ease-in-out;
  -o-transition: left 0.5s ease-in-out;
  transition: left 0.5s ease-in-out;
  transform: rotateX(180deg);
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 2rem;
  height: 1rem;
  margin-bottom: 0rem;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(229, 229, 229);
  opacity: 0.702;
  box-shadow: inset 0px 3px 2px 0px rgba(0, 0, 0, 0.07);
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1rem;
  width: 1rem;
  left: 0rem;
  bottom: 0rem;
  border-radius: 50%;
  background-color: rgb(255, 255, 255);
  box-shadow: 0.927px 2.853px 5px 0px rgba(1, 1, 1, 0.16);
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider:before {
  position: absolute;
  content: "";
  height: 1rem;
  width: 1rem;
  left: 0rem;
  bottom: 0rem;
  border-radius: 50%;
  background-color: rgb(255, 192, 0);
  box-shadow: 0.927px 2.853px 5px 0px rgba(1, 1, 1, 0.16);
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider:before {
  -webkit-transform: translateX(1rem);
  -ms-transform: translateX(1rem);
  transform: translateX(1rem);
}

/* Rounded sliders */
.slider.round {
  border-radius: 3rem;
}

.slider.round:before {
  border-radius: 50%;
}

.loaderModal {
  position: fixed;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(/static/img/png/transparentbg.png);
  z-index: 9999;
  cursor: pointer;
}

#loading {
  display: none;
}

.isBlurred {
  filter: blur(7px);
}

.overlayModal {
  position: fixed;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  cursor: pointer;
}
.centered {
  position: fixed;
  top: 50%;
  left: 50%;
  /* bring your own prefixes */
  transform: translate(-50%, -50%);
}

.modal-AddOrganisation,
.modal-AddDept {
  width: 60%;
  max-height: 80%;
  background-color: #f8f9fa;
  overflow: auto;
  border-radius: 11px;
  background-color: rgb(255, 255, 255);
  box-shadow: 0px 7px 81px 0px rgba(105, 36, 29, 0.18);
}

.btn-save {
  background-color: var(--brand);
  color: #fff;
  border-radius: 0.6rem;
  font-size: 1rem;
  min-width: 7rem;
}
.btn-save:hover {
  color: #fff;
}

.btn-close {
  background-color: #f4f4f4;
  border-radius: 0.6rem;
  color: #8c8c8c;
  margin: 0 1rem;
  font-size: 1rem;
  min-width: 7rem;
}

.inputField {
  background-color: #fff;
  border: 1px solid lightgrey;
  font-size: 0.9rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 0.6rem;
  width: 100%;
}

input:focus {
  border: 1px solid lightgrey;
  outline: 0;
}
.btn:focus {
  outline: 0;
  box-shadow: 0px 0px 0px 0px rgba(135, 169, 224, 0.3);
}
select:focus {
  outline: 0;
  box-shadow: 0px 0px 0px 0px rgba(135, 169, 224, 0.3);
}
textarea:focus {
  outline: 0;
  box-shadow: 0px 0px 0px 0px rgba(135, 169, 224, 0.3);
}
th:focus {
  border: 1px solid lightgrey;
  outline: 0;
}

.tablesorter-headerRow {
  background-color: #fff;
}

.selected {
  background-color: #fff;
  color: #000;
  background-color: #fff !important;
  border: lightgray;
  background-color: rgb(250, 253, 255);
  box-shadow: 0px 0px 11px 0px rgba(84, 84, 255, 0.31);
  font-weight: bold;
}

.table-hover tbody tr:hover {
  background-color: #fff;
  color: #000;
  background-color: #fff !important;
  border: lightgray;
  background-color: rgb(250, 253, 255);
  box-shadow: 0px 0px 11px 0px rgba(84, 84, 255, 0.31);
  cursor: pointer;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f7f7f7;
}
.table-striped tbody tr:nth-of-type(even) {
  background-color: rgb(255, 255, 255);
}

th.frezedCell {
  z-index: 1;
  position: relative;
  font-weight: 600;
  background-color: #fff;
}

td.frezedCell {
  z-index: 1;
  position: relative;
  font-weight: 600;
  background-color: #f7f7f7;
}
.frezedIcon {
  background-image: url(/static/img/svg/freeze.svg) !important;
  background-repeat: no-repeat;
  background-position: 85%;
}
.unfrezedIcon {
  background-image: url(/static/img/svg/unfreeze.svg);
  background-repeat: no-repeat;
  background-position: 85%;
}

#unfreeze {
  display: block;
  cursor: pointer;
}
#freeze {
  display: none;
  cursor: pointer;
}

.fa-sort {
  color: #d5d5d5;
  font-size: 1rem;
}

#loader {
  display: none;
}
.loader {
  width: 10rem;
}

/* **********ToasterClass******* */
.toastClass {
  font-weight: bolder;
  padding: 0.5rem;
  width: 100%;
  margin: auto;
}

.toaster-success {
  color: #ffffff;
  background-color: #51ac0f;
}

.toaster-danger {
  color: #ffffff;
  background-color: #ff5b28;
}

.toaster-warning {
  color: #ffffff;
  background-color: var(--accent-deep);
}

.toaster-info {
  color: #ffffff;
  background-color: var(--brand-dark);
}

#toastBar {
  display: none;
  z-index: 99999;
}

textarea {
  resize: none;
}

.error_msg {
  font-size: 0.7rem;
  color: var(--accent);
  text-align: right;
  /* margin-bottom: 1rem; */
}

.ord_sum_scroll {
  height: 83%;
}

.fa-star {
  color: #dbdbdb;
  cursor: pointer;
}
.fa-star.checked {
  color: orange;
  cursor: pointer;
}
/* *************Toaster Class*************** */
/* 
.columnSelectorWrapper {
  position: relative;
  margin: 10px 0;
  display: inline-block;
}
.columnSelector,
.hidden {
  display: none;
}
.columnSelectorButton {
  background: var(--brand-soft);
  border: #888 1px solid;
  color: #111;
  border-radius: 5px;
  padding: 5px;
}
#colSelect1:checked + label {
  background: var(--brand);
  border-color: #555;
}
#colSelect1:checked ~ #columnSelector {
  display: block;
}
.columnSelector {
  width: 120px;
  position: absolute;
  top: 30px;
  padding: 10px;
  background: #fff;
  border: var(--rule) 1px solid;
  border-radius: 5px;
}
.columnSelector label {
  display: block;
}
.columnSelector label:nth-child(1) {
  border-bottom: var(--rule) solid 1px;
  margin-bottom: 5px;
}
.columnSelector input {
  margin-right: 5px;
}
.columnSelector .disabled {
  color: #ddd;
}

#popover-target label {
  margin: 0 5px;
  display: block;
}
#popover-target input {
  margin-right: 5px;
}
#popover-target .disabled {
  color: #ddd;
  } */

  /*Now the CSS*/
  * {
    margin: 0;
    padding: 0;
  }

  .tree ul {
    padding-top: 20px;
    position: relative;

    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
  }

  .tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;

    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
  }

  /*We will use ::before and ::after to draw the connectors*/

  .tree li::before,
  .tree li::after {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 1px solid #ccc;
    width: 50%;
    height: 20px;
  }
  .tree li::after {
    right: auto;
    left: 50%;
    border-left: 1px solid #ccc;
  }

/*We need to remove left-right connectors from elements without 
any siblings*/
.tree li:only-child::after,
.tree li:only-child::before {
  display: none;
}

/*Remove space from the top of single children*/
.tree li:only-child {
  padding-top: 0;
}

/*Remove left connector from first child and 
right connector from last child*/
.tree li:first-child::before,
.tree li:last-child::after {
  border: 0 none;
}
/*Adding back the vertical connector to the last nodes*/
.tree li:last-child::before {
  border-right: 1px solid #ccc;
  border-radius: 0 5px 0 0;
  -webkit-border-radius: 0 5px 0 0;
  -moz-border-radius: 0 5px 0 0;
}
.tree li:first-child::after {
  border-radius: 5px 0 0 0;
  -webkit-border-radius: 5px 0 0 0;
  -moz-border-radius: 5px 0 0 0;
}

/*Time to add downward connectors from parents*/
.tree ul ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 1px solid #ccc;
  width: 0;
  height: 20px;
}

.tree li a {
  border: 1px solid #ccc;
  padding: 5px 10px;
  text-decoration: none;
  color: #666;
  font-family: arial, verdana, tahoma;
  font-size: 11px;
  display: inline-block;

  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;

  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
}

/*Time for some hover effects*/
/*We will apply the hover effect the the lineage of the element also*/
.tree li a:hover,
.tree li a:hover + ul li a {
  background: var(--brand-soft);
  color: #000;
  border: 1px solid var(--rule);
}
/*Connector styles on hover*/
.tree li a:hover + ul li::after,
.tree li a:hover + ul li::before,
.tree li a:hover + ul::before,
.tree li a:hover + ul ul::before {
  border-color: var(--rule);
}

/*Thats all. I hope you enjoyed it.
Thanks :)*/

#editPermissionTable {
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

input:disabled,
select:disabled {
  background-color: #f4f4f4 !important;
}

/* ==========================================================================
   Bootstrap 4 brand overrides — recolour BS "primary" (#007bff) to maroon.
   main.css loads AFTER bootstrap.min.css, so these win. Links (a) stay the
   secondary blue on purpose (brand rule: blue only for secondary/links).
   ========================================================================== */
.btn-primary,
.btn-Primary {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-Primary:hover,
.btn-primary:focus, .btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
  color: #fff !important;
}
.btn-outline-primary {
  color: var(--brand) !important;
  border-color: var(--brand) !important;
  background-color: transparent !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary:not(:disabled):not(.disabled):active {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}
.bg-primary { background-color: var(--brand) !important; }
.text-primary { color: var(--brand) !important; }
.badge-primary { background-color: var(--brand) !important; color: #fff !important; }
.border-primary { border-color: var(--brand) !important; }
.list-group-item.active { background-color: var(--brand) !important; border-color: var(--brand) !important; }
.page-item.active .page-link { background-color: var(--brand) !important; border-color: var(--brand) !important; }
.page-link { color: var(--brand); }
.nav-tabs .nav-link.active { color: var(--brand); border-color: var(--rule) var(--rule) #fff; }
.nav-pills .nav-link.active { background-color: var(--brand) !important; }
.dropdown-item.active, .dropdown-item:active { background-color: var(--brand) !important; }
.custom-control-input:checked ~ .custom-control-label::before,
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
}
.form-control:focus,
.custom-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(105, 36, 29, .15);
}
.spinner-border.text-primary, .spinner-grow.text-primary { color: var(--brand) !important; }

/* ==========================================================================
   Crave portal — "advanced look" layer: refined cards, pill toolbar, tables.
   Presentation only; scoped to the shared portal container classes.
   ========================================================================== */

/* --- Cards / panels -------------------------------------------------------- */
.primaryContainer,
.primaryContainerBG,
.nonprimaryContainerBG,
.employeeprimaryContainerBG,
.commonTableBg,
.commonNonOperationalTableBg,
.commonEmployeeTableBg,
.commonCustomerTableBg {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.primaryContainer { padding: 20px 22px; }
.short-details { padding: 22px 22px 8px; }

/* --- Page toolbar: search + actions on one clean row ----------------------- */
.cravePageToolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.craveSearch { position: relative; flex: 1 1 260px; min-width: 180px; }
.craveSearch .craveSearchIcon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; opacity: .55; pointer-events: none;
}
.craveSearchInput {
  width: 100%; height: 44px; padding: 0 16px 0 42px;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--surface); font-size: .92rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.craveSearchInput::placeholder { color: var(--faint); }
.craveSearchInput:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(105, 36, 29, .12);
}
.craveIconBtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft); flex: 0 0 auto; transition: filter .15s;
}
.craveIconBtn:hover { filter: brightness(.96); }
.craveIconBtn img { width: 20px; height: 20px; }
.craveToolbarBtn {
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
}
.craveBtnPlus { font-size: 1.2rem; line-height: 1; font-weight: 400; }

/* --- Tables inside portal cards ------------------------------------------- */
.commonTableBg .table,
.commonNonOperationalTableBg .table,
.commonEmployeeTableBg .table,
.commonCustomerTableBg .table,
.userTable .table { margin-bottom: 0; }

.commonTableBg .table thead th,
.commonNonOperationalTableBg .table thead th,
.commonEmployeeTableBg .table thead th,
.commonCustomerTableBg .table thead th,
.userTable .table thead th {
  border: none !important;
  background: transparent;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .045em;
  color: var(--muted);
  font-weight: 600;
  padding: 15px 16px;
  white-space: nowrap;
}
.commonTableBg .table tbody td,
.commonNonOperationalTableBg .table tbody td,
.commonEmployeeTableBg .table tbody td,
.commonCustomerTableBg .table tbody td,
.userTable .table tbody td {
  border: none !important;
  border-top: 1px solid var(--rule) !important;
  padding: 14px 16px;
  vertical-align: middle;
  color: var(--ink);
  font-size: .875rem;
}
.userTable .table.table-striped tbody tr:nth-of-type(odd),
.commonTableBg .table.table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.userTable .table.table-hover tbody tr:hover,
.commonTableBg .table.table-hover tbody tr:hover,
.commonCustomerTableBg .table.table-hover tbody tr:hover,
.commonEmployeeTableBg .table.table-hover tbody tr:hover { background: var(--brand-soft); }

/* --- Wide tables: contain horizontal scroll instead of overflowing -------- */
.userTable, .tableBox { overflow-x: auto; -webkit-overflow-scrolling: touch; }
