/* Wehamba Expense Planner - scoped styling. No global theme overrides. */
.weh-exp,.weh-exp * {box-sizing:border-box}
.weh-exp {--exp-orange:#f28b24;--exp-blue:#173b72;--exp-blue2:#2464a4;--exp-ink:#1f2e40;--exp-muted:#64748b;--exp-line:#dee6ef;--exp-bg:#f4f7fa;--exp-green:#16805c;--exp-red:#c34850;--exp-card:#fff;color:var(--exp-ink);font:normal 15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;width:100%;max-width:1480px;margin:0 auto;padding:0 0 42px;min-height:600px;overflow-wrap:anywhere}
.weh-exp button,.weh-exp input,.weh-exp select,.weh-exp textarea{font:inherit}
.weh-exp button{cursor:pointer}
.weh-exp button:disabled{opacity:.45;cursor:not-allowed}
.weh-exp button:focus-visible,.weh-exp input:focus-visible,.weh-exp select:focus-visible,.weh-exp textarea:focus-visible{outline:3px solid #77b5f7;outline-offset:2px}
.weh-exp-shell{background:var(--exp-bg);border:0;border-radius:0;overflow:hidden;box-shadow:none}
/* Compact title banner matches the other Wehamba travel tools. */
.weh-exp .weh-exp-header{background:#082a52!important;color:#fff!important;text-align:center;padding:11px 12px;margin:0;border:0;border-radius:0}
.weh-exp .weh-exp-header h1{margin:0!important;padding:0!important;color:#fff!important;font-size:20px!important;line-height:1.2!important;font-weight:700!important;text-align:center!important;letter-spacing:0!important;text-transform:none!important}
.weh-exp-header-controls{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;background:#fff;border-bottom:1px solid var(--exp-line);padding:14px 16px}
.weh-exp-month-label{font-weight:700;font-size:12px;color:#344b63}
.weh-exp-header-controls input[type=month]{height:40px;min-width:0;width:170px;max-width:100%;background:#fff;color:var(--exp-ink);border:1px solid #cdd9e4;border-radius:9px;padding:5px 9px}
.weh-exp-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px!important;font-weight:700!important;line-height:1.2!important;border:1px solid transparent!important;border-radius:10px!important;padding:11px 15px!important;min-height:40px;white-space:nowrap;text-decoration:none!important;box-shadow:none!important;transition:background .15s ease,color .15s ease}
.weh-exp-btn.primary{background:var(--exp-orange)!important;color:#13273a!important;border-color:var(--exp-orange)!important}
.weh-exp-btn.primary:hover{background:#ffa64a!important}
.weh-exp-btn.secondary{background:var(--exp-blue2)!important;color:white!important}
.weh-exp-btn.secondary:hover{background:#194d84!important}
.weh-exp-btn.subtle{background:#edf3f8!important;color:#1e4d7e!important;border-color:#dae5ee!important}
.weh-exp-btn.subtle:hover{background:#dfeaf5!important}
.weh-exp-tabs{display:flex;gap:5px;padding:9px 20px;background:#fff;border-bottom:1px solid var(--exp-line);overflow-x:auto;scrollbar-width:thin}
.weh-exp-tabs button{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#5b6d80;background:transparent;border:0;border-bottom:3px solid transparent;padding:11px 18px 12px;font-weight:700;font-size:13px;line-height:1.3}
.weh-exp-tabs button.active{color:#174778;border-bottom-color:var(--exp-orange)}
.weh-exp-tabs button:hover{color:#183f6c}
.weh-exp-tab-icon{font-size:18px;line-height:1}
.weh-exp main{padding:23px 25px 28px}
.weh-exp-section-heading{margin:0 0 17px}
.weh-exp-section-heading h2{font-size:22px!important;font-weight:750;color:#1c354f!important;margin:0 0 3px!important;line-height:1.25}
.weh-exp-section-heading p{color:var(--exp-muted);margin:0;font-size:13px}
.weh-exp-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:17px}
.weh-exp-kpis.compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.weh-exp-kpi{min-width:0;background:var(--exp-card);border:1px solid var(--exp-line);border-radius:14px;padding:16px 17px;box-shadow:0 2px 5px rgba(22,44,68,.025)}
.weh-exp-kpi>span{display:block;color:#64758a;font-size:12px;font-weight:700;margin-bottom:8px}
.weh-exp-kpi strong{display:block;font-size:clamp(19px,2.1vw,28px);line-height:1.25;font-weight:780;font-variant-numeric:tabular-nums;letter-spacing:-.4px}
.weh-exp-kpi small{display:block;color:var(--exp-muted);font-size:11px;margin-top:8px}
.weh-exp .positive{color:var(--exp-green)!important}.weh-exp .negative{color:var(--exp-red)!important}
.weh-exp-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:17px}
.weh-exp-panel{background:var(--exp-card);border:1px solid var(--exp-line);border-radius:14px;padding:19px 19px 20px;min-width:0}
.weh-exp-panel h3{font-size:16px!important;color:#1b334d!important;margin:0 0 15px!important;line-height:1.35;font-weight:750}
.weh-exp-panel-top{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;margin-bottom:15px}
.weh-exp-panel-top h3{margin:0!important}
.weh-exp-text-button{border:0;background:transparent;color:var(--exp-blue2);font-size:12px;font-weight:700;text-decoration:underline;white-space:nowrap;padding:0}
.weh-exp-category-row{margin-bottom:15px}.weh-exp-category-row:last-child{margin-bottom:0}
.weh-exp-category-header{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px;font-size:12px;color:#4f6175}
.weh-exp-category-header strong{font-size:12px;color:#273c51;font-variant-numeric:tabular-nums}
.weh-exp-track{width:100%;height:9px;background:#eaf0f5;border-radius:99px;overflow:hidden}
.weh-exp-track span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#f39a37,#faaf50)}
.weh-exp-track span.over{background:var(--exp-red)}
.weh-exp-budget-figure{margin:5px 0 12px;display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.weh-exp-budget-figure strong{font-size:27px;font-variant-numeric:tabular-nums;color:#203951}
.weh-exp-budget-figure span{color:#607186;font-size:12px}
.weh-exp-support{font-size:13px;color:var(--exp-muted);margin:9px 0 12px}
.weh-exp-summary-mini{border-top:1px solid var(--exp-line);display:flex;justify-content:space-between;margin:19px 0 15px;padding-top:15px;font-size:12px;color:#5d6d7e}
.weh-exp-summary-mini strong{font-size:15px;color:var(--exp-ink)}
.weh-exp-empty{border:1px dashed #cbd8e4;background:#f9fbfd;color:#728295;border-radius:10px;padding:27px 17px;text-align:center;font-size:13px}
.weh-exp-full{margin-bottom:18px}.weh-exp-hint{color:var(--exp-muted);font-size:12px}
.weh-exp-bars{display:flex;align-items:stretch;justify-content:space-around;gap:5px;height:165px;padding:10px 1px 0;border-bottom:1px solid #e3e9ee}
.weh-exp-bars>div{display:flex;flex:1;max-width:36px;min-width:5px;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;height:100%;text-align:center}
.weh-exp-bar{background:linear-gradient(0deg,#ee8520,#ffc178);border-radius:5px 5px 0 0;width:80%;max-width:30px;min-height:4px}
.weh-exp-bars small{font-size:10px;color:#75889b;line-height:1.2;min-height:15px}
.weh-exp-quick-actions{display:flex;gap:10px;flex-wrap:wrap}
.weh-exp-alert{display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#fff7e7;border:1px solid #eed49c;border-radius:12px;padding:12px 15px;margin-bottom:16px;font-size:12px}.weh-exp-alert strong{color:#85540c}
.weh-exp-toolbar{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-bottom:16px}.weh-exp-toolbar>p{margin:0 auto 0 0}
.weh-exp-toolbar strong{color:#253b51}.weh-exp-toolbar .weh-exp-support{margin:0}
.weh-exp-toolbar input,.weh-exp-toolbar select,.weh-exp input,.weh-exp select,.weh-exp textarea{color:var(--exp-ink);background:#fff;border:1px solid #ccd7e2;border-radius:9px;padding:9px 10px;min-height:39px;max-width:100%}
.weh-exp-toolbar select{min-width:165px}.weh-exp-search-label{flex:1;min-width:200px}.weh-exp-search-label input{width:100%}
.weh-exp-table-wrap{padding:0;overflow-x:auto}.weh-exp-table{border-collapse:collapse;border-spacing:0;width:100%;font-size:12px;min-width:660px;margin:0!important}
.weh-exp-table th{background:#f1f6fa;color:#50677f;text-transform:uppercase;letter-spacing:.5px;text-align:left;font-size:10px;font-weight:800;white-space:nowrap;border:0;border-bottom:1px solid #dce6ee;padding:13px 14px}
.weh-exp-table td{padding:14px;border:0;border-bottom:1px solid #eaf0f5;vertical-align:middle;color:#344a5e}
.weh-exp-table tr:last-child td{border-bottom:0}
.weh-exp-table td strong{display:block;color:#213a51;font-size:12px;font-weight:700}.weh-exp-table td small{display:block;color:#82909c;font-size:11px;margin-top:3px}
.weh-exp-table td.right,.weh-exp-table th.right{text-align:right}
.weh-exp-table .expense-amount{color:#bf5c2f}
.weh-exp-icon-btn{background:transparent;border:0;padding:4px 6px;color:#19568e;font-size:12px;font-weight:750}.weh-exp-icon-btn:hover{text-decoration:underline}
.weh-exp-icon-btn.danger{color:#b94b53}.weh-exp-origin{display:inline-block;background:#edf2f7;border-radius:8px;padding:4px 6px;color:#607185;font-size:10px;text-transform:capitalize}
.weh-exp-paging{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:13px;color:#667b8f;font-size:12px}.weh-exp-paging>div{display:flex;align-items:center;gap:10px}
.weh-exp-budget-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.weh-exp-budget-list .weh-exp-panel h3{margin-top:7px!important}
.weh-exp-chip{display:inline-block;background:#edf4fa;border:1px solid #d9e8f4;border-radius:5px;padding:2px 7px;color:#2c638b;text-transform:uppercase;font-size:10px;letter-spacing:.6px;font-weight:750}
.weh-exp-budget-limit{display:block;color:#183d67;font-size:22px;margin:12px 0 6px;font-variant-numeric:tabular-nums}
.weh-exp-budget-list .weh-exp-panel p{color:#637588;font-size:12px}
.weh-exp-recurring-list{display:flex;flex-direction:column;gap:11px}.weh-exp-recurring-card{display:flex;justify-content:space-between;align-items:center;gap:12px}
.weh-exp-recurring-card h3{margin:0 0 5px!important}.weh-exp-recurring-card p{color:#66788a;margin:0;font-size:12px}.weh-exp-recurring-card small{display:block;color:#8a96a3;margin-top:6px}
.weh-exp-recurring-actions{text-align:right;flex:none}.weh-exp-recurring-actions>strong{font-size:18px;color:#183e65}
.weh-exp-footnote{font-size:12px;color:#78889a;margin:15px 0 0;line-height:1.55}
.weh-exp-export{margin-top:17px}.weh-exp-export p{font-size:13px;color:#66788a;margin:0 0 15px}
.weh-exp-export-form{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.weh-exp-export-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#54677b}
.weh-exp-footer{text-align:center;padding:14px 20px 18px;font-size:11px;color:#8190a1;border-top:1px solid var(--exp-line);background:#fff}
.weh-exp-backdrop{position:fixed;inset:0;z-index:999999;background:rgba(9,27,48,.60);display:flex;align-items:center;justify-content:center;padding:15px;overflow-y:auto}
.weh-exp-dialog{background:white;border-radius:17px;width:min(610px,100%);max-height:min(94vh,950px);overflow-y:auto;padding:19px 22px;box-shadow:0 30px 90px rgba(0,0,0,.2)}
.weh-exp-dialog-top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-bottom:14px;margin-bottom:15px;border-bottom:1px solid #e4eaf0}
.weh-exp-dialog-top h2{margin:0!important;color:#1a3958!important;font-size:20px!important;line-height:1.3}
.weh-exp-close{background:#f1f5f8;border:0;border-radius:50%;height:34px;width:34px;display:grid;place-items:center;font-size:22px;color:#5d6c79}
.weh-exp-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.weh-exp-form-grid>label{display:flex;flex-direction:column;gap:5px;color:#485d71;font-weight:700;font-size:12px;min-width:0}
.weh-exp-form-grid input,.weh-exp-form-grid select,.weh-exp-form-grid textarea{font-size:14px;width:100%;min-height:42px}
.weh-exp-form-grid textarea{resize:vertical}.weh-exp-form-grid .weh-exp-span-two{grid-column:span 2}
.weh-exp-form-grid .weh-exp-check{display:flex;flex-direction:row;align-items:center;gap:8px}.weh-exp-form-grid .weh-exp-check input{width:16px;min-height:unset;height:16px}
.weh-exp-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:19px;border-top:1px solid #edf1f5;padding-top:14px}
.weh-exp-notice{position:fixed;z-index:1000000;bottom:23px;right:22px;max-width:min(430px,calc(100% - 30px));background:#1c6c57;color:#fff;padding:13px 18px;border-radius:10px;font-size:13px;box-shadow:0 6px 22px rgba(0,0,0,.19);opacity:0;pointer-events:none;transform:translateY(10px);transition:opacity .2s,transform .2s}.weh-exp-notice.show{opacity:1;transform:translateY(0)}.weh-exp-notice.error{background:#ac3546}
.weh-exp-initial{text-align:center;padding:55px 15px;color:var(--exp-blue)}
.weh-exp-busy{cursor:progress}.weh-exp-sr-only{position:absolute!important;width:1px;height:1px;clip:rect(0,0,0,0);white-space:nowrap;overflow:hidden}
@media(max-width:860px){.weh-exp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.weh-exp-header-controls{width:100%}.weh-exp main{padding:18px 15px 23px}}
@media(max-width:620px){.weh-exp{padding:0 0 18px;font-size:14px}.weh-exp-shell{border-radius:12px}.weh-exp .weh-exp-header{padding:10px 12px}.weh-exp .weh-exp-header h1{font-size:20px!important}.weh-exp-header-controls{padding:12px 10px;gap:8px}.weh-exp-header-controls input[type=month]{flex:1 1 145px;width:145px}.weh-exp-header-controls .weh-exp-btn{flex:0 0 auto;padding:10px 12px!important}.weh-exp-month-label{flex:0 0 auto}.weh-exp-tabs{padding:4px 6px;gap:0;justify-content:space-between}.weh-exp-tabs button{flex:1;min-width:64px;display:flex;flex-direction:column;gap:3px;font-size:10px;padding:9px 6px}.weh-exp-tab-icon{font-size:17px}.weh-exp main{padding:16px 11px 23px}.weh-exp-section-heading h2{font-size:19px!important}.weh-exp-kpis{gap:8px}.weh-exp-kpi{padding:12px}.weh-exp-kpi strong{font-size:20px}.weh-exp-columns,.weh-exp-budget-list{grid-template-columns:1fr;gap:11px}.weh-exp-panel{padding:15px}.weh-exp-toolbar .weh-exp-btn{width:100%}.weh-exp-toolbar>select{flex:1;min-width:125px}.weh-exp-recurring-card{align-items:flex-start}.weh-exp-recurring-actions{min-width:95px}.weh-exp-paging{flex-wrap:wrap}.weh-exp-bars{height:130px}.weh-exp-bars small{font-size:8px}.weh-exp-form-grid{grid-template-columns:1fr}.weh-exp-form-grid .weh-exp-span-two{grid-column:span 1}.weh-exp-dialog{padding:13px 15px;max-height:93dvh}.weh-exp-export-form>*{flex:1}.weh-exp-export-form .weh-exp-btn{width:100%;flex-basis:100%}}

/* v0.1.3: identical Journal sign-in on Expenses, without a second login engine. */
.weh-exp-auth{min-height:0;padding:0 0 42px;background:#f5f7fa}
.weh-exp-auth-intro{text-align:center;font-size:13px;line-height:1.5;color:#405770;padding:12px 18px 0;margin:0 auto;max-width:620px}
.weh-exp-auth .wtj-account{margin:13px auto 24px;max-width:540px}
.weh-exp-auth .wtj-account h3{font-size:21px;line-height:1.25;color:#173b65}
.weh-exp-auth .wtj-account .wtj-btn{font-size:14px}
.weh-exp-auth-fallback{max-width:540px;margin:16px auto;padding:20px;background:#fff;border:1px solid #dbe5ef;border-radius:12px}
@media(max-width:620px){.weh-exp-auth .wtj-account{margin:10px 12px 24px;padding:15px}.weh-exp-auth-intro{font-size:12px;padding:10px 14px 0}}

/* v0.1.4: Visible account sign-out next to month and Add Entry.
   WP generates a nonce-protected logout URL and returns to Expenses. */
.weh-exp .weh-exp-signout{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 12px;background:#fff;color:#194c78!important;border:1px solid #c9d7e5;border-radius:9px;font-size:12px;font-weight:750;white-space:nowrap;line-height:1.2;text-decoration:none!important;}
.weh-exp .weh-exp-signout:hover{background:#eef4fa!important;border-color:#91b3d6;}
.weh-exp .weh-exp-signout:focus-visible{outline:3px solid #f28b24;outline-offset:2px;}
@media(max-width:620px){.weh-exp-header-controls .weh-exp-signout{min-height:36px;margin-left:auto;padding:8px 11px;}}

/* v0.1.5 — compact, single-row toolbar on standard phones. The visible
   abbreviated month uses the original native month input for selection. */
.weh-exp .weh-exp-header-controls{
  display:grid;grid-template-columns:max-content minmax(75px,145px) max-content max-content;
  align-items:center;justify-content:center;gap:6px;padding:11px 10px;flex-wrap:nowrap;
}
.weh-exp .weh-exp-month-label{font-size:11px;line-height:1.2;white-space:nowrap;font-weight:750;letter-spacing:-.1px}
.weh-exp .weh-exp-month-picker{
  display:flex;position:relative;align-items:center;gap:4px;height:39px;min-width:0;width:100%;
  padding:0 7px;border:1px solid #cdd9e4;border-radius:9px;background:#fff;
  color:var(--exp-ink);cursor:pointer;overflow:hidden;
}
.weh-exp .weh-exp-month-display{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.weh-exp .weh-exp-month-caret{font-size:17px;line-height:1;color:#52667d;margin-left:auto;flex:none}
.weh-exp .weh-exp-month-picker input[type="month"]{
  display:block!important;position:absolute!important;inset:0!important;opacity:0!important;
  width:100%!important;height:100%!important;min-width:0!important;max-width:none!important;
  margin:0!important;padding:0!important;cursor:pointer!important;z-index:1;
}
.weh-exp .weh-exp-month-picker:focus-within{outline:3px solid #77b5f7;outline-offset:2px}
.weh-exp .weh-exp-header-controls .weh-exp-btn{font-size:12px!important;min-height:39px!important;padding:9px 8px!important;}
.weh-exp .weh-exp-signout-form{margin:0;display:flex;align-items:center;min-width:0;}
.weh-exp .weh-exp-header-controls .weh-exp-signout{
  font-size:12px;min-height:39px;padding:8px 9px;margin:0;
}
@media(max-width:370px){
 .weh-exp .weh-exp-header-controls{gap:5px;padding:10px 7px;grid-template-columns:max-content minmax(68px,1fr) max-content max-content}
 .weh-exp .weh-exp-header-controls .weh-exp-btn{font-size:11px!important;padding:9px 6px!important}
 .weh-exp .weh-exp-header-controls .weh-exp-signout{font-size:11px;padding:8px 6px;}
 .weh-exp .weh-exp-month-picker{padding:0 5px;}
 .weh-exp .weh-exp-month-display{font-size:11px;}
 .weh-exp .weh-exp-month-label{font-size:10px}
}
@media(max-width:300px){
 /* Ultra-narrow displays may wrap rather than clip any control. */
 .weh-exp .weh-exp-header-controls{display:flex;flex-wrap:wrap;justify-content:center;}
 .weh-exp .weh-exp-month-picker{width:auto;flex:1 1 80px;}
}
