:root {
  --background: #0a0705;
  --background-nav: #130f0ceb;
  --card: #130f0ceb;
  --input: #18130f;
  --input_alt: #18130f6b;
  --hover: #261e18;
  --border: rgba(255, 255, 255, 0.06);
  --text: #f5f0eb;
  --muted: #a8a8a8;
  --primary: #ff6b00;
  --primary-hover: #e77f34;
  --primary-bg: rgba(255, 106, 0, 0.1);
  --primary-dark: #612901;
  --success: #63ff8a;
  --success-bg: #0e1f1a;
  --warning: #fbbf24;
  --warning-bg: #221b0f;
  --info: #ff790f;
  --info-bg: #2d1b0e;
  --danger: #f43f3f;
  --danger-bg: #221013;
  --surface-soft: rgba(255, 255, 255, 0.02);
  --surface-subtle: rgba(255, 255, 255, 0.012);
  --surface-muted: rgba(255, 255, 255, 0.01);
  --surface-track: rgba(255, 255, 255, 0.06);
  --grid-line: rgba(255, 255, 255, 0.04);
  --overlay: rgba(0, 0, 0, 0.78);
  --error-text: #ffaaa3;
  --breadcrumb: #d9e0eb;
  --breadcrumb-separator: #7d8999;
  --breadcrumb-current: #9ba7b8;
  --autofill-text: #fff;
  --json-key: #fbbf24;
  --json-string: #86efac;
  --json-number: #7dd3fc;
  --json-boolean: #c4b5fd;
  --json-null: #fca5a5;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] {
  --background: #f4f1ed;
  --background-nav: #fffdf9;
  --card: #fffdf9;
  --input: #ffffff;
  --input_alt: #f3eee8;
  --hover: #eee7df;
  --border: rgba(48, 39, 31, 0.13);
  --text: #28221d;
  --muted: #71685f;
  --primary: #d85b00;
  --primary-hover: #b94b00;
  --primary-bg: rgba(216, 91, 0, 0.1);
  --primary-dark: #8e3b00;
  --success: #168044;
  --success-bg: #e5f5eb;
  --warning: #a86b00;
  --warning-bg: #fff3d6;
  --info: #c85d00;
  --info-bg: #fff0df;
  --danger: #c93636;
  --danger-bg: #fbe8e8;
  --surface-soft: rgba(48, 39, 31, 0.035);
  --surface-subtle: rgba(48, 39, 31, 0.025);
  --surface-muted: rgba(48, 39, 31, 0.018);
  --surface-track: rgba(48, 39, 31, 0.1);
  --grid-line: rgba(48, 39, 31, 0.08);
  --overlay: rgba(28, 22, 17, 0.46);
  --error-text: #b42318;
  --breadcrumb: #51483f;
  --breadcrumb-separator: #84786c;
  --breadcrumb-current: #75695e;
  --autofill-text: #28221d;
  --json-key: #9a6500;
  --json-string: #14753e;
  --json-number: #087da8;
  --json-boolean: #6c43a1;
  --json-null: #b42318;
  --shadow: 0 18px 44px rgba(66, 48, 31, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.hidden {
  display: none !important;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
}

h2 {
  margin-bottom: 0;
  font-size: 21px;
}

h3 {
  font-size: 18px;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 32px 20px;
  background: var(--background);
}

.auth-screen::before,
.auth-screen::after {
  content: "";
  position: absolute;
  width: 45vw;
  height: 45vw;
  border: 1px solid var(--border);
  transform: rotate(35deg);
}

.auth-screen::before {
  right: -18vw;
  top: -18vw;
}

.auth-screen::after {
  left: -25vw;
  bottom: -30vw;
}

.auth-panel {
  width: min(480px, 100%);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text);
  z-index: 1;
}

.brand-logo {
  display: block;
  width: 120px;
  height: auto;
  object-fit: contain;
  justify-self: center;
}

.auth-panel .brand-logo {
  width: 250px;
  margin: 0 auto 10px;
}

.auth-panel h1 {
  max-width: 340px;
  margin-bottom: 13px;
  font-size: 42px;
  line-height: 1.05;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.auth-panel label {
  position: relative;
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
}

.auth-panel .floating-field > span {
  position: absolute;
  top: 18px;
  left: 16px;
  z-index: 1;
  padding: 0 4px;
  color: var(--muted);
  background: var(--input);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  transform-origin: left center;
  transition:
    top 140ms ease,
    color 140ms ease,
    font-size 140ms ease;
}

input,
select {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--input);
  color: var(--text);
  outline: none;
  padding: 13px 14px;
}

select {
  appearance: none;
  padding-right: 42px;
}

.select-field,
.search-field {
  position: relative;
}

#technician-role-filter,
#technician-role-filter:hover {
  cursor: pointer;
}

.select-field > svg {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 20px;
  height: 20px;
  pointer-events: none;
  font-weight: bold;
  color: var(--muted);
  transform: translateY(-50%);
  transition: transform 100ms ease;
}

.select-field:focus-within > svg {
  transform: translateY(-50%) rotate(180deg);
}

.search-field > svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 17px;
  height: 17px;
  pointer-events: none;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-field .search-input {
  padding-left: 42px;
}

.auth-panel input {
  min-height: 58px;
  padding: 18px 16px 9px;
  color: var(--text);
  background: var(--input);
  border-color: var(--border);
}

.auth-panel .floating-field:focus-within > span,
.auth-panel .floating-field:has(input:not(:placeholder-shown)) > span {
  top: -8px;
  color: var(--primary);
  font-size: 11px;
}

.auth-panel .floating-field .password-field {
  position: relative;
}

.auth-panel .login-remember-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  cursor: pointer;
}

.auth-panel .login-remember-label input {
  width: auto;
  min-height: 0;
  margin: 0;
  accent-color: var(--primary);
}

input:focus,
select:focus {
  border-color: var(--primary);
}

input[readonly] {
  cursor: not-allowed;
  color: var(--muted);
  background: color-mix(in srgb, var(--input) 72%, var(--border));
  border-style: dashed;
}

input[readonly]:focus {
  border-color: var(--border);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--muted);
  border-radius: 4px;
  background: transparent;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--primary);
  background: var(--hover);
  outline: none;
}

.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  transition: all 120ms ease;
}

.button:hover {
  opacity: 0.7;
}

.button-primary {
  color: var(--background);
  background: var(--primary);
  transition: background 120ms ease, opacity 120ms ease;
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-wide {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.button-quiet {
  color: var(--muted);
  background: transparent;
  border: none !important;
  outline: none !important;
}

.button-quiet:hover {
  color: var(--text);
  background: var(--hover);
    border: none !important;
  outline: none !important;
}

.button-secondary {
  color: var(--primary);
  background: var(--primary-bg);
}

#refresh-button.is-refreshing svg {
  animation: refresh-spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: center;
}

.form-message {
  min-height: 18px;
  margin: 14px 0 0;
  color: var(--error-text);
  font-size: 12px;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 4;
  width: 96px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  color: var(--muted);
  background: var(--background-nav);
  border-right: 1px solid var(--border);
  transition: width 220ms ease;
}

.sidebar-profile {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0 0 16px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border-radius: 12px;
}

.sidebar-profile:hover,
.sidebar-profile:focus-visible {
  background: var(--hover);
  outline: none;
}

.sidebar-profile .avatar-wrap {
  flex: 0 0 auto;
}

.sidebar-profile .topbar-profile-name {
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  text-align: center;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--muted);
}

.status-dot.amber {
  background: var(--warning);
}

.status-dot.green {
  background: var(--success);
}

.main-content {
  width: calc(100% - 96px);
  min-width: 0;
  margin-left: 96px;
  padding: 24px 28px;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  padding: 7px 9px;
  color: var(--text);
  content: attr(data-tooltip);
  max-width: min(240px, calc(100vw - 16px));
  overflow-wrap: anywhere;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 100ms ease,
    transform 100ms ease;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.sidebar [data-tooltip]::after {
  top: 50%;
  right: auto;
  left: calc(100% + 10px);
  transform: translate(-4px, -50%);
}

.sidebar [data-tooltip]:hover::after,
.sidebar [data-tooltip]:focus-visible::after {
  transform: translate(0, -50%);
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.sidebar-actions .button {
  justify-content: center;
  min-height: 36px;
  padding: 8px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-profile-name {
  max-width: 180px;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel {
  border-radius: 16px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.ixc-order-card .profile-card-details {
  padding-bottom: 18px;
}

.ixc-order-attachments {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 20px 20px;
}

.ixc-order-section {
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  border-radius: 14px;
  background: var(--surface-soft);
  overflow: hidden;
}

.ixc-order-section-header {
  padding: 12px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  background: var(--surface-subtle);
}

.ixc-order-section-title {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ixc-order-section-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.ixc-order-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
}

.ixc-order-attachment-badge {
  border: 1px solid color-mix(in srgb, var(--primary) 48%, transparent);
  background: rgba(255, 170, 0, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.ixc-order-no-attachments {
  color: var(--muted);
  font-size: 11px;
}

.ixc-order-photo-trigger {
  justify-content: center;
  width: 100%;
}

.ixc-order-photo-input {
  display: none;
}

.ixc-order-delete-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ixc-order-attachment-id {
  flex: 1;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
}

.ixc-order-product-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ixc-order-product-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ixc-order-product-heading strong {
  font-size: 12px;
  color: var(--text);
}

.ixc-order-product-heading .muted {
  color: var(--muted);
  font-size: 11px;
}

.ixc-order-product-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ixc-order-product-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ixc-order-product-form input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
}

.ixc-order-product-form select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  border-radius: 8px;
  background: var(--input);
  color: var(--text);
  font: inherit;
}

.ixc-product-select-label {
  grid-column: 1 / -1;
}

.ixc-order-product-advanced {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-muted);
}

.ixc-order-product-advanced summary {
  width: fit-content;
  cursor: pointer;
}

.ixc-order-product-advanced .ixc-order-product-fields {
  margin-top: 10px;
}

.ixc-order-product-description {
  width: 100%;
}

.ixc-comodato-form-wrap {
  width: 100%;
}

.ixc-order-comodato-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 560px) {
  .ixc-order-product-fields {
    grid-template-columns: 1fr;
  }
}

.table-wrap {
  max-height: 560px;
  overflow-y: auto;
  overflow-x: auto;
}

.audit-details {
  width: min(100%, 320px);
  max-width: 320px;
  margin-left: auto;
  overflow: hidden;
  color: var(--muted);
  text-align: left;
  border-radius: 8px;
  background: var(--input);
}

.audit-details summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.audit-details summary::-webkit-details-marker {
  display: none;
}

.audit-details summary > svg {
  width: 15px;
  height: 15px;
  font-size: 15px;
  transition: transform 100ms ease;
}

.audit-details[open] summary > svg {
  transform: rotate(180deg);
}

.audit-details[open] .audit-details-placeholder {
  display: none;
}

.audit-details summary code {
  color: var(--muted);
  font-size: 11px;
}

.audit-details pre {
  height: max-content;
  max-height: 50px;
  max-width: 100%;
  margin: 0;
  padding: 0 12px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  font:
    11px/1.5 "DM Sans",
    sans-serif;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 10px;
}

.audit-details pre::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.audit-details pre::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
}

.audit-details .json-key {
  color: var(--json-key) !important;
}

.audit-details .json-string {
  color: var(--json-string) !important;
}

.audit-details .json-number {
  color: var(--json-number) !important;
}

.audit-details .json-boolean {
  color: var(--json-boolean) !important;
}

.audit-details .json-null {
  color: var(--json-null) !important;
}

.audit-result {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.audit-result.success {
  color: var(--success);
  background: var(--success-bg);
}

.audit-result.failure {
  color: #fca5a5;
  background: var(--danger-bg);
}

.technicians-panel {
  background: transparent;
  border: 0;
  padding: 0;
}

.technicians-panel .panel-heading {
  margin-bottom: 24px;
}

.ixc-users-panel {
  border-top: 1px solid var(--border);
  padding: 0;
  border-radius: 0;

  margin-top: 50px;
  padding-top: 50px;
}

.ixc-user-search-field {
  width: min(280px, 100%);
}

.ixc-users-grid {
  margin-top: 24px;
}

.ixc-profile-card.profile-card-inactive {
  opacity: 0.52;
  filter: grayscale(0.75);
}

.empty-state {
  margin: 0;
  padding: 24px 16px;
  color: var(--muted);
}

.profile-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.profile-card-grid.is-refreshing .profile-card {
  animation: profile-card-refresh 420ms ease both;
}

.profile-card-grid.is-refreshing .profile-card:nth-child(2) {
  animation-delay: 45ms;
}

.profile-card-grid.is-refreshing .profile-card:nth-child(3) {
  animation-delay: 90ms;
}

.profile-card-grid.is-refreshing .profile-card:nth-child(n + 4) {
  animation-delay: 135ms;
}

@keyframes profile-card-refresh {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CARD */
.profile-card {
  position: relative;
  min-width: 0;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 18px;

  background: var(--card);
}

/* HEADER */
.profile-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 14px;
  padding: 20px;

  border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
}

.profile-card-identity {
  display: flex;
  align-items: center;

  min-width: 0;
  gap: 8px;
}

.profile-card-identity > div {
  min-width: 0;
}

.profile-code {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 11px;
  font-weight: 500;
}

.profile-code-hashtag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}

/* NOME */
.profile-card h3 {
  margin: 0 0 5px;

  overflow: hidden;

  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* subtítulo/código */
.profile-card-identity h3 {
  margin: 0;
}

.profile-card-identity span {
  display: block;

  overflow: hidden;

  color: var(--muted);
  font-size: 11px;
  font-weight: 500;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* STATUS */
.profile-card .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  min-height: 24px;
  padding: 0 9px;

  border: 1px solid transparent;
  border-radius: 999px;

  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.profile-card .badge.completed {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.14);
}

.profile-card .badge.cancelled {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.14);
}

.profile-card-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

/* CORPO */
.profile-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 0;

  padding: 6px 20px 12px;
}

.profile-card-details > div {
  min-width: 0;

  padding: 13px 10px 13px 0;

  border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}

.profile-card-details > div:nth-child(even) {
  padding-left: 10px;
  padding-right: 0;
}

.profile-card-details > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.warehouse-access-block {
  grid-column: 1 / -1;
  padding: 14px 10px 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}

.warehouse-access-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  max-height: 96px;
  margin: 10px 0 0;
  padding: 0 4px 0 0;
  list-style: none;
  overflow-y: auto;
  overflow-x: hidden;
}

.warehouse-access-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 11px;
  line-height: 1.2;
}

.warehouse-access-button {
  cursor: default !important;
}

.warehouse-access-item.warehouse-access-empty {
  color: var(--muted);
  background: var(--surface-muted);
}

.warehouse-access-name {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.warehouse-access-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.12);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* LABEL */
.profile-card .detail-label {
  display: block;

  color: var(--muted);
  font-size: 9px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* VALOR */
/* BOTÃO */
.profile-card-actions {
  display: flex;
  gap: 8px;
  padding: 0 18px 18px;
}

.ixc-profile-card .profile-card-actions {
  margin-top: auto;
}

/* Label */

.detail-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted) !important;
  font-size: 9px !important;
  font-weight: 650;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

/* Valor */
.profile-card-details strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-details div > span:last-child {
  display: block;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Botão */

.profile-edit-button {
  flex: 1;
  width: auto;
  min-height: 36px;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  border: 1px solid var(--border);
  border-radius: 10px;

  color: var(--text);
  background: transparent;

  font-size: 11px;
  font-weight: 600;
}

.profile-delete-button {
  flex: 1;
  min-height: 36px;
  justify-content: center;
  border: 1px solid rgba(244, 63, 63, 0.2);
  border-radius: 10px;
  color: #f87171;
  background: rgba(239, 68, 68, 0.06);
  font-size: 11px;
  font-weight: 600;
}

.profile-delete-button:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.14);
}

.profile-delete-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.profile-edit-button:hover {
  background: var(--background);
  border-color: color-mix(in srgb, var(--border) 60%, var(--text));
}

.profile-edit-button svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.8;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 17px 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--card);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: left;
}

td {
  padding: 17px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  color: var(--text);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 3px;
  color: var(--muted);
  background: var(--surface-track);
  font-size: 11px;
}

.badge.completed {
  color: var(--success);
  background: var(--success-bg);
}

.badge.in_progress,
.badge.draft {
  color: var(--warning);
  background: var(--warning-bg);
}

.badge.cancelled {
  color: var(--danger);
  background: var(--danger-bg);
}

.badge .status-dot.blue,
.status-dot.blue {
  background: var(--info);
}

.badge .status-dot.red,
.status-dot.red {
  background: var(--danger);
}

.toolbar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 190px;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 40px;
}

#technicians-view .toolbar {
  grid-template-columns: 48px minmax(260px, 1fr) 190px 190px;
}

#audit-view .toolbar {
  grid-template-columns: minmax(240px, 1fr) 190px 190px 170px;
}

.toolbar > .search-field,
.toolbar > .select-field,
.toolbar > .button {
  height: 48px;
}

.toolbar > .search-field > input,
.toolbar > .select-field > select {
  height: 100%;
  min-height: 0;
}

.toolbar-create-button {
  width: 48px;
  min-height: 48px;
  justify-content: center;
  padding: 12px;
}

.toolbar-create-button[data-tooltip]::after {
  top: calc(100% + 10px);
  bottom: auto;
  right: auto;
  left: 0;
  transform: translateY(-4px);
}

.toolbar-create-button[data-tooltip]:hover::after,
.toolbar-create-button[data-tooltip]:focus-visible::after {
  transform: translateY(0);
}

.search-input {
  min-width: 0;
}

mark {
  padding: 0 2px;
  border-radius: 2px;
  color: var(--background);
  background: var(--primary);
}

.empty-state {
  min-height: 340px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 30px;
}

.empty-state p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.6;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.modal-backdrop {
  position: fixed;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: var(--overlay);
}

.modal {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.modal h2 {
  margin: 0 0 16px 0;
}

.modal .muted {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--muted);
  background: none;
  font-size: 25px;
}

.modal label {
  color: var(--muted);
}

.warehouse-modal {
  width: min(780px, 100%);
}

.warehouse-modal-content {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.warehouse-item {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 10px;
  background: var(--surface-subtle);
}

.warehouse-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.warehouse-item-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.warehouse-product-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 11px;
}

.warehouse-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
}

.warehouse-item-meta span {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.warehouse-patrimony-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--text);
}

.warehouse-patrimony-item {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 10px;
  line-height: 1.2;
}

.warehouse-patrimony-name {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 600;
  color: var(--text);
}

.warehouse-patrimony-meta-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.warehouse-patrimony-id,
.warehouse-patrimony-status,
.warehouse-patrimony-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.warehouse-patrimony-label {
  display: none;
}

.warehouse-patrimony-id {
  color: var(--primary);
  background: rgba(255, 107, 0, 0.08);
}

.warehouse-patrimony-status {
  color: var(--warning);
  background: rgba(251, 191, 36, 0.08);
}

.warehouse-patrimony-code {
  color: var(--success);
  background: rgba(99, 255, 138, 0.06);
}

.technician-modal {
  width: min(680px, 100%);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 88px;
  align-items: start;
  gap: 0 14px;
}

.technician-modal .form-grid > label {
  position: relative;
  min-width: 0;
  margin-bottom: 0;
}

#technician-created-date::-webkit-calendar-picker-indicator {
  display: none;
}

.checkbox-label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
}

.checkbox-label input {
  width: auto;
  accent-color: var(--primary);
}

.file-picker-field {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.field-error {
  position: absolute;
  top: 70px;
  left: 0;
  min-height: 16px;
  margin: 0;
  color: var(--danger);
  font-size: 11px;
}

.field-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px var(--danger-bg) !important;
}

.file-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 40px 20px;
  border: 1px dashed rgba(255, 107, 0, 0.35);
  background: var(--input);
}

.file-picker.is-dragging {
  border-color: var(--primary);
  background: var(--primary-bg);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.08);
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-picker-button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  padding: 0 13px;
  cursor: pointer;
}

.file-picker-name {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  background: var(--hover);
}

.avatar-image {
  animation: avatar-refresh 360ms ease both;
}

@keyframes avatar-refresh {
  from {
    opacity: 0.2;
  }

  to {
    opacity: 1;
  }
}

.avatar-wrap {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  vertical-align: middle;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-bg);
  font-size: 12px;
  font-weight: 700;
}

svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
  vertical-align: middle;
}

.toast {
  position: fixed;
  z-index: 10;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100% - 32px));
  padding: 13px 16px;
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 3px solid var(--success);
  background: var(--card);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-left-color: var(--danger);
}

@media (max-width: 950px) {
  .profile-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-card-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scrollbar-color: var(--primary) transparent;
    scrollbar-width: thin;
  }

  .profile-card-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
  }

  .profile-card-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
  }

  .profile-card-grid .profile-card {
    flex: 0 0 min(320px, 86vw);
    scroll-snap-align: start;
  }
}

@media (max-width: 680px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px;
  }

  .sidebar-profile {
    flex-direction: row;
    min-height: 38px;
    gap: 8px;
    padding: 0 6px;
    margin: 0 0 15px;
  }

  .sidebar-profile .topbar-profile-name {
    width: auto;
    text-align: left;
  }

  .app-shell {
    display: block;
  }

  .main-content {
    width: 100%;
    margin: 0;
  }

  .app-shell .sidebar {
    width: 100%;
  }

  .app-shell .main-content {
    width: 100%;
    margin-left: 0;
  }

  .profile-card-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar-create-button {
    width: 48px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--input) inset !important;
  -webkit-text-fill-color: var(--autofill-text) !important;
  caret-color: var(--autofill-text);
  transition: background-color 9999s ease-out 0s;
}

@media (max-width: 1100px) {
  .toolbar,
  #technicians-view .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar-create-button {
    width: 48px;
  }
}

@media (max-width: 820px) and (min-width: 681px) {
  .sidebar {
    width: 80px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .main-content {
    width: calc(100% - 80px);
  }

  .sidebar .topbar-profile-name {
    font-size: 11px;
  }

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

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  html,
  body,
  .app-shell {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .sidebar,
  .app-shell .sidebar {
    width: 100%;
    max-width: 100%;
  }

  .sidebar [data-tooltip]::after {
    display: none;
  }

  .sidebar-actions {
    flex-direction: row;
    justify-content: center;
  }

  .sidebar-actions .button {
    flex: 0 1 48px;
  }

  .main-content {
    width: 100% !important;
    max-width: 100%;
    margin-left: 0 !important;
  }

  .toolbar,
  #technicians-view .toolbar,
  #audit-view .toolbar {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    gap: 10px;
  }

  .panel-heading {
    flex-direction: column;
  }

  .panel-heading > * {
    max-width: 100%;
  }

  .ixc-user-search-field {
    width: 100%;
  }

  .empty-state {
    min-height: 260px;
    padding: 22px 12px;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal {
    max-height: calc(100vh - 20px);
    padding: 22px 16px;
  }
}

@media (max-width: 420px) {
  .main-content {
    padding-right: 8px;
    padding-left: 8px;
  }

  .toolbar,
  #technicians-view .toolbar {
    gap: 8px;
    margin-bottom: 24px;
  }

  .toolbar > .search-field,
  .toolbar > .select-field,
  .toolbar > .button {
    height: 44px;
  }

  .profile-card-grid .profile-card {
    flex-basis: min(290px, 86vw);
  }

  .table-wrap {
    margin-right: -14px;
    margin-left: -14px;
  }

  .profile-card-details {
    grid-template-columns: 1fr;
    padding-right: 14px;
    padding-left: 14px;
  }

  .profile-card-details > div:nth-child(even) {
    padding-left: 0;
  }

  .profile-card-details > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
  }

  .profile-card-details > div:last-child {
    border-bottom: 0;
  }
}

@keyframes wave {
  0% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(14deg);
  }

  20% {
    transform: rotate(-8deg);
  }

  30% {
    transform: rotate(14deg);
  }

  40% {
    transform: rotate(-4deg);
  }

  50% {
    transform: rotate(10deg);
  }

  60%,
  100% {
    transform: rotate(0deg);
  }
}

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

  70% {
    transform: rotate(300deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Users workspace */
body {
  font-size: 13px;
}

.app-shell {
  background: var(--background);
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 182px;
  padding: 20px 12px 14px;
  background: var(--background-nav);
  border-right-color: var(--border);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 0 10px 20px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.brand-lockup-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-profile {
  order: 4;
  align-items: flex-start;
  flex-direction: row;
  gap: 9px;
  padding: 12px 8px 0;
  margin: auto 0 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
}

.sidebar-profile .topbar-profile-name {
  text-align: left;
}

.sidebar-nav {
  order: 2;
  display: grid;
  gap: 4px;
  margin-top: 24px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  color: #9aa4b2;
  background: transparent;
  border-radius: 8px;
  font-size: 12px;
  text-align: left;
}

.sidebar-nav-item svg {
  width: 17px;
  height: 17px;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.is-active {
  color: #ff790f;
  background: rgba(255, 121, 15, 0.16);
}

.sidebar-actions {
  position: static;
  order: 2;
  align-self: center;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 142px;
  margin: 24px 0 0;
  gap: 8px;
}

.sidebar-actions .button {
  justify-content: flex-start;
  width: 142px;
  min-height: 36px;
  padding: 8px 12px;
  color: #a9a19a;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
}

.sidebar-actions .button:hover {
  color: #ff790f;
  background: rgba(255, 121, 15, 0.1);
  border-color: #3a2518;
}

.sidebar-actions .button svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
}

.main-content {
  width: calc(100% - 182px);
  height: 100vh;
  margin-left: 182px;
  padding: 42px 32px 48px;
  background: var(--background);
  overflow-y: auto;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  margin: 0 -20px 30px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
}

.app-topbar-user {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #aab2bd;
  font-size: 11px;
}

.app-topbar-user > svg {
  width: 16px;
  height: 16px;
}

.app-topbar-avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #344252;
}

.app-topbar-name {
  color: #e6e9ed;
  font-weight: 700;
}

#technicians-view {
  max-width: 100%;
  padding: 0;
}

.page-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 6px 28px;
}

.page-heading-icon {
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 16px;

  background: var(--card);
  color: #ff790f;
}

.page-heading-icon svg {
  width: 31px;
  height: 31px;
  stroke-width: 2.2;
}

.page-heading h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.page-heading p,
.panel-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.users-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.users-panel {
  min-width: 0;
  height: calc(100vh - 200px);
  min-height: 100px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--card);
  display: flex;
  flex-direction: column;
}

.technicians-panel,
.ixc-users-panel {
  margin: 0;
}

.ixc-users-panel {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.panel-heading {
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.panel-title h2 {
  margin: 0 0 3px;
  font-size: 18px;
}

.panel-title-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--text);
  border-radius: 14px;
  background: var(--input);
}

.panel-title-icon.cloud {
  color: var(--success);
}

.panel-title-icon svg {
  width: 24px;
  height: 24px;
}

.users-panel .button {
  min-height: 32px;
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
}

.panel-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 9px;
  margin-bottom: 11px;
}

.panel-toolbar input,
.panel-toolbar select {
  min-height: 32px;
  padding: 8px 10px 8px 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--input);
  font-size: 10px;
}

.panel-toolbar select {
  padding-left: 10px;
}

.panel-toolbar .search-field > svg {
  left: 11px;
  width: 14px;
  height: 14px;
}

.profile-card-grid {
  display: block;
}

.users-panel .profile-card-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-color: #8e4716 transparent;
}

.profile-table-head {
  display: grid;
  flex: 0 0 auto;
  min-height: 28px;
  align-items: center;
  padding: 0 5px 0 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-table-head {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(
      0,
      1.1fr
    ) 82px 28px;
}

.ixc-table-head {
  grid-template-columns: minmax(0, 1.15fr) minmax(102px, 1fr);
}

.profile-card-grid .profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(
      0,
      1.1fr
    ) 82px 28px;
  align-items: center;
  min-height: 58px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.profile-card-grid .profile-card:first-child {
  border-top: 0;
}

.profile-card-header {
  display: contents;
}

.profile-card-identity {
  min-width: 0;
  padding: 10px 5px 10px 6px;
}

.profile-card-identity .avatar-wrap {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.profile-card-identity .avatar {
  width: 36px;
  height: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  font-size: 11px;
}

.profile-card h3 {
  font-size: 12px;
}

.profile-card-identity span {
  font-size: 10px;
}

.profile-card-status {
  grid-column: 5;
  grid-row: 1;
  justify-content: flex-start;
  padding: 8px 0;
}

.profile-card .badge {
  min-height: 23px;
  padding: 0 9px;
  font-size: 9px;
}

.profile-card-details {
  display: contents;
  padding: 0;
}

.profile-card-details > div {
  padding: 10px 4px;
  border: 0;
}

.profile-card-details > div:nth-child(1) {
  grid-column: 2;
  grid-row: 1;
}

.profile-card-details > div:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}

.profile-card-details > div:nth-child(3) {
  grid-column: 4;
  grid-row: 1;
}

.profile-card-details > div:nth-child(n + 4) {
  display: none;
}

.profile-card-details .detail-label {
  display: none;
}

.profile-card-details strong {
  font-size: 11px;
  font-weight: 500;
}

.profile-card-actions {
  grid-column: 5;
  grid-row: 1;
  padding: 0;
}

.profile-card-actions .button {
  min-height: 30px;
  padding: 5px;
  background: transparent;
  color: #aab2bd;
}

.profile-card-actions .button svg {
  width: 14px;
  height: 14px;
}

.ixc-profile-card {
  grid-template-columns: minmax(0, 1.15fr) minmax(102px, 1fr) !important;
}

.ixc-profile-card .profile-card-details {
  grid-column: 2;
  grid-row: 1;
}

.ixc-profile-card .warehouse-access-block {
  display: none;
}

.ixc-profile-card .profile-card-actions {
  grid-column: 2;
}

.ixc-profile-card .profile-card-actions {
  display: flex;
  min-width: 0;
  padding: 0 4px;
}

.ixc-profile-card .create-ixc-user {
  display: flex !important;
  width: 100%;
  min-width: 0;
  overflow: visible;
  font-size: 9px;
}

.pagination-sentinel {
  height: 12px;
}

@media (max-width: 980px) {
  .users-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .app-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-height: 250px;
    padding: 14px 12px;
  }

  .brand-lockup {
    padding-bottom: 14px;
  }

  .sidebar-actions {
    position: static;
    width: 142px;
    margin-top: 20px;
  }

  .sidebar-profile {
    display: flex;
    margin-top: auto;
  }

  .main-content {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0 12px 24px;
    overflow: visible;
  }

  .page-heading {
    margin-left: 0;
  }

  .page-heading h1 {
    font-size: 25px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-heading > .button {
    align-self: stretch;
    justify-content: center;
  }

  .panel-toolbar {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .app-table-head {
    grid-template-columns: minmax(0, 1fr) auto 28px;
  }

  .app-table-head span:nth-child(3),
  .app-table-head span:nth-child(4) {
    display: none;
  }

  .app-table-head span:nth-child(2) {
    grid-column: 2;
  }

  .app-table-head span:nth-child(5) {
    grid-column: 3;
  }

  .ixc-table-head {
    grid-template-columns: minmax(0, 1fr) minmax(100px, 1fr);
  }

  .profile-card-grid .profile-card {
    grid-template-columns: minmax(0, 1fr) auto 28px;
    min-height: 64px;
  }

  .profile-card-grid .profile-card-identity {
    grid-column: 1;
  }

  .profile-card-grid .profile-card-details > div:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
  }

  .profile-card-grid .profile-card-details > div:nth-child(2) {
    display: none;
  }

  .profile-card-actions {
    grid-column: 3;
  }

  .ixc-profile-card {
    grid-template-columns: minmax(0, 1fr) minmax(100px, 1fr) !important;
  }

  .ixc-profile-card .profile-card-actions {
    grid-column: 2;
  }

  .profile-card-identity .avatar-wrap,
  .profile-card-identity .avatar {
    width: 34px;
    height: 34px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
