/* Layout exclusivo da versão Web, sem interferir na interface do aplicativo instalado. */

html.web-app {
  --web-sidebar-width: 260px;
  --web-content-max: 1500px;
  --web-page-gap: clamp(22px, 2.6vw, 42px);
  --web-content-start-gap: clamp(14px, 1.15vw, 18px);
  --web-radius-md: 4px;
  --web-radius-lg: 5px;
  --web-border: #d5e1e7;
  --web-border-strong: #becfd8;
  --web-surface-soft: #f3f8fa;
  --web-shadow: 0 8px 24px rgba(49, 95, 121, .06);
  --web-shadow-hover: 0 12px 30px rgba(49, 95, 121, .1);
}

html.web-app body {
  overflow-x: hidden;
  background: radial-gradient(circle at 88% 5%, rgba(143, 196, 216, .14), transparent 24rem), var(--background);
}

html.web-app :is(button, input, select, textarea) {
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

html.web-app :is(button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(86, 143, 170, .24);
  outline-offset: 2px;
}

html.web-app :is(input, select, textarea)::placeholder { color: #929d96; opacity: 1; }

@media (min-width: 761px) {
  /* Estrutura e navegação */
  html.web-app .sidebar {
    width: var(--web-sidebar-width);
    padding: 22px 14px 18px;
    border-right: 1px solid rgba(255, 255, 255, .06);
    background: radial-gradient(circle at 18% 4%, rgba(143, 196, 216, .2), transparent 14rem), linear-gradient(180deg, #315f79 0%, #294f65 100%);
    box-shadow: 8px 0 30px rgba(36, 76, 99, .1);
  }

  html.web-app .brand {
    min-height: 68px;
    gap: 13px;
    margin: 0 4px 22px;
    padding: 8px 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }

  html.web-app .brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(4, 25, 14, .18);
  }

  html.web-app .brand strong { font-size: 18px; }
  html.web-app .brand small { margin-top: 6px; color: #a8c0b0; }
  html.web-app .main-nav { gap: 7px; }

  html.web-app .nav-item {
    min-height: 50px;
    padding: 0 14px;
    border-radius: 11px;
    color: #b8cbbf;
    font-size: 12.5px;
    font-weight: 650;
  }

  html.web-app .nav-item:hover { color: #fff; background: rgba(255, 255, 255, .075); }
  html.web-app .nav-item.active { color: #fff; background: rgba(255, 255, 255, .12); box-shadow: inset 3px 0 var(--accent-green), 0 7px 18px rgba(23, 55, 72, .12); }
  html.web-app .nav-item > .icon { width: 20px; height: 20px; }
  html.web-app .main-nav .nav-item { height: 50px; font-size: 13px; line-height: 1.2; }
  html.web-app .main-nav .nav-item > .icon { flex: 0 0 20px; }
  html.web-app .sidebar-footer { padding-top: 16px; }

  html.web-app .connection {
    min-height: 34px;
    margin: 0 8px 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
  }

  html.web-app .user-card {
    min-height: 62px;
    padding: 12px 9px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
  }

  html.web-app .user-card:hover { background: rgba(255, 255, 255, .085); }

  html.web-app .main-content {
    width: auto;
    min-width: 0;
    min-height: 100dvh;
    margin-left: var(--web-sidebar-width);
    padding: 0 var(--web-page-gap) 48px;
    padding-left: var(--web-content-start-gap);
  }

  html.web-app .topbar,
  html.web-app .view {
    width: min(100%, var(--web-content-max));
    margin-right: auto;
    margin-left: auto;
  }

  html.web-app .topbar {
    min-height: 76px;
    height: auto;
    position: sticky;
    z-index: 18;
    top: 0;
    padding: 12px 0;
    border-bottom-color: rgba(203, 216, 205, .88);
    background: rgba(247, 248, 244, .93);
    backdrop-filter: blur(16px) saturate(1.25);
  }

  html.web-app .topbar > div:first-child { min-width: 0; }
  html.web-app .topbar h1 { font-size: clamp(21px, 1.6vw, 26px); letter-spacing: -.55px; }
  html.web-app .eyebrow { margin-bottom: 4px; font-size: 10px; letter-spacing: .12em; }
  html.web-app .topbar-actions { align-items: center; gap: 8px; }

  html.web-app .topbar-actions > button {
    min-height: 44px;
    border-color: var(--web-border);
    border-radius: 11px;
    background: rgba(255, 255, 255, .88);
  }

  html.web-app .topbar-actions > button:hover { border-color: var(--web-border-strong); background: #fff; }
  html.web-app .top-profile { display: inline-flex; }

  html.web-app .view { min-width: 0; padding-top: clamp(24px, 2.5vw, 38px); }

  /* Títulos, ações e superfícies */
  html.web-app .welcome-row,
  html.web-app .module-toolbar {
    min-width: 0;
    align-items: center;
    gap: 22px;
    margin-bottom: 24px;
  }

  html.web-app .welcome-row h2 { margin-bottom: 7px; font-size: clamp(24px, 2vw, 31px); letter-spacing: -.8px; }
  html.web-app :is(.welcome-row, .module-toolbar) > :first-child,
  html.web-app .panel-heading > :first-child,
  html.web-app .manage-heading > :first-child { min-width: 0; }

  html.web-app .module-toolbar {
    min-height: 72px;
    padding: 16px 18px;
    border: 1px solid var(--web-border);
    border-radius: var(--web-radius-md);
    background: rgba(255, 255, 255, .64);
  }

  html.web-app .module-toolbar-compact { min-height: 60px; }
  html.web-app .module-description { max-width: 800px; margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
  html.web-app .module-actions { gap: 10px; }

  html.web-app :is(.primary-button, .ghost-button, .secondary-button, .filter-toggle, .danger-button) { min-height: 44px; border-radius: 10px; }
  html.web-app .primary-button { box-shadow: 0 8px 18px rgba(49, 95, 121, .16); }
  html.web-app .primary-button:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(49, 95, 121, .21); }
  html.web-app .ghost-button:hover,
  html.web-app .secondary-button:hover { border-color: #bfcfc2; background: var(--green-50); }

  html.web-app .panel,
  html.web-app .metric-card,
  html.web-app .verba-card,
  html.web-app .record-card,
  html.web-app .filial-card {
    min-width: 0;
    border-color: var(--web-border);
    border-radius: var(--web-radius-md);
    box-shadow: var(--web-shadow);
  }

  html.web-app :is(.verba-card, .record-card, .filial-card):hover { border-color: var(--web-border-strong); box-shadow: var(--web-shadow-hover); }
  html.web-app .panel-heading,
  html.web-app .manage-heading { gap: 18px; padding: 20px 22px 17px; }
  html.web-app .panel-heading h3,
  html.web-app .manage-heading h3 { font-size: 16px; }
  html.web-app .panel-heading p,
  html.web-app .manage-heading p { font-size: 11.5px; line-height: 1.5; }

  /* Dashboard */
  html.web-app .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
  html.web-app .metric-card { min-height: 142px; gap: 15px; padding: 22px; }
  html.web-app .metric-card > div:last-child { min-width: 0; }
  html.web-app .metric-card p { font-size: 11.5px; line-height: 1.35; }
  html.web-app .metric-card strong { font-size: 30px; }
  html.web-app .metric-card small { font-size: 10px; }
  html.web-app .metric-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; }
  html.web-app .dashboard-grid { grid-template-columns: minmax(0, 1.45fr) minmax(330px, .85fr); gap: 18px; }
  html.web-app .area-list { padding: 0 22px 22px; }
  html.web-app .quality-score { padding: 0 22px 20px; }
  html.web-app .issue-list { margin: 0 22px 22px; }

  /* Campos compartilhados */
  html.web-app :is(.form-grid, .record-fields, .user-form-section, .datasul-filters) :is(input, select, textarea),
  html.web-app .calculation-date-field > input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 1px solid var(--web-border-strong);
    border-radius: 10px;
    color: var(--text-primary);
    background: #fff;
  }

  html.web-app :is(.form-grid, .record-fields, .user-form-section, .datasul-filters) :is(input, select) { padding-right: 13px; padding-left: 13px; }
  html.web-app :is(.form-grid, .record-fields, .user-form-section, .datasul-filters) textarea { padding: 12px 13px; line-height: 1.5; resize: vertical; }
  html.web-app :is(.form-grid, .record-fields, .user-form-section, .datasul-filters) :is(input, select, textarea):hover { border-color: #aec1b1; }
  html.web-app :is(.form-grid, .record-fields, .user-form-section, .datasul-filters) :is(input, select, textarea):focus { border-color: var(--green-700); outline: 0; box-shadow: 0 0 0 4px rgba(86, 143, 170, .14); }

  /* Operações e filtros */
  html.web-app .chips { max-width: 100%; flex-wrap: wrap; gap: 7px; overflow-x: visible; }
  html.web-app .chips button { min-height: 36px; }
  html.web-app .filter-panel { grid-template-columns: minmax(280px, 1fr) auto; gap: 12px; padding: 16px; }

  html.web-app .search-box {
    min-width: 0;
    min-height: 46px;
    border-color: var(--web-border-strong);
    border-radius: 10px;
    background: #fff;
  }

  html.web-app .search-box:focus-within { border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(86, 143, 170, .14); }
  html.web-app .search-box input { min-width: 0; font-size: 13px; }
  html.web-app #view-verbas .filter-panel .search-box { min-width: 0; min-height: 50px; }
  html.web-app #search-verbas { height: 48px; min-height: 48px; display: block; flex: 1 1 auto; padding-block: 0; line-height: 1.3; box-sizing: border-box; }
  html.web-app .advanced-filters { grid-template-columns: repeat(4, minmax(140px, 1fr)) auto; gap: 12px; padding-top: 16px; }
  html.web-app .advanced-filters select { min-height: 42px; }

  html.web-app .result-summary {
    min-height: 50px;
    gap: 16px;
    margin: 0 0 14px;
    padding: 8px 13px;
    border: 1px solid var(--web-border);
    border-radius: 11px;
    background: rgba(255, 255, 255, .65);
  }

  html.web-app .result-tools { min-width: 0; }
  html.web-app .result-tools label { white-space: nowrap; }
  html.web-app .result-summary select { min-height: 34px; border: 1px solid transparent; border-radius: 8px; }
  html.web-app .verba-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  html.web-app .verba-card { min-height: 232px; padding: 21px; }
  html.web-app .verba-grid.list-view { grid-template-columns: minmax(0, 1fr); }
  html.web-app .verba-grid.list-view .verba-card { border-radius: 12px; }

  /* Novo cálculo */
  html.web-app .calculation-layout { min-width: 0; grid-template-columns: minmax(360px, .82fr) minmax(0, 1.35fr); align-items: start; gap: 20px; }
  html.web-app .calc-form-panel { position: sticky; top: 98px; padding: 23px; }
  html.web-app .lookup-input.automatic input { min-height: 54px; border-color: var(--web-border-strong); font-size: 15px; }
  html.web-app .lookup-input.automatic:focus-within input { border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(86, 143, 170, .14); }
  html.web-app .verba-confirmation { min-width: 0; border-radius: var(--web-radius-md); }
  html.web-app .confirmation-content { padding: clamp(22px, 2.4vw, 30px); }
  html.web-app .confirm-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.web-app .daily-rate-breakdown { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.web-app .desired-value-section { margin-top: 22px; }
  html.web-app .money-input-primary { min-height: 66px; border-radius: 12px; }
  html.web-app .calculation-history-panel.web-only { border-radius: var(--web-radius-md); }

  /* Cadastros e usuários */
  html.web-app .registration-tabs {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 18px;
    padding: 7px;
    overflow: visible;
    border: 1px solid var(--web-border);
    border-radius: var(--web-radius-md);
    background: #eaf1eb;
  }

  html.web-app .registration-tabs button { width: 100%; min-width: 0; min-height: 62px; padding: 8px 7px; border-radius: 10px; white-space: normal; }
  html.web-app .registration-tabs button:hover { background: rgba(255, 255, 255, .62); }
  html.web-app .registration-tabs button.active { background: #fff; box-shadow: 0 5px 15px rgba(18, 58, 39, .08); }

  html.web-app .manage-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  html.web-app .manage-heading > .manage-primary-action { width: auto; min-width: 190px; justify-self: end; }
  html.web-app .manage-actions { width: auto; grid-template-columns: repeat(2, minmax(150px, auto)); justify-content: end; justify-self: end; }
  html.web-app :is(#centro-list, #area-list) { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; padding: 18px; }
  html.web-app .datasul-stats { gap: 12px; padding: 0 22px 18px; }
  html.web-app .datasul-filters { padding: 0 22px 20px; }
  html.web-app .datasul-row { padding: 15px 22px; }
  html.web-app .catalog-tools { padding: 14px; border-color: var(--web-border); border-radius: 12px; }

  html.web-app .user-admin-row {
    min-height: 82px;
    grid-template-columns: 46px minmax(210px, 1.4fr) minmax(110px, .55fr) minmax(120px, .55fr) 48px;
    gap: 15px;
    padding: 14px 22px;
  }

  html.web-app .user-admin-row:hover { background: var(--web-surface-soft); }
  html.web-app .user-admin-row strong { font-size: 13px; }
  html.web-app .user-admin-row small { font-size: 11px; }

  /* Tabelas */
  html.web-app .table-wrap { max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #b6c6ba transparent; }
  html.web-app table { min-width: 720px; }
  html.web-app th { height: 44px; padding: 0 18px; font-size: 9.5px; }
  html.web-app td { padding: 15px 18px; font-size: 11.5px; }
  html.web-app tbody tr:hover { background: #f8faf7; }

  /* Modais Web */
  html.web-app dialog.modal:not(.access-modal) {
    max-width: min(94vw, 920px);
    max-height: calc(100dvh - 36px);
    border: 1px solid rgba(203, 216, 205, .8);
    border-radius: var(--web-radius-lg);
    box-shadow: 0 30px 90px rgba(10, 42, 26, .2);
  }

  html.web-app dialog.modal::backdrop { background: rgba(10, 39, 25, .5); backdrop-filter: blur(5px); }
  html.web-app .modal form { max-height: calc(100dvh - 38px); }
  html.web-app .modal form > header { padding: 24px 28px 20px; }
  html.web-app .modal .record-fields { padding: 22px 28px; }
  html.web-app .modal footer { justify-content: flex-end; padding: 17px 28px 21px; }
  html.web-app #user-modal { max-width: min(95vw, 1000px); }
  html.web-app #user-modal .user-form-layout { padding: 22px 26px; }

  html.web-app .user-form-section { padding: 20px; border-color: var(--web-border); border-radius: var(--web-radius-md); background: #fbfcfa; }
  html.web-app .user-fields-grid { gap: 15px; }
  html.web-app .user-access-switches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  html.web-app .user-form-section .password-field { min-height: 50px; border-color: var(--web-border-strong); border-radius: 10px; }
  html.web-app .sync-status-dialog { width: min(820px, calc(100vw - 40px)); }
  html.web-app .sync-diagnostics-grid { gap: 13px; }

  /* Login Web em duas áreas */
  html.web-app dialog.access-modal { width: 100%; max-width: none; max-height: none; }
  html.web-app .access-modal .account-dialog { min-height: 100dvh; padding: clamp(24px, 4vw, 54px); }
  html.web-app .access-modal .login-form { width: min(100%, 960px); }

  html.web-app .access-modal .account-dialog .login-sheet {
    width: 100%;
    max-width: 960px;
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(300px, .84fr) minmax(420px, 1.16fr);
    grid-template-rows: auto auto 1fr auto;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(203, 216, 205, .85);
    border-radius: 24px;
    box-shadow: 0 35px 100px rgba(8, 43, 26, .24);
  }

  html.web-app .access-modal .login-sheet::before,
  html.web-app .login-sheet .drag-handle { display: none; }

  html.web-app .login-brand {
    min-width: 0;
    grid-column: 1;
    grid-row: 1 / -1;
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "mark lockup" "promise promise";
    align-content: start;
    gap: 18px 13px;
    padding: 38px 34px;
    color: #fff;
    background: radial-gradient(circle at 92% 10%, rgba(143, 196, 216, .24), transparent 13rem), radial-gradient(circle at 15% 92%, rgba(109, 162, 186, .18), transparent 16rem), linear-gradient(155deg, #386b87 0%, #294f65 100%);
  }

  html.web-app .login-brand-mark {
    width: 54px;
    height: 54px;
    grid-area: mark;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #294f65;
    background: var(--accent-green);
    box-shadow: 0 10px 26px rgba(5, 29, 16, .24);
    font-size: 14px;
    font-weight: 850;
  }

  html.web-app .login-brand > span:last-child { min-width: 0; grid-area: lockup; align-self: center; }
  html.web-app .login-brand > span:last-child strong,
  html.web-app .login-brand > span:last-child small { display: block; }
  html.web-app .login-brand > span:last-child strong { font-size: 17px; }
  html.web-app .login-brand > span:last-child small { margin-top: 4px; color: #adc3b5; font-size: 11px; }

  html.web-app .login-brand-promise.web-only {
    min-width: 0;
    grid-area: promise;
    display: flex !important;
    align-self: end;
    flex-direction: column;
    padding-top: 48px;
  }

  html.web-app .login-brand-eyebrow { color: #b9dce8; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
  html.web-app .login-brand-promise h3 { max-width: 300px; margin: 13px 0 12px; color: #fff; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.12; letter-spacing: -.65px; }
  html.web-app .login-brand-promise > p { max-width: 310px; margin: 0; color: #bed0c4; font-size: 13px; line-height: 1.65; }
  html.web-app .login-brand-promise ul { display: grid; gap: 11px; margin: 26px 0 0; padding: 0; list-style: none; }
  html.web-app .login-brand-promise li { display: flex; align-items: center; gap: 10px; color: #e6efe8; font-size: 12px; font-weight: 600; }
  html.web-app .login-brand-promise li .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #d5e8ef; background: rgba(143, 196, 216, .15); }

  html.web-app .login-header { grid-column: 2; grid-row: 1; padding: 38px 42px 18px; }
  html.web-app .login-header h2 { font-size: 27px; }
  html.web-app .login-header p { max-width: 390px; font-size: 13px; }

  html.web-app .login-card { grid-column: 2; grid-row: 2; margin: 0 42px 18px; padding: 13px 14px; border-color: #cfe1d5; border-radius: 13px; }
  html.web-app .login-card-icon { width: 42px; height: 42px; }

  html.web-app .form-fields {
    min-width: 0;
    grid-column: 2;
    grid-row: 3;
    align-content: start;
    gap: 17px;
    padding: 2px 42px 24px;
  }

  html.web-app .input-label { min-width: 0; gap: 8px; color: #294038; font-size: 12.5px; font-weight: 750; }

  html.web-app .login-input,
  html.web-app .login-sheet .password-field {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    display: grid;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #cad8ce;
    border-radius: 11px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(10, 40, 30, .025);
  }

  html.web-app .login-input { grid-template-columns: 48px minmax(0, 1fr); }
  html.web-app .login-sheet .password-field { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  html.web-app .login-input:hover,
  html.web-app .login-sheet .password-field:hover { border-color: #9fb7a5; }
  html.web-app .login-input:focus-within,
  html.web-app .login-sheet .password-field:focus-within { border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(86, 143, 170, .15); }

  html.web-app .login-input > .icon,
  html.web-app .login-sheet .password-leading-icon { width: 20px; height: 20px; justify-self: center; color: #708279; }

  html.web-app .login-input input,
  html.web-app .login-sheet .password-field input {
    width: 100%;
    min-width: 0;
    height: 54px;
    margin: 0;
    padding: 0 12px 0 0;
    border: 0;
    outline: 0;
    color: #17251e;
    background: transparent;
    box-shadow: none;
    font-size: 15px;
  }

  html.web-app .login-sheet .password-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    position: static;
    justify-self: center;
    padding: 0;
    border: 0;
    transform: none;
    color: #61746a;
    background: transparent;
    box-shadow: none;
  }

  html.web-app .login-sheet .password-toggle:hover { color: var(--green-800); background: var(--green-50); }

  html.web-app .login-actions {
    min-width: 0;
    grid-column: 2;
    grid-row: 4;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 10px;
    padding: 18px 42px 38px;
    border-top: 0;
    background: #fbfcfa;
  }

  html.web-app .login-actions button { width: 100%; min-width: 0; height: 52px; padding: 0 16px; border-radius: 11px; font-size: 13px; }

  /* Minha conta usa um cartão próprio; não herda as duas colunas do login. */
  html.web-app .access-modal .account-dialog .account-section {
    width: min(100%, 820px);
    overflow: visible;
  }

  html.web-app .access-modal .account-dialog .account-section .account-sheet {
    width: 100%;
    max-width: 820px;
    min-height: 0;
    max-height: calc(100dvh - 48px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(203, 216, 205, .9);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(8, 43, 26, .22);
  }

  html.web-app .access-modal .account-dialog .account-sheet > .login-header {
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    padding: 25px 30px 21px;
    border-bottom: 1px solid #e3eae4;
    background: linear-gradient(135deg, #fbfdfb 0%, #f5f9f4 100%);
  }

  html.web-app .account-sheet > .login-header h2 { margin-top: 2px; font-size: 25px; }
  html.web-app .account-sheet > .login-header p { max-width: none; margin-top: 2px; }

  html.web-app .access-modal .account-dialog .account-sheet > .account-content {
    min-width: 0;
    min-height: 0;
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(240px, .78fr) minmax(300px, 1.22fr);
    align-items: stretch;
    gap: 18px;
    padding: 22px 30px;
    overflow-y: auto;
    background: #fff;
  }

  html.web-app .account-sheet .account-identity,
  html.web-app .account-sheet .account-permissions {
    min-width: 0;
    border-color: var(--web-border);
    border-radius: 15px;
    box-shadow: none;
  }

  html.web-app .account-sheet .account-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    background: linear-gradient(145deg, #f6faf5 0%, #fbfcfa 100%);
  }

  html.web-app .account-sheet .account-block-label {
    margin-bottom: 19px;
    color: #6b7d72;
    font-size: 9.5px;
    letter-spacing: .1em;
    text-align: left;
  }

  html.web-app .account-sheet .account-summary {
    align-items: center;
    flex-direction: row;
    gap: 15px;
    text-align: left;
  }

  html.web-app .account-sheet .account-summary .avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    box-shadow: 0 0 0 5px #e4efdf;
  }

  html.web-app .account-sheet .account-summary > div { align-items: flex-start; gap: 4px; }
  html.web-app .account-sheet .account-summary strong { color: var(--green-950); font-size: 18px; }
  html.web-app .account-sheet .account-summary small { margin-top: 4px; }
  html.web-app .account-sheet .account-meta { gap: 10px; margin-top: 21px; }

  html.web-app .account-sheet .account-meta article {
    min-height: 78px;
    padding: 13px 14px;
    border-color: var(--web-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .82);
  }

  html.web-app .account-sheet .account-meta strong { font-size: 12.5px; }
  html.web-app .account-sheet .account-permissions { align-self: stretch; overflow: hidden; background: #fff; }
  html.web-app .account-sheet .account-section-heading { padding: 16px 18px 14px; background: #f8faf7; }
  html.web-app .account-sheet .account-section-heading strong { font-size: 13px; }
  html.web-app .account-sheet .account-section-heading small { font-size: 11px; }
  html.web-app .account-sheet .permission-summary { gap: 10px; padding: 17px 18px 19px; }
  html.web-app .account-sheet .permission-pill-list { gap: 8px; }
  html.web-app .account-sheet .permission-pill { min-height: 32px; padding: 7px 11px; font-size: 10.5px; }

  html.web-app .access-modal .account-dialog .account-sheet > footer {
    min-width: 0;
    grid-column: 1;
    grid-row: 3;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 17px 30px 21px;
    border-top: 0;
    background: #fbfcfa;
  }

  html.web-app .account-sheet > footer > button {
    width: auto;
    min-width: 160px;
    min-height: 48px;
    padding-inline: 18px;
    white-space: nowrap;
  }
  html.web-app .account-sheet > .account-actions { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-items: stretch; }
  html.web-app .account-sheet > .account-actions > button { width: 100%; min-width: 0; min-height: 62px; padding: 10px 14px; white-space: normal; }
  html.web-app .account-sheet .account-card-heading { margin-bottom: 18px; }
  html.web-app .account-sheet .account-meta article { min-height: 78px; grid-template-columns: 36px minmax(0, 1fr); }
  html.web-app #password-change-modal { max-width: min(94vw, 620px); }
  html.web-app #password-change-modal .password-change-fields { padding: 22px 28px; }
}

@media (min-width: 761px) and (max-width: 1120px) {
  html.web-app { --web-sidebar-width: 78px; --web-page-gap: clamp(16px, 2.4vw, 26px); --web-content-start-gap: 14px; }
  html.web-app .sidebar { padding-right: 10px; padding-left: 10px; }
  html.web-app .brand { justify-content: center; margin-inline: 0; padding-inline: 0; }
  html.web-app .brand > span:last-child,
  html.web-app .nav-item > span:not(.icon),
  html.web-app .sidebar-footer .user-card > span:not(.avatar),
  html.web-app .connection span { display: none; }
  html.web-app .nav-item,
  html.web-app .sidebar-footer .user-card { justify-content: center; padding-right: 0; padding-left: 0; }
  html.web-app .connection { justify-content: center; padding-inline: 0; }
  html.web-app .metric-grid,
  html.web-app .verba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.web-app .dashboard-grid,
  html.web-app .calculation-layout { grid-template-columns: minmax(0, 1fr); }
  html.web-app .calc-form-panel { position: static; }
  html.web-app .registration-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.web-app .advanced-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.web-app .advanced-filters .text-button { justify-self: start; }
  html.web-app .datasul-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.web-app .topbar-actions { flex: 0 0 auto; }
  html.web-app .sync-button span:not(.icon),
  html.web-app .top-profile .user-role { display: none; }
  html.web-app .sync-button,
  html.web-app .top-profile { width: 44px; min-width: 44px; padding-inline: 0; justify-content: center; }
  html.web-app .module-toolbar,
  html.web-app .welcome-row,
  html.web-app .panel-heading { align-items: flex-start; flex-wrap: wrap; }
  html.web-app .module-actions,
  html.web-app .panel-actions { flex: 1 1 100%; justify-content: flex-end; }
  html.web-app .manage-heading { grid-template-columns: minmax(0, 1fr); }
  html.web-app .manage-heading > .manage-primary-action,
  html.web-app .manage-actions { justify-self: stretch; }
  html.web-app .manage-heading > .manage-primary-action { width: 100%; }
  html.web-app .manage-actions { width: 100%; justify-content: stretch; }
  html.web-app .user-admin-row { grid-template-columns: 44px minmax(190px, 1fr) minmax(100px, .5fr) 48px; }
  html.web-app .user-admin-row > :nth-child(4) { display: none; }
}

@media (min-width: 1121px) and (max-width: 1380px) {
  html.web-app .metric-grid,
  html.web-app .verba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.web-app .dashboard-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); }
  html.web-app .calculation-layout { grid-template-columns: minmax(340px, .8fr) minmax(0, 1.2fr); }
  html.web-app .registration-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.web-app .advanced-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 761px) and (max-width: 980px) {
  html.web-app .access-modal .login-form { width: min(100%, 620px); }
  html.web-app .access-modal .account-dialog .login-sheet { min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; }
  html.web-app .login-brand { grid-column: 1; grid-row: 1; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "mark lockup"; gap: 12px; padding: 22px 28px; }
  html.web-app .login-brand-mark { width: 48px; height: 48px; }
  html.web-app .login-brand-promise.web-only { display: none !important; }
  html.web-app .login-header { grid-column: 1; grid-row: 2; padding: 27px 30px 17px; }
  html.web-app .login-card { grid-column: 1; grid-row: 3; margin: 0 30px 18px; }
  html.web-app .form-fields { grid-column: 1; grid-row: 4; padding: 0 30px 24px; }
  html.web-app .login-actions { grid-column: 1; grid-row: 5; padding: 17px 30px 28px; }
}

@media (min-width: 1920px) {
  html.web-app .verba-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  html.web-app,
  html.web-app body,
  html.web-app .app-shell,
  html.web-app .main-content,
  html.web-app .view { width: 100%; max-width: 100%; min-width: 0; }
  html.web-app .main-content { overflow-x: clip; }
  html.web-app .panel,
  html.web-app .metric-card,
  html.web-app .verba-card { border-radius: 12px; }
  html.web-app .module-toolbar { align-items: stretch; flex-direction: column; }
  html.web-app .module-actions { width: 100%; }
  html.web-app .module-actions > button { flex: 1 1 160px; }
  html.web-app .registration-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.web-app .table-wrap { max-width: 100%; overflow-x: auto; }
  html.web-app dialog.access-modal { width: 100%; max-width: none; }
  html.web-app .login-brand { display: none !important; }
  html.web-app .login-input { min-height: 54px; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; overflow: hidden; border: 1px solid var(--lr-border); border-radius: 12px; background: #fff; }
  html.web-app .login-input > .icon { justify-self: center; color: #708279; }
  html.web-app .login-input input { min-width: 0; height: 52px; margin: 0; padding: 0 12px 0 0; border: 0; box-shadow: none; }
}

/* Listagens administrativas em tabela, exclusivas da versão Web. */
html.web-app :is(
  #centro-list,
  #area-list,
  #filial-list,
  #unidade-list,
  #holiday-list,
  #report-list,
  #subcategory-list,
  #datasul-list,
  #admin-user-list
) {
  min-width: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--web-border);
  background: #fff;
}

html.web-app .verba-grid.list-view {
  min-width: 0;
  display: block;
}

html.web-app .web-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #aebfb2 #eef2ee;
}

html.web-app .verba-grid.list-view .web-table-wrap {
  overflow: hidden auto;
  border: 1px solid var(--web-border-strong);
  border-radius: var(--web-radius-md);
  box-shadow: var(--web-shadow);
}

html.web-app .web-data-table {
  width: 100%;
  min-width: 820px;
  table-layout: fixed;
  border: 0;
  border-spacing: 0;
  border-collapse: separate;
  color: var(--text-primary);
  background: #fff;
}

html.web-app .web-data-table th {
  height: 43px;
  padding: 0 14px;
  border-bottom: 1px solid var(--web-border-strong);
  color: #66776d;
  background: #f4f7f3;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .075em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

html.web-app .web-data-table td {
  height: 62px;
  min-width: 0;
  padding: 10px 14px;
  overflow: hidden;
  border-bottom: 1px solid #e8eee9;
  color: #405148;
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
  vertical-align: middle;
}

html.web-app .web-data-table tbody tr:last-child td { border-bottom: 0; }
html.web-app .web-data-table tbody tr:nth-child(even) td { background: #fcfdfb; }
html.web-app .web-data-table tbody tr:hover td { background: #f3f8f3; }
html.web-app .web-data-table td > strong,
html.web-app .web-data-table td > small { display: block; }
html.web-app .web-data-table td > strong { overflow: hidden; color: #24372d; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
html.web-app .web-data-table td > small { margin-top: 4px; overflow: hidden; color: #77857d; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
html.web-app .web-data-table .status-pill,
html.web-app .web-data-table .role-badge,
html.web-app .web-data-table .datasul-status { white-space: nowrap; }

html.web-app .web-data-table th:last-child,
html.web-app .web-data-table td:last-child { width: 104px; text-align: right; }

html.web-app .web-data-table .record-actions-group { min-width: 0; justify-content: flex-end; gap: 5px; }
html.web-app .web-data-table .record-actions-group button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dfe7e0;
  border-radius: 8px;
  color: #496057;
  background: #fff;
}

html.web-app .web-data-table .record-actions-group button:hover { border-color: #b7c9bb; color: var(--green-800); background: var(--green-50); }
html.web-app .web-data-table .record-actions-group button.danger:hover { border-color: #e5c6c1; color: #943f34; background: #fff7f5; }
html.web-app .web-data-table .record-actions-group .icon { width: 16px; height: 16px; }
html.web-app .table-primary-code,
html.web-app .table-price { color: var(--green-800) !important; font-variant-numeric: tabular-nums; }

html.web-app .table-code { min-width: 0; display: flex; align-items: center; gap: 8px; }
html.web-app .table-code > strong { color: var(--green-800); font-size: 13px; }
html.web-app .table-filial-code { min-width: 42px; display: inline-grid; place-items: center; padding: 7px 9px; border-radius: 8px; color: var(--green-800); background: var(--green-50); font-size: 10px; font-weight: 850; }
html.web-app .table-truncate,
html.web-app .table-description { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.web-app .table-link-flow { color: #66776d; font-size: 9.5px; font-weight: 750; white-space: nowrap; }
html.web-app .table-link-flow b { color: var(--green-700); font-size: 14px; }
html.web-app .table-user { min-width: 0; display: flex; align-items: center; gap: 10px; }
html.web-app .table-user .avatar { width: 34px; height: 34px; flex: 0 0 34px; font-size: 10px; }
html.web-app .table-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

html.web-app .operations-data-table { min-width: 1260px; }
html.web-app .operations-data-table th:nth-child(1) { width: 130px; }
html.web-app .operations-data-table th:nth-child(2) { width: 230px; }
html.web-app .operations-data-table th:nth-child(3) { width: 150px; }
html.web-app .operations-data-table th:nth-child(4) { width: 210px; }
html.web-app .operations-data-table th:nth-child(5) { width: 185px; }
html.web-app .operations-data-table th:nth-child(6) { width: 165px; }
html.web-app .operations-data-table th:nth-child(7) { width: 150px; }
html.web-app .datasul-data-table { min-width: 1120px; }
html.web-app .users-data-table { min-width: 960px; }
html.web-app .reports-data-table { min-width: 920px; }

@media (max-width: 760px) {
  html.web-app .web-data-table { min-width: 760px; }
  html.web-app .operations-data-table { min-width: 1200px; }
  html.web-app .datasul-data-table { min-width: 1080px; }
}

/* Cadastro de usuários: composição ampla e organizada exclusiva da versão web. */
@media (min-width: 981px) {
  html.web-app #user-modal {
    width: min(1080px, calc(100vw - 48px));
    max-width: min(1080px, calc(100vw - 48px));
  }

  html.web-app #user-modal .user-form-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, max-content);
    grid-template-areas:
      "identification identification"
      "profile security"
      "access access";
    align-items: start;
    gap: 16px;
    padding: 22px 26px 26px;
  }

  html.web-app #user-modal .user-form-identification { grid-area: identification; }
  html.web-app #user-modal .user-form-profile { grid-area: profile; }
  html.web-app #user-modal .user-form-security { grid-area: security; }
  html.web-app #user-modal .user-form-access { grid-area: access; }

  html.web-app #user-modal .user-form-identification .user-fields-grid {
    grid-template-columns: minmax(230px, 1.25fr) minmax(230px, 1fr) minmax(180px, .75fr);
  }

  html.web-app #user-modal .user-form-identification .user-field-wide {
    grid-column: auto;
  }

  html.web-app #user-modal .permission-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  html.web-app #user-modal {
    width: min(820px, calc(100vw - 36px));
    max-width: min(820px, calc(100vw - 36px));
  }

  html.web-app #user-modal .user-form-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  html.web-app #user-modal .permission-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Segurança e conta: controles sem sobreposição, bordas duplicadas ou texto quebrado. */
@media (min-width: 761px) {
  html.web-app #user-modal .user-form-layout {
    grid-auto-rows: max-content;
  }

  html.web-app #user-modal .user-form-security {
    grid-template-rows: repeat(5, max-content);
    align-self: start;
    align-content: start;
    overflow: visible;
  }

  html.web-app #user-modal .temporary-password-field {
    display: grid;
    gap: 7px;
    margin: 0;
  }

  html.web-app #user-modal .temporary-password-field > #user-password-label {
    display: block;
    color: #506058;
    font-size: 12px;
    font-weight: 750;
  }

  html.web-app #user-modal .user-password-input {
    width: 100%;
    height: 52px;
    min-height: 52px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 48px;
    align-items: stretch;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--web-border-strong);
    border-radius: 11px;
    background: #fff;
  }

  html.web-app #user-modal .user-password-input:focus-within {
    border-color: var(--green-700);
    box-shadow: 0 0 0 4px rgba(86, 143, 170, .14);
  }

  html.web-app #user-modal .user-password-leading-icon {
    width: 18px;
    height: 18px;
    align-self: center;
    justify-self: center;
    color: #567064;
  }

  html.web-app #user-modal .user-password-input input {
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    color: var(--ink);
    background: transparent;
    box-shadow: none !important;
    font-size: 14px;
  }

  html.web-app #user-modal .user-password-input .password-toggle {
    width: 48px;
    min-width: 48px;
    height: 100%;
    min-height: 0;
    position: static;
    align-self: stretch;
    justify-self: stretch;
    padding: 0;
    border: 0;
    border-left: 1px solid #e5ebe6;
    border-radius: 0;
    color: #61746a;
    background: #f8faf8;
    box-shadow: none;
    transform: none;
  }

  html.web-app #user-modal .user-password-guidance,
  html.web-app #user-modal .password-policy-help {
    margin: 0;
    padding-inline: 2px;
    line-height: 1.5;
  }

  html.web-app #user-modal .password-change-policy,
  html.web-app #user-modal .permission-customization {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 12px 14px;
  }

  html.web-app #user-modal :is(.user-policy-label, .permission-customization-label) {
    min-width: 0;
    color: #3f5448;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
  }

  html.web-app #user-modal :is(.password-change-policy, .permission-customization) > span {
    width: auto;
    max-width: 100%;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin: 0;
  }

  html.web-app #user-modal :is(.password-change-policy, .permission-customization) em {
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: normal;
  }

  html.web-app .access-modal .account-dialog .account-section {
    width: min(100%, 900px);
  }

  html.web-app .access-modal .account-dialog .account-section .account-sheet {
    max-width: 900px;
  }

  html.web-app .access-modal .account-dialog .account-sheet > .account-content {
    grid-template-columns: minmax(290px, .9fr) minmax(0, 1.1fr);
  }

  html.web-app .account-sheet .account-identity {
    justify-content: flex-start;
  }

  html.web-app .account-sheet .account-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  html.web-app .account-sheet .account-meta article {
    min-height: 62px;
  }

  html.web-app .account-sheet .account-meta strong {
    min-width: 0;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Formulários web: altura pelo conteúdo e composição compacta padronizada. */
html.web-app dialog.modal:not(.access-modal),
html.web-app dialog.modal:not(.access-modal) > :is(form, div) {
  height: fit-content !important;
  min-height: 0 !important;
  block-size: fit-content;
}

@media (min-width: 761px) {
  html.web-app dialog.modal:not(.access-modal) {
    max-height: calc(100dvh - 36px);
  }

  html.web-app dialog.modal:not(.access-modal) > :is(form, div) {
    max-height: calc(100dvh - 38px);
  }

  html.web-app dialog.modal:not(.access-modal) form > header,
  html.web-app dialog.modal:not(.access-modal) > div > header {
    padding: 20px 24px 17px;
  }

  html.web-app dialog.modal:not(.access-modal) :is(.form-grid, .record-fields, .modal-scroll-body) {
    gap: 12px;
    padding: 18px 22px;
  }

  html.web-app dialog.modal:not(.access-modal) footer {
    flex: 0 0 auto;
    gap: 10px;
    margin: 0;
    padding: 14px 22px 18px;
    border-top: 1px solid #e8ede9;
    background: #fbfcfa;
  }

  html.web-app dialog.modal:not(.access-modal) footer > button {
    min-width: 160px;
    min-height: 48px;
  }

  html.web-app #record-modal {
    width: min(700px, calc(100vw - 40px));
    max-width: min(700px, calc(100vw - 40px));
  }

  html.web-app #record-form #record-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  html.web-app #record-form #record-fields > :is(label:has(textarea), .switch-field) {
    grid-column: 1 / -1;
  }

  html.web-app #record-form #record-fields .switch-field {
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid var(--web-border);
    border-radius: 10px;
    background: var(--web-surface-soft);
  }

  html.web-app #record-form #record-fields .switch-field > span {
    justify-content: flex-end;
    margin: 0;
  }

  html.web-app #holiday-modal {
    width: min(820px, calc(100vw - 40px));
    max-width: min(820px, calc(100vw - 40px));
  }

  html.web-app #holiday-form .record-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  html.web-app #holiday-form .record-fields > label:first-child {
    grid-column: 1 / -1;
  }

  html.web-app #holiday-form .record-fields > .switch-field {
    min-height: 54px;
    padding: 9px 12px;
    border: 1px solid var(--web-border);
    border-radius: 10px;
    background: var(--web-surface-soft);
  }

  html.web-app #datasul-task-modal {
    width: min(980px, calc(100vw - 40px));
    max-width: min(980px, calc(100vw - 40px));
  }

  html.web-app #datasul-task-form .form-grid {
    align-items: start;
    gap: 12px 14px;
  }

  html.web-app #datasul-link-modal {
    width: min(1080px, calc(100vw - 40px));
    max-width: min(1080px, calc(100vw - 40px));
  }

  html.web-app :is(#report-modal, #api-settings-modal, #password-change-modal) {
    height: fit-content !important;
  }

  html.web-app #verba-modal {
    width: min(1080px, calc(100vw - 40px));
    max-width: min(1080px, calc(100vw - 40px));
  }

  html.web-app #verba-form .form-grid {
    align-items: start;
    gap: 12px 16px;
  }

  html.web-app #verba-form .relation-field {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(190px, .8fr);
    grid-template-areas:
      "relation-label relation-label"
      "relation-search relation-select"
      "relation-preview relation-preview";
    align-content: start;
    column-gap: 10px;
  }

  html.web-app #verba-form .relation-field-label { grid-area: relation-label; }

  html.web-app #verba-form .relation-search {
    grid-area: relation-search;
    height: 48px;
    margin-top: 6px;
    border: 1px solid var(--web-border-strong);
    border-radius: 10px;
    background: #fff;
  }

  html.web-app #verba-form .relation-search input {
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none !important;
  }

  html.web-app #verba-form .relation-field > select {
    grid-area: relation-select;
    height: 48px;
    margin-top: 6px;
    border-radius: 10px;
  }

  html.web-app #verba-form .relation-selection-preview {
    min-width: 0;
    grid-area: relation-preview;
    margin-top: 7px;
    overflow: hidden;
    color: #596b61;
    font-size: 10px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.web-app #verba-form .relation-field > small {
    display: none;
  }

  html.web-app #verba-form .moju-branch-field small {
    margin-top: 4px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.web-app #verba-form :is(.verba-status-field, .switch-field) > span {
    margin-top: 6px;
  }

  html.web-app #verba-form textarea {
    min-height: 68px;
    resize: vertical;
  }
}

@media (min-width: 981px) {
  html.web-app #verba-form .form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "code name name name"
      "description description description description"
      "measure value branch branch"
      "center center area subcategory"
      "start end status status"
      "notes notes notes notes";
  }

  html.web-app #verba-form .form-grid:not(:has(#subcategory-field:not([hidden]))) {
    grid-template-areas:
      "code name name name"
      "description description description description"
      "measure value branch branch"
      "center center area area"
      "start end status status"
      "notes notes notes notes";
  }

  html.web-app #verba-form .verba-code-field { grid-area: code; }
  html.web-app #verba-form .verba-name-field { grid-area: name; }
  html.web-app #verba-form .verba-description-field { grid-area: description; }
  html.web-app #verba-form .verba-measure-field { grid-area: measure; }
  html.web-app #verba-form .verba-value-field { grid-area: value; }
  html.web-app #verba-form .moju-branch-field { grid-area: branch; }
  html.web-app #verba-form .relation-field { grid-area: center; }
  html.web-app #verba-form .verba-area-field { grid-area: area; }
  html.web-app #verba-form .verba-subcategory-field { grid-area: subcategory; }
  html.web-app #verba-form .verba-start-field { grid-area: start; }
  html.web-app #verba-form .verba-end-field { grid-area: end; }
  html.web-app #verba-form .verba-status-field { grid-area: status; }
  html.web-app #verba-form .verba-notes-field { grid-area: notes; }
}
