:root {
  --cw-bg: #f8fafc;
  --cw-surface: #ffffff;
  --cw-bg-surface: #ffffff;
  --cw-bg-input: #ffffff;
  --cw-border: #e2e8f0;
  --cw-border-input: #e2e8f0;
  --cw-border-hover: #cbd5e1;
  --cw-text: #0f172a;
  --cw-text-main: #0f172a;
  --cw-text-muted: #64748b;
  --cw-muted: #64748b;
  --cw-primary: #1f93ff;
  --cw-primary-hover: #007ae6;
  --cw-card-hover: #f1f5f9;
  --cw-danger: #ef4444;
  --cw-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html.dark {
  --cw-bg: #151718;
  --cw-surface: #1e2227;
  --cw-bg-surface: #1e2227;
  --cw-bg-input: #0f172a;
  --cw-border: #2a2e35;
  --cw-border-input: #334155;
  --cw-border-hover: #3a3f47;
  --cw-text: #f1f5f9;
  --cw-text-main: #f8fafc;
  --cw-text-muted: #94a3b8;
  --cw-muted: #94a3b8;
  --cw-card-hover: #262a30;
  --cw-primary: #1f93ff;
  --cw-primary-hover: #007ae6;
}

/* Chatwoot-compatible design tokens and primitives.
   Kept additive so existing Explorer screens remain backwards compatible. */
:root {
  --cw-font-ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --cw-radius-sm: 6px;
  --cw-radius-md: 8px;
  --cw-control-sm: 32px;
  --cw-control-md: 40px;
  --cw-focus-ring: 0 0 0 2px rgba(59, 130, 246, 0.25);
  --cw-button-solid: #1f93ff;
  --cw-button-solid-hover: #007ae6;
  --cw-button-ghost-hover: rgba(255, 255, 255, 0.08);
}

html.dark {
  --cw-button-solid: #1f93ff;
  --cw-button-solid-hover: #3ea2ff;
  --cw-button-ghost-hover: rgba(255, 255, 255, 0.08);
}

/* Shared Chatwoot-like controls for Explorer modules. */
.cw-btn {
  appearance: none;
  min-height: var(--cw-control-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--cw-radius-sm);
  font-family: var(--cw-font-ui);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.cw-btn:not(.cw-btn-primary) {
  background: transparent;
  color: var(--cw-text-main);
  border-color: var(--cw-border);
}
.cw-btn:not(.cw-btn-primary):hover { background: var(--cw-card-hover); border-color: var(--cw-border-hover); }
.cw-btn-primary { background: var(--cw-button-solid); border-color: var(--cw-button-solid); color: #fff; }
.cw-btn-primary:hover { background: var(--cw-button-solid-hover); border-color: var(--cw-button-solid-hover); }
.cw-btn:focus-visible { outline: 2px solid var(--cw-primary); outline-offset: 2px; }
.cw-btn:disabled { cursor: not-allowed; opacity: .5; }
.btn-icon { width: var(--cw-control-sm); min-width: var(--cw-control-sm); padding: 0; }

*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--cw-font-family); background: var(--cw-bg); color: var(--cw-text-main); }
.app-header, .header, .top-bar, .header-bar { border-bottom: 1px solid var(--cw-border); }
.header-brand, .brand-section, .top-bar-left { display: flex; align-items: center; gap: 12px; }
.app-brand-icon, .brand-icon { width: 48px; height: 48px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; background: var(--cw-surface); border: 1px solid var(--cw-border); color: var(--cw-text); font-weight: 700; overflow: hidden; }
.brand-icon { background: #ffffff !important; padding: 7px 12px; width: auto; height: auto; min-height: 52px; flex: 0 0 auto; border: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); overflow: visible; }
.brand-logo { height: 38px; width: auto; max-width: 100%; display: block; }
.theme-toggle, .theme-switch, .theme-capsule { display: inline-flex; align-items: center; gap: 2px; background: var(--cw-surface); border: 1px solid var(--cw-border); border-radius: 999px; padding: 3px; }
.theme-toggle button, .theme-switch button, .theme-capsule button { border: 0; background: transparent; color: var(--cw-muted); border-radius: 999px; cursor: pointer; }
.theme-toggle button.active, .theme-switch button.active, .theme-capsule button.active { background: var(--cw-primary); color: #fff; }
.chatwoot-context, .conversation-meta, .context-meta { color: var(--cw-muted); font-size: 11px; }
.context-meta { line-height: 1.2; gap: 0; }
.context-meta > * { margin: 0; line-height: 1.2; }
.workspace { min-width: 0; }
.surface-card, .cw-modal-dialog, .app-card, .day-column { background: var(--cw-bg-surface); color: var(--cw-text-main); border-color: var(--cw-border); }
.breadcrumbs { color: var(--cw-text-muted); }
.form-control, input, select, textarea { background-color: var(--cw-bg-input); color: var(--cw-text-main); border: 1px solid var(--cw-border-input); border-radius: 6px; padding: 8px 12px; font-family: var(--cw-font-family); }
.form-control:focus, input:focus, select:focus, textarea:focus { border-color: #3b82f6; outline: none; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25); }
.form-control::placeholder, input::placeholder, textarea::placeholder, label { color: var(--cw-text-muted); }
html.dark input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html.dark input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.9); cursor: pointer; opacity: 0.85; }
.modal-checkbox { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.modal-checkbox input { width: auto; padding: 0; }
.field-error { display: none; margin-top: 5px; color: var(--cw-danger, #ef4444); font-size: 11px; }
.field-error.visible { display: block; }

/* Workspace Shell v1: shared primitives for independent applications. */
.workspace-theme { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: var(--cw-surface); border: 1px solid var(--cw-border); border-radius: 999px; }
.workspace-theme button { border: 0; border-radius: 999px; padding: 4px 9px; background: transparent; color: var(--cw-muted); cursor: pointer; font: 500 12px var(--cw-font-ui); }
.workspace-theme button:hover, .workspace-theme button.active { background: var(--cw-primary); color: #fff; }
.workspace-state { padding: 32px 16px; text-align: center; color: var(--cw-muted); }
.workspace-state p { margin: 0 0 12px; }
.workspace-state-error { color: var(--cw-danger); }
.workspace-toast { position: fixed; right: 24px; bottom: 24px; z-index: 2000000; max-width: min(420px, calc(100vw - 32px)); padding: 10px 14px; border: 1px solid var(--cw-border); border-radius: 6px; background: var(--cw-surface); color: var(--cw-text-main); box-shadow: 0 12px 30px rgba(0,0,0,.25); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
.workspace-toast.is-visible { opacity: 1; transform: translateY(0); }
.workspace-toast.is-error { border-color: var(--cw-danger); color: var(--cw-danger); }
.workspace-header { position: sticky; top: 0; z-index: 100; display: block; padding: 12px 0 0; margin-bottom: 20px; background: var(--cw-bg); border-bottom: 1px solid var(--cw-border); }
.workspace-title { margin: 0 0 16px; color: var(--cw-text-main); font-size: 20px; font-weight: 600; }
.workspace-global-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 12px; }
.workspace-header-loading { min-height: 64px; opacity: .72; }
.workspace-header-loading::after { content: ''; width: 16px; height: 16px; margin-left: auto; border: 2px solid var(--cw-border); border-top-color: var(--cw-primary); border-radius: 50%; animation: workspace-spin .7s linear infinite; }
.workspace-header-ready { opacity: 1; transition: opacity .16s ease; }
@keyframes workspace-spin { to { transform: rotate(360deg); } }
.vetvida-app-nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 0 0 10px; }
.vetvida-app-nav a { padding: 7px 11px; border-radius: 6px; color: var(--cw-text-muted); font-size: 13px; text-decoration: none; white-space: nowrap; }
.vetvida-app-nav a:hover, .vetvida-app-nav a.active { background: var(--cw-card-hover); color: var(--cw-text-main); }
.workspace-header-identity, .workspace-header-tools, .workspace-brand, .workspace-context { display: flex; align-items: center; }
.workspace-header-identity { min-width: 0; gap: 12px; }
.workspace-header-tools { flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.workspace-brand { position: relative; flex: 0 0 auto; justify-content: center; width: 72px; min-height: 52px; padding: 7px 12px; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); overflow: hidden; }
.workspace-brand-logo { display: block; width: auto; height: 38px; max-width: 100%; }
.workspace-brand .vetvida-inline-logo { display: block; width: 100%; height: 38px; }
.workspace-brand-fallback { display: none; color: #1f93ff; font-size: 28px; font-weight: 700; line-height: 1; }
.workspace-brand-fallback:not([hidden]) { display: inline-flex; }
.workspace-brand-text { min-width: 0; }
.workspace-brand-text h1 { margin: 0; color: var(--cw-text-main); font: 600 17px/1.3 var(--cw-font-ui); letter-spacing: -.01em; }
.workspace-brand-text p { margin: 3px 0 0; color: var(--cw-muted); font-size: 12px; }
.workspace-context { flex-direction: column; align-items: flex-end; gap: 2px; color: var(--cw-muted); font-size: 11px; white-space: nowrap; }
.profile-menu { position: relative; flex: 0 0 auto; }
.profile-avatar { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0; overflow: hidden; border: 1px solid var(--cw-border); border-radius: 50%; background: var(--cw-primary); color: #fff; font: 700 13px/1 var(--cw-font-ui); cursor: pointer; }
.profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-dropdown { position: absolute; top: 46px; right: 0; z-index: 20; width: 220px; padding: 8px; background: var(--cw-surface); border: 1px solid var(--cw-border); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.profile-dropdown button { display: block; width: 100%; padding: 10px; border: 0; border-radius: 6px; background: transparent; color: var(--cw-text-main); text-align: left; cursor: pointer; }
.profile-dropdown button:hover { background: var(--cw-card-hover); }
.profile-user { padding: 9px 10px; }
.profile-user strong { display: block; }
.profile-user small { color: var(--cw-muted); }
.profile-divider { margin: 6px 0; border-top: 1px solid var(--cw-border); }
.workspace-dialog-shell { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(0,0,0,.68); }
.workspace-dialog-shell.open { display: flex; }
.workspace-dialog { width: min(680px, 100%); max-height: 90vh; overflow: auto; background: var(--cw-bg-surface); color: var(--cw-text-main); border: 1px solid var(--cw-border); border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.workspace-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--cw-border); }
.workspace-dialog-head h2 { margin: 0; font-size: 16px; }
.workspace-dialog-body { padding: 20px; }
.workspace-dialog .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.workspace-dialog .field { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: var(--cw-muted); font-size: 12px; }
.workspace-dialog .field-wide { grid-column: 1 / -1; }
.workspace-dialog .field > span, .workspace-dialog .field > label { color: var(--cw-text-muted); font-size: 12px; font-weight: 500; }
.workspace-dialog .form-control { width: 100%; min-height: 38px; }
.workspace-dialog textarea.form-control { min-height: 84px; resize: vertical; }
.workspace-dialog select[multiple] { min-height: 96px; }
.workspace-dialog .check-option { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; color: var(--cw-text-muted); font-size: 13px; }
.workspace-dialog .check-option input { width: auto; }
.workspace-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.workspace-dialog-error { min-height: 18px; margin: 12px 0 0; color: var(--cw-danger); font-size: 12px; }
.workspace-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(15, 23, 42, .62); }
.workspace-modal[hidden] { display: none; }
.workspace-modal.open { display: flex; }
.workspace-modal.budget-modal-active { z-index: 2001; }
.workspace-modal .workspace-dialog { width: min(680px, 100%); max-height: min(90vh, 720px); overflow: auto; }
.contact-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: .5rem; }
.contact-search .form-control { min-width: 0; min-height: 2.5rem; }
.contact-search .btn { min-height: 2.5rem; white-space: nowrap; }
.contact-results { margin-top: .75rem; max-height: min(48vh, 360px); overflow-y: auto; }
body.laudos-app .workspace-header { position: relative; top: auto; z-index: 1; }
.workspace-header-actions { display: flex; align-items: center; gap: 10px; }
.workspace-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; min-height: 40px; padding: 10px 12px; background: var(--cw-bg-input); border: 1px solid var(--cw-border-input); border-radius: 6px; }
.check-option { display: inline-flex; align-items: center; gap: 7px; color: var(--cw-text-muted); font-size: 13px; }
.check-option input { width: auto; }
.workspace-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.workspace-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--cw-border); border-radius: 6px; color: var(--cw-text-main); background: var(--cw-card-hover); font-size: 12px; }
.workspace-chips .btn-icon { min-height: 20px; width: 20px; min-width: 20px; padding: 0; border: 0; color: var(--cw-muted); }
.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--cw-muted); font-size: 12px; }
@media (max-width: 700px) { .workspace-header-actions { align-items: stretch; flex-wrap: wrap; } .workspace-theme { order: 2; } .workspace-header-actions .cw-btn { order: 1; } .pagination-bar { align-items: flex-start; flex-direction: column; } }
@media (max-width: 760px) { .workspace-header { align-items: flex-start; flex-wrap: wrap; } .workspace-header-tools { width: 100%; justify-content: space-between; } }
@media (max-width: 560px) { .workspace-dialog .form-grid { grid-template-columns: 1fr; } .workspace-dialog .field-wide { grid-column: auto; } }
@media (max-width: 480px) { .contact-search { grid-template-columns: 1fr; } .contact-search .btn { width: 100%; } }

/* Orçamentos: composição responsiva sobre os componentes nativos do Tabler. */
html, body, .page { max-width: 100%; }
.workspace-header { display: block !important; width: 100%; max-width: 100%; box-sizing: border-box; padding: 0; margin-bottom: 0 !important; background: var(--tblr-body-bg); }
.workspace-global-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; box-sizing: border-box; padding-top: .5rem; padding-bottom: .5rem; }
.workspace-header-identity, .workspace-header-tools { min-width: 0; display: flex; align-items: center; gap: .75rem; }
.workspace-header-tools { justify-content: flex-end; flex-wrap: wrap; }
.workspace-brand { min-width: 0; width: auto; min-height: 0; gap: .5rem; padding: 0; color: var(--tblr-body-color); text-decoration: none; background: transparent; box-shadow: none; overflow: visible; }
.workspace-brand:hover { color: var(--tblr-primary); }
.workspace-brand .vetvida-inline-logo { display: block; width: 96px; height: 36px; object-fit: contain; flex: 0 0 96px; }
.dark .workspace-brand .vetvida-inline-logo { filter: invert(1) hue-rotate(180deg); }
.workspace-brand-text { font-weight: 600; white-space: nowrap; }
.workspace-theme { display: inline-flex; gap: .125rem; padding: .125rem; border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius); }
.workspace-theme .btn { color: var(--tblr-secondary-color); }
.workspace-theme .btn.active { color: var(--tblr-primary); background: var(--tblr-primary-bg-subtle); }
.workspace-context { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu { position: relative; flex: 0 0 auto; }
.profile-dropdown { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 1100; min-width: 190px; padding: .5rem; background: var(--tblr-body-bg); border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius); box-shadow: var(--tblr-box-shadow); }
.profile-dropdown button { display: block; width: 100%; padding: .4rem .5rem; border: 0; background: transparent; color: var(--tblr-body-color); text-align: left; border-radius: var(--tblr-border-radius-sm); }
.profile-dropdown button:hover { background: var(--tblr-tertiary-bg); }
.profile-user { padding: .4rem .5rem .6rem; display: grid; gap: .125rem; }
.profile-user small { color: var(--tblr-secondary-color); }
.profile-divider { margin: .4rem 0; border-top: 1px solid var(--tblr-border-color); }
.workspace-header > .workspace-global-header { flex: 0 0 100%; width: 100%; }
.workspace-header > .vetvida-app-nav { order: 3; flex: 0 0 auto; width: min(1288px, calc(100% - 1rem)); max-width: 1288px; margin: 0 auto; padding: 0 clamp(.75rem, 3vw, 2rem) .35rem; min-width: 0; box-sizing: border-box; gap: .25rem; }
.workspace-header > .vetvida-app-nav .navbar-nav { min-width: 0; }
.workspace-header > .vetvida-app-nav .nav-link { color: var(--tblr-secondary-color); border-radius: var(--tblr-border-radius); }
.workspace-header > .vetvida-app-nav .nav-link:hover, .workspace-header > .vetvida-app-nav .nav-link:focus-visible, .workspace-header > .vetvida-app-nav .nav-link.active { color: var(--tblr-primary); background: var(--tblr-primary-bg-subtle); }
.workspace-shell { width: 100%; max-width: 1400px; padding: .75rem clamp(.75rem, 3vw, 2rem) 2.5rem; }
.workspace-shell .page-title { color: var(--tblr-heading-color); }
.workspace-shell > .page-header { margin-top: 0 !important; margin-bottom: .75rem !important; }
.workspace-shell > .page-header .page-title { margin-bottom: .15rem; }
.workspace-header #profileAvatar { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; }
.workspace-header #profileAvatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.workspace-shell .card { min-width: 0; margin-bottom: 1rem; }
.workspace-shell .card > .section-title { padding: 1rem 1rem 0; margin: 0 0 1rem; }
.workspace-shell .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 0 1rem 1rem; }
.workspace-shell .field { min-width: 0; }
.workspace-shell .field > span, .workspace-shell .field > label { color: var(--tblr-secondary-color); font-weight: 500; }
.workspace-shell .field > span, .workspace-shell .field > label { color: var(--tblr-body-color); }
.workspace-shell .form-control { border-color: #64748b; }
.dark .workspace-shell .form-control { border-color: #94a3b8; }
.workspace-shell .btn-primary { background: #0050a4; border-color: #0050a4; }
.workspace-shell .btn-primary:hover, .workspace-shell .btn-primary:focus-visible { background: #003f83; border-color: #003f83; }
.workspace-shell .table.table-vcenter thead th { color: #334155; background-color: #e2e8f0; }
.workspace-shell .btn.btn-outline-secondary { color: #334155; border-color: #64748b; }
.workspace-shell .badge.bg-blue-lt { color: #003b73 !important; background-color: #dbeafe !important; }
.dark .workspace-shell .table.table-vcenter thead th { color: #f1f5f9; background-color: #334155; }
.dark .workspace-shell .btn.btn-outline-secondary { color: #e2e8f0; border-color: #94a3b8; }
.dark .workspace-shell .badge.bg-blue-lt, [data-theme="dark"] .workspace-shell .badge.bg-blue-lt, [data-bs-theme="dark"] .workspace-shell .badge.bg-blue-lt { color: #d0e4ff !important; background: #1d3d63 !important; }
.workspace-shell .toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, 14rem) minmax(7rem, auto); align-items: end; gap: .75rem; padding: 0 1rem 1rem; }
.workspace-shell .toolbar .field { margin: 0; }
.workspace-shell .model-list-toolbar, .workspace-shell .odt-list-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; padding: 1rem; }
.workspace-shell .model-list-toolbar .section-title, .workspace-shell .odt-list-toolbar .section-title { margin: 0 auto 0 0; }
.workspace-shell .model-list-toolbar .toolbar { display: grid; grid-template-columns: minmax(12rem, 22rem) auto; gap: .5rem; padding: 0; }
.workspace-shell .odt-list-toolbar .odt-filter { display: grid; grid-template-columns: minmax(15rem, 1fr) auto auto; gap: .5rem; padding: 0; min-width: min(100%, 38rem); }
.workspace-shell .table-scroll { max-width: 100%; overflow-x: auto; }
.workspace-shell .totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding: 0 1rem; }
.workspace-shell .total-box { min-width: 0; padding: .75rem; border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius); }
@media (max-width: 768px) { .workspace-global-header, .workspace-header-tools { align-items: flex-start; } .workspace-global-header { flex-wrap: wrap; } .workspace-header-tools { width: 100%; justify-content: space-between; } .workspace-shell .form-grid, .workspace-shell .totals { grid-template-columns: 1fr; } .workspace-shell .toolbar, .workspace-shell .model-list-toolbar .toolbar, .workspace-shell .odt-list-toolbar .odt-filter { grid-template-columns: 1fr; width: 100%; } .workspace-shell .model-list-toolbar .section-title, .workspace-shell .odt-list-toolbar .section-title { width: 100%; } }
@media (max-width: 768px) { .workspace-header > .vetvida-app-nav { flex-wrap: nowrap; overflow-x: auto; } .workspace-header > .vetvida-app-nav .navbar-nav { flex: 0 0 auto; flex-direction: row; } .workspace-header > .vetvida-app-nav .ms-auto { margin-left: 0 !important; } .workspace-global-header, .workspace-header-tools { align-items: flex-start; } .workspace-global-header { flex-wrap: wrap; } .workspace-header-tools { width: 100%; justify-content: space-between; } .workspace-shell .form-grid, .workspace-shell .totals { grid-template-columns: 1fr; } .workspace-shell .toolbar, .workspace-shell .model-list-toolbar .toolbar, .workspace-shell .odt-list-toolbar .odt-filter { grid-template-columns: 1fr; width: 100%; min-width: 0; } .workspace-shell .model-list-toolbar .section-title, .workspace-shell .odt-list-toolbar .section-title { width: 100%; } }

#orcamento-lookup { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
#orcamento-lookup[open] { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
#orcamento-lookup::backdrop { background: rgba(0, 0, 0, .55); }
#orcamento-lookup .modal-dialog { width: min(720px, calc(100vw - 2rem)); height: min(620px, calc(100vh - 2rem)); max-height: min(90vh, 720px); overflow: hidden; display: flex; }
#orcamento-lookup .modal-content { min-height: 0; height: 100%; max-height: 100%; display: flex; flex-direction: column; width: 100%; }
#orcamento-lookup .modal-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
#orcamento-lookup .modal-footer { flex: 0 0 auto; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 420px) { #orcamento-lookup .modal-dialog { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); } #orcamento-lookup .modal-header, #orcamento-lookup .modal-body, #orcamento-lookup .modal-footer { padding: 12px; } #orcamento-lookup .modal-footer .btn { flex: 1 1 30%; } }

/* Canonical Workspace layout. Scoped to avoid changing independent Apps. */
.workspace-shell { width: min(1400px, 100%); margin: 0 auto; padding: 12px clamp(.75rem, 3vw, 2rem) 40px; }
.workspace-app { margin: 0; padding: 0 !important; }
.workspace-shell .header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 16px; margin-bottom: 20px; }
.workspace-shell .brand-section { min-width: 0; }
.workspace-shell .brand-text { min-width: 0; }
.workspace-shell .brand-text h1 { margin: 0; color: var(--cw-text-main); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.workspace-shell .brand-text p { margin: 3px 0 0; color: var(--cw-muted); font-size: 12px; }
.workspace-shell .tabs-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--cw-border); }
.workspace-shell .tab-item { min-height: 34px; padding: 8px 14px; border: 0; border-radius: 6px; background: transparent; color: var(--cw-muted); font: 500 13px/1 var(--cw-font-ui); cursor: pointer; }
.workspace-shell .tab-item:hover, .workspace-shell .tab-item.active { background: var(--cw-card-hover); color: var(--cw-text-main); }
.workspace-shell .tab-item.active { font-weight: 600; box-shadow: inset 0 -2px 0 var(--cw-primary); }
.workspace-shell .surface-card { min-width: 0; margin-bottom: 16px; padding: 20px; border: 1px solid var(--cw-border); border-radius: var(--cw-radius-md); }
.workspace-shell .section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.workspace-shell .section-title { margin: 0; color: var(--cw-text-main); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.workspace-shell .muted { color: var(--cw-muted); }
.workspace-shell .toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.workspace-shell .toolbar .form-control { width: min(100%, 420px); min-height: 38px; }
.workspace-shell .table-scroll { width: 100%; overflow-x: auto; }
.workspace-shell .data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.workspace-shell .data-table th, .workspace-shell .data-table td { padding: 12px 10px; border-bottom: 1px solid var(--cw-border); text-align: left; vertical-align: middle; font-size: 13px; }
.workspace-shell .data-table th { color: var(--cw-muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.workspace-shell .data-table tbody tr:hover { background: var(--cw-card-hover); }
.workspace-shell .data-table td:last-child { width: 1%; white-space: nowrap; }
.workspace-shell .data-table .cw-btn { margin: 2px 4px 2px 0; }
.workspace-shell .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.workspace-shell .field { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: var(--cw-muted); font-size: 12px; }
.workspace-shell .field-wide { grid-column: 1 / -1; }
.workspace-shell .field > span { color: var(--cw-text-muted); font-size: 12px; font-weight: 500; }
.workspace-shell .form-control { width: 100%; min-height: 38px; }
.workspace-shell select[multiple] { min-height: 96px; }
@media (max-width: 760px) {
  .workspace-shell { padding: 16px 14px 28px; }
  .workspace-shell .header { align-items: flex-start; flex-wrap: wrap; }
.workspace-shell .workspace-header-actions { width: 100%; justify-content: space-between; }
  .workspace-shell .surface-card { padding: 16px; }
}
@media (max-width: 560px) {
  .workspace-shell .form-grid { grid-template-columns: 1fr; }
  .workspace-shell .field-wide { grid-column: auto; }
  .workspace-shell .section-head { align-items: flex-start; flex-direction: column; }
  .workspace-shell .toolbar .form-control { width: 100%; }
}

/* Explorer profile dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-overlay[style*="display: flex"] { display: flex !important; }
#modalProfile[hidden], #modalProfile:not(.open) { display: none !important; }
#modalProfile.open {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
}
#modalProfile .form-control,
#modalProfile input,
#modalProfile textarea,
#modalProfile select { background: var(--cw-bg-input); color: var(--cw-text-main); border: 1px solid var(--cw-border-input); border-radius: 6px; padding: 8px 12px; }
#modalProfile .profile-modal-card { max-width: 500px; width: 90%; background: #1b1e22; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; box-shadow: 0 24px 48px rgba(0,0,0,.5); }
#modalProfile .modal-head { padding: 20px 24px 16px; display: flex; align-items: flex-start; justify-content: space-between; }
#modalProfile .modal-head h2 { font-size: 16px; font-weight: 600; color: #f0f6fc; }
#modalProfile .modal-close { flex: 0 0 auto; margin: -8px -12px 0 16px; }
#modalProfile .modal-body { padding: 0 24px 24px; }
#modalProfile label { display: block; margin-bottom: 6px; text-align: left; font-size: 12px; font-weight: 500; color: #8b949e; }
#modalProfile .form-control { width: 100%; box-sizing: border-box; background: #111315; border: 1px solid #2d333b; color: #f0f6fc; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
#modalProfile input:disabled { opacity: .6; cursor: not-allowed; background: #161a1e; }
#modalProfile .form-group { display: block; margin-bottom: 0; }
#modalProfile .form-row { gap: 14px; }
#modalProfile .profile-avatar-field { text-align: center; margin: 0 0 20px; }
#modalProfile .profile-avatar-field > label { display: none; }
#modalProfile .avatar-picker { display: flex; justify-content: center; }
#modalProfile .avatar-picker input[type="file"] { display: none; }
#modalProfile .avatar-preview { width: 80px; height: 80px; margin: 0; border: 1px solid rgba(255,255,255,.14); cursor: pointer; position: relative; }
#modalProfile .avatar-preview::after { content: '✎'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(31,147,255,.72); border-radius: 50%; opacity: 0; transition: opacity .15s ease; }
#modalProfile .avatar-preview:hover::after, #modalProfile .avatar-preview:focus-visible::after { opacity: 1; }
#modalProfile .profile-section-divider { border-top: 1px solid rgba(255,255,255,.08); margin: 6px 0 18px; padding-top: 18px; }
#modalProfile .profile-section-divider h3 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: #f0f6fc; }
#modalProfile .modal-actions { margin-top: 20px; }
#modalProfile .modal-actions button, #modalProfile form > .cw-btn { border: 0; border-radius: 6px; padding: 9px 16px; font-weight: 500; cursor: pointer; }
#modalProfile .modal-actions .cw-btn { background: #282d34; color: #c9d1d9; }
#modalProfile .modal-actions .cw-btn-primary, #modalProfile form > .cw-btn-primary { background: #1F93FF; color: #fff; font-weight: 600; }
#toast { z-index: 2000000 !important; }
#modalProfile .profile-save-error { margin: 14px 0 -8px; padding: 10px 12px; border: 1px solid #a52f28; border-radius: 6px; background: rgba(165,47,40,.18); color: #ffb4ad; font-size: 12px; }
#modalProfile .avatar-edit-wrapper { margin: 0 auto 20px; text-align: center; }
#modalProfile .avatar-edit-wrapper input[type="file"] { display: none; }
#modalProfile .avatar-edit-wrapper .avatar-preview { width: 80px; height: 80px; margin: 0 auto; font-size: 24px; font-weight: 600; background: linear-gradient(135deg, #1f93ff, #475569); }
#modalProfile .avatar-preview { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
#modalProfile .avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: none; }
#modalProfile .avatar-preview span { display: flex; align-items: center; justify-content: center; }
.avatar-crop-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1000001; background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.avatar-crop-card { width: min(92%, 420px); padding: 22px; background: #1b1e22; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; box-shadow: 0 24px 48px rgba(0,0,0,.55); color: #f0f6fc; }
.avatar-crop-head { display: flex; align-items: flex-start; justify-content: space-between; }
.avatar-crop-head h2 { margin: 0; font-size: 16px; }
.avatar-crop-help { margin: 6px 0 16px; color: #8b949e; font-size: 12px; }
#avatarCropCanvas { display: block; width: min(100%, 320px); height: auto; margin: 0 auto 18px; border-radius: 8px; cursor: grab; touch-action: none; background: #111315; }
#avatarCropCanvas:active { cursor: grabbing; }
.avatar-crop-actions { display: flex; justify-content: flex-end; gap: 10px; }
.crop-zoom-controls { display: flex; align-items: center; gap: 10px; margin: 0 auto 18px; max-width: 320px; }
.crop-zoom-controls input[type="range"] { flex: 1; accent-color: #1f93ff; }
.crop-zoom-controls button { width: 32px; height: 32px; border: 0; border-radius: 6px; background: #282d34; color: #f0f6fc; font-size: 20px; line-height: 1; cursor: pointer; }
.crop-zoom-controls button:hover { background: #343b45; }
.modal-card {
  width: min(100%, 640px);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  background: var(--cw-bg-surface);
  color: var(--cw-text-main);
  border: 1px solid var(--cw-border);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--cw-border);
}
.modal-head h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.modal-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--cw-text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--cw-card-hover); color: var(--cw-text-main); }
.modal-body { padding: 24px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-group { display: grid; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--cw-text-muted); }
.modal-body .form-control { width: 100%; min-height: 40px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.avatar-preview {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border-radius: 50%;
  background-color: var(--cw-primary);
  background-position: center;
  background-size: cover;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.avatar-preview.has-image { color: transparent; }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .modal-overlay { padding: 12px; }
  .modal-body, .modal-head { padding: 18px; }
}

/* AA: labels de formulário são texto normal e usam a cor principal do tema. */
.workspace-shell .field > span, .workspace-shell .field > label { color: var(--tblr-body-color) !important; }

/* Orçamentos: composição responsiva alinhada aos exemplos de formulários Tabler. */
.workspace-shell .orcamento-card { overflow: hidden; }
.workspace-shell .orcamento-card .card-header { padding: 1rem 1.25rem; }
.workspace-shell .orcamento-card .card-body { padding: 1.25rem; }
.workspace-shell .orcamento-card .card-title { margin: 0; font-size: 1rem; }
.workspace-shell .orcamento-card .form-grid { padding: 0; gap: 1rem 1.25rem; }
.workspace-shell .orcamento-card .field { display: flex; min-width: 0; flex-direction: column; gap: .375rem; }
.workspace-shell .orcamento-card .field > label { margin: 0; font-size: .8125rem; font-weight: 600; }
.workspace-shell .atendimento-grid { grid-template-columns: minmax(7rem, .7fr) minmax(18rem, 2fr) minmax(17rem, 1.7fr) minmax(15rem, 1.4fr) !important; }
.workspace-shell .animal-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.35fr) minmax(7rem, .9fr) minmax(7rem, .9fr) !important; }
.workspace-shell .animal-grid .field-tutor, .workspace-shell .animal-grid .field-phones, .workspace-shell .animal-grid .field-animal { grid-column: span 2; }
.workspace-shell .input-group > .form-control { min-width: 0; }
.workspace-shell .lookup-button { min-width: 2.75rem; min-height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; padding: .45rem .7rem; font-size: 1.1rem; line-height: 1; }
.workspace-shell .exam-toolbar { display: grid; grid-template-columns: minmax(13rem, 1.1fr) minmax(18rem, 2fr) 8rem 7rem 8rem auto; gap: 1rem; align-items: end; }
.workspace-shell .exam-search > label, .workspace-shell .exam-select > label { display: block; }
.workspace-shell .exam-toolbar .field, .workspace-shell .exam-toolbar .form-control { min-width: 0; }
.workspace-shell .exames-card .table-scroll { margin: 1.25rem -1.25rem 0; padding: 0 1.25rem; }
.workspace-shell .exames-card table { min-width: 760px; }
.workspace-shell .totals { align-items: stretch; }
.workspace-shell .total-box { display: flex; min-height: 4.5rem; flex-direction: column; justify-content: space-between; gap: .5rem; }
.workspace-shell .total-box > span, .workspace-shell .total-box > label { margin: 0; font-size: .8125rem; font-weight: 600; }
.workspace-shell .total-box strong { align-self: flex-end; font-size: 1.125rem; }
.workspace-shell .total-emphasis { border-color: var(--tblr-primary); background: var(--tblr-primary-lt); }
.workspace-shell .total-emphasis strong { color: var(--tblr-primary); font-size: 1.375rem; }
.workspace-shell .form-actions { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem 1.25rem; }
@media (max-width: 1100px) { .workspace-shell .atendimento-grid { grid-template-columns: minmax(7rem, .7fr) minmax(16rem, 1.7fr) minmax(15rem, 1.4fr) !important; } .workspace-shell .animal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .workspace-shell .animal-grid .field-tutor, .workspace-shell .animal-grid .field-phones, .workspace-shell .animal-grid .field-animal { grid-column: 1 / -1; } .workspace-shell .exam-toolbar { grid-template-columns: minmax(12rem, 1fr) minmax(15rem, 1.5fr) 8rem 6rem 7rem auto; gap: .75rem; } }
@media (max-width: 768px) { .workspace-shell .atendimento-grid, .workspace-shell .animal-grid, .workspace-shell .exam-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .workspace-shell .animal-grid .field-tutor, .workspace-shell .animal-grid .field-phones, .workspace-shell .animal-grid .field-animal, .workspace-shell .field-tutor, .workspace-shell .field-animal, .workspace-shell .exam-search, .workspace-shell .exam-select { grid-column: 1 / -1; } .workspace-shell .exam-toolbar #add-exam { width: 100%; } .workspace-shell .orcamento-card .card-body { padding: 1rem; } .workspace-shell .exames-card .table-scroll { margin-left: -1rem; margin-right: -1rem; padding: 0 1rem; } }
@media (max-width: 420px) { .workspace-shell .atendimento-grid, .workspace-shell .animal-grid, .workspace-shell .exam-toolbar { grid-template-columns: 1fr !important; } .workspace-shell .field-tutor, .workspace-shell .field-animal, .workspace-shell .exam-search, .workspace-shell .exam-select { grid-column: auto; } .workspace-shell .form-actions { flex-direction: column; } .workspace-shell .form-actions .btn { width: 100%; } }

/* Orçamentos: controles de consulta e modelos usam o mesmo ritmo dos cards Tabler. */
.workspace-shell .price-consultation-card { padding: 1.25rem; }
.workspace-shell .price-consultation-head { margin-bottom: 1.25rem; }
.workspace-shell .price-consultation-head h3 { margin: 0; font-size: 1rem; }
.workspace-shell .price-consultation-head p { margin: .35rem 0 0; color: var(--tblr-secondary-color); font-size: .8125rem; }
.workspace-shell .price-consultation-filters { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(16rem, 1fr) minmax(8rem, 10rem); gap: .75rem; align-items: end; padding-bottom: 1.25rem; }
.workspace-shell .price-consultation-filters .field { gap: .375rem; }
.workspace-shell .price-consultation-action .btn { width: 100%; min-height: 2.5rem; justify-content: center; }
.workspace-shell .price-consultation-result { padding-top: 1.25rem; border-top: 1px solid var(--tblr-border-color); }
.workspace-shell .exam-inline-list { display: grid; gap: .7rem; }
.workspace-shell .exam-inline-row { display: grid; grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr); gap: .75rem; align-items: baseline; padding-bottom: .7rem; border-bottom: 1px solid var(--tblr-border-color-translucent); color: var(--tblr-body-color); }
.workspace-shell .exam-inline-row strong { color: var(--tblr-secondary-color); font-size: .8125rem; }
.workspace-shell .exam-inline-row .highlight { color: var(--tblr-primary); }
.workspace-shell .exam-inline-row .price { color: var(--tblr-success); font-size: 1.1rem; font-weight: 700; }
.workspace-shell .odt-list-toolbar { align-items: flex-end; }
.workspace-shell .odt-heading { min-width: 0; margin-right: auto; }
.workspace-shell .odt-heading p { margin: .3rem 0 0; color: var(--tblr-secondary-color); font-size: .8125rem; }
.workspace-shell .odt-filter { align-items: end; }
.workspace-shell .odt-filter .btn { min-height: 2.5rem; white-space: nowrap; }
.workspace-shell .odt-filter .new-model-action { order: 3; }
.workspace-shell .odt-manager-static .pagination-bar { align-items: center; min-height: 2.5rem; }
.workspace-shell .odt-manager-static .pagination-controls { display: inline-flex; align-items: center; justify-content: flex-end; gap: .375rem; flex-wrap: nowrap; }
.workspace-shell .odt-manager-static .pagination-controls .btn { min-width: 2.25rem; min-height: 2.25rem; padding: .375rem .625rem; }
.workspace-shell .odt-manager-static .pagination-controls .pagination-size { width: auto; min-width: 4.5rem; height: 2.25rem; min-height: 2.25rem; padding-top: .375rem; padding-bottom: .375rem; }
@media (max-width: 900px) { .workspace-shell .price-consultation-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .workspace-shell .price-consultation-action { grid-column: 1 / -1; } .workspace-shell .odt-list-toolbar { align-items: stretch; } .workspace-shell .odt-heading { width: 100%; } .workspace-shell .odt-filter { width: 100%; } }
@media (max-width: 600px) { .workspace-shell .price-consultation-filters, .workspace-shell .exam-inline-row { grid-template-columns: 1fr; } .workspace-shell .exam-inline-row { gap: .25rem; } .workspace-shell .odt-filter { grid-template-columns: 1fr; } .workspace-shell .odt-filter .btn { width: 100%; } .workspace-shell .odt-manager-static .pagination-bar { align-items: flex-start; flex-direction: column; } .workspace-shell .odt-manager-static .pagination-controls { width: 100%; justify-content: flex-start; } }

/* Laudos: modais e seleção de contato compostos com os mesmos primitives Tabler. */
.laudos-app .laudos-modal .workspace-dialog { width: min(34rem, 100%); }
.laudos-app .laudos-modal .workspace-dialog-head { padding: 1rem 1.25rem; }
.laudos-app .laudos-modal .workspace-dialog-head h2 { font-size: 1rem; font-weight: 600; }
.laudos-app .laudos-modal .workspace-dialog-body { padding: 1.25rem; }
.laudos-app .laudos-modal .contact-search { gap: .5rem; }
.laudos-app .laudos-modal .contact-search .form-control { min-height: 2.5rem; }
.laudos-app .laudos-modal .contact-search .cw-btn { min-height: 2.5rem; }
.laudos-app .laudos-modal .contact-results { display: grid; gap: .5rem; margin-top: 1rem; max-height: min(48vh, 22.5rem); padding: .25rem; background: var(--cw-bg-surface); border: 0; box-shadow: none; }
.laudos-app .laudos-contact-option { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem; border: 1px solid var(--cw-border); border-radius: var(--cw-radius-md); background: var(--cw-bg-surface); color: var(--cw-text-main); text-align: left; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.laudos-app .laudos-contact-option:hover { background: var(--cw-card-hover); border-color: var(--cw-border-hover); }
.laudos-app .laudos-contact-option:focus-visible { outline: 2px solid var(--cw-primary); outline-offset: 2px; }
.laudos-app .laudos-contact-copy { display: grid; min-width: 0; gap: .2rem; }
.laudos-app .laudos-contact-copy strong { overflow-wrap: anywhere; font-size: .8125rem; font-weight: 600; }
.laudos-app .laudos-contact-copy small { color: var(--cw-text-muted); font-size: .75rem; }
.laudos-app .laudos-contact-action { flex: 0 0 auto; pointer-events: none; }
.laudos-app .workspace-dialog-hint { margin: 0 0 1rem; padding: .75rem; border: 1px solid var(--cw-border); border-radius: var(--cw-radius-sm); background: var(--cw-card-hover); color: var(--cw-text-main); font-size: .8125rem; }
.laudos-app .workspace-dialog textarea.form-control { min-height: 7.5rem; resize: vertical; }
.laudos-app .workspace-dialog-actions { margin-top: 1rem; }
@media (max-width: 560px) {
  .laudos-app .laudos-modal { align-items: flex-start; padding: .75rem; }
  .laudos-app .laudos-modal .workspace-dialog { max-height: calc(100vh - 1.5rem); }
  .laudos-app .laudos-modal .contact-search { grid-template-columns: 1fr; }
  .laudos-app .laudos-modal .contact-search .cw-btn { width: 100%; }
  .laudos-app .laudos-contact-option { align-items: stretch; flex-direction: column; gap: .625rem; }
  .laudos-app .laudos-contact-action { width: 100%; }
}
