/* Cloud Wall's client area, my.cloudwall.bg (2026-10-11).
 *
 * Two jobs. First, the tokens the shared client theme (themes/client/assets/theme.css) draws
 * the work area with, given Cloud Wall's values: the colours, fonts and corners of its
 * payment page and documents (brand.css holds the fonts and the lock-up). Second, what the
 * Lan-Servers client area takes from that site's chrome.css and this one cannot: a light
 * header with the teal rule, the buttons, the phone menu and the footer line.
 *
 * Loaded after brand.css and before theme.css, so theme.css reads these tokens. */

:root {
  --surface-light: #FFFFFF;
  --surface-light-alt: #F5F6FA;
  --border-light: #DCE1EC;
  --border-light-soft: #ECEFF6;
  --text-light-primary: #0C1424;
  --text-light-secondary: #57627B;
  --text-light-body: #2E3A52;
  --text-light-muted: #6B7684;
  /* The header is light here, so the "on dark" names the theme uses there read dark too. */
  --text-dark-primary: #0C1424;
  --text-dark-secondary: #57627B;
  --text-dark-muted: #6B7684;
  --accent: #0F766E;
  --accent-fg: #FFFFFF;
  --card: #FFFFFF;
  --line: var(--border-light);
  --font-sans: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, Menlo, Consolas, monospace;
  --track-caps: 0.12em;
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px;
  --container: 1200px;
  --gutter: 24px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons, as on the payment page ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-md); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; text-decoration: none;
}
:where(button.btn) { font-family: inherit; color: inherit; background: none; cursor: pointer; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline, .btn-ghost { background: #FFFFFF; border-color: var(--border-light); color: var(--text-light-primary); font-weight: 500; }
.btn-outline:hover, .btn-ghost:hover { border-color: var(--text-light-muted); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn:hover { text-decoration: none; }

/* ---------- Header: white, the teal rule on top, the lock-up on the left ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #FFFFFF; border-top: 4px solid var(--accent); border-bottom: 1px solid var(--border-light);
}
.site-header .container { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions .login { color: var(--text-light-secondary); font-size: 15px; font-weight: 500; }
.header-actions .login:hover { color: var(--text-light-primary); }
.cw-client .acct-who { color: var(--text-light-muted); }

/* ---------- The phone menu: a <details>, open with no JavaScript ---------- */
.menu { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px; color: var(--text-light-primary); cursor: pointer; list-style: none;
}
.menu-toggle::-webkit-details-marker { display: none; }
.menu-toggle::marker { content: ""; }
.menu .i-close, .menu[open] .i-open { display: none; }
.menu[open] .i-close { display: block; }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #FFFFFF; border-bottom: 1px solid var(--border-light);
  padding: 4px var(--gutter) 22px; max-height: calc(100dvh - 76px); overflow-y: auto;
}
.menu-panel nav { display: flex; flex-direction: column; }
.menu-panel nav a { padding: 14px 0; font-size: 17px; font-weight: 500; color: var(--text-light-primary); border-bottom: 1px solid var(--border-light-soft); }
.menu-panel nav a[aria-current="page"] { color: var(--accent); }
.menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.menu-actions .btn, .menu-actions .acct-signout .btn { width: 100%; }

/* ---------- The side menu sits under the taller header ---------- */
.cw-client .acct-side { top: 76px; }

/* ---------- Footer: one line, light ---------- */
.site-footer { background: #FFFFFF; border-top: 1px solid var(--border-light); color: var(--text-light-muted); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; padding-top: 18px; padding-bottom: 20px; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom a { color: var(--text-light-muted); }
.footer-bottom a:hover { color: var(--text-light-primary); }

/* ---------- The overview (apps/client/views/pages/account.php) ---------- */
.cw-due { margin: 0; padding: 0; list-style: none; }
.cw-due li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--border-light-soft); }
.cw-due li:first-child { border-top: 0; padding-top: 4px; }
.cw-due .cw-due-doc { flex: 1 1 220px; min-width: 0; }
.cw-due .cw-due-doc span { display: block; font-size: 13px; color: var(--text-light-muted); }
.cw-due .cw-due-sum { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cw-due .is-overdue { color: #8A5A00; }
.cw-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px;
            padding-top: 14px; border-top: 1px solid var(--border-light); font-weight: 600; }
.cw-total .cw-due-sum { font-size: 18px; }

@media (max-width: 800px) {
  .header-actions { display: none; }
  .menu { display: block; }
}
@media (max-width: 520px) {
  .cw-logo-tagline { display: none; }
}
