/* Sundowners ERP — Home 4.0 (Dec. 4, 2026). Same palette as the portal 3.4; the sidebar comes from ../nav.css. */
:root, html.r-SBV { --bg: #f3ead9; --bg-top: #fbf8f1; --ink: #22312c; --muted: #66716c; --faint: #9c9482; --accent: #2f6f5a; --accent-soft: #e4efe8; --head: #9a7632; --line: #e6dcc6; --tile: rgba(255, 255, 255, .86); --warn: #b4541e; --warn-soft: #fdebdc; --ok: #2f6f5a; }
html.r-SVV { --bg: #d9ecf5; --bg-top: #f7fbfd; --ink: #1f3a46; --muted: #587380; --faint: #8ea7b2; --accent: #1f7389; --accent-soft: #e0f0f6; --head: #1f7389; --line: #cfe2ec; }
html.r-CIAO { --bg: #f6f6f3; --bg-top: #fff; --ink: #1d1d1b; --muted: #66645e; --faint: #9b988f; --accent: #008c45; --accent-soft: #e6f4ec; --head: #cd212a; --line: #e4e2dc; --tile: rgba(255, 255, 255, .9); }
* { box-sizing: border-box; } html, body { margin: 0; } html { background: var(--bg); }
body { font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif; font-size: 15px; line-height: 1.45; color: var(--ink); min-height: 100vh; background: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 520px) no-repeat; background-color: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; } .hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 22px 28px 110px; }

.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.top h1 { font-size: 32px; font-weight: 800; letter-spacing: -.8px; margin: 0; line-height: 1.1; }
.top p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.top .date { text-align: right; color: var(--muted); font-size: 13px; font-weight: 600; }
.top .date b { display: block; color: var(--ink); font-size: 20px; letter-spacing: -.4px; }
.preview { background: #fff6dc; color: #7a5a10; border: 1px solid #ecd48a; padding: 10px 16px; border-radius: 12px; margin: 0 0 16px; font-size: 14px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 22px; }
a.kpi { display: block; text-decoration: none; background: var(--tile); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 11px; transition: border-color .15s; }
a.kpi:hover { border-color: var(--accent); background: #fff; }
.kpi .l { font-size: 12px; font-weight: 700; color: var(--muted); }
.kpi .v { font-size: 28px; font-weight: 800; letter-spacing: -.8px; line-height: 1.15; margin-top: 2px; }
.kpi.money .v { font-size: 21px; letter-spacing: -.4px; word-break: break-all; }
.kpi .v small { font-size: 13px; font-weight: 600; color: var(--faint); letter-spacing: 0; }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 2px; }

.cols { display: grid; grid-template-columns: 1.25fr .9fr; gap: 14px; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }
.card { background: var(--tile); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.card h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--head); }
.card h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 9px 6px; border-bottom: 1px solid var(--line); text-decoration: none; }
.todo li:last-child a { border-bottom: 0; }
.todo li a:hover .t { color: var(--accent); }
.todo .b { width: 34px; height: 34px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.todo .b.zero { background: var(--accent-soft); color: var(--ok); }
.todo .t { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.todo .d { font-size: 12.5px; color: var(--muted); display: block; margin-top: 2px; }
.todo .app { font-size: 11px; font-weight: 700; color: var(--faint); background: var(--bg); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.quiet { color: var(--muted); font-size: 13.5px; padding: 10px 4px; margin: 0; }
.mini { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.mini li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.mini li:last-child { border-bottom: 0; } .mini b { font-weight: 800; } .mini .m { color: var(--muted); }
.grid.one { grid-template-columns: 1fr; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 8px; }
a.tile { display: flex; gap: 10px; align-items: center; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; font-size: 13.5px; font-weight: 700; }
a.tile .i { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); display: grid; place-items: center; font-size: 17px; flex: 0 0 auto; }
a.tile .testb { font-size: 10px; font-weight: 800; color: #8a4b00; background: #ffe2b3; border: 1px solid #f0b45c; border-radius: 6px; padding: 1px 5px; margin-left: auto; }
.search { display: block; position: relative; margin: 6px 0 2px; }
.search input { width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14.5px; outline: none; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.state { text-align: center; color: var(--muted); padding: 56px 10px; }
.spin { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; margin-right: 10px; vertical-align: -4px; animation: s 1s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }
.card.auth { max-width: 480px; margin: 40px auto 0; border-radius: 20px; padding: 30px 28px; }
#signin h2, #deny h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
#signin p, #deny p { color: var(--muted); margin: 0 0 18px; }
.fine { font-size: 13px; margin: 12px 0 0; color: #a04a3a; }
.primary { font: inherit; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; cursor: pointer; }
.primary:hover { background: var(--ink); }
footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer button { font: inherit; font-size: 12.5px; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .wrap { padding: 14px 14px 96px; }
  .top h1 { font-size: 24px; } .top .date b { font-size: 17px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; } .kpi .v { font-size: 24px; }
}
html.r-CIAO body::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 6px; z-index: 5; background: linear-gradient(90deg, #008c45 0 33.34%, #f4f5f0 33.34% 66.67%, #cd212a 66.67% 100%); }

/* 4.3.0 (Yohan, Dec. 4): CIAO's Home in the dark look of the CIAO app (Cuadre style) — Inter, dark grey page, lighter cards */
html.r-CIAO { --bg: #1a1f20; --bg-top: #1a1f20; --ink: #e9eeec; --muted: #98a5a2; --faint: #7f8b89; --accent: #2fbf6a; --accent-soft: #1d3a2a; --head: #f07a84; --line: #343d3e; --tile: #242b2c; --warn: #f0a35e; --warn-soft: #3d2c19; --ok: #6fdc9c; color-scheme: dark; }
html.r-CIAO body { font-family: Inter, 'Segoe UI', system-ui, sans-serif; font-feature-settings: "cv11", "ss01"; }
html.r-CIAO .top h1, html.r-CIAO .kpi .v { font-weight: 700; } html.r-CIAO .card h2 { font-weight: 650; } html.r-CIAO .todo .t, html.r-CIAO a.tile { font-weight: 600; }
html.r-CIAO a.kpi:hover { background: #2a3233; }
html.r-CIAO a.tile, html.r-CIAO .search input { background: #1d2324; }
html.r-CIAO a.tile:hover { border-color: var(--accent); }
html.r-CIAO .preview { background: #3d2f17; color: #f0c070; border-color: #6b5426; }
html.r-CIAO .fine { color: #f07a84; }
html.r-CIAO .primary:hover { background: #17a556; }
html.r-CIAO body::before { background: linear-gradient(90deg, #17a556 0 33.34%, #e9eeec 33.34% 66.67%, #e0505c 66.67% 100%); }
