/* Mulish was imported here in twelve weights. The app is set in IBM Plex now
   (loaded once in admin/partials/header.blade.php) and nothing reads Mulish
   any more, so the import was a render-blocking request for a font that never
   reached the screen. The two rules further down that still name "Mulish" by
   hand - the date and time pickers - are re-pointed at var(--body) in
   erp-theme.css. */

/* Every literal left in this block is a *definition*, not a colour that paints:
   erp-theme.css redefines all thirty on :root for both themes (its sections 1
   and 1b), and it loads after this file, so what renders is always the theme's
   value. They stay as the fallback for anything that ever gets style.css
   without the theme - DataTables' print window copies <style> and <link> and
   would otherwise lose 400-odd var() reads at once. Do not paint from them and
   do not add to them: a new colour goes in erp-theme.css as a token. */
:root {
  --primary-color: #001f3b;
  --secondary-color: #296498;
  --bs-blue: #0d6efd;
  --bs-red: #dc3545;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;
  --bs-primary: #0d6efd;
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;

  /* The sixteen `--*-rgb` / `--*-rgba` triplets that used to sit here are gone.
     erp-theme.css re-points every other legacy variable for both themes but
     cannot re-point a bare "220 53 69", so the focus rings, label-button fills
     and glow spinners that read them were painting Bootstrap's light palette
     underneath the theme. Every one of those rules is either deleted or
     tokenised now, and nothing in the app reads a triplet. */

  --header-bg: #f2f6ff;
  --main-bg: #e5eaf2;

  /* Read only by erp-theme.css, which paints .loadscreen/#preloader; the
     literal it used to hold was a white wash, wrong on a dark page. */
  --loader-color: var(--page-fade);
  --white-color: #fff;
}

:root {
  --body-font: "Mulish", sans-serif;
  --heading-font: "Mulish", sans-serif;
  --font-size-base: 16px;
  --font-size-h1: 40px;
  --font-size-h2: 35px;
  --font-size-h3: 30px;
  --font-size-h4: 25px;
  --font-size-h5: 22px;
  --font-size-h6: 16px;
  --menu-size: 12px;
  --line-height-1-4: 1.4;
  --line-height-1-6: 1.6;
  --font-weight-heading: 600;
  --font-weight-300: 300;
  --font-weight-400: 400;
  --font-weight-500: 500;
  --margin-padding: 120px;
  --margin-padding-mobile: 80px;
  --body-style-space: 100px;
  --smooth-width: 4px;
}

/* ------- common core css starts ------- */
* {
  /* text-decoration: none; */
  list-style: none;
}

html {
  /* Use `clip` instead of `hidden`: `hidden` makes <html> a scroll container,
     which triggers a Chrome bug that paints the text caret offset by the page
     scroll amount (displaced/floating caret in inputs). `clip` hides horizontal
     overflow without creating a scroll box, so the caret renders correctly. */
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
  -ms-overflow-style: none;
  /* for Internet Explorer, Edge */
  scrollbar-width: none;
  /* for Firefox */
  overflow-y: scroll;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
address {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

a,
a:hover,
a:focus {
  outline: 0;
  text-decoration: none;
  -webkit-transition: 0.5s linear;
  -moz-transition: 0.5s linear;
  -ms-transition: 0.5s linear;
  -o-transition: 0.5s linear;
  transition: 0.5s linear;
}

.no-padding {
  padding: 0 !important;
}

.display-flex {
  display: flex;
}

.display-inline {
  display: inline-block !important;
  width: auto !important;
}

.e-justify-center {
  justify-content: center;
}

.e-justify-space-between {
  justify-content: space-between;
}

.e-align-center {
  align-items: center;
}

.e-margin-auto {
  margin: auto;
}

.flex-colum {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

h5 {
  font-size: var(--font-size-h5);
}

h6 {
  font-size: var(--font-size-h6);
}

/* i {
  color: var(--primary-color);
} */

.col-lg-1,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-md-1,
.col-md-10,
.col-md-11,
.col-md-12,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-sm-1,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-xs-1,
.col-xs-10,
.col-xs-11,
.col-xs-12,
.col-xs-2,
.col-xs-3,
.col-xs-4,
.col-xs-5,
.col-xs-6,
.col-xs-7,
.col-xs-8,
.col-xs-9 {
  padding: 0 5px;
}

.container-fluid {
  padding: 10px;
}

.row {
  margin-left: -5px;
  margin-right: -5px;
}

.overflow-x {
  overflow-x: auto;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.text-warning {
  color: var(--bs-warning) !important;
}

.text-danger {
  color: var(--bs-danger) !important;
}

.text-light {
  color: var(--bs-light) !important;
}

.text-info {
  color: var(--bs-info) !important;
}

.text-success {
  color: var(--bs-success) !important;
}

.text-dark {
  color: var(--bs-dark) !important;
}

.mr-2 {
  margin-right: 0.5rem !important;
}

.mr-5,
.mx-5 {
  margin-right: 3rem !important;
}

.mr-3,
.mx-3 {
  margin-right: 1rem !important;
}

/* ------- common core css ends ------- */

/* ------- login card common css starts ------- */
.e-bg-gradient-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.e-bg-gradient .e-signin-content {
  min-width: 700px;
  margin: auto;
}

.e-signin-from-container {
  width: 450px;
  margin: auto;
  padding: 1.5rem;
}

.e-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  word-wrap: break-word;
  background-clip: border-box;
  width: 100%;
}

/* ------- login card common css ends ------- */

/* ------- signin page css starts ------- */
.login-second {
  background-color: var(--primary-color);
  border-top-right-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
}

.login-first,
.login-second {
  height: 450px;
  padding: 35px;
}

.login-phone-logo {
  position: absolute;
  left: 4%;
  top: 6%;
  width: 100px;
}

.login-phone-logo img {
  width: 100%;
}

.wrap-green {
  position: absolute;
  left: 0%;
  top: 0%;
  width: 160px;
}

.wrap-green img {
  width: 100%;
}

.wrap-blue {
  position: absolute;
  right: 0%;
  bottom: 0%;
  width: 160px;
}

.wrap-blue img {
  width: 100%;
}

/* ------- signin page css ends ------- */

/* --------- button css starts --------- */
button {
  outline: none;
  border: none;
  background-color: none;
}

/* .e-btn:hover {
  border: none;
} */
/* .e-btn:focus {
  border: none;
} */
/* signin button css starts */
.e-btn-circle {
  border-radius: 50%;
}

.e-btn-bg-white {
  background-color: var(--white-color);
}

/* signin button css ends */
/* --------- button css ends --------- */

/* --------- input css starts --------- */
/*  --------- signin input css starts --------- */
/* login-first part css */
.login-a {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.login-a a {
  color: var(--bs-gray-500);
}

.e-password {
  margin-bottom: 50px;
}

.btn-text-primary {
  color: var(--primary-color);
}

.e-form-input {
  width: 100%;
}

/* `.e-text-area` is on 150 <select> and 93 <input type=file> in these views and
   on six actual textareas, so an unqualified `height: auto !important` here was
   what made every drop-down on a create form 21px tall and every file field
   80px. Scoped to the element the class was written for; the control height for
   everything else comes from erp-theme.css section 5. */
textarea.e-text-area {
  line-height: 1.5;
}

.custom-file:not(:last-child) .custom-file-label,
.input-group>.custom-file:not(:last-child) .custom-file-label:after {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-control-label:before,
.custom-file-label,
.custom-select {
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.custom-file-label,
.custom-file-label:after {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.375rem 0.75rem;
  line-height: 2;
}

.custom-file-label {
  left: 0;
  z-index: 1;
  height: 2.5rem;
  background-color: var(--bs-gray-100);
  border: 1px solid var(--primary-color);
  border-radius: 0.25rem;
}

.custom-file-input:lang(en)~.custom-file-label:after {
  content: "Browse";
}

.custom-file-label:after {
  bottom: 0;
  z-index: 3;
  display: block;
  height: 2.4rem;
  content: "Browse";
  color: var(--bs-gray-100);
  background-color: var(--primary-color);
  border-left: 1px solid var(--primary-color);
  border-radius: 0 0.25rem 0.25rem 0;
}

.e-form-input-square-icon {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.e-form-input-line {
  border-top: transparent;
  border-left: transparent;
  border-right: transparent;
  border-bottom: 2px solid var(--primary-color);
}

/* Removed: .e-form-input-outline :hover and :focus, which painted the field
   white and put a lime-green glow around it on 86 screens. Hover and focus for
   every control are in erp-theme.css. */

.e-form-input-color:hover {
  border-color: var(--secondary-color);
}

.e-form-input-color:focus {
  border-color: var(--secondary-color);
}

/* The Material floating label is gone, and with it the `z-index: 1` that used
   to sit on .e-input-container to give it something to hide behind.

   .e-form-label was absolutely positioned over its own field and parked at
   z-index:-1 while the field was empty, then lifted onto the top border on
   focus or once the field had a value. erp-theme.css section 5 now lays the
   label out as a static block above its control, so every declaration in that
   rig existed only to be overridden - and on any label that is not a direct
   child of .e-input-container it was never overridden at all, which left the
   label invisible behind its own field. */

/* login-first part css */

/* login otp part css */
.e-otp-control {
  -webkit-transition: none;
  transition: none;
  width: 50px;
  height: 45px;
  /* text-align: center; */
  border: none;
  margin-right: 10px;
  outline: none;
  border-radius: 0;
}

.e-otp-control:focus {
  /* color: #3f4254; */
  border-bottom: 3px solid var(--primary-color);
  outline: none;
  border: none;
  outline: none;
  box-shadow: none;
}

.e-otp-control.e-otp-control-solid {
  border-bottom: 3px solid var(--primary-color);
}

.e-otp-control.e-otp-control-solid:active,
.e-otp-control.e-otp-control-solid.active,
.e-otp-control.e-otp-control-solid:focus,
.e-otp-control.e-otp-control-solid.focus {
  border-bottom: 3px solid var(--primary-color);
}

/* login otp part css */

/* --------- signin input css ends --------- */
/* --------- input css ends --------- */

/* header css starts */
.app-admin-wrap {
  width: 100%;
}

.clearfix:after {
  display: block;
  clear: both;
  content: "";
}

.e-header {
  justify-content: space-between;
  display: flex;
  align-items: center;
  width: 100%;
  position: fixed;
}

/* The brand is a normal flex child at the start of the bar. It used to be
   pinned to the centre of the header with position:absolute and a
   translate(-50%,-50%), which is why the mark sat in the middle with the page
   title to the left of it and the account to the right. erp-theme.css section 3
   places it; the rig it had to undo is gone from here. */
.e-header-logo p {
  margin: 0;
}

.e-icon {
  width: 35px;
  height: 35px;
}

.e-icon img {
  width: 100%;
  height: 100%;
}

.db-text-color {
  color: var(--bs-gray-600);
}

/* header css ends */

/* The content column is a fixed, internally scrolling region that the menu and
   the header step aside for - erp-theme.css section 4. The float/width/margin
   arithmetic that used to be here described the old pushed layout. */

/* input field dashboard css starts */
.main-bg {
  background-color: var(--main-bg);
}

.e-input-date-icon {
  margin-left: 10px;
}

.e-input-date-icon i {
  font-size: 2.5rem;
}

.e-input-right-icon {
  position: relative;
  z-index: inherit !important;
}

span.span-right-input-icon {
  position: absolute;
  top: 12px;
  right: 15px;
}

/* input field dashboard css ends */

/* --------------- button css starts ---------------- */
/* ripple effect css starts */
.ripple {
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}

.ripple:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, currentColor 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.ripple:active:after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* ripple effect css ends */

.btn-block {
  display: block;
  width: 100%;
}

.btn-xl {
  padding: 0.75rem 2rem;
  font-size: 1.18rem;
}

/* outline start */
.btn-outline-primary:hover {
  box-shadow: 0 8px 25px -8px var(--bs-primary);
}

/* outline ends */

/* ------------ secondary ------------ */
.btn-outline-secondary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-check:active+.btn-outline-secondary,
.btn-check:checked+.btn-outline-secondary,
.btn-outline-secondary.active,
.btn-outline-secondary.dropdown-toggle.show,
.btn-outline-secondary:active {
  color: var(--on-state);
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-secondary:hover,
.btn-secondary:hover {
  background: var(--secondary-color);
  box-shadow: 0 8px 25px -8px var(--secondary-color);
  border-color: var(--secondary-color);
}

/* ----------- secondary ----------- */

/* ------------ primary ------------- */

/* outline */
.btn-check:active+.btn-outline-primary,
.btn-check:checked+.btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show,
.btn-outline-primary:active {
  color: var(--on-accent);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ------------ primary ------------ */

.btn.btn-rounded,
.btn.rounded {
  border-radius: 40px !important;
}

/* labels css starts */
/* primary */
.btn-label-primary {
  color: var(--primary-color);
  border: none;
}

/* primary */

/* secondary */
.btn-label-secondary {
  color: var(--secondary-color);
  border: none;
}

/* secondary */

/* success */
.btn-label-success {
  color: var(--bs-success);
  border: none;
}

/* success */

/* warning */
.btn-label-warning {
  color: var(--bs-warning);
  border: none;
}

/* warning */

/* danger */
.btn-label-danger {
  color: var(--bs-danger);
  border: none;
}

/* danger */

/* info */
.btn-label-info {
  color: var(--bs-info);
  border: none;
}

/* info */

/* dark */
.btn-label-dark {
  color: var(--bs-dark);
  border: none;
}

/* dark */

/* light */
.btn-label-light {
  color: var(--bs-light);
  border: none;
}

/* light */
/* labels css ends */

/* ----------- default btn ----------- */
/* primary */
.btn-outline-primary:hover,
.btn-primary:hover {
  background: var(--primary-color);
  box-shadow: 0 8px 25px -8px var(--primary-color);
  border-color: var(--primary-color);
}

.btn-check:active+.btn-primary,
.btn-check:checked+.btn-primary,
.btn-primary.active,
.btn-primary:active,
.show>.btn-primary.dropdown-toggle {
  color: var(--on-accent);
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

/* primary */

/* secondary */
.btn-outline-secondary:hover,
.btn-secondary:hover {
  background: var(--secondary-color);
  box-shadow: 0 8px 25px -8px var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-check:active+.btn-secondary,
.btn-check:checked+.btn-secondary,
.btn-secondary.active,
.btn-secondary:active,
.show>.btn-secondary.dropdown-toggle {
  color: var(--on-state);
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

/* secondary */

/* success */
.btn-outline-success:hover,
.btn-success:hover {
  background: var(--bs-success);
  box-shadow: 0 8px 25px -8px var(--bs-success);
  border-color: var(--bs-success);
}

.btn-check:active+.btn-success,
.btn-check:checked+.btn-success,
.btn-success.active,
.btn-success:active,
.show>.btn-success.dropdown-toggle {
  color: var(--on-state);
  background-color: var(--bs-success) !important;
  border-color: var(--bs-success) !important;
}

/* success */

/* danger */
.btn-outline-danger:hover,
.btn-danger:hover {
  background: var(--bs-danger);
  box-shadow: 0 8px 25px -8px var(--bs-danger);
  border-color: var(--bs-danger);
}

.btn-check:active+.btn-danger,
.btn-check:checked+.btn-danger,
.btn-danger.active,
.btn-danger:active,
.show>.btn-danger.dropdown-toggle {
  color: var(--on-state);
  background-color: var(--bs-danger) !important;
  border-color: var(--bs-danger) !important;
}

/* danger */

/* warning */
.btn-outline-warning:hover,
.btn-warning:hover {
  background: var(--bs-warning);
  box-shadow: 0 8px 25px -8px var(--bs-warning);
  border-color: var(--bs-warning);
}

.btn-check:active+.btn-warning,
.btn-check:checked+.btn-warning,
.btn-warning.active,
.btn-warning:active,
.show>.btn-warning.dropdown-toggle {
  background-color: var(--bs-warning) !important;
  border-color: var(--bs-warning) !important;
}

/* warning */

/* info */
.btn-outline-info:hover,
.btn-info:hover {
  background: var(--bs-info);
  box-shadow: 0 8px 25px -8px var(--bs-info);
  border-color: var(--bs-info);
}

.btn-check:active+.btn-info,
.btn-check:checked+.btn-info,
.btn-info.active,
.btn-info:active,
.show>.btn-info.dropdown-toggle {
  background-color: var(--bs-info) !important;
  border-color: var(--bs-info) !important;
}

/* info */

/* light */
.btn-outline-light:hover,
.btn-light:hover {
  background: var(--bs-light);
  box-shadow: 0 8px 25px -8px var(--bs-light);
  border-color: var(--bs-light);
}

.btn-check:focus+.btn-light,
.btn-light:focus {
  background-color: var(--bs-light);
  border-color: var(--bs-light);
}

.btn-check:active+.btn-light,
.btn-check:checked+.btn-light,
.btn-light.active,
.btn-light:active,
.show>.btn-light.dropdown-toggle {
  background-color: var(--bs-light) !important;
  border-color: var(--bs-light) !important;
}

/* light */

/* dark */
.btn-outline-dark:hover,
.btn-dark:hover {
  background: var(--bs-dark);
  box-shadow: 0 8px 25px -8px var(--bs-dark);
  border-color: var(--bs-dark);
}

.btn-check:focus+.btn-dark,
.btn-dark:focus {
  background-color: var(--bs-dark);
  border-color: var(--bs-dark);
}

.btn-check:active+.btn-dark,
.btn-check:checked+.btn-dark,
.btn-dark.active,
.btn-dark:active,
.show>.btn-dark.dropdown-toggle {
  background-color: var(--bs-dark) !important;
  border-color: var(--bs-dark) !important;
}

/* dark */
/* ----------- default btn ----------- */

/* ------------ raised ------------ */
.btn-raised {
  color: var(--on-accent);
}

/* primary */
.btn-raised-primary {
  background: var(--primary-color);
}

/* primary */

/* --------- raised ---------- */

/* ---------- checkbox css starts ---------- */
.checkbox,
.radio {
  display: block;
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.checkbox input,
.radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="checkbox" i] {
  background-color: initial;
  cursor: default;
  appearance: auto;
  box-sizing: border-box;
  margin: 3px 3px 3px 4px;
  padding: initial;
  border: initial;
}

.checkbox input:checked~.checkmark:after,
.radio input:checked~.checkmark:after {
  display: block;
}

.checkbox .checkmark:after,
.radio .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 0;
  top: 0;
  right: 0;
  width: 4px;
  bottom: 0;
  margin: auto;
  height: 8px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.checkbox .checkmark,
.radio .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  border-radius: 4px;
  background-color: var(--surface-2);
  border: 1px solid var(--line-strong);
}

.checkbox input:checked~.checkmark,
.radio input:checked~.checkmark {
  background-color: var(--primary-color);
}

/* primary checkbox */
.checkbox-primary input:checked~.checkmark {
  background-color: var(--primary-color) !important;
}

/* primary checkbox */

/* secondary checkbox */
.checkbox-secondary input:checked~.checkmark {
  background-color: var(--secondary-color) !important;
}

/* secondary checkbox */

/* success checkbox */
.checkbox-success input:checked~.checkmark {
  background-color: var(--bs-success) !important;
}

/* success checkbox */

/* warning checkbox */
.checkbox-warning input:checked~.checkmark {
  background-color: var(--bs-warning) !important;
}

/* warning checkbox */

/* danger checkbox */
.checkbox-danger input:checked~.checkmark {
  background-color: var(--bs-danger) !important;
}

/* danger checkbox */

/* light checkbox */
.checkbox-light input:checked~.checkmark {
  background-color: var(--bs-light) !important;
}

/* light checkbox */

/* info checkbox */
.checkbox-info input:checked~.checkmark {
  background-color: var(--bs-info) !important;
}

/* info checkbox */

/* dark checkbox */
.checkbox-dark input:checked~.checkmark {
  background-color: var(--bs-dark) !important;
}

/* dark checkbox */

/* ---------- checkbox css ends ---------- */

/* outline checkbox starts */
.checkbox-outline:hover input~.checkmark {
  background-color: var(--surface-alt);
}

.checkbox-outline input:checked~.checkmark {
  background-color: var(--surface-2) !important;
}

/* primary outline checkbox */
.checkbox-outline-primary .checkmark {
  background: var(--surface-2);
  border: 1px solid var(--primary-color);
}

.checkbox-outline-primary .checkmark:after {
  border-color: var(--primary-color);
}

/* primary outline checkbox */

/* outline checkbox ends */

/* radio button css starts */
.checkbox,
.radio {
  display: block;
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.checkbox input,
.radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* radio button css ends */

/* switch button css starts */
.switch {
  position: relative;
  display: inline-block;
  padding-left: 50px;
  height: 16px;
}

.switch span:not(.slider) {
  position: relative;
  top: -2px;
  cursor: pointer;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch input:checked+.slider {
  background-color: var(--primary-color);
}

.switch input:checked+.slider:before {
  -webkit-transform: translateX(20px);
  transform: translateX(20px);
}

/* primary switch */
.switch-primary input:checked+.slider {
  background-color: var(--primary-color);
}

/* primary switch */

/* secondary switch */
.switch-secondary input:checked+.slider {
  background-color: var(--secondary-color);
}

/* secondary switch */

/* success switch */
.switch-success input:checked+.slider {
  background-color: var(--bs-success);
}

/* success switch */

/* warning switch */
.switch-warning input:checked+.slider {
  background-color: var(--bs-warning);
}

/* warning switch */

/* danger switch */
.switch-danger input:checked+.slider {
  background-color: var(--bs-danger);
}

/* danger switch */

/* light switch */
.switch-light input:checked+.slider {
  background-color: var(--bs-light);
}

/* light switch */

/* info switch */
.switch-info input:checked+.slider {
  background-color: var(--bs-info);
}

/* info switch */

/* dark switch */
.switch-dark input:checked+.slider {
  background-color: var(--bs-dark);
}

/* dark switch */

/* switch button css ends */

/* icon button css starts */
.btn-icon .icon,
.btn-icon [class^="i-"] {
  vertical-align: middle;
  margin: 0 2px;
  -webkit-font-smoothing: subpixel-antialiased;
}

/* icon button css ends */

/* spinner button css starts */
.spinner {
  display: inline-block;
  font-size: 10px;
  margin: auto;
  text-indent: -9999em;
  width: 4em;
  height: 4em;
  border-radius: 50%;
  position: relative;
  -webkit-animation: spin 1.4s linear infinite;
  animation: spin 1.4s linear infinite;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.spinner:after,
.spinner:before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
}

.spinner:before {
  width: 50%;
  height: 50%;
  border-radius: 100% 0 0 0;
}

.spinner:after {
  background: var(--surface);
  width: 75%;
  height: 75%;
  border-radius: 50%;
  margin: auto;
  bottom: 0;
  right: 0;
}

/* primary */
.spinner-primary {
  background: var(--primary-color);
  background: linear-gradient(90deg,
      var(--primary-color) 10%,
      transparent 42%);
}

.spinner-primary:before {
  background: var(--primary-color);
}

/* primary */

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(1turn);
    transform: rotate(1turn);
  }
}

/* spinner button css ends */

/* spinner bubble circle css starts */
/* primary */
.spinner-bubble-primary {
  color: var(--primary-color);
}

/* primary */

/* secondary */
.spinner-bubble-secondary {
  color: var(--secondary-color);
}

/* secondary */

/* success */
.spinner-bubble-success {
  color: var(--bs-success);
}

/* success */

/* warning */
.spinner-bubble-warning {
  color: var(--bs-warning);
}

/* warning */

/* danger */
.spinner-bubble-danger {
  color: var(--bs-danger);
}

/* danger */

/* info */
.spinner-bubble-info {
  color: var(--bs-info);
}

/* info */

/* light */
.spinner-bubble-light {
  color: var(--bs-light);
}

/* light */

/* dark */
.spinner-bubble-dark {
  color: var(--bs-dark);
}

/* dark */

.spinner-bubble {
  display: inline-block;
  font-size: 8px;
  margin: 30px auto;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  position: relative;
  text-indent: -9999em;
  -webkit-animation: bubble-circle 1.3s linear infinite;
  animation: bubble-circle 1.3s linear infinite;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@keyframes bubble-circle {

  0%,
  100% {
    box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0, 3em 0 0 -1em, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0;
  }

  12.5% {
    box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }

  25% {
    box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0,
      0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }

  37.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 0, 2em 2em 0 0.2em,
      0 3em 0 0, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }

  50% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0,
      0 3em 0 0.2em, -2em 2em 0 0, -3em 0 0 -1em, -2em -2em 0 -1em;
  }

  62.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em,
      0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
  }

  75% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 0, -3em 0 0 0.2em, -2em -2em 0 0;
  }

  87.5% {
    box-shadow: 0 -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 0, -3em 0 0 0, -2em -2em 0 0.2em;
  }
}

/* spinner bubble circle css ends */

/* spinner bubble css starts */
/* primary */
.loader-bubble-primary {
  color: var(--primary-color);
}

/* primary */

/* secondary */
.loader-bubble-secondary {
  color: var(--secondary-color);
}

/* secondary */

/* success */
.loader-bubble-success {
  color: var(--bs-success);
}

/* success */

/* warning */
.loader-bubble-warning {
  color: var(--bs-warning);
}

/* warning */

/* danger */
.loader-bubble-danger {
  color: var(--bs-danger);
}

/* danger */

/* info */
.loader-bubble-info {
  color: var(--bs-info);
}

/* info */

/* light */
.loader-bubble-light {
  color: var(--bs-light);
}

/* light */

/* dark */
.loader-bubble-dark {
  color: var(--bs-dark);
}

/* dark */

.loader-bubble {
  display: inline-block;
  font-size: 6px;
  margin: auto;
  position: relative;
  text-indent: -9999em;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

.loader-bubble,
.loader-bubble:after,
.loader-bubble:before {
  border-radius: 50%;
  width: 2em;
  height: 2em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: bubble-horz 1.8s ease-in-out infinite;
  animation: bubble-horz 1.8s ease-in-out infinite;
}

.loader-bubble:after,
.loader-bubble:before {
  content: "";
  position: absolute;
  top: 0;
}

.loader-bubble:before {
  left: -3.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.loader-bubble:after {
  left: 3.5em;
}

@keyframes bubble-horz {

  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }

  40% {
    box-shadow: 0 2.5em 0 0;
  }
}

/* spinner bubble css ends */

/* ----------------- button css ends ----------------- */

/* Removed: `.row > * { padding: 0 5px !important }`. A 5px column gutter, with
   an !important, on every grid row in the application - which is why nothing
   ever lined up with anything and why --bs-gutter-x had no visible effect. The
   gutter is set once, in erp-theme.css, on .row. */

.e-otp-container {
  display: flex;
  justify-content: flex-start;
}

#partitioned {
  padding-left: 25px;
  letter-spacing: 55px;
  border: 0;
  background-position: bottom;
  background-size: 65px 2px;
  background-repeat: repeat-x;
  background-position-x: 50px;
  width: 410px;
  min-width: 410px;
}

#divInner {
  left: 0;
  position: sticky;
}

#divOuter {
  width: 390px;
  overflow: hidden;
}

/* side menu */
.layout-sidebar-large .sidebar-left.open {
  left: 0px;
}

.layout-sidebar-large .sidebar-left {
  left: -140px;
  z-index: 90;
  transition: left 0.24s ease-in-out;
}

.layout-sidebar-large .sidebar-left,
.layout-sidebar-large .sidebar-left-secondary {
  position: fixed;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  box-shadow: var(--e1);
}

/* .ps {
  overflow: hidden !important;
  overflow-anchor: none;
  -ms-overflow-style: none;
  touch-action: auto;
  -ms-touch-action: auto;
} */
.scroll-style-3::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 3px var(--bs-gray-400);
  background-color: var(--surface-2);
}

.scroll-style-3::-webkit-scrollbar {
  width: 3px;
  background-color: var(--surface-2);
}

.scroll-style-3::-webkit-scrollbar-thumb {
  background-color: var(--bs-gray-400);
}

.layout-sidebar-large .sidebar-left .navigation-left {
  list-style: none;
  text-align: center;
  width: 120px;
  height: 100%;
  margin: 0;
  padding: 0;
}

.layout-sidebar-large .sidebar-left .navigation-left .nav-item.active,
.layout-sidebar-large .sidebar-left .navigation-left .nav-item.active .nav-item-hold {
  color: var(--primary-color);
}

.nav-item-hold i {
  font-size: 1.5rem;
}

.nav-item:hover .nav-item-hold>i {
  color: var(--secondary-color);
}

.nav-item:hover .nav-item-hold span {
  color: var(--secondary-color);
}

.layout-sidebar-large .sidebar-left-secondary .childNav li.nav-item:hover a {
  background-color: var(--bs-gray-200);
}

.layout-sidebar-large .sidebar-left .navigation-left .nav-item {
  position: relative;
  display: block;
  width: 100%;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}

.layout-sidebar-large .sidebar-left .navigation-left .nav-item .nav-item-hold {
  display: block;
  width: 100%;
  padding: 10px 0;
  color: var(--ink-2);
}

.layout-sidebar-large .sidebar-left .navigation-left .nav-item .nav-item-hold .feather,
.layout-sidebar-large .sidebar-left .navigation-left .nav-item .nav-item-hold .nav-icon {
  font-size: 32px;
  height: 32px;
  width: 32px;
  display: block;
  margin: 0 auto 6px;
}

.layout-sidebar-large .sidebar-left .navigation-left .nav-item .nav-item-hold .nav-text {
  font-size: 13px;
  display: block;
  font-weight: 400;
}

.layout-sidebar-large .sidebar-left .navigation-left .nav-item.active .triangle {
  position: absolute;
  width: 30px;
  height: 35px;
  left: -18%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  border-radius: 50%;
  /* border-color: transparent transparent #639; */
}

.layout-sidebar-large .sidebar-left-secondary.open {
  left: 120px;
}

.layout-sidebar-large .sidebar-left-secondary {
  left: -240px;
  z-index: 89;
  width: 220px;
  padding: 0.75rem 0;
  transition: left 0.24s ease-in-out;
  background: var(--surface);
}

.layout-sidebar-large .sidebar-left-secondary>.childNav {
  margin: 0;
}

.layout-sidebar-large .sidebar-left-secondary .childNav {
  list-style: none;
  padding: 0;
  display: none;
}

.layout-sidebar-large .sidebar-left-secondary .childNav li.nav-item {
  display: block;
}

.layout-sidebar-large .sidebar-left-secondary .childNav li.nav-item a {
  color: var(--primary-color);
  text-transform: capitalize;
  display: flex;
  align-items: center;
  font-size: 13px;
  cursor: pointer;
  padding: 12px 24px;
  transition: all 0.15s ease-in;
}

.layout-sidebar-large .sidebar-left-secondary .childNav li.nav-item a .nav-icon {
  font-size: 18px;
  margin-right: 8px;
  vertical-align: middle;
  color: var(--primary-color);
}

[class*=" i-"],
[class^="i-"] {
  font-family: iconsmind !important;
  speak: none;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.layout-sidebar-large .sidebar-overlay.open {
  display: block;
}

.layout-sidebar-large .sidebar-overlay {
  display: none;
  position: fixed;
  width: calc(100% - 340px);
  height: calc(100vh - 80px);
  bottom: 0;
  right: 0;
  background: transparent;
  z-index: 101;
  cursor: w-resize;
}

.sidebar-overlay {
  display: none;
}

.menu-toggle,
.layout-sidebar-large .menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

/* ripple spinners css starts */
.spinner-glow {
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  margin: 4px auto;
  border: 2px solid transparent;
  -webkit-animation: glow 1s ease infinite;
  animation: glow 1s ease infinite;
}

.plus i {
  transform: rotate(0deg);
  transition: all 0.3s ease;
}

/* ripple spinners css ends */

/* plus button css starts */

/* Only the container's own transition is left here.

   erp-ux.js lifts the link out of .plus-container into .page-actions - where it
   becomes the screen's labelled primary action - and then removes the container
   from the DOM; until that runs erp-theme.css holds .plus-container at
   `visibility: hidden`. The 50px circle, its eight colour variants and their
   pulse keyframes therefore styled something no screen ever paints. The button
   as it actually renders is erp-theme.css section 5. */
.plus-container {
  transition: all 0.3s ease-in-out;
}

/* plus button css ends */
/* icon button css starts */

/* .btn-icon i {
  color: var(--white-color);
} */
/* icon button css ends */

/* ========================================================
   Select2 Integration with ERP Theme & Floating Labels
   ======================================================== */
.e-input-container .select2-container {
  width: 100% !important;
  display: block !important;
}

/* Removed: ~100 lines that re-skinned select2 as a white, light-mode widget -
   a #fff dropdown, #1e293b option text, a #f8fafc search bar, and a 2px accent
   border with a .25rem radius on the closed box. Every declaration carried an
   !important, so none of it could be themed from erp-theme.css; a dark ERP had
   a white panel drop out of every dropdown. select2 is styled in one place now,
   in erp-theme.css section 6. The z-index: 999999 went with it - the stacking
   scale runs to 1200 and select2 sits at --z-dropdown, above Bootstrap's
   modal. */

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: var(--danger);
  z-index: 2;
  position: relative;
}

/* table css starts */
.table-footer {
  display: flex;
  justify-content: space-between;
}

.table-responsive>.table-bordered {
  border: 0;
}

.table-bordered thead td,
.table-bordered thead th {
  border-bottom-width: 2px;
}

.table-borderless tbody+tbody,
.table-borderless td,
.table-borderless th,
.table-borderless thead th {
  border: 0;
}

.table-sm td,
.table-sm th {
  padding: 0.3rem;
}

/* table css ends */

/* text-decoration starts */
.text-underline {
  text-decoration: underline;
}

/* text-decoration ends */

.btn_round {
  width: 35px;
  height: 35px;
  display: inline-block;
  border-radius: 50%;
  text-align: center;
  line-height: 35px;
  margin-left: 10px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
}

.btn_round:hover {
  color: var(--accent);
  background: var(--accent-weak);
  border: 1px solid var(--accent);
}

.btn_content_outer {
  display: inline-block;
  width: 85%;
}

.add_group_btn {
  display: flex;
}

.add_group_btn i {
  font-size: 32px;
  display: inline-block;
  margin-right: 10px;
}

.add_group_btn span {
  margin-top: 8px;
}

.add_group_btn,
.clone_sub_task {
  cursor: pointer;
}

.sub_task_append_area .custom_square {
  cursor: move;
}

#field {
  margin-bottom: 20px;
}

/* card */
.card-icon i {
  font-size: var(--font-size-h2);
  /* margin: 0 20px; */
}

.card-count {
  font-weight: 600;
}

.card-count-text {
  font-weight: 600;
  font-size: 0.8rem;
}

.input-group-text {
  height: 2.5rem;
}

.date a {
  color: var(--secondary-color);
}

.bdpw-clock-digit.cursor {
  color: var(--secondary-color);
}

.datepicker table {
  font-family: "Mulish", sans-serif !important;
}

.timepicker table {
  font-family: "Mulish", sans-serif !important;
}

/* datepicker container css */
.datepicker-container {
  cursor: pointer;
  padding: 5px 10px;
  border: 2px solid var(--primary-color);
  display: inline-block;
}

td.number-text-right {
  text-align: right;
}

.no-events {
  pointer-events: none !important;
}

.modal-backdrop {
  width: 100% !important;
  height: 100% !important;
}

/* ==========================================================================
   Chat message bubbles, avatars and the header chat icon. Ported from ERP-V2
   on 24 Aug 2026, alongside the chat module below.

   These carry no chat- prefix - .message, .sent, .received, .timestamp,
   .user-circle, .comment-menu-* - which is why they were missed on the first
   pass: the controller writes them into the thread HTML rather than the blade,
   so a sweep of the markup never saw them. Without them a conversation renders
   as flat left-aligned text with no bubble, no sent/received side, and the
   contact avatars come out as bare letters.
   ========================================================================== */
.message {
  display: flex;
  margin-bottom: 15px;
}

.message-content {
  display: inline-block;
  padding: 10px;
  border-radius: 10px;
  box-shadow: var(--e1);
  background-color: var(--surface);
}

.content {
  margin: 0;
}

.timestamp {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 5px;
}

.received {
  align-self: flex-start;
  padding-left: 8px;
}

.sent {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 8px;
}

.received .message-content {
  text-align: left;
  background-color: var(--surface-2);
}

.sent .message-content {
  text-align: right;
  background-color: var(--accent-weak);
}

.no-border {
  border: none !important;
}

/* updated css 11th june 2023 */
.user-circle {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-accent);
}

/* The chat button in the header.

   This used to draw the button itself - a full-height, auto-width, 10px-padded column with
   12px of its own margin, sized for the pre-theme header. The header is now a row of 34px
   circles that .e-header .e-icon in erp-theme.css owns, and those declarations fought it:
   the chat button came out taller and wider than the bell beside it, and carried a gap
   nothing else had. All that is left here is what the theme does not say - that it is a
   button, that it takes a pointer, and that the unread badge positions against it. */
.comment-menu-toggle {
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.comment-menu-notification {
  position: absolute;
  width: 50%;
  height: 50%;
  padding: 1px 5px 5px 5px;
  border-radius: 50%;
  background-color: var(--danger);
  font-size: var(--t-xs);
  display: flex;
  justify-content: center;
  align-items: center;
  top: -2px;
  right: -4px;
  color: var(--on-state);
}

.comment-menu-toggle {
  position: relative;
}

/* updated css 11th june 2023 */

/* updated css 15th june 2023 */
.user-online {
  color: var(--bs-gray);
  font-size: 0.6rem;
  text-align: left;
}

/* ==========================================================================
   Chat module. Ported from ERP-V2 on 24 Aug 2026 - keep the two in step.

   Covers the slide-in panel, the contact list and its Unread filter, the
   conversation thread and attachments, the per-conversation media browser, and
   the hourly unread reminder pop-up. Phone behaviour lives in media.css.
   ========================================================================== */
.chat-panel-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--scrim);
  /* On the stacking scale, not above it. This was 10000, from before there was a
     scale - which put the chat over the toasts, the command palette and the page
     progress bar, and over a Bootstrap modal that had been opened on top of it.
     The panel is a scrim with a drawer over it, which is what the off-canvas
     navigation is, so it takes the same two steps: over the fixed header, under
     dropdowns and anything modal. */
  z-index: var(--z-scrim);
}

.chat-panel-backdrop.open {
  display: block;
}

.chat-panel {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: var(--white-color);
  box-shadow: var(--e3);
  z-index: var(--z-nav);
}

.chat-panel.open {
  display: flex;
}

.chat-panel-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--bs-gray-200);
}

.chat-panel-header #chat_panel_close_btn {
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--bs-gray);
}

.chatpage-wrap {
  flex: 1;
  display: flex;
  min-height: 0;
  background: var(--white-color);
  overflow: hidden;
}

.chatpage-sidebar {
  width: 320px;
  min-width: 320px;
  border-right: 1px solid var(--bs-gray-200);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
}

.chatpage-mobile-back-btn {
  display: none;
  cursor: pointer;
  margin-right: 12px;
  font-size: 1.1rem;
}

.chatpage-search {
  padding: 15px 15px 15px 15px;
}

.chatpage-search input {
  background-color: var(--bs-gray-200);
  border-radius: 20px;
  padding: 8px 15px;
}

.chatpage-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.chatpage-contact {
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.chatpage-contact > div:first-child {
  min-width: 0;
  flex: 1;
}

.chatpage-contact:hover {
  background-color: var(--bs-gray-200);
}

.chatpage-contact.active {
  background-color: var(--success-bg);
  border-left: 4px solid var(--success);
  padding-left: calc(1rem - 4px);
}

.chatpage-contact-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
}

.chatpage-contact-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatpage-contact-preview {
  font-size: 0.75rem;
  color: var(--bs-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatpage-contact-time {
  font-size: 0.7rem;
  color: var(--bs-gray);
}

.chatpage-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  /* Positioning context for .chatpage-media-panel, which covers the thread. */
  position: relative;
}

.chatpage-main-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--bs-gray-200);
}

.chatpage-empty-state-title {
  color: var(--bs-gray);
}

.chatpage-thread {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: var(--surface-2);
}

.chatpage-empty-state {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bs-gray);
}

.chatpage-empty-state i {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.chatpage-attach-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background-color: var(--bs-gray-200);
  font-size: 0.85rem;
}

.chatpage-input-bar {
  padding: 15px 20px;
  border-top: 1px solid var(--bs-gray-200);
}

.chatpage-input-bar input[type="text"] {
  flex: 1;
  background-color: var(--bs-gray-200);
  border-radius: 20px;
  padding: 10px 15px;
  margin: 0 10px;
}

.chatpage-attach-btn {
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--bs-gray);
}

.chat-attachment-image,
.chat-attachment-video {
  position: relative;
  display: inline-block;
  margin-bottom: 6px;
}

.chat-attachment-image img,
.chat-attachment-video video {
  max-width: 260px;
  max-height: 260px;
  border-radius: 8px;
  display: block;
}

.chat-attachment-download-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--scrim);
  color: var(--on-accent);
  font-size: 0.85rem;
}

.chat-attachment-download-btn:hover {
  background-color: var(--accent-deep);
  /* --white-color is remapped to the raised surface, which is near-black in
     the dark theme; what belongs on a scrim over a photo is --on-accent. */
  color: var(--on-accent);
}

.chat-attachment-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bs-gray-200);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  color: inherit;
  text-decoration: none;
  max-width: 260px;
}

.chat-attachment-doc-icon {
  font-size: 1.3rem;
}

.chat-attachment-doc-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
}

/* ----- chat: unread filter under the contact search ----- */
.chatpage-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 15px 14px 15px;
  border-bottom: 1px solid var(--bs-gray-200);
}

.chatpage-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--bs-gray-200);
  border-radius: 20px;
  background-color: var(--white-color);
  color: var(--bs-gray);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.chatpage-filter-btn:hover {
  background-color: var(--bs-gray-200);
  color: var(--bs-gray-700);
}

.chatpage-filter-btn.active {
  background-color: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.chatpage-filter-btn:focus {
  outline: none;
  box-shadow: var(--ring);
}

.chatpage-filter-count {
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 10px;
  background-color: var(--danger);
  color: var(--on-state);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.chatpage-contact-empty {
  padding: 25px 15px;
  color: var(--bs-gray);
  font-size: 0.85rem;
  text-align: center;
  list-style: none;
}

/* ----- chat: media browser for one conversation ----- */
.chatpage-media-btn {
  border: none;
  background: transparent;
  color: var(--bs-gray);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
}

.chatpage-media-btn:hover {
  color: var(--secondary-color);
}

/* Covers the thread instead of replacing it, so closing it leaves the conversation - and
   its scroll position - exactly as it was. .chatpage-main is the positioning context. */
.chatpage-media-panel {
  position: absolute;
  /* Longhand rather than the inset shorthand, which older browsers ignore outright - and an
     ignored inset leaves the panel at auto size, dropping it into the flow below the thread
     instead of over it. */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  background: var(--white-color);
}

.chatpage-media-panel.open {
  display: flex;
}

.chatpage-media-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--bs-gray-200);
}

.chatpage-media-back {
  cursor: pointer;
  margin-right: 12px;
  font-size: 1.1rem;
}

.chatpage-media-search {
  padding: 12px 15px;
}

.chatpage-media-search input {
  flex: 1;
  background-color: var(--bs-gray-200);
  border-radius: 20px;
  padding: 8px 15px;
}

.chatpage-media-tabs {
  display: flex;
  gap: 6px;
  padding: 0 15px 12px 15px;
  border-bottom: 1px solid var(--bs-gray-200);
  overflow-x: auto;
}

.chatpage-media-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--bs-gray-200);
  border-radius: 20px;
  background-color: var(--white-color);
  color: var(--bs-gray);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.chatpage-media-tab:hover {
  background-color: var(--bs-gray-200);
}

.chatpage-media-tab.active {
  background-color: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.chatpage-media-tab:focus {
  outline: none;
  box-shadow: var(--ring);
}

/* The count sits in its own soft chip so a tab reads as "Photos" first and a number second. */
.chatpage-media-tab-count {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background-color: var(--surface-alt);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
}

.chatpage-media-tab.active .chatpage-media-tab-count {
  background-color: var(--success-bg);
}

.chatpage-media-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 15px 20px 15px;
}

.chatpage-media-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.chatpage-media-item:hover {
  background-color: var(--bs-gray-200);
  color: inherit;
}

.chatpage-media-thumb {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--bs-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatpage-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chatpage-media-icon {
  font-size: 1.2rem;
  color: var(--bs-gray);
}

.chatpage-media-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.chatpage-media-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatpage-media-sub {
  font-size: 0.72rem;
  color: var(--bs-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Marks a file that is stored once and pointed at from more than one message. */
.chatpage-media-linked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  background-color: var(--success-bg);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.chatpage-media-empty {
  padding: 30px 10px;
  color: var(--bs-gray);
  font-size: 0.85rem;
  text-align: center;
}

/* ----- chat: the hourly unread reminder pop-up ----- */
.chat-reminder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  text-align: left;
}

.chat-reminder-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--bs-gray-200);
}

.chat-reminder-list li:last-child {
  border-bottom: none;
}

.chat-reminder-who {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-reminder-n {
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: var(--danger);
  color: var(--on-state);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}
/* ----- notification opt-in bar (partials/notify_optin.blade.php) ----- */
.notify-optin-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 0.85rem;
}

.notify-optin-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.notify-optin-text {
  flex: 1;
  min-width: 0;
}

.notify-optin-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  border: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.notify-optin-close {
  flex-shrink: 0;
  padding: 4px 8px;
  border: none;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

