/* TaxDAT PH "Future" look (owner 11/10/2026), the same as Knewmer0's future.css; loaded after style.css and
   overriding it: 18px rounded corners on cards, inputs and buttons; soft wide shadows; generous spacing; frosted-glass
   panels (85%, light blur); main buttons in a diagonal gradient from the primary blue into a touch of green; system
   sans-serif with monospace numbers; light and dark from the Knewmer0 palette with WCAG AA text; mobile first with
   44px targets on touch / narrow screens; a visible focus ring; no motion when reduced motion is on; plain on paper. */
:root{
  --bg:#e9f0f8; --panel:#fff; --glass:rgba(255,255,255,.85); --surface2:#f3f7fb; --hover:#eef4fb;
  --ink:#0d2340; --ink2:#34506f; --line:rgba(18,48,90,.13); --line2:rgba(18,48,90,.07);
  --field:#fff; --field-line:rgba(18,48,90,.22); --navy:#0d2340;
  --blue:#1f5f99; --primary:#1f5f99; --primary-ink:#fff; --accent:#067a38; --accent-soft:#e3eef9; --chip:#e3eef9;
  --grad:linear-gradient(135deg,#1f5f99 0%,#1f5f99 55%,color-mix(in srgb,#1f5f99 72%,#08b653) 100%);
  --r:18px; --r-sm:12px;
  --shadow:0 18px 48px -14px rgba(13,35,64,.20),0 2px 8px rgba(13,35,64,.06);
  --shadow-pop:0 24px 60px -12px rgba(13,35,64,.32),0 4px 14px rgba(13,35,64,.10);
  --ring:#ffbe25;
}
:root[data-theme="dark"]{
  --bg:#071224; --panel:#10223c; --glass:rgba(16,34,60,.85); --surface2:#132944; --hover:#16304f;
  --ink:#eaf2fc; --ink2:#b6c7dc; --line:rgba(160,190,230,.16); --line2:rgba(160,190,230,.08);
  --field:#0c1b31; --field-line:rgba(160,190,230,.24); --navy:#eaf2fc;
  --blue:#6fa9e6; --primary:#1f6aa8; --primary-ink:#fff; --accent:#4fd18a; --accent-soft:#17314d; --chip:#17314d;
  --grad:linear-gradient(135deg,#1f6aa8 0%,#1f6aa8 55%,color-mix(in srgb,#1f6aa8 75%,#08b653) 100%);
  --shadow:0 22px 56px -14px rgba(0,0,0,.6),0 2px 8px rgba(0,0,0,.3);
  --shadow-pop:0 28px 64px -12px rgba(0,0,0,.7),0 4px 14px rgba(0,0,0,.35);
}
body{background:var(--bg);color:var(--ink);
  background-image:radial-gradient(900px 480px at 88% -12%,rgba(8,182,83,.12),transparent 65%),radial-gradient(800px 560px at -12% 108%,rgba(31,95,153,.16),transparent 65%);background-attachment:fixed}
a{color:var(--blue)}
.wrap{padding:20px 16px 56px}

/* ---- focus: one visible ring everywhere */
:focus-visible{outline:3px solid var(--ring)!important;outline-offset:2px!important}
input:focus,select:focus{outline:2px solid color-mix(in srgb,var(--blue) 55%,transparent);outline-offset:1px}

/* ---- numbers line up */
table.g td.n input,table.g tfoot td,table.list td.mono,.mono,.fname,pre.dat,.hitem .who b,
input[inputmode="decimal"],input[inputmode="numeric"]{font-family:var(--f-mono);font-variant-numeric:tabular-nums}

/* ---- top bar: frosted glass */
.topbar{background:var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--line);
  border-radius:var(--r);box-shadow:var(--shadow);padding:12px 18px;margin-bottom:22px;position:sticky;top:10px;z-index:20}
.topbar nav a{border-radius:var(--r-sm);padding:8px 12px}
.themesw{border-radius:var(--r-sm);border-color:var(--line);background:var(--panel);height:34px}

/* ---- surfaces: frosted glass, rounded, soft wide shadow, generous spacing */
.panel{background:var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--line);
  border-radius:var(--r);box-shadow:var(--shadow);padding:20px 22px}
.grid{gap:22px}
.stack{gap:22px}
.tablewrap{border-radius:var(--r-sm);border:1px solid var(--line);background:var(--panel)}
.panel>.tablewrap[style*="border:0"]{border-radius:var(--r)}
table.g th{background:var(--surface2);color:var(--ink2)}
table.g td{border-top:1px solid var(--line2)}
table.g td input{border-radius:10px}
table.list th{background:var(--surface2);border-bottom:1px solid var(--line)}
table.list td{border-bottom:1px solid var(--line2);padding:10px 12px}
table.list tr.click:hover td{background:var(--hover)}
.hitem{border-radius:var(--r-sm);border-color:var(--line);padding:8px 10px}
.drop,.notice,.problems,fieldset.ticks{border-radius:var(--r-sm)}
pre.dat{border-radius:var(--r-sm)}
.chip{background:var(--chip);color:var(--ink2)}
.menu-list{border-radius:var(--r-sm);box-shadow:var(--shadow-pop);border-color:var(--line)}
.menu-list button{border-radius:10px}
#modal{background:rgba(7,18,36,.45);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.dialog{background:var(--panel);border-radius:var(--r);box-shadow:var(--shadow-pop);border:1px solid var(--line);padding:22px}
.toast{border-radius:var(--r-sm);box-shadow:var(--shadow-pop);background:var(--navy);color:var(--bg)}
.auth .panel{padding:26px}
.segs{border-radius:var(--r-sm);border-color:var(--line)}
.segs button.on{background:var(--grad);color:#fff}

/* ---- buttons: rounded; the main ones in the brand gradient */
.btn{border-radius:var(--r);border:1px solid var(--line);background:var(--panel);color:var(--ink);padding:8px 16px;min-height:36px}
.btn:hover{background:var(--hover);border-color:var(--field-line)}
.btn.sm{min-height:30px;padding:4px 12px}
.btn.primary{background:var(--grad);border:0;color:#fff;box-shadow:0 10px 24px -10px rgba(31,95,153,.7)}
.btn.primary:hover{background:var(--grad);filter:brightness(1.08)}
.btn.ghost{background:none;border-color:transparent;box-shadow:none}
.btn.ghost:hover{background:var(--hover)}
.btn.danger{background:var(--panel)}
.tab[aria-pressed="true"]{border-bottom-color:#08b653}

/* ---- inputs */
input,select{border-radius:var(--r-sm);border:1px solid var(--field-line);background:var(--field);color:var(--ink);min-height:38px;padding:8px 11px}
input[type=checkbox]{min-height:0}
table.g td input{min-height:32px}

/* ---- touch screens and narrow windows: 44px targets */
@media (pointer:coarse),(max-width:640px){
  .btn,.btn.sm,input,select,.segs button,.topbar nav a,.tab,.menu-list button{min-height:44px}
  .themesw{height:auto} .themesw button{min-width:44px;min-height:44px;justify-content:center}
  #main>p>a:only-child{display:inline-flex;align-items:center;min-height:44px}
  .pw button{min-width:44px;min-height:44px}
  input[type=checkbox]{width:22px;height:22px}
  .topbar{position:static}
}
@media (max-width:640px){
  .wrap{padding:12px 16px 40px}
  .panel{padding:16px}
  .topbar{padding:10px 14px}
  .topbar nav{margin-left:0}
}

/* ---- no motion when reduced motion is on */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* ---- on paper: plain */
@media print{
  body{background:#fff;background-image:none;color:#000}
  .panel,.tablewrap{background:#fff;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;border-color:#ccc}
}

/* ---- "+ Add" / "Invite" buttons: green, like Knewmer0's New entry (white text AA on the whole gradient) */
.btn.cta,.btn.cta:hover{background:linear-gradient(135deg,#067a38 0%,#067a38 55%,color-mix(in srgb,#067a38 75%,#1f5f99) 100%);
  color:#fff;border:0;box-shadow:0 10px 24px -10px rgba(8,182,83,.75)}
.btn.cta:hover{filter:brightness(1.1)}

/* ---- the firm's name under "TaxDAT PH": bold, in the "Know your numbers" yellow (dark gold in light mode, AA) */
.ws{color:var(--k-tag);font-weight:700;font-size:14px;letter-spacing:.02em}

/* ---- My profile: cards the same height in each row, every button on one line at the bottom; Trusted devices full width */
.pgrid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));align-items:stretch}
.pgrid>.panel{display:flex;flex-direction:column}
.pgrid>.panel>form{flex:1}
.pgrid>.panel>form>.bar{margin-top:auto}
.pgrid>.pwide{grid-column:1/-1}
.pgrid>.pwide .history{max-height:none}
.pgrid>.pwide .hitem .who b{white-space:normal;overflow:visible}
/* the empty error line and its paragraph margins made the tall gap above the buttons */
.pgrid .err{margin:0;min-height:0}
.pgrid .err:empty{display:none}

/* ---- a second, lighter green for the less-used choice beside a green button (+ Add user with password) */
.btn.cta-soft{background:color-mix(in srgb,#08b653 10%,var(--panel));color:#067a38;border:1.5px solid #067a38;box-shadow:none}
.btn.cta-soft:hover{background:color-mix(in srgb,#08b653 18%,var(--panel));border-color:#067a38}
:root[data-theme="dark"] .btn.cta-soft{color:#4fd18a;border-color:#4fd18a;background:color-mix(in srgb,#08b653 12%,var(--panel))}
:root[data-theme="dark"] .btn.cta-soft:hover{background:color-mix(in srgb,#08b653 22%,var(--panel))}

/* ---- column filters (as in Knewmer0) */
th .fbtn{margin-left:6px;border:1px solid transparent;background:none;color:var(--ink2);border-radius:8px;font-size:11px;line-height:1;padding:3px 6px;cursor:pointer;vertical-align:middle}
th .fbtn:hover{background:var(--hover);border-color:var(--line)}
th.filtered{color:var(--ink)}
th.filtered .fbtn{background:var(--grad);color:#fff;border-color:transparent}
.fnote{margin:0 0 8px;font-size:12.5px;color:var(--ink2)}
.linkbtn{border:0;background:none;color:var(--blue);font:inherit;font-weight:600;cursor:pointer;padding:0}
.fpop{position:absolute;z-index:35;width:280px;max-width:calc(100vw - 16px);background:var(--panel);border:1px solid var(--line);border-radius:var(--r-sm);box-shadow:var(--shadow-pop);padding:12px;display:flex;flex-direction:column;gap:8px}
.fp-sort{display:flex;gap:6px}
.fp-sort button{flex:1;font:inherit;font-size:12.5px;font-weight:600;border:1px solid var(--line);background:var(--surface2);color:var(--ink);border-radius:10px;padding:6px;cursor:pointer}
.fp-sort button:hover{background:var(--hover)}
.fp-list{max-height:240px;overflow:auto;display:flex;flex-direction:column;gap:4px;padding:2px}
.fp-list .check,.fp-all{font-size:13px;word-break:break-word}
.fp-mo{border-bottom:1px solid var(--line2);padding-bottom:4px}
.fp-days{padding-left:22px;display:flex;flex-direction:column;gap:4px}
.fp-days[hidden]{display:none}
.fp-tw{font-size:12px;margin-left:22px}
.fp-foot{display:flex;justify-content:space-between;gap:8px}
@media (pointer:coarse),(max-width:640px){th .fbtn{min-width:36px;min-height:36px}.fp-sort button{min-height:44px}}

/* ---- the button Ctrl+S moved to: always ringed (yellow, as the keyboard focus ring) */
.btn.kbd-target{outline:3px solid var(--ring)!important;outline-offset:3px!important}

.dialog.wide{width:min(960px,calc(100vw - 32px));max-width:none}

/* ---- profile box in the top bar (as Knewmer0's sidebar one): initials, username, role; a link to My profile */
.topbar nav a.mebox{display:inline-flex;align-items:center;gap:9px;padding:4px 10px 4px 4px;margin-left:6px;border-radius:999px}
.mebox .avatar{width:32px;height:32px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#0d2c4c;background:#ffbe25}
.mebox .who{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.mebox .who b{color:var(--ink);font-size:13px;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mebox .role{align-self:flex-start;margin-top:2px;background:var(--chip);color:var(--ink2);font-size:10.5px;font-weight:600;padding:0 7px;border-radius:9px}
@media (max-width:640px){.mebox .who{display:none}.topbar nav a.mebox{padding:4px}}

/* ---- Sign out under the theme buttons, in the tagline's yellow (owner 11/10/2026) */
.topbar .tcol{display:inline-flex;flex-direction:column;align-items:center;gap:2px;margin-left:6px}
.topbar nav .tcol a#signout{color:var(--k-tag);font-size:12.5px;font-weight:700;letter-spacing:.03em;padding:1px 6px;min-height:0;background:none}
.topbar nav .tcol a#signout:hover{background:none;text-decoration:underline}

/* ---- TaxDAT's own mark left of the name; Knewmer0's logo small at the far right (owner 11/11/2026) */
.tdlock{display:inline-flex;align-items:center;gap:11px}
.tdmark{width:40px;height:40px;flex:none;color:var(--k-ink)}
.tdmark .tdA{stroke:#08b653}
:root[data-theme="dark"] .tdmark .tdA{stroke:#3ddc84}
.topbar .ksmall{display:inline-flex;margin-left:4px;padding-left:14px;border-left:1px solid var(--line)}
.ksmall .kring{width:38px;height:38px}
.ksmall .kmark>span{display:none}          /* only the round logo; pointing at it says "TaxDAT PH by Knewmer0" */

/* ---- anything hidden stays hidden, whatever its own display rule (.tabs, .btn: the 1604C sub-tabs and BIR 2316 button) */
[hidden]{display:none!important}
