.gfm-wrap{max-width:1280px}.gfm-hero{background:linear-gradient(135deg,#17344d,#0d6b73);border-radius:22px;color:#fff;padding:28px;margin:18px 0 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 16px 36px rgba(14,44,60,.18)}.gfm-hero h2{color:#fff;margin:0 0 6px;font-size:28px}.gfm-hero p{margin:0;color:rgba(255,255,255,.86)}.gfm-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0 24px}.gfm-card{background:#fff;border:1px solid #e8edf0;border-radius:18px;padding:20px;box-shadow:0 10px 24px rgba(30,45,55,.06)}.gfm-card span{display:block;color:#64748b;font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.05em}.gfm-card strong{display:block;font-size:30px;color:#0f3148;margin:8px 0}.gfm-card small{color:#6b7280}.gfm-formbox{background:#fff;border:1px solid #e8edf0;border-radius:20px;padding:22px;box-shadow:0 10px 24px rgba(30,45,55,.06);max-width:980px}.gfm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.gfm-grid label,.gfm-auth-card label{display:block;font-weight:800;color:#143247}.gfm-grid label span{display:block;margin-bottom:7px}.gfm-grid input,.gfm-grid select,.gfm-auth-card input{width:100%;max-width:100%;border-radius:12px;border:1px solid #cfd8df;padding:10px 12px;background:#fff}.gfm-table{margin-top:12px}.gfm-summary-table{margin:18px 0 22px}.gfm-auth-card{max-width:520px;margin:40px auto;background:#fff;border-radius:24px;padding:24px;border:1px solid #e8edf0;box-shadow:0 18px 50px rgba(15,49,72,.12);font-family:Arial,sans-serif}.gfm-auth-banner{background:linear-gradient(135deg,#17344d,#4fd9db);border-radius:20px;padding:26px;color:#fff;margin-bottom:18px}.gfm-auth-banner h1{margin:0 0 8px;color:#fff;font-size:30px}.gfm-auth-banner p{margin:0;color:rgba(255,255,255,.9)}.gfm-auth-card form{display:grid;gap:14px}.gfm-btn{display:inline-block;background:#17344d;color:#fff!important;border:0;border-radius:999px;padding:12px 20px;text-decoration:none;font-weight:900;text-align:center;cursor:pointer}.gfm-front-msg{background:#fff7df;border:1px solid #f0d58a;color:#5c4300;padding:12px;border-radius:14px;margin:10px 0}.gfm-check{display:flex!important;gap:10px;align-items:center}.gfm-check input{width:auto}.button-hero{margin-top:18px!important}@media(max-width:900px){.gfm-cards,.gfm-grid{grid-template-columns:1fr}.gfm-hero{display:block}.gfm-hero .button{margin-top:16px}}
.gfm-app-shell{max-width:1180px;margin:24px auto;padding:0 14px;font-family:Arial,'Helvetica Neue',sans-serif;color:#143247}.gfm-app-top{background:linear-gradient(135deg,#17344d,#0d6b73 70%,#4fd9db);color:#fff;border-radius:28px;padding:28px;display:flex;justify-content:space-between;gap:18px;align-items:flex-start;box-shadow:0 18px 48px rgba(15,49,72,.18)}.gfm-app-top h1{color:#fff;margin:8px 0 6px;font-size:32px;line-height:1.05}.gfm-app-top p{margin:0;color:rgba(255,255,255,.88)}.gfm-pill{display:inline-flex;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:7px 12px;font-weight:900;font-size:12px;letter-spacing:.04em}.gfm-app-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.gfm-app-actions a{color:#fff!important;text-decoration:none;font-weight:900;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);padding:10px 14px;border-radius:999px}.gfm-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.gfm-tabs a{background:#fff;border:1px solid #dce5ea;border-radius:999px;padding:11px 15px;text-decoration:none;color:#17344d;font-weight:900;box-shadow:0 8px 18px rgba(30,45,55,.05)}.gfm-tabs a.active{background:#17344d;color:#fff}.gfm-muted{color:#64748b;margin-top:-4px}.gfm-app-shell .wrap{margin:0;padding:0}.gfm-app-shell .gfm-wrap{max-width:none}.gfm-app-shell .gfm-hero .button{display:none}.gfm-app-shell table{background:#fff;border-radius:14px;overflow:hidden}.gfm-auth-links{margin:0;text-align:center}.gfm-auth-links a{color:#17344d;font-weight:900}@media(max-width:760px){.gfm-app-top{display:block;padding:22px}.gfm-app-top h1{font-size:26px}.gfm-app-actions{justify-content:flex-start;margin-top:16px}.gfm-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.gfm-tabs a{white-space:nowrap}.gfm-app-shell .gfm-table{display:block;overflow-x:auto}.gfm-cards{grid-template-columns:1fr}.gfm-formbox{padding:18px}}
/* 0.3.0 polish */
.gfm-app-shell a,
.gfm-auth-card a,
.gfm-wrap a,
.gfm-tabs a,
.gfm-app-actions a,
.gfm-btn{
  text-decoration:none!important;
}
.gfm-app-shell a:hover,
.gfm-auth-card a:hover,
.gfm-wrap a:hover,
.gfm-tabs a:hover,
.gfm-app-actions a:hover,
.gfm-btn:hover{
  text-decoration:none!important;
}
.gfm-mini-note{font-size:12px;color:#64748b;margin:6px 0 0;font-weight:500}.gfm-employee-box{margin-bottom:22px;max-width:none}.gfm-employee-box h3{margin-top:22px}
.gfm-app-shell a,.gfm-wrap a{text-decoration:none!important}.gfm-filter-row{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px;align-items:end}.gfm-filter-row label{display:block}.gfm-filter-row .gfm-mini-note{display:none}.gfm-formbox h3{margin-top:24px}.gfm-table td:last-child{white-space:nowrap}@media(max-width:800px){.gfm-filter-row{grid-template-columns:1fr}}

/* 0.4.3 quick-entry cleanup and larger controls */
.gfm-grid input,
.gfm-grid select,
.gfm-auth-card input,
.gfm-filter-row input,
.gfm-filter-row select{
  min-height:48px;
  padding:13px 16px!important;
  font-size:16px;
  line-height:1.35!important;
}
.gfm-tabs a,
.gfm-app-actions a,
.gfm-btn{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1.2!important;
  padding:12px 18px!important;
}
.gfm-app-top{overflow:visible;}
.gfm-app-actions{min-width:max-content;}
@media(max-width:760px){.gfm-app-actions{min-width:0}.gfm-grid input,.gfm-grid select{font-size:15px}}


/* 0.4.4 field height/readability fix */
.gfm-grid{
  gap:22px 20px!important;
  align-items:end;
}
.gfm-grid label span,
.gfm-filter-row label span{
  margin-bottom:10px!important;
}
.gfm-grid input,
.gfm-grid select,
.gfm-auth-card input,
.gfm-filter-row input,
.gfm-filter-row select{
  height:58px!important;
  min-height:58px!important;
  padding:16px 18px!important;
  font-size:16px!important;
  line-height:1.45!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
.gfm-grid select,
.gfm-filter-row select{
  padding-top:0!important;
  padding-bottom:0!important;
  line-height:58px!important;
}
.gfm-formbox .gfm-btn,
.gfm-formbox button.gfm-btn,
.gfm-formbox input[type="submit"].gfm-btn{
  min-height:50px!important;
  padding:14px 24px!important;
  margin-top:16px!important;
  line-height:1.25!important;
}
.gfm-app-shell .gfm-formbox{
  padding:28px!important;
}
.gfm-app-shell .gfm-formbox p{
  margin-bottom:22px!important;
}
@media(max-width:760px){
  .gfm-grid input,
  .gfm-grid select,
  .gfm-filter-row input,
  .gfm-filter-row select{
    height:56px!important;
    min-height:56px!important;
    font-size:15px!important;
  }
}

/* 0.4.5 income split + cleaner dashboard */
.gfm-dashboard-head{
  background:#fff;
  border:1px solid #e8edf0;
  border-radius:20px;
  padding:22px 24px;
  margin:0 0 18px;
  box-shadow:0 10px 24px rgba(30,45,55,.05);
}
.gfm-dashboard-head h2{margin:0 0 8px;color:#143247;font-size:26px;}
.gfm-dashboard-head p{margin:0;color:#64748b;max-width:820px;}
.gfm-dashboard-cards .gfm-card:nth-child(5){
  border:2px solid #17344d;
  background:linear-gradient(135deg,#fff,#f3fbfc);
}
.gfm-dashboard-cards .gfm-card:nth-child(5) strong{font-size:34px;}
.gfm-dashboard-breakdown{max-width:none!important;margin-bottom:18px;}
.gfm-breakdown-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.gfm-mini-total{
  background:#f8fafc;
  border:1px solid #e0e7ee;
  border-radius:16px;
  padding:16px;
}
.gfm-mini-total span{display:block;color:#64748b;font-weight:900;font-size:13px;margin-bottom:8px;}
.gfm-mini-total strong{display:block;color:#143247;font-size:22px;}
#gfm_amount[readonly]{background:#f8fafc;font-weight:900;color:#17344d;}
@media(max-width:900px){.gfm-breakdown-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:560px){.gfm-breakdown-grid{grid-template-columns:1fr;}}

/* 0.5.1 payroll extra work */
.gfm-checkline{display:flex!important;align-items:center;gap:10px;min-height:58px;border:1px solid #cfd8df;border-radius:12px;padding:0 16px;background:#fff;font-weight:900!important;}
.gfm-checkline input{width:auto!important;min-height:auto!important;height:auto!important;}

/* 0.5.2 AI economist cards */
.gfm-ai-hero{background:linear-gradient(135deg,#fff8e8,#eefbff);border:1px solid #f0dca8;}
.gfm-ai-box{border-left:7px solid #f0b429;background:#fffdf5;}
.gfm-ai-green{border-left-color:#19a974;background:#f1fff8;}
.gfm-ai-orange{border-left-color:#f0b429;background:#fffaf0;}
.gfm-ai-red{border-left-color:#e03131;background:#fff5f5;}
.gfm-ai-advice{font-size:16px;line-height:1.65;background:#fff;border-radius:16px;padding:16px 18px;margin-top:16px;box-shadow:0 8px 22px rgba(18,53,84,.08);}
.gfm-ai-advice strong{color:#123554;}

/* 0.6.4 dashboard filters + colored business cards */
.gfm-dashboard-filter{border-left:6px solid #4fd9db;background:linear-gradient(135deg,#ffffff,#f4feff);}
.gfm-filter-form{margin:0;}
.gfm-quick-filters{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
.gfm-chip{display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;border:1px solid #d7e1e8;border-radius:999px;padding:11px 18px;background:#fff;color:#123554;font-weight:900;box-shadow:0 8px 18px rgba(18,53,84,.06);}
.gfm-chip.is-active,.gfm-chip:hover{background:#123554;color:#fff;border-color:#123554;}
.gfm-colored-cards .gfm-card{position:relative;overflow:hidden;border-width:2px;}
.gfm-colored-cards .gfm-card:nth-child(1){border-color:#22c55e;background:linear-gradient(135deg,#ffffff,#f0fff6);}
.gfm-colored-cards .gfm-card:nth-child(2){border-color:#38bdf8;background:linear-gradient(135deg,#ffffff,#effaff);}
.gfm-colored-cards .gfm-card:nth-child(3){border-color:#f59e0b;background:linear-gradient(135deg,#ffffff,#fff8eb);}
.gfm-colored-cards .gfm-card:nth-child(4){border-color:#14b8a6;background:linear-gradient(135deg,#ffffff,#edfffd);}
.gfm-colored-cards .gfm-card:nth-child(5){border-color:#ef4444;background:linear-gradient(135deg,#ffffff,#fff2f2);}
.gfm-colored-cards .gfm-card:nth-child(6){border-color:#123554;background:linear-gradient(135deg,#ffffff,#eef7ff);}
.gfm-colored-cards .gfm-card strong{font-size:30px!important;}
.gfm-balance-panel{border-left:7px solid #123554;background:linear-gradient(135deg,#ffffff,#f8fbfd);}
.gfm-balance-panel .gfm-mini-total:nth-child(-n+4){border-color:#fecaca;background:#fff7f7;}
.gfm-balance-panel .gfm-mini-total:nth-child(5){border-color:#bbf7d0;background:#f2fff7;}
.gfm-balance-panel .gfm-mini-total:nth-child(6){border-color:#bfdbfe;background:#f3f8ff;}

/* 0.6.6 public auth branding + access cleanup */
.gfm-auth-branded{background:#fffdf8;border-color:#e7dcc8;}
.gfm-auth-logo-wrap{text-align:center;margin:2px auto 20px;}
.gfm-auth-logo{display:block;width:100%;max-width:420px;height:auto;margin:0 auto;object-fit:contain;}
.gfm-auth-branded .gfm-auth-banner{background:linear-gradient(135deg,#123554,#4fd9db);text-align:center;}
.gfm-auth-branded .gfm-auth-banner h1{font-size:28px;}
.gfm-auth-branded input{min-height:48px;font-size:16px;}
.gfm-auth-branded .gfm-btn{width:100%;font-size:16px;padding:14px 22px;}
.gfm-auth-links{line-height:1.8;}
@media(max-width:520px){.gfm-auth-card{margin:22px 12px;padding:18px}.gfm-auth-logo{max-width:320px}.gfm-auth-branded .gfm-auth-banner h1{font-size:24px}}

/* 0.6.8 auth/account approval polish */
.gfm-password-help{display:block;color:#64748b;font-weight:700;margin-top:-8px}.gfm-danger-link{color:#b91c1c!important;border-color:#fecaca!important}.gfm-auth-card .gfm-auth-links{font-size:15px}.gfm-auth-card .gfm-auth-links a{text-decoration:none}.gfm-auth-card .gfm-auth-links a:hover{text-decoration:underline}


/* 0.6.9 Chondros-Kavos style public access screen */
.gfm-access-shell{
  max-width:1280px;
  margin:36px auto;
  padding:0 22px;
  font-family:Arial,'Helvetica Neue',sans-serif;
  color:#123554;
}
.gfm-access-hero{
  background:#123554;
  color:#fff;
  border-radius:24px;
  padding:26px 28px 34px;
  box-shadow:0 18px 44px rgba(18,53,84,.18);
  margin-bottom:22px;
}
.gfm-access-logo-card{
  width:260px;
  max-width:100%;
  background:#fffdf8;
  border-radius:18px;
  padding:18px 20px;
  box-shadow:0 10px 26px rgba(0,0,0,.12);
  margin-bottom:22px;
}
.gfm-access-logo-card .gfm-auth-logo-wrap{margin:0!important;}
.gfm-access-logo-card .gfm-auth-logo{
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  object-fit:contain!important;
  display:block!important;
}
.gfm-access-hero h1{
  margin:0;
  color:#fff;
  font-size:38px;
  line-height:1.08;
  font-family:Georgia,'Times New Roman',serif;
  font-weight:900;
}
.gfm-access-hero p{
  margin:10px 0 0;
  color:rgba(255,255,255,.9);
  max-width:820px;
  font-size:16px;
}
.gfm-access-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  align-items:start;
}
.gfm-access-single .gfm-auth-panel{max-width:720px;margin:0 auto;}
.gfm-auth-panel{
  background:#fffdf8;
  border:1px solid #e7dcc8;
  border-radius:22px;
  padding:26px 28px;
  box-shadow:0 14px 34px rgba(18,53,84,.10);
}
.gfm-auth-panel h2{
  margin:0 0 22px;
  color:#123554;
  font-size:32px;
  line-height:1.05;
  font-family:Georgia,'Times New Roman',serif;
}
.gfm-auth-panel form{display:grid;gap:16px;}
.gfm-auth-panel label{display:block;font-weight:900;color:#123554;}
.gfm-auth-panel input{
  width:100%;
  height:58px;
  min-height:58px;
  border:1px solid #cfd8df;
  border-radius:14px;
  padding:14px 16px;
  background:#fff;
  font-size:16px;
  box-sizing:border-box;
  margin-top:8px;
}
.gfm-auth-panel .gfm-check{display:flex!important;align-items:center;gap:10px;margin-top:2px;}
.gfm-auth-panel .gfm-check input{width:auto!important;height:auto!important;min-height:0!important;margin:0!important;}
.gfm-auth-panel .gfm-btn{
  width:auto!important;
  min-width:150px;
  justify-self:start;
  font-size:17px;
  padding:14px 26px!important;
  background:#123554!important;
}
.gfm-register-panel{background:#fffdf8;}
.gfm-auth-link-alone{font-size:18px;font-weight:900;color:#123554!important;text-decoration:underline!important;justify-self:start;}
.gfm-access-shell .gfm-front-msg{margin:0 0 18px;}
@media(max-width:900px){
  .gfm-access-grid{grid-template-columns:1fr;}
  .gfm-access-hero h1{font-size:30px;}
  .gfm-access-logo-card{width:230px;}
}
@media(max-width:560px){
  .gfm-access-shell{margin:20px auto;padding:0 12px;}
  .gfm-access-hero{padding:22px;border-radius:20px;}
  .gfm-auth-panel{padding:22px 18px;}
  .gfm-auth-panel h2{font-size:28px;}
}

/* 0.7.0 app-native confirmations and banners */
.gfm-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:999999;
  background:rgba(18,53,84,.58);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  backdrop-filter:blur(4px);
}
.gfm-modal-backdrop.is-open{display:flex;}
.gfm-modal-card{
  width:min(460px,100%);
  background:#fffdf8;
  border:1px solid #eadfca;
  border-radius:24px;
  box-shadow:0 28px 80px rgba(18,53,84,.35);
  padding:28px;
  text-align:left;
  color:#123554;
  font-family:Arial,'Helvetica Neue',sans-serif;
  animation:gfmModalIn .16s ease-out;
}
@keyframes gfmModalIn{from{transform:translateY(10px) scale(.98);opacity:.4}to{transform:translateY(0) scale(1);opacity:1}}
.gfm-modal-icon{
  width:42px;
  height:42px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ffe6e6;
  color:#b91c1c;
  font-weight:1000;
  font-size:22px;
  margin-bottom:14px;
}
.gfm-modal-title{
  margin:0 0 8px!important;
  color:#123554!important;
  font-size:24px!important;
  line-height:1.15!important;
}
.gfm-modal-text{
  margin:0 0 22px!important;
  color:#40586b!important;
  font-size:16px!important;
  line-height:1.5!important;
}
.gfm-modal-actions{
  display:flex;
  gap:12px;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.gfm-modal-actions button{
  border:0!important;
  border-radius:999px!important;
  padding:13px 22px!important;
  font-weight:900!important;
  cursor:pointer!important;
  min-height:48px!important;
  line-height:1!important;
}
.gfm-modal-cancel{
  background:#eef4f7!important;
  color:#123554!important;
}
.gfm-modal-confirm{
  background:#b91c1c!important;
  color:#fff!important;
  box-shadow:0 10px 20px rgba(185,28,28,.18)!important;
}
.gfm-front-msg{
  border:0!important;
  border-radius:18px!important;
  padding:15px 18px!important;
  margin:16px 0!important;
  font-weight:900!important;
  box-shadow:0 12px 28px rgba(18,53,84,.10)!important;
  color:#123554!important;
  background:#ecfdf5!important;
  border-left:6px solid #22c55e!important;
}
.gfm-front-msg.is-danger{
  background:#fff1f2!important;
  border-left-color:#ef4444!important;
}
.gfm-front-msg.is-success:before{content:'✓ ';font-weight:1000;color:#15803d;}
.gfm-front-msg.is-danger:before{content:'! ';font-weight:1000;color:#b91c1c;}
@media(max-width:560px){
  .gfm-modal-card{padding:22px;border-radius:20px;}
  .gfm-modal-actions{display:grid;grid-template-columns:1fr;}
  .gfm-modal-actions button{width:100%;}
}

/* CFO / AI Economist v3 */
.gfm-cfo-form .gfm-formbox{position:relative;overflow:hidden;}
.gfm-cfo-table{display:grid;gap:10px;margin:12px 0 16px;}
.gfm-cfo-row{display:grid;grid-template-columns:1.4fr 1fr 1fr .8fr .8fr auto;gap:10px;align-items:end;background:#fff;border:1px solid rgba(18,53,84,.12);border-radius:18px;padding:12px;box-shadow:0 8px 22px rgba(18,53,84,.05);}
#gfm_cfo_fixed .gfm-cfo-row{grid-template-columns:1.3fr .9fr .8fr .9fr 1.2fr auto;}
.gfm-cfo-head{background:#123554;color:#fff;font-weight:900;align-items:center;}
.gfm-cfo-row input,.gfm-cfo-row select{width:100%;min-height:48px;border-radius:14px;border:1px solid rgba(18,53,84,.18);padding:10px 12px;font-size:15px;box-sizing:border-box;background:#fff;}
.gfm-cfo-head span{font-size:13px;letter-spacing:.02em;}
.gfm-cfo-remove{width:42px;height:42px;border:0;border-radius:14px;background:#fee2e2;color:#991b1b;font-size:22px;font-weight:900;cursor:pointer;}
.gfm-btn-secondary{border:0;background:#e8f7fb;color:#123554;border-radius:999px;padding:12px 18px;font-weight:900;cursor:pointer;}
.gfm-season-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.gfm-season-grid label{display:block;background:#fff;border:1px solid rgba(18,53,84,.12);border-radius:16px;padding:12px;}
.gfm-season-grid span{display:block;font-weight:900;color:#123554;margin-bottom:8px;}
.gfm-season-grid input{width:100%;min-height:46px;border-radius:14px;border:1px solid rgba(18,53,84,.18);padding:10px;box-sizing:border-box;}
.gfm-cfo-live{border-left:8px solid #f59e0b!important;}
.gfm-cfo-live.gfm-cfo-green{background:linear-gradient(135deg,#ecfdf5,#ffffff)!important;border-left-color:#22c55e!important;}
.gfm-cfo-live.gfm-cfo-yellow{background:linear-gradient(135deg,#fffbeb,#ffffff)!important;border-left-color:#f59e0b!important;}
.gfm-cfo-live.gfm-cfo-red{background:linear-gradient(135deg,#fff1f2,#ffffff)!important;border-left-color:#ef4444!important;}
.gfm-cfo-advice{margin-top:18px;background:#123554;color:#fff;border-radius:22px;padding:18px 20px;}
.gfm-cfo-advice h3{color:#fff;margin:0 0 12px;font-size:22px;}
.gfm-cfo-advice ol{margin:0;padding-left:24px;display:grid;gap:8px;}
.gfm-cfo-advice li{line-height:1.45;font-weight:700;}
@media(max-width:900px){.gfm-cfo-row,#gfm_cfo_fixed .gfm-cfo-row{grid-template-columns:1fr 1fr}.gfm-cfo-head{display:none}.gfm-season-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){.gfm-cfo-row,#gfm_cfo_fixed .gfm-cfo-row,.gfm-season-grid{grid-template-columns:1fr}.gfm-cfo-remove{width:100%;}}


/* GFM PWA install prompt */
.gfm-install-banner{
    position:fixed;
    left:18px;
    right:18px;
    bottom:18px;
    z-index:999999;
    display:flex;
    align-items:center;
    gap:14px;
    max-width:620px;
    margin:0 auto;
    padding:14px 16px;
    background:#fffdf8;
    border:1px solid rgba(18,53,84,.18);
    border-radius:22px;
    box-shadow:0 18px 45px rgba(18,53,84,.20);
    color:#123554;
}
.gfm-install-banner[hidden]{display:none!important;}
.gfm-install-icon img{width:52px;height:52px;border-radius:14px;display:block;box-shadow:0 8px 18px rgba(18,53,84,.20);}
.gfm-install-text{display:flex;flex-direction:column;line-height:1.25;flex:1;min-width:0;}
.gfm-install-text strong{font-size:16px;font-weight:900;}
.gfm-install-text span{font-size:13px;color:#4b6378;margin-top:3px;}
#gfm-install-btn{border:0;border-radius:999px;background:#123554;color:#fff;font-weight:900;padding:11px 16px;cursor:pointer;white-space:nowrap;}
#gfm-install-close{border:0;background:#eef5f6;color:#123554;border-radius:50%;width:34px;height:34px;font-size:22px;line-height:1;cursor:pointer;}
@media(max-width:640px){
    .gfm-install-banner{left:10px;right:10px;bottom:10px;align-items:flex-start;}
    .gfm-install-text span{display:none;}
    #gfm-install-btn{padding:10px 12px;font-size:13px;}
}


/* 0.7.8 app-only access + mobile overflow hardening */
html, body{
  max-width:100%!important;
  overflow-x:hidden!important;
}
body.admin-bar .gfm-app-shell{
  margin-top:0!important;
}
.gfm-app-shell,
.gfm-app-shell *,
.gfm-auth-card,
.gfm-auth-card *,
.gfm-wrap,
.gfm-wrap *{
  box-sizing:border-box!important;
}
.gfm-app-shell{
  width:100%!important;
  max-width:1180px!important;
  overflow-x:hidden!important;
}
.gfm-app-shell .wrap,
.gfm-app-shell .gfm-wrap,
.gfm-app-shell .gfm-formbox,
.gfm-app-shell section,
.gfm-dashboard-head,
.gfm-dashboard-filter{
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
}
.gfm-app-shell img,
.gfm-auth-card img{
  max-width:100%!important;
  height:auto!important;
}
@media(max-width:760px){
  .gfm-app-shell{
    margin:0 auto!important;
    padding:10px!important;
  }
  .gfm-app-top,
  .gfm-formbox,
  .gfm-dashboard-head,
  .gfm-dashboard-filter,
  .gfm-card,
  .gfm-ai-box{
    border-radius:18px!important;
  }
  .gfm-tabs{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .gfm-tabs::-webkit-scrollbar{display:none;}
  .gfm-grid,
  .gfm-filter-row,
  .gfm-cards,
  .gfm-breakdown-grid{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:1fr!important;
  }
  .gfm-app-shell table.widefat,
  .gfm-app-shell table.gfm-table,
  .gfm-app-shell .widefat,
  .gfm-app-shell .gfm-table{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .gfm-app-shell table.widefat thead,
  .gfm-app-shell table.widefat tbody,
  .gfm-app-shell table.widefat tr,
  .gfm-app-shell table.gfm-table thead,
  .gfm-app-shell table.gfm-table tbody,
  .gfm-app-shell table.gfm-table tr{
    min-width:max-content;
  }
  .gfm-app-shell table.widefat th,
  .gfm-app-shell table.widefat td,
  .gfm-app-shell table.gfm-table th,
  .gfm-app-shell table.gfm-table td{
    white-space:nowrap!important;
  }
  .gfm-app-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
  }
  .gfm-app-actions a,
  .gfm-btn{
    width:100%!important;
  }
}

/* 0.8.0 mobile tabbar hard fix, no clipped half tabs */
@media(max-width:760px){
  .gfm-app-shell{max-width:100vw!important; overflow-x:hidden!important;}
  .gfm-tabs{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    overflow:visible!important;
    width:100%!important;
    max-width:100%!important;
  }
  .gfm-tabs a{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    white-space:normal!important;
    text-align:center!important;
    line-height:1.15!important;
    padding:12px 10px!important;
  }
}
@media(max-width:380px){
  .gfm-tabs{grid-template-columns:1fr!important;}
}

/* 0.8.1 supplier opening balances + safer mobile tables/tabs */
.gfm-opening-balance-box{border-left:5px solid #f59e0b!important;background:#fffaf0!important;}
.gfm-table-scroll{width:100%!important;max-height:520px!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;border-radius:14px!important;}
.gfm-table-scroll table{margin:0!important;min-width:860px!important;}
.gfm-table-scroll thead th{position:sticky!important;top:0!important;z-index:2!important;background:#fff!important;}
@media(max-width:760px){
  .gfm-app-shell{width:100vw!important;max-width:100vw!important;margin:0!important;padding:10px!important;overflow-x:hidden!important;}
  .gfm-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;max-width:100%!important;overflow:visible!important;padding:0!important;}
  .gfm-tabs a{min-width:0!important;width:100%!important;white-space:normal!important;word-break:normal!important;}
  .gfm-table-scroll{max-height:430px!important;overflow:auto!important;}
}


/* 0.8.3 safe mobile centering + payroll/debt layout cleanup */
.gfm-app-shell{
  margin-left:auto!important;
  margin-right:auto!important;
}
.gfm-app-shell .wrap,
.gfm-app-shell .gfm-wrap{
  margin-left:auto!important;
  margin-right:auto!important;
}
@media(max-width:760px){
  html, body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }
  .gfm-app-shell{
    width:100%!important;
    max-width:calc(100vw - 18px)!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:8px!important;
    padding-right:8px!important;
    overflow-x:hidden!important;
  }
  .gfm-app-shell .wrap,
  .gfm-app-shell .gfm-wrap,
  .gfm-app-shell .gfm-formbox,
  .gfm-app-shell .gfm-dashboard-head,
  .gfm-app-shell .gfm-dashboard-filter{
    width:100%!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  .gfm-breakdown-grid,
  .gfm-cards,
  .gfm-grid,
  .gfm-filter-row{
    grid-template-columns:1fr!important;
  }
  .gfm-table-scroll{
    max-width:100%!important;
    overflow:auto!important;
  }
}

/* 0.8.4 payroll mobile table scroll + advance matching fix */
.gfm-mobile-table-scroll,
.gfm-summary-table.gfm-mobile-table-scroll,
.gfm-app-shell .gfm-mobile-table-scroll{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-x pan-y!important;
  border-radius:14px!important;
}
.gfm-mobile-table-scroll table,
.gfm-summary-table.gfm-mobile-table-scroll table,
.gfm-app-shell .gfm-mobile-table-scroll table{
  display:table!important;
  width:max-content!important;
  min-width:960px!important;
  max-width:none!important;
  overflow:visible!important;
}
.gfm-mobile-table-scroll th,
.gfm-mobile-table-scroll td{
  white-space:nowrap!important;
  min-width:120px!important;
}
@media(max-width:760px){
  .gfm-app-shell .gfm-formbox,
  .gfm-app-shell .gfm-wrap,
  .gfm-app-shell .wrap{
    overflow:visible!important;
  }
  .gfm-mobile-table-scroll{
    margin-left:0!important;
    margin-right:0!important;
    padding-bottom:8px!important;
  }
  .gfm-mobile-table-scroll::-webkit-scrollbar{height:8px!important;display:block!important;}
  .gfm-mobile-table-scroll::-webkit-scrollbar-thumb{background:#cbd5e1!important;border-radius:999px!important;}
}

/* v0.9.0 dashboard drill-down cards */
.gfm-click-card{cursor:pointer;transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;}
.gfm-click-card:hover,.gfm-click-card:focus{transform:translateY(-2px);box-shadow:0 12px 30px rgba(18,53,84,.16);outline:none;border-color:#123554;}
.gfm-drilldown-box{margin-top:18px;}
.gfm-drill-panel{margin-top:14px;padding:14px;border:1px solid rgba(18,53,84,.14);border-radius:16px;background:#fff;}
.gfm-total-row{background:#fff8df!important;}
.gfm-total-row td{font-weight:700;}
