/* ArcahGestão — camada visual moderna. Mantém compatibilidade com o CSS legado. */
:root {
  --green: #498900;
  --light: #9ad03a;
  --ink: #442511;
  --muted: #705f54;
  --bg: #f7f5ef;
  --line: #e5e0d5;
  --color-primary-dark: #294d03;
  --color-primary: #498900;
  --color-primary-hover: #2f6a00;
  --color-accent: #87b804;
  --color-primary-light: #eef6dc;
  --color-background: #f7f5ef;
  --color-surface: #fff;
  --color-text: #442511;
  --color-muted: #705f54;
  --color-text-muted: #705f54;
  --color-border: #e5e0d5;
  --color-warning: #ff8901;
  --color-danger: #c70754;
  --color-info: #a93fa4;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(68, 37, 17, .06);
  --shadow-md: 0 12px 32px rgba(68, 37, 17, .1);
  --sidebar-width: 272px;
  --header-height: 72px;
  --transition: 180ms ease;
}

@font-face { font-family: "TT Cottons"; src: url("/assets/fonts/tt-cottons-regular.ttf") format("truetype"); font-display: swap; }
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; color: var(--color-text); background: var(--color-background); font: 14px/1.5 "Arial Narrow", "Roboto Condensed", Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(57, 120, 184, .28); outline-offset: 2px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.material-symbols-rounded { font-size: 21px; line-height: 1; }

/* Login */
.login-view { min-height: 100dvh; display: grid; grid-template-columns: minmax(500px, 1.12fr) minmax(440px, .88fr); background: var(--color-surface); }
.login-art { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 42px clamp(44px, 5.5vw, 84px); color: white; background: #294d03 url("/assets/branding/horta-vegetais.jpeg") center/cover no-repeat; }
.login-art::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(100deg, rgba(41,77,3,.96) 0%, rgba(41,77,3,.88) 52%, rgba(68,37,17,.48) 100%); }
.login-art::after { content: ""; position: absolute; z-index: -1; right: -110px; bottom: -120px; width: 390px; height: 390px; border: 2px solid rgba(154,208,58,.35); border-radius: 50%; box-shadow: 0 0 0 34px rgba(154,208,58,.08), 0 0 0 78px rgba(255,137,1,.07); }
.login-brand-lockup { display: flex; align-items: center; gap: 18px; width: fit-content; }
.arcah-product-brand { display: flex; align-items: center; gap: 9px; color: var(--color-primary-dark); font-size: 17px; font-weight: 800; }
.arcah-product-brand img { width: 104px; height: 42px; object-fit: contain; }
.arcah-product-brand span { letter-spacing: -.5px; }
.brand-divider { width: 1px; height: 48px; background: var(--color-border); }
.horta-social-logo { width: 78px; height: 74px; object-fit: contain; mix-blend-mode: multiply; }
.login-brand-lockup-light { padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 8px 28px rgba(41,77,3,.18); }
.login-brand-lockup-compact { margin-bottom: 50px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--color-primary-dark); font-size: 19px; font-weight: 800; }
.brand span { letter-spacing: -.5px; }
.brand.white { color: white; }
.brand-logo { width: 108px; height: 42px; object-fit: contain; border-radius: 7px; background: white; padding: 4px 8px; }
.art-content { position: relative; z-index: 2; max-width: 700px; margin: auto 0; }
.eyebrow, .welcome-kicker { display: inline-block; color: #cde89c; font-size: 11px; font-weight: 800; letter-spacing: 1.7px; }
.art-content h1 { max-width: 680px; margin: 20px 0; font-family: "TT Cottons", "Arial Narrow", sans-serif; font-size: clamp(50px, 5vw, 76px); font-weight: 400; line-height: .98; letter-spacing: -.8px; }
.art-content em { color: #ff8901; font-style: normal; }
.art-content p { max-width: 520px; margin: 0; color: #f3f5ea; font-size: 17px; line-height: 1.65; }
.login-benefits { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 34px; color: white; font-size: 13px; font-weight: 700; }
.login-benefits span { display: flex; align-items: center; gap: 9px; }
.login-benefits i { width: 10px; height: 16px; border-radius: 60% 40% 60% 40%; background: #9ad03a; transform: rotate(24deg); }.login-benefits span:nth-child(2) i { background: #ff8901; }.login-benefits span:nth-child(3) i { background: #c70754; }
.garden { position: absolute; z-index: -1; right: -8%; bottom: -58px; left: 0; height: 265px; opacity: .42; }
.login-art > small { color: #dce9c8; font-size: 12px; }
.login-panel { display: grid; place-items: center; padding: 48px; background: radial-gradient(circle at 100% 0,#eef6dc 0,transparent 30%), linear-gradient(135deg,#fff,#f7f5ef); }
.login-box { width: min(420px, 100%); }
.welcome { margin: 0 0 32px; }
.welcome-kicker { color: var(--color-primary); letter-spacing: 1.3px; }
.welcome h2 { margin: 9px 0 8px; font-family: "TT Cottons", "Arial Narrow", sans-serif; font-size: 42px; font-weight: 400; line-height: 1.08; letter-spacing: 0; }
.welcome p { margin: 0; color: var(--color-muted); font-size: 15px; }
#loginForm > label { display: block; margin: 19px 0 8px; color: #34473b; font-size: 13px; font-weight: 700; }
.input-shell { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; transition: border var(--transition), box-shadow var(--transition); }
.input-shell:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(60, 140, 90, .12); }
.input-shell > .material-symbols-rounded { color: #849188; }
.input-shell input { min-width: 0; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; }
.input-shell .icon-btn { margin-left: auto; }
.form-row { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 24px; }
.form-row a { color: var(--color-primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.check { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; color: var(--color-muted) !important; font-weight: 500 !important; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--color-primary); }
.form-feedback { min-height: 22px; margin-top: 12px; color: var(--color-danger); font-size: 13px; text-align: center; }
.visitor { width: 100%; min-height: 46px; margin-top: 10px; color: var(--color-primary); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; font-weight: 700; }
.version { margin-top: 32px; color: #929e96; font-size: 12px; text-align: center; }

/* Botões e campos */
.primary, .secondary, .date-select { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; transition: background var(--transition), border var(--transition), transform var(--transition); }
.primary { color: white; background: var(--color-primary); box-shadow: 0 5px 14px rgba(37,109,69,.18); }
.primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.secondary, .date-select { color: #395044; border-color: var(--color-border); background: white; }
.secondary:hover { color: var(--color-primary); border-color: #adc8b6; background: #f9fbfa; }
.full { width: 100%; }
button:disabled { cursor: not-allowed; opacity: .55; transform: none !important; }
.login-submit.loading .button-label::after { content: "..."; }
.icon-btn { display: inline-grid; flex: none; place-items: center; width: 40px; height: 40px; padding: 0; color: #59685f; border: 0; border-radius: 10px; background: transparent; }
.icon-btn:hover { color: var(--color-primary); background: var(--color-primary-light); }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--color-text); border: 1px solid var(--color-border); border-radius: 10px; background: white; outline: 0; transition: border var(--transition), box-shadow var(--transition); }
textarea { min-height: 104px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(60,140,90,.11); }
label { color: #3a4b40; font-size: 13px; font-weight: 650; }
label input, label select, label textarea { margin-top: 7px; }
.required { color: var(--color-danger); }

/* Shell */
.app { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 20px 14px; overflow: hidden; color: #dce9e0; border: 0; background: var(--color-primary-dark); transition: transform var(--transition); }
.side-top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 10px 15px; }
.sidebar .brand { color: white; }
.sidebar .brand-logo { width: 94px; height: 38px; }
.sidebar nav { flex: 1; overflow: auto; scrollbar-width: thin; scrollbar-color: #537561 transparent; }
.nav-label { margin: 24px 12px 8px; color: #83a390; font-size: 10px; font-weight: 800; letter-spacing: 1.3px; }
.nav-item, .subnav a { display: flex; align-items: center; gap: 12px; min-height: 43px; margin: 3px 0; padding: 9px 12px; color: #bfd2c5; border-radius: 10px; text-decoration: none; cursor: pointer; transition: color var(--transition), background var(--transition); }
.nav-item b { font-size: 13px; font-weight: 600; }
.nav-item:hover, .subnav a:hover { color: white; background: rgba(255,255,255,.075); }
.nav-item.active { color: white; background: var(--color-primary); box-shadow: inset 3px 0 #86c79d; }
.nav-item.active .material-symbols-rounded { color: #bce3ca; }
.nav-item i { display: grid; place-items: center; width: 20px; height: 20px; margin-left: auto; color: #573d08; background: #efc66d; border-radius: 20px; font-size: 10px; font-style: normal; }
.chev { margin-left: auto; }
.subnav { margin: 2px 0 8px 21px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.12); }
.subnav a { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.side-user { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 10px 3px; color: white; border: 0; border-top: 1px solid rgba(255,255,255,.12); background: transparent; text-align: left; }
.side-user > div:nth-child(2) { min-width: 0; flex: 1; }
.side-user b, .side-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user b { font-size: 13px; }.side-user small { color: #9cb6a5; font-size: 11px; }
.avatar { display: grid; flex: none; place-items: center; width: 36px; height: 36px; overflow: hidden; color: var(--color-primary-dark); border: 2px solid rgba(255,255,255,.7); border-radius: 50%; background: #c9e4d2; font-size: 11px; font-weight: 800; }
.avatar.small { width: 32px; height: 32px; border: 0; }
main { min-width: 0; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; gap: 18px; height: var(--header-height); padding: 0 30px; border-bottom: 1px solid var(--color-border); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.topbar-context { display: none; min-width: 130px; }.topbar-context small, .topbar-context strong { display: block; }.topbar-context small { color: var(--color-muted); font-size: 10px; }.topbar-context strong { font-size: 14px; }
.global-search { display: flex; align-items: center; gap: 9px; width: min(430px, 42vw); min-height: 42px; padding: 0 12px; color: #849188; border: 1px solid transparent; border-radius: 11px; background: #f2f5f3; }
.global-search:focus-within { border-color: var(--color-border); background: white; }
.global-search input { min-height: 38px; padding: 0; border: 0; box-shadow: none; background: transparent; }
.global-search kbd { margin-left: auto; padding: 3px 7px; color: #7a877f; border: 1px solid var(--color-border); border-radius: 6px; background: white; font: 10px inherit; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.notification { position: relative; }.notification::after { content: ""; position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border: 2px solid white; border-radius: 50%; background: var(--color-warning); }
.user-mini { display: flex; align-items: center; gap: 9px; min-height: 46px; margin-left: 5px; padding: 4px 8px; color: var(--color-text); border: 0; border-radius: 12px; background: transparent; }
.user-mini:hover { background: var(--color-primary-light); }
.user-summary { min-width: 86px; text-align: left; }.user-summary b, .user-summary small { display: block; }.user-summary b { max-width: 125px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.user-summary small { color: var(--color-muted); font-size: 10px; }
.mobile-close { display: none; color: white; }
.sidebar-overlay { display: none; position: fixed; z-index: 29; inset: 0; background: rgba(12,31,20,.5); backdrop-filter: blur(2px); }

/* Conteúdo */
.content { width: min(100%, 1540px); margin: 0 auto; padding: 34px clamp(22px, 3vw, 46px) 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.breadcrumbs { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; color: #8a978f; font-size: 12px; }.breadcrumbs .material-symbols-rounded { font-size: 15px; }.breadcrumbs b { color: var(--color-primary); font-weight: 650; }
.page-head h1 { margin: 0; font-size: clamp(27px, 2.2vw, 32px); line-height: 1.18; letter-spacing: -1px; }
.page-head p { max-width: 680px; margin: 8px 0 0; color: var(--color-muted); font-size: 14px; }
.page-actions { display: flex; gap: 9px; }
.card { padding: 22px; border: 1px solid rgba(221,230,224,.85); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }.card-head h3 { margin: 0; font-size: 16px; }.card-head p { margin: 4px 0 0; color: var(--color-muted); font-size: 12px; }.card-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--color-primary); border-radius: 12px; background: var(--color-primary-light); }
.grid { display: grid; gap: 20px; }.two-one { grid-template-columns: minmax(0, 1.7fr) minmax(310px, .8fr); }.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.quick-actions button { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 14px; color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; text-align: left; box-shadow: var(--shadow-sm); transition: transform var(--transition), border var(--transition), box-shadow var(--transition); }
.quick-actions button:hover { border-color: #a8c8b3; box-shadow: var(--shadow-md); transform: translateY(-2px); }.quick-actions > button > .material-symbols-rounded { display: grid; flex: none; place-items: center; width: 38px; height: 38px; color: var(--color-primary); border-radius: 10px; background: var(--color-primary-light); }.quick-actions b, .quick-actions small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.quick-actions b { font-size: 12px; }.quick-actions small { margin-top: 2px; color: var(--color-muted); font-size: 10px; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; margin-bottom: 20px; }
.stat { position: relative; min-height: 132px; padding: 17px; color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); text-align: left; transition: transform var(--transition), box-shadow var(--transition); }.stat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }.stat-icon { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; color: var(--color-primary); border-radius: 10px; background: var(--color-primary-light); }.stat.warning .stat-icon { color: #9b6b12; background: #fff5df; }.stat > small { display: block; max-width: calc(100% - 34px); color: var(--color-muted); font-size: 10px; font-weight: 800; letter-spacing: .5px; }.stat strong { display: block; margin: 25px 0 6px; font-size: 24px; line-height: 1; letter-spacing: -.7px; }.stat > span { color: var(--color-primary); font-size: 10px; font-weight: 700; }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 750; }.badge.green { color: #21623e; background: #e4f3e9; }.badge.red { color: #a83d3d; background: #fbeaea; }.badge.neutral { color: #56655c; background: #eef2ef; }
.empty { display: grid; min-height: 230px; place-items: center; align-content: center; padding: 30px; color: var(--color-muted); text-align: center; }.empty.compact { min-height: 170px; }.empty > .material-symbols-rounded { margin-bottom: 8px; color: #83ad91; font-size: 42px; }.empty h3 { margin: 4px 0; color: var(--color-text); font-size: 15px; }.empty p { max-width: 450px; margin: 4px auto; font-size: 13px; }.error-state > .material-symbols-rounded { color: var(--color-danger); }
.loading-state { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 90px; color: var(--color-muted); }.loader { width: 20px; height: 20px; border: 2px solid #d6e3da; border-top-color: var(--color-primary); border-radius: 50%; animation: spin .8s linear infinite; }

/* Listagens e tabelas */
.list-toolbar, .report-filters { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 220px; max-width: 390px; flex: 1; padding: 0 11px; color: #809087; border: 1px solid var(--color-border); border-radius: 10px; }.search-field input { border: 0; box-shadow: none; padding-inline: 0; }.list-toolbar select { width: auto; min-width: 170px; }.result-count { margin-left: auto; padding-right: 5px; color: var(--color-muted); font-size: 12px; white-space: nowrap; }
.table-card { padding: 0; overflow: hidden; }.table-scroll { overflow-x: auto; }.table-card table { width: 100%; border-collapse: collapse; }.table-card th { padding: 14px 18px; color: #748179; border-bottom: 1px solid var(--color-border); background: #f8faf9; font-size: 10px; font-weight: 800; letter-spacing: .6px; text-align: left; }.table-card td { padding: 15px 18px; color: #506057; border-bottom: 1px solid #edf1ee; font-size: 13px; }.table-card tbody tr:last-child td { border-bottom: 0; }.table-card tbody tr:hover { background: #fafcfb; }.row-actions { width: 64px; text-align: right; }.delete-record { color: #996060; }.delete-record:hover { color: var(--color-danger); background: #fbecec; }.person-cell, .role-label { display: flex; align-items: center; gap: 9px; }.role-label .material-symbols-rounded { color: var(--color-primary); font-size: 18px; }

/* Formulários e checklist */
.form-card { padding: 0; overflow: hidden; }.form-section { padding: 24px; border-bottom: 1px solid var(--color-border); }.section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }.section-heading h3 { margin: 0; font-size: 16px; }.section-heading p { margin: 3px 0 0; color: var(--color-muted); font-size: 12px; }.section-number { display: grid; flex: none; place-items: center; width: 28px; height: 28px; color: white; border-radius: 9px; background: var(--color-primary); font-size: 12px; font-weight: 800; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 24px; background: #fbfcfb; }.form-actions b, .form-actions small { display: block; }.form-actions b { font-size: 13px; }.form-actions small { color: var(--color-muted); font-size: 11px; }
.section-heading .add-history { margin-left: auto; }.history-rows { display: grid; gap: 10px; }.history-empty { padding: 18px; color: var(--color-muted); border: 1px dashed var(--color-border); border-radius: var(--radius-md); text-align: center; }.history-row { display: grid; grid-template-columns: repeat(5, minmax(120px,1fr)) auto; align-items: end; gap: 10px; padding: 13px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #f9fbfa; }.history-row .remove-history { margin-bottom: 2px; color: var(--color-danger); }.file-count { margin-top: 7px; color: var(--color-muted); font-size: 12px; }.hydro-checklist { grid-template-columns: 1fr; }.hydro-checklist .checkitem { align-items: flex-start; min-height: 66px; }.hydro-checklist .checkitem b { color: var(--color-primary); }
.checklist-progress { margin-bottom: 15px; padding: 15px 18px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; }.checklist-progress > div:first-child { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12px; }.checklist-progress span { color: var(--color-muted); }.progress-track { height: 7px; overflow: hidden; border-radius: 10px; background: #e8eee9; }.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--color-primary), #55a56f); transition: width var(--transition); }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.checkitem { display: flex !important; align-items: center; gap: 12px; min-height: 58px; margin: 0 !important; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; cursor: pointer; transition: border var(--transition), background var(--transition); }.checkitem:hover { border-color: #a8c9b3; }.checkitem:has(input:checked) { border-color: #82b494; background: #f1f8f3; }.checkitem input { position: absolute; opacity: 0; pointer-events: none; }.checkmark { display: grid; flex: none; place-items: center; width: 25px; height: 25px; color: transparent; border: 2px solid #b5c4ba; border-radius: 8px; }.checkitem input:checked + .checkmark { color: white; border-color: var(--color-primary); background: var(--color-primary); }.checkmark .material-symbols-rounded { font-size: 17px; }.checkitem > span:last-child { font-size: 13px; font-weight: 700; }.checkitem small { display: block; margin-top: 2px; color: var(--color-warning); font-size: 10px; }.checkitem.critical { border-left: 3px solid #e3b258; }
.capture-field, .upload-field { display: flex !important; align-items: center; gap: 12px; min-height: 74px; margin-top: 16px; padding: 14px 16px; color: var(--color-primary); border: 1px dashed #91bda0; border-radius: var(--radius-md); background: #f5faf7; }.capture-field > .material-symbols-rounded { font-size: 28px; }.capture-field b, .capture-field small { display: block; }.capture-field small { margin-top: 2px; color: var(--color-muted); font-size: 11px; }.capture-field input { width: auto; margin: 0 0 0 auto; padding: 0; border: 0; background: transparent; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.profile-photo-editor { display: flex; align-items: center; gap: 22px; margin: 20px 0 24px; padding: 20px; border: 1px solid var(--color-border); border-radius: 18px; background: linear-gradient(135deg,#f5faf7,#fff); }
.profile-photo-preview { position: relative; flex: none; width: 126px; height: 126px; padding: 0; overflow: visible; border: 4px solid #fff; border-radius: 50%; background: #c9e4d2; box-shadow: 0 8px 25px rgba(25,74,43,.18); }
.profile-photo-preview img, .profile-photo-fallback { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.profile-photo-preview img { display: block; object-fit: cover; }
.profile-photo-fallback { display: grid; place-items: center; color: var(--color-primary-dark); font-size: 30px; font-weight: 800; }
.profile-photo-fallback[hidden], .profile-photo-preview img[hidden] { display: none !important; }
.profile-photo-camera { position: absolute; right: -2px; bottom: 3px; display: grid; place-items: center; width: 36px; height: 36px; color: #fff; border: 3px solid #fff; border-radius: 50%; background: var(--color-primary); font-size: 18px; box-shadow: 0 3px 9px rgba(20,65,35,.25); }
.profile-photo-preview:hover { transform: scale(1.02); }.profile-photo-preview:focus-visible { outline: 3px solid #7bb88d; outline-offset: 3px; }
.profile-photo-copy { min-width: 0; }.profile-photo-copy > b, .profile-photo-copy > small { display: block; }.profile-photo-copy > b { font-size: 15px; }.profile-photo-copy > small { margin: 5px 0 13px; color: var(--color-muted); line-height: 1.4; }.profile-photo-change { display: inline-flex; }.profile-photo-change .material-symbols-rounded { font-size: 18px; }
@media(max-width:560px){.profile-photo-editor{flex-direction:column;padding:18px;text-align:center}.profile-photo-preview{width:142px;height:142px}.profile-photo-change{width:100%;justify-content:center}.profile-photo-copy{width:100%}}
@media (max-width:760px) { .login-brand-lockup-compact { margin-bottom: 34px; }.login-brand-lockup-compact .arcah-product-brand img { width: 88px; }.login-brand-lockup-compact .arcah-product-brand { font-size: 15px; }.login-brand-lockup-compact .horta-social-logo { width: 66px; height: 64px; }.login-brand-lockup-compact .brand-divider { height: 42px; }.welcome h2 { font-size: 38px; } }

/* Identidade Horta Social Urbana aplicada aos componentes internos. */
.page-head h1, .modal-header h2, .knowledge-hero h2, .operation-hero h2, .health-hero h2, .marketing-welcome h2 { font-family: "TT Cottons", "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: 0; }
.stat.warning .stat-icon { color: #9d5200; background: #fff1df; }
.badge.green { color: #294d03; background: #eef6dc; }
.badge.red { color: #a30e38; background: #fde7ef; }
.badge.neutral { color: #6c472d; background: #f1ebe5; }
.empty > .material-symbols-rounded { color: #87b804; }
.table-card th { color: #705f54; background: #f4f0e9; }
.table-card td { color: #553b2b; border-color: #eee9df; }
.table-card tbody tr:hover, .history-row { background: #fbfaf6; }
.checkitem:hover, .knowledge-category:hover, .knowledge-category.active { border-color: #9ad03a; }
.checkitem:has(input:checked), .knowledge-category:hover, .knowledge-category.active { background: #f3f8e8; }
.checkmark { border-color: #b7aa9e; }
.checkitem.critical { border-left-color: #ff8901; }
.calendar-legend .legend-dot.irrigation, .legend-dot.planting { background: #a93fa4; }
.toast-error { background: #a30e38; }

/* Conteúdo especializado */
.operation-hero, .knowledge-hero { display: flex; align-items: center; justify-content: space-between; padding: 30px 34px; color: white; border-radius: var(--radius-lg); background: linear-gradient(130deg, var(--color-primary-dark), var(--color-primary) 70%, #3c8255); box-shadow: var(--shadow-md); }.operation-hero h2, .knowledge-hero h2 { margin: 9px 0 7px; font-size: 27px; }.operation-hero p, .knowledge-hero p { margin: 0; color: #d8e9de; }.operation-hero > .material-symbols-rounded, .knowledge-hero-icon { color: #add6b9; font-size: 78px; }.operation-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }.operation-cards button { position: relative; display: grid; min-height: 145px; padding: 18px; color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; text-align: left; box-shadow: var(--shadow-sm); }.operation-cards button:hover { border-color: #a8c9b3; box-shadow: var(--shadow-md); }.operation-cards > button > .material-symbols-rounded { color: var(--color-primary); font-size: 29px; }.operation-cards b { font-size: 14px; }.operation-cards small { color: var(--color-muted); }.operation-cards i { position: absolute; right: 18px; bottom: 16px; color: var(--color-primary); font-style: normal; }
.knowledge-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 24px; }.knowledge-category { display: grid; gap: 4px; padding: 16px; color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; text-align: left; }.knowledge-category:hover, .knowledge-category.active { border-color: #9dc5aa; background: #f3f9f5; }.knowledge-category .material-symbols-rounded { margin-bottom: 5px; color: var(--color-primary); font-size: 25px; }.knowledge-category small { color: var(--color-muted); }.knowledge-list-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 13px; }.knowledge-list-head h3 { margin: 0; }.knowledge-list-head p { margin: 4px 0 0; color: var(--color-muted); }.knowledge-count { color: var(--color-primary); font-size: 11px; font-weight: 700; }.document-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.document-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }.document-type { display: grid; flex: none; place-items: center; width: 42px; height: 42px; color: var(--color-primary); border-radius: 11px; background: var(--color-primary-light); }.document-info { min-width: 0; flex: 1; }.document-info h3, .document-info p, .document-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.document-info h3 { margin: 5px 0; font-size: 13px; }.document-info p, .document-info small { display: block; margin: 0; color: var(--color-muted); font-size: 11px; }.document-info small { margin-top: 7px; }.document-category { color: var(--color-primary); font-size: 9px; font-weight: 800; text-transform: uppercase; }.document-download { color: var(--color-primary); }.document-empty { grid-column: 1/-1; padding: 42px; color: var(--color-muted); border: 1px dashed #b3cbb9; border-radius: var(--radius-md); background: white; text-align: center; }
.knowledge-search { max-width: none; margin: 18px 0 12px; background: white; }
.admin-summary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }.admin-summary > div { display: grid; grid-template-columns: auto 1fr; column-gap: 11px; padding: 15px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; }.admin-summary .material-symbols-rounded { grid-row: 1/3; display: grid; place-items: center; width: 38px; height: 38px; color: var(--color-primary); border-radius: 10px; background: var(--color-primary-light); }.admin-summary b, .admin-summary small { display: block; }.admin-summary small { color: var(--color-muted); font-size: 11px; }
.user-actions { display: flex; gap: 3px; }.user-actions .delete-user { color: var(--color-danger); }.switch-field { display: flex !important; align-items: center; gap: 9px; min-height: 44px; margin-top: 21px !important; }.switch-field input { width: 19px; height: 19px; margin: 0; accent-color: var(--color-primary); }
.report-filters label { min-width: 170px; }.report-filters .secondary { margin-top: 21px; }.report-summary #reportData { line-height: 2; }.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 20px; }.report-card { display: grid; grid-template-columns: auto 1fr; gap: 11px; padding: 17px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; }.report-card > .material-symbols-rounded { grid-row: 1/3; color: var(--color-primary); }.report-card h3, .report-card p { margin: 0; }.report-card p { color: var(--color-muted); font-size: 11px; }.report-card .badge { grid-column: 2; justify-self: start; margin-top: 6px; }
.report-export { display: grid; grid-template-columns: 1fr minmax(190px,240px) auto; align-items: end; gap: 18px; margin-bottom: 20px; }.report-export > div { display: flex; align-items: center; gap: 14px; }.report-export > div > .material-symbols-rounded { display: grid; flex: none; place-items: center; width: 48px; height: 48px; color: var(--color-primary); border-radius: 13px; background: var(--color-primary-light); font-size: 27px; }.report-export h3,.report-export p { margin: 0; }.report-export p { margin-top: 4px; color: var(--color-muted); }.report-sheet-list { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: var(--color-muted); }.report-sheet-list li::marker { color: var(--color-primary); }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--color-border); color: var(--color-muted); font-size: 12px; }.calendar-legend span { display: flex; align-items: center; gap: 6px; }.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }.legend-dot.irrigation { background: var(--color-info); }.legend-dot.harvest { background: var(--color-primary); }.legend-dot.application { background: var(--color-warning); }.legend-dot.planting { background: #7a62b1; }.segmented { display: flex; padding: 3px; border-radius: 9px; background: #edf2ee; }.segmented button { min-height: 34px; padding: 6px 13px; color: var(--color-muted); border: 0; border-radius: 7px; background: transparent; }.segmented button.active { color: var(--color-primary); background: white; box-shadow: var(--shadow-sm); }
.settings-card > p { color: var(--color-muted); }.settings-list { margin: 0; }.settings-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--color-border); }.settings-list > div:last-child { border-bottom: 0; }.settings-list dt { color: var(--color-muted); }.settings-list dd { margin: 0; font-weight: 700; text-align: right; }
.about-hero { display: flex; align-items: center; gap: 32px; padding: 30px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: white; }.about-hero img { width: 190px; }.about-hero h2 { margin: 8px 0; font-size: 25px; }.about-hero p { color: var(--color-muted); }

/* Modal, toast e estados */
.modal-open { overflow: hidden; }.modal { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(15,38,24,.58); backdrop-filter: blur(4px); }.modal-card { position: relative; width: min(620px, 100%); max-height: min(86vh, 760px); overflow: auto; padding: 26px; border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius-lg); background: white; box-shadow: 0 24px 70px rgba(8,35,19,.26); }.close-modal { position: absolute; z-index: 1; top: 18px; right: 18px; }.modal-header { display: flex; align-items: center; gap: 12px; padding: 0 46px 19px 0; margin-bottom: 20px; border-bottom: 1px solid var(--color-border); }.modal-header > .modal-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--color-primary); border-radius: 12px; background: var(--color-primary-light); }.modal-header span { color: var(--color-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }.modal-header h2 { margin: 2px 0 0; font-size: 21px; }.modal-card form > .primary { margin-top: 20px; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 32px)); padding: 13px 16px; color: white; border-radius: 11px; background: var(--color-primary-dark); box-shadow: var(--shadow-md); font-size: 13px; }.toast-error { background: #9f3e3e; }.toast .material-symbols-rounded { font-size: 20px; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1250px) { .stats { grid-template-columns: repeat(3, 1fr); }.quick-actions { grid-template-columns: repeat(3, 1fr); }.report-grid { grid-template-columns: repeat(2, 1fr); }.history-row { grid-template-columns: repeat(3, minmax(120px,1fr)); } }
@media (max-width: 1080px) { .sidebar { transform: translateX(-100%); }.sidebar.open { transform: translateX(0); }.sidebar-overlay.visible { display: block; }.mobile-close { display: grid; } main { margin-left: 0; }.topbar-context { display: block; }.two-one { grid-template-columns: 1fr; }.login-view { grid-template-columns: minmax(380px,.85fr) 1fr; }.art-content h1 { font-size: 42px; }.global-search { margin-left: auto; }.user-summary { display: none; } }
@media (max-width: 760px) { .login-view { display: block; }.login-art { display: none; }.login-panel { min-height: 100dvh; padding: 28px 22px; }.login-box > .brand { margin-bottom: 46px; }.welcome h2 { font-size: 30px; }.content { padding: 24px 15px 46px; }.topbar { height: 62px; padding: 0 13px; }.topbar-context { display: none; }.global-search { display: none; }.logout-action { display: none; }.page-head { display: block; }.page-actions { margin-top: 16px; }.page-actions > * { width: 100%; }.quick-actions { display: flex; margin-inline: -15px; padding: 0 15px 4px; overflow-x: auto; scroll-snap-type: x mandatory; }.quick-actions button { min-width: 200px; scroll-snap-align: start; }.stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }.stat { min-height: 124px; }.grid.equal, .form-grid, .form-grid.three, .checklist, .admin-summary, .report-grid { grid-template-columns: 1fr; }.operation-cards { grid-template-columns: repeat(2, 1fr); }.knowledge-categories, .document-grid { grid-template-columns: repeat(2, 1fr); }.list-toolbar, .report-filters { align-items: stretch; flex-direction: column; }.list-toolbar select, .report-filters label { width: 100%; }.result-count { margin: 0; padding: 3px; }.table-card { background: transparent; border: 0; box-shadow: none; overflow: visible; }.table-scroll { overflow: visible; }.table-card table, .table-card tbody, .table-card tr, .table-card td { display: block; }.table-card thead { display: none; }.table-card tr { margin-bottom: 10px; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }.table-card td { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 43px; padding: 9px 0; border-bottom: 1px solid #edf1ee; text-align: right; }.table-card td::before { content: attr(data-label); color: var(--color-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }.table-card td[colspan] { display: block; }.table-card td[colspan]::before { display: none; }.table-card .row-actions { width: auto; }.form-actions { align-items: stretch; flex-direction: column; }.form-actions .primary { width: 100%; }.capture-field { align-items: flex-start; flex-wrap: wrap; }.capture-field input { width: 100%; margin: 8px 0 0; }.history-row,.report-export { grid-template-columns: 1fr; }.section-heading { flex-wrap: wrap; }.section-heading .add-history { width: 100%; margin-left: 40px; }.modal { padding: 10px; }.modal-card { max-height: 94vh; padding: 21px; border-radius: 15px; }.about-hero { display: block; }.about-hero img { margin-bottom: 18px; } }
@media (max-width: 440px) { .stats { grid-template-columns: 1fr 1fr; }.stat { padding: 14px; }.stat strong { font-size: 21px; }.operation-cards, .knowledge-categories, .document-grid { grid-template-columns: 1fr; }.page-head h1 { font-size: 26px; }.login-panel { padding-inline: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media print { .sidebar, .topbar, .page-actions, .quick-actions, .list-toolbar { display: none !important; } main { margin: 0; }.content { max-width: none; padding: 0; }.card { box-shadow: none; } }
