:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8fafd;
  --line: #e3e7ee;
  --line-strong: #d3dae6;
  --frame-line: #dfe4ec;
  --frame-line-strong: #d3dae6;
  --text: #202124;
  --muted: #5f6368;
  --primary: #1a73e8;
  --primary-hover: #185abc;
  --primary-soft: #e8f0fe;
  --danger-bg: #fff1f2;
  --danger-border: #fecdd3;
  --danger-text: #9f1239;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  position: relative;
}

body::before {
  content: none !important;
  display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.tab-service-head,
.service-head,
.users-service-head,
.edit-service-head {
  color: var(--text) !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
}

a,
.links a {
  color: #334155;
}

.top,
.top-inner,
.card,
.tab-service,
.service-panel,
.hero-card,
.users-service,
.edit-service {
  background: var(--surface) !important;
  border: 1px solid var(--frame-line) !important;
  box-shadow:
    0 1px 1px rgba(32, 33, 36, 0.08),
    0 1px 3px rgba(32, 33, 36, 0.06) !important;
}

.tab-service-head,
.edit-service-head,
.users-service-head {
  background: var(--surface-soft) !important;
  border-color: var(--line) !important;
}

.tab-service-actions,
.edit-service-actions,
.users-service-actions,
.tab-service-body,
.edit-service-body,
.users-service-body {
  background: var(--surface) !important;
  border-color: var(--line) !important;
}

input,
select,
textarea {
  border: 1px solid var(--line-strong) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
}

input::placeholder,
textarea::placeholder {
  color: #92a0b2 !important;
  opacity: 1 !important;
  font-style: italic;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #8aa0be !important;
  box-shadow: 0 0 0 3px rgba(59, 91, 135, 0.14);
}

button,
input[type="button"],
input[type="submit"],
.btn,
.btn2,
.tab,
.tab-btn,
.btn-accent,
.gear,
.tool-btn {
  border: 1px solid var(--line-strong) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.btn:hover,
.btn2:hover,
.tab:hover,
.tab-btn:hover,
.btn-accent:hover,
.gear:hover {
  background: var(--surface-soft) !important;
  border-color: #b4bfcd !important;
  color: var(--text) !important;
  filter: none;
}

.btn-primary,
.submit-bottom,
button[type="submit"]:not(.btn):not(.btn2):not(.tab):not(.tab-btn):not(.btn-accent):not(.btn-danger):not(.icon-btn-danger),
input[type="submit"] {
  border-color: #d2e3fc !important;
  background: #e8f0fe !important;
  color: #174ea6 !important;
}

.btn-primary strong,
.submit-bottom strong {
  color: #174ea6 !important;
}

.btn-primary:hover,
.submit-bottom:hover,
button[type="submit"]:not(.btn):not(.btn2):not(.tab):not(.tab-btn):not(.btn-accent):not(.btn-danger):not(.icon-btn-danger):hover,
input[type="submit"]:hover {
  border-color: #b9d0fb !important;
  background: #dce8fd !important;
  color: #174ea6 !important;
}

.btn.is-active,
.btn2.is-active,
.tab.is-active,
.tab-btn.is-active,
.tool-btn.is-active,
.nav-btn.active,
.page-actions .btn2.active {
  border-color: #c3d4fb !important;
  background: #dce8fd !important;
  color: #174ea6 !important;
  font-weight: 700 !important;
}

.btn:disabled,
.btn2:disabled,
.tool-btn:disabled,
.tab:disabled,
.tab-btn:disabled,
button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
  opacity: 0.72 !important;
  color: #7b8794 !important;
  border-color: #cdd5e1 !important;
  background: #edf1f5 !important;
  font-weight: 600 !important;
  cursor: not-allowed !important;
  filter: none !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12) !important;
  transform: translateY(1px);
}

.btn.is-pressed:disabled,
.btn2.is-pressed:disabled,
.tool-btn.is-pressed:disabled,
.tab.is-pressed:disabled,
.tab-btn.is-pressed:disabled,
button.is-pressed:disabled,
input[type="submit"].is-pressed:disabled,
input[type="button"].is-pressed:disabled {
  color: #1f4f9f !important;
  border-color: #9fbef9 !important;
  background: #dde9ff !important;
  font-weight: 800 !important;
}

.btn.is-pressed:disabled,
.btn2.is-pressed:disabled,
.tool-btn.is-pressed:disabled,
.tab.is-pressed:disabled,
.tab-btn.is-pressed:disabled,
button.is-pressed:disabled {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn.is-pressed:disabled::before,
.btn2.is-pressed:disabled::before,
.tool-btn.is-pressed:disabled::before,
.tab.is-pressed:disabled::before,
.tab-btn.is-pressed:disabled::before,
button.is-pressed:disabled::before {
  content: "●";
  color: #1a73e8;
  font-size: 10px;
  line-height: 1;
}

.btn.is-save-done:disabled,
.btn2.is-save-done:disabled,
.tool-btn.is-save-done:disabled,
button.is-save-done:disabled,
input[type="submit"].is-save-done:disabled,
input[type="button"].is-save-done:disabled {
  border-color: #d8b07b !important;
  background: #fff4e5 !important;
  color: #8a4b08 !important;
  font-weight: 800 !important;
}

.btn.is-save-done:disabled::before,
.btn2.is-save-done:disabled::before,
.tool-btn.is-save-done:disabled::before,
button.is-save-done:disabled::before {
  color: #c06b00 !important;
}

.btn.is-editing,
.btn2.is-editing,
.tool-btn.is-editing,
.btn.is-editing:disabled,
.btn2.is-editing:disabled,
.tool-btn.is-editing:disabled {
  border-color: #d8b07b !important;
  background: #fff4e5 !important;
  color: #8a4b08 !important;
  font-weight: 800 !important;
}

.btn.is-editing:disabled::before,
.btn2.is-editing:disabled::before,
.tool-btn.is-editing:disabled::before {
  content: "●";
  color: #c06b00;
  font-size: 10px;
  line-height: 1;
}

.tab.active,
.tab-btn.active {
  border-color: #d2e3fc !important;
  background: #e8f0fe !important;
  color: #174ea6 !important;
}

.btn-danger,
.icon-btn-danger {
  border: 1px solid var(--danger-border) !important;
  background: var(--danger-bg) !important;
  color: var(--danger-text) !important;
}

.btn-danger:hover,
.icon-btn-danger:hover {
  border-color: #e58a9a !important;
  background: #ffecef !important;
  color: #881337 !important;
}

.msg,
.topmsg {
  background: #ffffff !important;
  border-color: var(--frame-line) !important;
  border-left: 3px solid #bdc9da !important;
  color: var(--text) !important;
}

.toast-msg {
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  margin: 0 !important;
  min-width: 260px;
  max-width: min(440px, calc(100vw - 24px));
  padding: 11px 40px 11px 13px !important;
  border-radius: 12px !important;
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.2),
    0 1px 2px rgba(15, 23, 42, 0.14) !important;
  z-index: 5200 !important;
  pointer-events: auto;
  overflow: hidden;
  animation:
    toast-enter 220ms ease-out 1,
    toast-exit 460ms ease-in 5.6s forwards;
}

.toast-msg-text {
  display: block;
  padding-right: 2px;
}

.toast-close-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #c8d4e3 !important;
  background: #ffffff !important;
  color: #5f6b7a !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.toast-close-btn:hover {
  border-color: #adbed3 !important;
  background: #f5f8fc !important;
  color: #2f3d52 !important;
}

.toast-close-btn:focus-visible {
  outline: 2px solid #8aa0be;
  outline-offset: 1px;
}

.toast-msg:hover {
  animation-play-state: paused;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-exit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 700px) {
  .toast-msg {
    right: 10px !important;
    left: 10px !important;
    bottom: 10px !important;
    min-width: 0;
    max-width: none;
  }
}

.err,
.error {
  background: var(--danger-bg) !important;
  border-color: var(--danger-border) !important;
  color: var(--danger-text) !important;
}

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

table th {
  background: var(--surface-soft);
  color: var(--text);
}

table th,
table td {
  border-color: #e6ebf1 !important;
}

.role,
.status-tag {
  background: var(--surface-soft) !important;
  border-color: var(--line) !important;
  color: #334155 !important;
}

.loading-wrap {
  background: #e8edf3 !important;
}

.loading-bar {
  background: var(--primary) !important;
}

.page-head {
  background: var(--surface) !important;
  border: 1px solid var(--frame-line) !important;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(32, 33, 36, 0.08);
}

.page-crumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  margin: 0;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-crumbs a {
  text-decoration: none;
  color: #1f3a66;
  font-weight: 600;
}

.page-crumbs span {
  color: var(--muted);
}

.page-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
}

.page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text) !important;
}

.page-subtitle {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.session-user {
  display: inline-flex;
  align-items: center;
  max-width: 320px;
  padding: 8px 12px;
  border: 1px solid #d6deea !important;
  border-radius: 999px;
  background: #ffffff !important;
  color: #3c4043 !important;
  font-size: 14px;
  font-weight: 600;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-icon-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.list-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e7ebf1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.list-table th,
.list-table td {
  padding: 11px 12px !important;
  vertical-align: top;
}

.list-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #5f6368 !important;
  background: #f8fafd !important;
  border-bottom: 1px solid #e4e8ef !important;
}

.list-table tbody td {
  border-bottom: 1px solid #edf1f6 !important;
}

.list-table tbody tr:last-child td {
  border-bottom: none !important;
}

.list-title {
  display: block;
  max-width: 900px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #202124;
}

.list-meta,
.list-note {
  display: block;
  max-width: 980px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted) !important;
}

.list-note {
  font-size: 13px;
}

.tab-content.active,
.users-content {
  border: 1px solid var(--frame-line);
  border-radius: 16px;
  padding: 12px 12px 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(32, 33, 36, 0.08);
}

.list-table tbody tr:hover td {
  background: #f5f9ff;
}

.list-table tbody tr:focus,
.list-table tbody tr:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.list-table tbody tr.active-row td {
  background: #fff !important;
  border-top: 1px solid #8ab4f8 !important;
  border-bottom: 1px solid #8ab4f8 !important;
}

.list-table tbody tr.active-row td:first-child {
  border-left: 1px solid #8ab4f8 !important;
}

.list-table tbody tr.active-row td:last-child {
  border-right: 1px solid #8ab4f8 !important;
}

.list-table tbody tr.active-row .list-title {
  font-weight: 800 !important;
}

.list-table tbody tr.row-action td {
  padding-top: 24px !important;
}

.list-table tbody tr.row-action td:first-child {
  position: relative;
}

.list-table tbody tr.row-action td:first-child::before {
  content: attr(data-row-action);
  position: absolute;
  top: 4px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid #d8b07b;
  background: #fff4e5;
  color: #8a4b08;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.list-table tbody tr.row-action.row-action-done td:first-child::before {
  border-color: #9ac39a;
  background: #ecf9ec;
  color: #2f6b2f;
}

.list-table tbody tr.editing-row td {
  background: #fff9f0 !important;
  border-top: 1px solid #d8b07b !important;
  border-bottom: 1px solid #d8b07b !important;
}

.list-table tbody tr.editing-row td:first-child {
  border-left: 1px solid #d8b07b !important;
}

.list-table tbody tr.editing-row td:last-child {
  border-right: 1px solid #d8b07b !important;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

.tab,
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px !important;
  border: 1px solid #dde3ed !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #3c4043 !important;
  background: #fff !important;
  text-decoration: none !important;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-right: 2px;
  color: #516a8f;
  line-height: 1;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab:hover,
.tab-btn:hover {
  border-color: #ccd3df !important;
  background: #f7f9fc !important;
}

.tab-count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #d2d8e2;
  background: #f1f4f9;
  color: #3c4043;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.tab.active .tab-count,
.tab-btn.active .tab-count {
  border-color: #c3d4fb;
  background: #dce8fd;
  color: #174ea6;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #202124 !important;
}

.counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #dde3ed;
  background: #f7f9fc;
  color: #4a4f56;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.counter-pill strong {
  color: #202124;
  font-weight: 700;
}

.gmail-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 10px;
}

.gmail-toolbar-main,
.gmail-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-tag,
.role {
  border-radius: 999px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border: 1px solid #d8dde6 !important;
  background: #f7f9fc !important;
  color: #3c4043 !important;
}

.status-tag.blocked {
  border-color: #f2c7cc !important;
  background: #fff2f4 !important;
  color: #9b2c42 !important;
}

.status-tag.disabled {
  border-color: #e2e6ec !important;
  background: #f3f4f6 !important;
  color: #5f6368 !important;
}

.status-tag.pending {
  border-color: #cbdcf8 !important;
  background: #edf3fe !important;
  color: #174ea6 !important;
}

.tab-service-head,
.users-service-head,
.edit-service-head,
.service-head {
  background: #f8fafd !important;
  color: #202124 !important;
  border-bottom: 1px solid #e4e8ef !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.tab-service-actions,
.users-service-actions,
.edit-service-actions {
  background: #fff !important;
}

.readonly-hint {
  display: none;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid #d7e2f3;
  border-radius: 8px;
  background: #f6f9ff;
  color: #58719a;
  font-size: 13px;
}

form.form-readonly .readonly-hint {
  display: block;
}

form.form-readonly input:not([type="hidden"]),
form.form-readonly select,
form.form-readonly textarea,
form.form-readonly button {
  background: #f2f5fb !important;
  border-color: #d4deed !important;
  color: #60738f !important;
}

form.form-readonly input[type="checkbox"] {
  accent-color: #9fb5d8;
}

.tab-save-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid #dce7f6;
}

.tab-save-note {
  font-size: 12px;
  color: #59739a;
  padding: 2px 8px;
  border: 1px solid #d5e2f5;
  border-radius: 999px;
  background: #f4f8ff;
}

.tab-save-row .btn:not(:disabled),
.tab-save-row .btn2:not(:disabled) {
  font-weight: 600 !important;
}

.service-toggle-btn {
  border-radius: 999px !important;
}

.search input {
  border-radius: 24px !important;
  padding-left: 14px !important;
}

.img-modal-card {
  border: 1px solid #dfe4ec !important;
  border-radius: 14px !important;
}

.portal-layout {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.portal-layout .wrap,
.portal-layout .top-inner {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.portal-layout .invoice-main,
.portal-layout .tab-main,
.portal-layout .users-main {
  min-width: 0;
}

.portal-service-brand {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #e1e8f3;
  background: #fff;
}

.portal-service-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 8px;
  border: 1px solid #d8e2f1;
  border-radius: 12px;
  background: #fbfdff;
}

.portal-service-brand-logo img {
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
}

.portal-service-brand-title {
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  color: #173c70;
  word-break: break-word;
}

.portal-service-section-title {
  padding: 8px 12px 6px;
  font-size: 15px !important;
  line-height: 1.3;
  font-weight: 700 !important;
  color: #183e72 !important;
  text-align: left;
  background: #fff !important;
  border-bottom: 1px solid #e1e8f3 !important;
}

.portal-service-panel .invoice-side-tab-btn,
.portal-service-panel .org-service-tag,
.portal-service-panel .team-service-tag,
.portal-service-panel .service-pane-tab {
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

.portal-service-panel .invoice-side-tab-icon,
.portal-service-panel .service-pane-tab-icon {
  margin-right: 4px !important;
}

/* Premium unified theme layer for portal/admin */
body.portal-layout,
body.admin-layout {
  --premium-paper: #fff8f1;
  --premium-paper-soft: #f9ebd9;
  --premium-line: #d8b28f;
  --premium-line-soft: #e8ccb2;
  --premium-text: #2f2016;
  --premium-muted: #6f5240;
  --premium-accent: #9a260e;
  --premium-accent-hover: #7d1d0a;
  --premium-glow: #ffad00;
  background:
    radial-gradient(circle at 18% 16%, rgba(217, 26, 26, 0.08), transparent 38%),
    radial-gradient(circle at 82% 74%, rgba(255, 173, 0, 0.12), transparent 42%),
    linear-gradient(180deg, #fbefe3 0%, #f7ecdf 52%, #f2e5d8 100%) !important;
  color: var(--premium-text) !important;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif !important;
  position: relative;
}

body.portal-layout::before,
body.admin-layout::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(154, 38, 14, 0.1) 0,
      rgba(154, 38, 14, 0.1) 1px,
      transparent 1px,
      transparent 13px
    );
}

body.portal-layout > .wrap,
body.admin-layout > .wrap,
body.portal-layout > main.wrap,
body.admin-layout > main.wrap {
  position: relative;
  z-index: 1;
}

body.portal-layout .top,
body.admin-layout .top {
  background: linear-gradient(180deg, #fff9f1 0%, #f7e9d8 100%) !important;
  border: 1px solid var(--premium-line) !important;
  border-radius: 16px !important;
  box-shadow:
    0 12px 28px rgba(79, 23, 10, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.68) inset !important;
}

body.portal-layout .top-inner,
body.admin-layout .top-inner {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.portal-layout .page-head,
body.admin-layout .page-head {
  background: linear-gradient(180deg, #fff8ef 0%, #f6e8d7 100%) !important;
  border: 1px solid var(--premium-line) !important;
  border-radius: 16px !important;
  box-shadow:
    0 10px 24px rgba(79, 23, 10, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.66) inset !important;
}

body.portal-layout .page-title,
body.admin-layout .page-title {
  color: #4d200d !important;
  font-size: 24px;
  letter-spacing: 0.01em;
}

body.portal-layout .page-crumbs a,
body.admin-layout .page-crumbs a {
  color: #6a2c12 !important;
  font-weight: 700 !important;
}

body.portal-layout .page-crumbs span,
body.admin-layout .page-crumbs span {
  color: #8f694f !important;
}

body.portal-layout .card,
body.admin-layout .card,
body.portal-layout .tab-content.active,
body.portal-layout .users-content,
body.admin-layout .adm-layout {
  background: linear-gradient(180deg, var(--premium-paper) 0%, var(--premium-paper-soft) 100%) !important;
  border: 1px solid var(--premium-line) !important;
  border-radius: 16px !important;
  box-shadow:
    0 12px 28px rgba(79, 23, 10, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.66) inset !important;
}

body.portal-layout .portal-service-panel,
body.portal-layout .invoice-side,
body.portal-layout .tab-service,
body.portal-layout .users-service,
body.portal-layout .edit-service,
body.admin-layout .adm-service {
  background: linear-gradient(180deg, #fff9f1 0%, #f6e8d6 100%) !important;
  border: 1px solid var(--premium-line) !important;
  border-radius: 16px !important;
  box-shadow:
    0 12px 28px rgba(79, 23, 10, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.64) inset !important;
}

body.portal-layout .portal-service-brand,
body.portal-layout .portal-service-brand-logo,
body.admin-layout .side-actions,
body.portal-layout .invoice-side-actions,
body.portal-layout .tab-service-actions,
body.portal-layout .users-service-actions {
  background: #fff8ef !important;
  border-color: var(--premium-line-soft) !important;
}

body.portal-layout .portal-service-brand-logo,
body.portal-layout .invoice-preview-logo,
body.portal-layout .service-panel-logo-box {
  border: 1px solid var(--premium-line-soft) !important;
  background: #fff6eb !important;
}

body.portal-layout .portal-service-brand-title,
body.portal-layout .portal-service-section-title,
body.portal-layout .invoice-side-head,
body.portal-layout .tab-service-head,
body.portal-layout .users-service-head,
body.portal-layout .edit-service-head,
body.admin-layout .side-head,
body.admin-layout .service-head {
  color: #6a2c12 !important;
  background: transparent !important;
  border-color: var(--premium-line-soft) !important;
}

body.portal-layout .session-user,
body.admin-layout .session-user {
  background: #fff7eb !important;
  border-color: var(--premium-line-soft) !important;
  color: #67321a !important;
}

body.portal-layout button,
body.portal-layout .btn,
body.portal-layout .btn2,
body.portal-layout .tab,
body.portal-layout .tab-btn,
body.portal-layout .gear,
body.portal-layout .tool-btn,
body.admin-layout button,
body.admin-layout .btn,
body.admin-layout .btn2,
body.admin-layout .tab,
body.admin-layout .tab-btn,
body.admin-layout .gear,
body.admin-layout .tool-btn {
  border: 1px solid #d9b591 !important;
  background: linear-gradient(90deg, #fff5ea, #ffe8d3) !important;
  color: #6f3414 !important;
  border-radius: 10px !important;
}

body.portal-layout button:hover,
body.portal-layout .btn:hover,
body.portal-layout .btn2:hover,
body.portal-layout .tab:hover,
body.portal-layout .tab-btn:hover,
body.portal-layout .gear:hover,
body.portal-layout .tool-btn:hover,
body.admin-layout button:hover,
body.admin-layout .btn:hover,
body.admin-layout .btn2:hover,
body.admin-layout .tab:hover,
body.admin-layout .tab-btn:hover,
body.admin-layout .gear:hover,
body.admin-layout .tool-btn:hover {
  border-color: #c99462 !important;
  background: linear-gradient(90deg, #ffeeda, #ffd9b5) !important;
  color: #5f280d !important;
}

body.portal-layout .btn-primary,
body.portal-layout .invoice-new-btn,
body.portal-layout button[type="submit"]:not(.btn2):not(.btn-danger):not(.icon-btn-danger),
body.admin-layout .btn-primary,
body.admin-layout button[type="submit"]:not(.btn2):not(.btn-danger):not(.icon-btn-danger) {
  border-color: #bf6238 !important;
  background: linear-gradient(90deg, #cf4a25 0%, #f19731 100%) !important;
  color: #fff8f2 !important;
  box-shadow: 0 8px 20px rgba(154, 38, 14, 0.2) !important;
}

body.portal-layout .btn-primary:hover,
body.portal-layout .invoice-new-btn:hover,
body.portal-layout button[type="submit"]:not(.btn2):not(.btn-danger):not(.icon-btn-danger):hover,
body.admin-layout .btn-primary:hover,
body.admin-layout button[type="submit"]:not(.btn2):not(.btn-danger):not(.icon-btn-danger):hover {
  border-color: #a74a22 !important;
  background: linear-gradient(90deg, #b83f1e 0%, #df8126 100%) !important;
  color: #fff8f2 !important;
}

body.portal-layout .invoice-filter-tag,
body.portal-layout .invoice-side-tab-btn,
body.portal-layout .org-service-tag,
body.portal-layout .team-service-tag,
body.portal-layout .service-pane-tab,
body.admin-layout .tag-btn {
  border: none !important;
  border-bottom: 1px dotted #9e6a49 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #6a2d13 !important;
  font-weight: 600 !important;
}

body.portal-layout .invoice-filter-tag.active,
body.portal-layout .invoice-side-tab-btn.active,
body.portal-layout .org-service-tag.active,
body.portal-layout .team-service-tag.active,
body.portal-layout .service-pane-tab.active,
body.admin-layout .tag-btn.active {
  border-bottom-style: solid !important;
  border-bottom-color: #7d2d10 !important;
  color: #4f1f0c !important;
  font-weight: 800 !important;
}

body.portal-layout .tab.active,
body.portal-layout .tab-btn.active,
body.portal-layout .btn.is-active,
body.portal-layout .btn2.is-active,
body.portal-layout .tab.is-active,
body.portal-layout .tab-btn.is-active,
body.portal-layout .tool-btn.is-active,
body.portal-layout .nav-btn.active,
body.admin-layout .tab.active,
body.admin-layout .tab-btn.active,
body.admin-layout .btn.is-active,
body.admin-layout .btn2.is-active,
body.admin-layout .tab.is-active,
body.admin-layout .tab-btn.is-active,
body.admin-layout .tool-btn.is-active,
body.admin-layout .nav-btn.active {
  border-color: #bf6238 !important;
  background: linear-gradient(90deg, #cf4a25 0%, #f19731 100%) !important;
  color: #fff6ef !important;
  font-weight: 800 !important;
}

body.portal-layout .tab-count,
body.portal-layout .invoice-filter-count,
body.portal-layout .invoice-side-tab-counter,
body.portal-layout .counter-pill,
body.admin-layout .tab-count,
body.admin-layout .counter-pill {
  border-color: #dfbc9f !important;
  background: #fff2e4 !important;
  color: #6d2d13 !important;
}

body.portal-layout .tab.active .tab-count,
body.portal-layout .tab-btn.active .tab-count,
body.admin-layout .tab.active .tab-count,
body.admin-layout .tab-btn.active .tab-count {
  border-color: #cf7f4f !important;
  background: #ffe4cc !important;
  color: #6a240b !important;
}

body.portal-layout .nav-icon,
body.admin-layout .nav-icon {
  color: #7a3a1c !important;
}

body.portal-layout table th,
body.admin-layout table th,
body.portal-layout .list-table thead th,
body.admin-layout .list-table thead th {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.2) 0,
      rgba(255, 255, 255, 0.2) 1px,
      transparent 1px,
      transparent 18px
    ),
    linear-gradient(180deg, #f7e4cd 0%, #e9cda9 100%) !important;
  color: #6c2f13 !important;
  border-bottom: 1px solid #c89d72 !important;
}

body.portal-layout table td,
body.admin-layout table td {
  border-bottom-color: #ead2bb !important;
  color: #35261b !important;
}

body.portal-layout .msg,
body.portal-layout .topmsg,
body.admin-layout .msg,
body.admin-layout .topmsg {
  background: #fff6ea !important;
  border: 1px solid #e4c7a7 !important;
  border-left: 3px solid #c87940 !important;
  color: #6d381b !important;
}

body.portal-layout .toast-close-btn,
body.admin-layout .toast-close-btn {
  border-color: #dcb896 !important;
  background: #fffaf3 !important;
  color: #6d3b1f !important;
}

body.portal-layout .service-backdrop.open,
body.admin-layout .service-backdrop.open {
  background: rgba(61, 28, 10, 0.46) !important;
  backdrop-filter: blur(1.5px);
}

body.portal-layout .img-modal-card,
body.admin-layout .img-modal-card,
body.portal-layout .share-modal,
body.admin-layout .share-modal {
  border: 1px solid var(--premium-line) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #fff9f1 0%, #f6e8d6 100%) !important;
  box-shadow:
    0 24px 60px rgba(63, 22, 10, 0.3),
    0 2px 0 rgba(255, 255, 255, 0.62) inset !important;
}

body.portal-layout input,
body.portal-layout select,
body.portal-layout textarea,
body.admin-layout input,
body.admin-layout select,
body.admin-layout textarea {
  border: 1px solid #d8b899 !important;
  background: #fff8ef !important;
  color: #422a1c !important;
}

body.portal-layout input:focus,
body.portal-layout select:focus,
body.portal-layout textarea:focus,
body.admin-layout input:focus,
body.admin-layout select:focus,
body.admin-layout textarea:focus {
  border-color: #c06b37 !important;
  box-shadow: 0 0 0 3px rgba(192, 107, 55, 0.17) !important;
}

body.portal-layout .muted,
body.portal-layout .list-meta,
body.portal-layout .list-note,
body.admin-layout .muted {
  color: #7b5d49 !important;
}

body.portal-layout .list-table tbody tr.active-row td,
body.portal-layout .invoice-table tbody tr.active-row td,
body.admin-layout .list-table tbody tr.active-row td,
body.admin-layout .sel-row td {
  background: #fff3e3 !important;
  border-top: 1px solid #cf8a54 !important;
  border-bottom: 1px solid #cf8a54 !important;
}

body.portal-layout .list-table tbody tr.active-row td:first-child,
body.portal-layout .invoice-table tbody tr.active-row td:first-child,
body.admin-layout .list-table tbody tr.active-row td:first-child,
body.admin-layout .sel-row td:first-child {
  border-left: 1px solid #cf8a54 !important;
}

body.portal-layout .list-table tbody tr.active-row td:last-child,
body.portal-layout .invoice-table tbody tr.active-row td:last-child,
body.admin-layout .list-table tbody tr.active-row td:last-child,
body.admin-layout .sel-row td:last-child {
  border-right: 1px solid #cf8a54 !important;
}

body.auth-layout {
  background:
    radial-gradient(circle at 16% 12%, rgba(217, 26, 26, 0.1), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(255, 173, 0, 0.12), transparent 40%),
    linear-gradient(180deg, #fbefe3 0%, #f7ecdf 52%, #f2e5d8 100%) !important;
  color: #2f2016 !important;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif !important;
}

body.auth-layout .card {
  background: linear-gradient(180deg, #fff9f1 0%, #f6e8d6 100%) !important;
  border: 1px solid #d8b28f !important;
  border-radius: 16px !important;
  box-shadow:
    0 14px 30px rgba(79, 23, 10, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.66) inset !important;
}

body.auth-layout h1 {
  color: #6a2c12 !important;
  letter-spacing: 0.01em;
}

body.auth-layout .muted {
  color: #7b5d49 !important;
}

body.auth-layout input,
body.auth-layout select,
body.auth-layout textarea {
  border: 1px solid #d8b899 !important;
  background: #fff8ef !important;
  color: #422a1c !important;
}

body.auth-layout input:focus,
body.auth-layout select:focus,
body.auth-layout textarea:focus {
  border-color: #c06b37 !important;
  box-shadow: 0 0 0 3px rgba(192, 107, 55, 0.17) !important;
}

body.auth-layout button,
body.auth-layout .btn,
body.auth-layout .btn2 {
  border: 1px solid #bf6238 !important;
  background: linear-gradient(90deg, #cf4a25 0%, #f19731 100%) !important;
  color: #fff8f2 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 20px rgba(154, 38, 14, 0.2) !important;
}

body.auth-layout button:hover,
body.auth-layout .btn:hover,
body.auth-layout .btn2:hover {
  border-color: #a74a22 !important;
  background: linear-gradient(90deg, #b83f1e 0%, #df8126 100%) !important;
  color: #fff8f2 !important;
}

body.auth-layout .msg,
body.auth-layout .topmsg {
  background: #fff6ea !important;
  border: 1px solid #e4c7a7 !important;
  color: #6d381b !important;
}

body.auth-layout .err,
body.auth-layout .error {
  background: #fff1f1 !important;
  border: 1px solid #efc7c7 !important;
  color: #8a2b2b !important;
}

body.auth-layout .links a {
  color: #7a3a1c !important;
}

/* Calm workspace theme for portal/admin operational pages (not invoice detail/share/edit) */
body.workspace-ui {
  --ws-paper: #fdf8f2;
  --ws-paper-soft: #f6ecdf;
  --ws-line: #d7bea4;
  --ws-line-soft: #e5d3bf;
  --ws-text: #3f2d22;
  --ws-muted: #7b6150;
  --ws-accent: #b77b55;
  --ws-accent-hover: #a96c45;
  --ws-accent-soft: #f2dfcc;
  --ws-tag: #6a432d;
  background:
    radial-gradient(circle at 18% 14%, rgba(179, 118, 74, 0.08), transparent 38%),
    radial-gradient(circle at 84% 74%, rgba(205, 150, 104, 0.1), transparent 42%),
    linear-gradient(180deg, #f8f1e8 0%, #f3ebdf 56%, #f0e7da 100%) !important;
  color: var(--ws-text) !important;
}

body.workspace-ui::before {
  opacity: 0.09 !important;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(106, 67, 45, 0.08) 0,
      rgba(106, 67, 45, 0.08) 1px,
      transparent 1px,
      transparent 14px
    ) !important;
}

body.workspace-ui .top,
body.workspace-ui .page-head,
body.workspace-ui .card,
body.workspace-ui .tab-content.active,
body.workspace-ui .users-content,
body.workspace-ui .adm-layout,
body.workspace-ui .portal-service-panel,
body.workspace-ui .invoice-side,
body.workspace-ui .tab-service,
body.workspace-ui .users-service,
body.workspace-ui .edit-service,
body.workspace-ui .adm-service {
  background: linear-gradient(180deg, var(--ws-paper) 0%, var(--ws-paper-soft) 100%) !important;
  border-color: var(--ws-line) !important;
  box-shadow:
    0 8px 20px rgba(62, 34, 18, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.72) inset !important;
}

body.workspace-ui .portal-service-brand,
body.workspace-ui .portal-service-brand-logo,
body.workspace-ui .invoice-side-actions,
body.workspace-ui .tab-service-actions,
body.workspace-ui .users-service-actions,
body.workspace-ui .side-actions {
  background: #fbf3ea !important;
  border-color: var(--ws-line-soft) !important;
}

body.workspace-ui .portal-service-brand-title,
body.workspace-ui .portal-service-section-title,
body.workspace-ui .invoice-side-head,
body.workspace-ui .tab-service-head,
body.workspace-ui .users-service-head,
body.workspace-ui .edit-service-head,
body.workspace-ui .side-head,
body.workspace-ui .service-head,
body.workspace-ui .service-section-title {
  color: var(--ws-tag) !important;
  border-color: var(--ws-line-soft) !important;
}

body.workspace-ui .top a,
body.workspace-ui .page-crumbs a,
body.workspace-ui .links a,
body.workspace-ui a.nav-link {
  color: #6b432e !important;
}

body.workspace-ui button,
body.workspace-ui .btn,
body.workspace-ui .btn2,
body.workspace-ui .tab,
body.workspace-ui .tab-btn,
body.workspace-ui .gear,
body.workspace-ui .tool-btn {
  border-color: #d4b697 !important;
  background: linear-gradient(90deg, #fff8ef 0%, #fbead8 100%) !important;
  color: #66412b !important;
}

body.workspace-ui button:hover,
body.workspace-ui .btn:hover,
body.workspace-ui .btn2:hover,
body.workspace-ui .tab:hover,
body.workspace-ui .tab-btn:hover,
body.workspace-ui .gear:hover,
body.workspace-ui .tool-btn:hover {
  border-color: #c8a07d !important;
  background: linear-gradient(90deg, #faecd9 0%, #f5ddc4 100%) !important;
  color: #5c3823 !important;
}

body.workspace-ui .btn-primary,
body.workspace-ui .invoice-new-btn,
body.workspace-ui button[type="submit"]:not(.btn2):not(.btn-danger):not(.icon-btn-danger) {
  border-color: #b57b57 !important;
  background: linear-gradient(90deg, #bf855e 0%, #d5a17b 100%) !important;
  color: #fff9f4 !important;
  box-shadow: 0 6px 16px rgba(99, 57, 31, 0.16) !important;
}

body.workspace-ui .btn-primary:hover,
body.workspace-ui .invoice-new-btn:hover,
body.workspace-ui button[type="submit"]:not(.btn2):not(.btn-danger):not(.icon-btn-danger):hover {
  border-color: #ab6e4a !important;
  background: linear-gradient(90deg, #b8784f 0%, #cb9369 100%) !important;
  color: #fff9f4 !important;
}

body.workspace-ui .tab.active,
body.workspace-ui .tab-btn.active,
body.workspace-ui .btn.is-active,
body.workspace-ui .btn2.is-active,
body.workspace-ui .tab.is-active,
body.workspace-ui .tab-btn.is-active,
body.workspace-ui .tool-btn.is-active,
body.workspace-ui .nav-btn.active,
body.workspace-ui .page-actions .btn2.active {
  border-color: #c09574 !important;
  background: var(--ws-accent-soft) !important;
  color: #563321 !important;
  font-weight: 700 !important;
}

body.workspace-ui .invoice-filter-tag,
body.workspace-ui .invoice-side-tab-btn,
body.workspace-ui .org-service-tag,
body.workspace-ui .team-service-tag,
body.workspace-ui .service-pane-tab,
body.workspace-ui .tag-btn,
body.workspace-ui .team-tag-btn {
  border-bottom-color: #a98363 !important;
  color: #68402b !important;
}

body.workspace-ui .invoice-filter-tag.active,
body.workspace-ui .invoice-side-tab-btn.active,
body.workspace-ui .org-service-tag.active,
body.workspace-ui .team-service-tag.active,
body.workspace-ui .service-pane-tab.active,
body.workspace-ui .tag-btn.active,
body.workspace-ui .team-tag-btn.active {
  border-bottom-color: #7f4f33 !important;
  color: #54321f !important;
  font-weight: 800 !important;
}

body.workspace-ui .tab-count,
body.workspace-ui .invoice-filter-count,
body.workspace-ui .invoice-side-tab-counter,
body.workspace-ui .counter-pill {
  border-color: #d8bc9f !important;
  background: #f4e5d5 !important;
  color: #66402a !important;
}

body.workspace-ui .tab.active .tab-count,
body.workspace-ui .tab-btn.active .tab-count {
  border-color: #c49572 !important;
  background: #ead0b8 !important;
  color: #5a341f !important;
}

body.workspace-ui .muted,
body.workspace-ui .list-meta,
body.workspace-ui .list-note,
body.workspace-ui .invoice-status-sub,
body.workspace-ui .invoice-sum-muted,
body.workspace-ui .invoice-side-kv-item span,
body.workspace-ui .invoice-kanban-meta,
body.workspace-ui .invoice-kanban-empty,
body.workspace-ui .chat-at,
body.workspace-ui .service-team-logo-placeholder,
body.workspace-ui .team-logo-placeholder,
body.workspace-ui .team-inline-note,
body.workspace-ui .readonly-hint,
body.workspace-ui .tab-save-note,
body.workspace-ui .mode-tag,
body.workspace-ui .kpi .label {
  color: var(--ws-muted) !important;
}

body.workspace-ui .invoice-side-kv-item b,
body.workspace-ui .invoice-progress-value,
body.workspace-ui .invoice-kanban-title,
body.workspace-ui .invoice-kanban-money,
body.workspace-ui .chat-author,
body.workspace-ui .list-title,
body.workspace-ui .counter-pill strong,
body.workspace-ui .invoice-mode-link,
body.workspace-ui .invoice-filter-icon,
body.workspace-ui table th {
  color: #5a3724 !important;
}

body.workspace-ui .invoice-type-badge {
  border-color: #d4b899 !important;
  background: #f7eadc !important;
  color: #6a412a !important;
}

body.workspace-ui .invoice-progress-track {
  background: #eadccf !important;
}

body.workspace-ui .invoice-progress-fill {
  background: linear-gradient(90deg, #be845e, #d3a17c) !important;
}

body.workspace-ui .invoice-preview-logo,
body.workspace-ui .manager-qr img,
body.workspace-ui .invoice-preview-payment,
body.workspace-ui .invoice-preview-payment img,
body.workspace-ui .chat-msg {
  border-color: var(--ws-line-soft) !important;
  background: #fff8f0 !important;
}

body.workspace-ui .list-table tbody tr:hover td {
  background: #f8eee3 !important;
}

body.workspace-ui .list-table tbody tr.active-row td,
body.workspace-ui .invoice-table tbody tr.active-row td,
body.workspace-ui .sel-row td {
  background: #f5e6d6 !important;
  border-top-color: #c89267 !important;
  border-bottom-color: #c89267 !important;
}

body.workspace-ui .list-table tbody tr.active-row td:first-child,
body.workspace-ui .invoice-table tbody tr.active-row td:first-child,
body.workspace-ui .sel-row td:first-child {
  border-left-color: #c89267 !important;
}

body.workspace-ui .list-table tbody tr.active-row td:last-child,
body.workspace-ui .invoice-table tbody tr.active-row td:last-child,
body.workspace-ui .sel-row td:last-child {
  border-right-color: #c89267 !important;
}

body.workspace-ui .role {
  border-color: #d7bc9e !important;
  background: #f4e6d7 !important;
  color: #5f3a26 !important;
}

body.workspace-ui .invoice-status.draft,
body.workspace-ui .invoice-status.editing {
  border-color: #d5bc9f !important;
  background: #f4e7d8 !important;
  color: #62402b !important;
}

body.workspace-ui .invoice-status-sub,
body.workspace-ui .media-note,
body.workspace-ui .img-modal-status,
body.workspace-ui .chat-item .muted {
  color: #7b6150 !important;
}

body.workspace-ui .service-box,
body.workspace-ui .service-chat,
body.workspace-ui .media-box,
body.workspace-ui .invoice-preview-file,
body.workspace-ui .chat-item,
body.workspace-ui .org-signer-card,
body.workspace-ui .team-settings-preview,
body.workspace-ui .team-inline-note {
  border-color: #ddc9b3 !important;
  background: #fff7ee !important;
}

body.workspace-ui .media-preview img,
body.workspace-ui .org-signer-card img {
  border-color: #d8c2ab !important;
  background: #fffaf4 !important;
}

body.workspace-ui .file-subtab-btn {
  border-color: #d8bc9f !important;
  background: #fff8ef !important;
  color: #69432c !important;
}

body.workspace-ui .file-subtab-btn.active {
  border-color: #c1916e !important;
  background: #f2ddc8 !important;
  color: #593621 !important;
}

body.workspace-ui .file-badge {
  border-color: #d8be9f !important;
  background: #f5e9db !important;
  color: #62402a !important;
}

body.workspace-ui .file-badge.primary {
  border-color: #c7a57f !important;
  background: #f4e2cc !important;
  color: #664126 !important;
}

body.workspace-ui .file-badge.inactive {
  border-color: #ddc1c1 !important;
  background: #f9eded !important;
  color: #7f3737 !important;
}

body.workspace-ui .messenger-link {
  border-color: #d9c1a8 !important;
  background: #fbf2e8 !important;
  color: #5f3d29 !important;
}

body.workspace-ui .messenger-link:hover {
  border-color: #c9a987 !important;
  background: #f6e6d5 !important;
}

body.workspace-ui .loading-wrap {
  background: #ecddce !important;
}

body.workspace-ui .loading-bar {
  background: linear-gradient(90deg, #be845e, #d4a27c) !important;
}

body.workspace-ui .btn-accent {
  border-color: #c39a74 !important;
  background: #f4e6d6 !important;
  color: #604029 !important;
}

body.workspace-ui .crumbs a {
  color: #6b432e !important;
}

body.workspace-ui .crumbs span {
  color: #7b6150 !important;
}

body.workspace-ui .tab-main > .card > h2:first-child,
body.workspace-ui .tab-main > .card > h3:first-child,
body.workspace-ui .service-section-title {
  background: #f6e9db !important;
  color: #643d28 !important;
}

body.workspace-ui .tab-save-row,
body.workspace-ui .users-service-actions,
body.workspace-ui .invoice-side-actions,
body.workspace-ui .tab-service-actions,
body.workspace-ui .side-actions {
  border-top-color: #e3cfba !important;
  border-bottom-color: #e3cfba !important;
}

body.workspace-ui .team-tags,
body.workspace-ui .org-service-tags {
  border-bottom-color: #dfc9b3 !important;
}

body.workspace-ui .list-table tbody tr.row-default td {
  background: #f7ecdf !important;
}

@media (min-width: 1101px) {
  .portal-layout .portal-service-panel {
    position: sticky;
    top: 8px;
    align-self: start;
    max-height: calc(100vh - 98px);
    overflow-x: hidden;
  }
}

@media (max-width: 1100px) {
  .page-head-row {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .page-crumbs {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    flex-wrap: wrap;
  }

  .page-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .session-user {
    max-width: 100%;
  }

  .gmail-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .portal-layout .wrap,
  .portal-layout .top-inner {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
