/* EatsPay home: three equal services, HomeTax, weather, daily reading. */
/* Approved fortune / employee design, 2026-10-08. */
.fortune-method,.fortune-rule-basis { margin-top:12px; font-size:11px; line-height:1.7; color:#617469; overflow-wrap:anywhere; }
.fortune-method summary,.fortune-rule-basis summary { cursor:pointer; color:#287444; }
.fortune-method p,.fortune-rule-basis p { white-space:pre-line; margin:8px 0; }
.fortune-method ul { padding-left:18px; }
.service-person .service-worker-type { color:#16894a; font-size:10px; font-weight:600; }
.approved-editor { width:min(430px,100vw); height:min(750px,100dvh); max-height:100dvh; margin:auto; padding:0; border:1px solid #dce6df; border-radius:8px; background:white; color:#1e3027; font-family:inherit; overflow:auto; }
.approved-editor::backdrop { background:#152a1566; }
.approved-editor-head { display:flex; align-items:center; justify-content:space-between; height:60px; padding:0 24px; border-bottom:1px solid #eef2ef; }
.approved-editor-head strong { font-size:16px; }
.approved-editor-head button { border:0; background:none; color:#344a3d; font:inherit; font-size:28px; padding:4px 10px 4px 0; }
.approved-editor-head>span { font-size:11px; color:#89988d; }
.approved-editor form { display:flex; flex-direction:column; min-height:calc(100% - 60px); padding:24px; margin:0; border:0; }
.home-fortune-panel .approved-editor [data-fortune-form] { border:0; margin:0; padding:24px; }
.approved-fortune-hero { position:relative; padding:0 0 25px; margin-bottom:25px; border-bottom:1px solid #e9efeb; }
.approved-fortune-hero small { color:#298851; font-size:12px; font-weight:700; }
.approved-fortune-hero h2 { font-size:27px; line-height:1.4; letter-spacing:-1px; margin:14px 0 9px; }
.approved-fortune-hero p { font-size:12px; color:#819087; }
.approved-fortune-hero>span { position:absolute; right:0; top:20px; color:#03c75a; font-size:60px; line-height:1; }
.approved-editor .form-label { font-size:13px; font-weight:700; margin-bottom:12px; }
.approved-birth-row { display:flex; align-items:center; padding:14px 5px; border:1px solid #c5dccd; border-radius:8px; background:#fbfdfb; box-shadow:0 0 0 3px #f2f9f4; }
.approved-birth-row label { display:flex; align-items:center; justify-content:center; flex:1; min-width:0; font-size:11px; color:#8a998f; }
.approved-birth-row label:first-child { flex:1.5; }
.approved-birth-row label+label { border-left:1px solid #dfe9e2; }
.approved-birth-row input { width:65%; min-width:0; border:0; outline-offset:3px; background:transparent; font-family:inherit; font-size:23px; font-weight:650; text-align:center; color:#233e2d; padding:0; }
.approved-birth-row input::placeholder { color:#a0b1a6; }
.approved-birth-row input:focus-visible { outline:2px solid #03c75a; border-radius:4px; }
.approved-birth-hint { font-size:10px; color:#84948a; margin:10px 0 22px; }
.approved-calendar { display:flex; padding:4px; gap:4px; background:#f1f5f2; border-radius:8px; }
.approved-calendar button { flex:1; height:38px; border:0; border-radius:5px; color:#8a958e; background:none; font-family:inherit; font-size:13px; font-weight:600; }
.approved-calendar [aria-pressed=true] { background:white; color:#16894a; box-shadow:0 1px 4px #1e492319; }
.payroll-type-choice { margin:8px 0 12px; }
.payroll-period-inputs { padding:10px 5px; box-shadow:none; }
.payroll-period-inputs input { font-size:20px; }
.payroll-period-inputs label[hidden] { display:none; }
.payroll-period-inputs[hidden], .employee-editor [hidden] { display:none; }
.service-person.service-person-daily { grid-template-columns:20px 32px minmax(0,1fr); }
.service-person-daily .service-money { grid-column:2 / -1; }
.service-person-daily .payroll-work-button { grid-column:2 / -1; height:38px; font-size:12px; margin:0; }
.payroll-work-editor [data-work-rows] { display:grid; gap:12px; }
.payroll-work-row { margin:0; }
.payroll-time-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; margin-top:12px; }
.payroll-time-grid label { min-width:0; font-size:12px; color:var(--text-secondary,#64748b); }
.payroll-time-grid input { margin-top:5px; width:100%; min-width:0; }
.payroll-work-row input[type=date] { min-width:0; width:100%; }
.payroll-work-options { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-top:12px; font-size:12px; }
.payroll-work-options label { display:flex; align-items:center; gap:5px; }
.payroll-work-options .form-input { width:65px; height:36px; padding:5px; text-align:center; }
.payroll-work-options input[type=checkbox] { accent-color:#03c75a; width:18px; height:18px; }
.payroll-work-review { margin:0 0 16px; padding-left:16px; font-size:12px; line-height:1.8; color:var(--text-secondary,#64748b); }
.approved-save { display:flex; align-items:center; justify-content:space-between; margin:18px 0 20px; font-size:13px; font-weight:600; }
.approved-save small { display:block; color:#89968d; font-size:11px; font-weight:400; margin-top:5px; }
.approved-save input { appearance:none; width:35px; height:21px; border:0; border-radius:20px; padding:3px; background:#dae2dc; cursor:pointer; }
.approved-save input::before { content:''; display:block; width:15px; height:15px; background:white; border-radius:50%; box-shadow:0 1px 3px #20302020; transition:transform .15s; }
.approved-save input:checked { background:#03c75a; }
.approved-save input:checked::before { transform:translateX(14px); }
.approved-editor-footer { margin-top:auto; padding-top:20px; }
.approved-editor-actions { display:grid; grid-template-columns:1fr 1.8fr; gap:10px; }
.approved-editor-actions .btn-secondary { height:48px; min-height:48px; margin:0; font-size:15px; }
.rent-register-dialog .employee-proof input[type=file] { display:block; width:100%; height:100%; margin:0; }
.rent-register-dialog h3 small { font-size:10px; color:#89988d; font-weight:400; }
.approved-editor-footer .btn-primary { height:48px; min-height:48px; font-size:15px; margin:0; }
.approved-editor-footer p { font-size:10px; line-height:1.5; color:#8a978f; text-align:center; margin:12px 0 0; }
.approved-employee-intro h2 { font-size:20px; letter-spacing:-.6px; margin:0 0 7px; }
.approved-employee-intro p { font-size:12px; color:#86938b; margin:0 0 3px; }
.employee-editor h3 { font-size:12px; color:#338555; margin:17px 0 9px; }
.approved-field { display:flex; align-items:center; min-height:44px; padding:0 12px; border:1px solid #dde8e0; border-radius:6px; }
.approved-field span { min-width:68px; color:#667e6f; font-size:12px; }
.approved-field input,.approved-field select { flex:1; width:100%; min-width:0; height:42px; padding:0; border:0; background:white; color:#294b36; font:inherit; font-size:13px; }
.approved-field input::placeholder { color:#9aa69e; }
.approved-field input+span { min-width:0; }
.approved-field-group { border:1px solid #dde8e0; border-radius:8px; padding:0 12px; }
.approved-field-group .approved-field { border:0; border-radius:0; padding:0; }
.approved-field-group .approved-field+.approved-field { border-top:1px solid #eef2ee; }
.employee-proof-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.employee-proof { position:relative; display:flex; align-items:center; gap:10px; border:1px dashed #b8d8c2; border-radius:8px; background:#f9fcf9; padding:12px 10px; cursor:pointer; }
.employee-proof .service-icon { width:22px; color:#39a665; }
.employee-proof strong { display:block; font-size:12px; color:#325f43; }
.employee-proof small { display:block; margin-top:5px; color:#8ca696; font-size:10px; }
.employee-proof input { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; }
.employee-proof:focus-within { outline:2px solid #03c75a; outline-offset:2px; }
.approved-file-note { font-size:10px; color:#96a298; margin:8px 0 0; }
@media(max-width:360px) { .approved-editor form,.home-fortune-panel .approved-editor [data-fortune-form] { padding:20px; } .approved-fortune-hero h2 {font-size:24px;} }
/* Persistent landlord approval shares the service visual language. */
#toast:not(.show) { pointer-events:none; }
.rent-month-button { text-align:left; background:white; cursor:pointer; }
.rent-month-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.rent-month-heading button { width:44px; min-height:40px; }
.rent-month-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:16px 0; }
.rent-month-grid button { min-height:44px; }
.rent-month-grid [aria-pressed=true] { background:#03c75a; color:white; border-color:#03c75a; }
.rent-register-dialog .form-label { display:block; margin-top:10px; font-size:13px; }
.rent-register-dialog input[type=file] { display:block; width:100%; font-size:12px; margin:8px 0; }
.rent-register-dialog .service-dialog-actions { background:white; padding:12px 0 0; }
.rent-manage-dialog [data-list] { margin:16px 0; }
.rent-help { border:1px solid #dcefe4; border-radius:8px; padding:10px 12px; font-size:12px; color:#566b60; }
.rent-help summary { cursor:pointer; font-weight:700; color:#167044; }
.rent-help p { margin:8px 0; line-height:1.7; }
.service-screen [data-rent-entry]>.btn-primary { height:44px; min-height:44px; }
/* Legacy navigation sets inline bottom padding; retain room for the install banner. */
#screen-home .home-scroll { padding-bottom:200px!important; scroll-padding-bottom:200px; }
#btn-home-talk-write-floating { display:none; }
.home-hometax-strip .home-hometax-brand-image { flex:0 0 80px; width:80px; height:auto; object-fit:contain; }
.home-services-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
.home-services-row .home-action-card { min-width:0; min-height:142px; padding:10px 9px; align-items:center; text-align:center; gap:5px; }
.home-services-row .home-action-title { font-size:14px; letter-spacing:-.8px; white-space:nowrap; }
.home-services-row .home-action-desc { width:100%; min-height:2.8em; font-size:12px; line-height:1.4; text-align:center; }
.home-services-row .home-action-button { width:100%; margin-top:auto; font-size:12px; padding:7px 3px; text-align:center; }
.home-service-symbol { color:var(--green-primary); width:22px; height:22px; font-size:22px; line-height:22px; }
.home-hometax-strip { display:flex; width:calc(100% - 32px); align-items:center; gap:12px; margin:0 16px 16px; padding:16px 12px; border:1px solid var(--card-border); border-radius:var(--radius); background:#fff; color:var(--text-primary); text-align:left; cursor:pointer; }
.home-hometax-strip img { width:58px; height:auto; object-fit:contain; }
.home-hometax-strip span { display:flex; flex:1; min-width:0; flex-direction:column; gap:5px; }
.home-hometax-strip strong { font-size:13px; }
.home-hometax-strip small { font-size:10px; color:var(--text-secondary); line-height:1.5; }
.home-hometax-strip b { font-size:11px; color:#167044; white-space:nowrap; }
.home-fortune-panel { margin:16px; padding:18px 16px; border:1px solid var(--card-border); border-radius:var(--radius); background:#fff; box-shadow:var(--card-shadow); }
.home-fortune-panel [hidden] { display:none!important; }
.fortune-welcome { display:flex; align-items:center; gap:12px; margin:18px 0; }
.fortune-mark { display:grid; place-items:center; flex:0 0 40px; height:40px; border-radius:8px; background:#edf8ef; color:#03a74b; font-size:32px; }
.fortune-welcome strong { font-size:14px; font-weight:700; color:#284838; }
.fortune-welcome p { font-size:11px; line-height:1.6; margin:5px 0 0; color:#7a857e; }
.fortune-open { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:40px; padding:9px 12px; background:#f2faf4; border:1px solid #d1e8d1; border-radius:5px; color:#16864a; font-family:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.fortune-open span:last-child { font-size:22px; line-height:16px; }
.home-fortune-panel [data-fortune-form] { border-top:1px solid #edf1ed; padding-top:16px; margin-top:12px; }
.fortune-form-actions { display:grid; grid-template-columns:76px 1fr; gap:8px; margin-top:12px; }
.home-fortune-panel .fortune-form-actions button { height:42px; min-height:42px; margin:0; font-size:13px; }
.fortune-status:empty { display:none; }
.home-module-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.home-module-heading h2 { font-size:18px; }
.home-module-heading span { font-size:11px; color:#777; }
.fortune-intro,.fortune-profile { margin:9px 0 16px; font-size:12px; color:#666; }
.fortune-birth-row { display:grid; grid-template-columns:minmax(0,1fr) 105px; gap:8px; }
.home-fortune-panel .form-input { min-width:0; width:100%; font-size:14px; height:44px; }
.fortune-settings { display:flex; gap:10px; align-items:center; margin:12px 0; font-size:12px; }
.fortune-settings select { max-width:110px; }
.fortune-birth-confirm,.fortune-status { font-size:11px; line-height:1.6; margin:8px 0; color:#566153; }
.service-check { display:flex; align-items:center; gap:7px; font-size:12px; min-height:36px; }
.service-check input { width:17px; height:17px; accent-color:var(--green-primary); }
.service-error { color:#b42318; font-size:12px; line-height:1.6; margin:8px 0; }
.home-fortune-panel .btn-primary { width:100%; margin-top:10px; }
.home-fortune-panel h3 { font-size:18px; line-height:1.5; color:#174c32; }
.fortune-lead,.fortune-details p { font-size:13px; line-height:1.85; color:#444; margin:10px 0 18px; word-break:keep-all; white-space:pre-line; }
.fortune-details summary { cursor:pointer; color:#167044; font-size:13px; font-weight:800; padding:12px 0; }
.fortune-details section { border-top:1px solid var(--border-light); padding-top:16px; }
.fortune-details h4 { font-size:15px; }
.fortune-action { background:#edf8ef; padding:12px; font-size:12px; line-height:1.7; border-radius:var(--radius); }
.fortune-controls { display:flex; justify-content:space-between; margin-top:10px; }
.service-text-btn { background:none; border:0; padding:10px 0; color:#167044; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
.home-fortune-panel [hidden],.service-screen [hidden] { display:none!important; }
.service-header { display:grid; grid-template-columns:60px 1fr 60px; align-items:center; padding:6px 12px; gap:8px; flex-shrink:0; min-height:50px; }
.service-header h1 { text-align:center; }
.service-header [data-history] { text-align:right; color:#00ad50; }
.service-back { border:0; background:none; color:#13342c; width:36px; height:36px; padding:7px; cursor:pointer; }
.service-header .service-back>span { display:none; }
.service-header .service-back>svg { width:22px; height:22px; flex-shrink:0; }
.service-icon { width:22px; height:22px; flex-shrink:0; }
.service-header h1 { font-size:17px; }
.service-screen .service-body { padding:0 8px 8px!important; min-height:0; }
.service-hero { display:flex; align-items:center; gap:16px; padding:16px 20px; background:linear-gradient(110deg,#e5f6ed,#ecf8f1); border-radius:var(--radius); }
.service-hero>.service-icon { width:40px; height:40px; color:#00ac50; }
.service-hero h2 { font-size:19px; margin-bottom:5px; }
.service-hero p { font-size:12px; color:#566153; }
.service-stage { display:flex; justify-content:space-between; list-style:none; font-size:11px; color:#84909e; margin:14px 12px; padding:0; gap:8px; }
.service-stage li { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.service-stage li:not(:last-child)::after { content:''; width:18px; height:1px; background:#d1d8de; margin-left:3px; }
.service-stage b { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:#e8ebee; color:#89929e; font-size:13px; }
.service-stage [aria-current] { color:#00aa50; font-weight:800; }
.service-stage [aria-current] b { background:#00ad50; color:white; }
.service-panel { border:1px solid #dcefe4; border-radius:var(--radius); padding:10px 12px; margin-bottom:8px; background:#fff; }
.service-panel-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:4px; gap:5px; }
.service-panel-head .service-text-btn { padding:0; min-height:24px; }
.service-panel h3,.service-panel legend { font-size:14px; font-weight:800; }
.service-panel .form-label { font-size:14px; margin-bottom:7px; line-height:18px; font-weight:700; color:#202b2a; }
.service-panel-head .form-label { margin-bottom:0; }
.service-screen .form-input { width:100%; min-width:0; font-size:13px; font-weight:400; height:38px; min-height:38px; padding:0 10px; border:1px solid #d4d9df; border-radius:5px; box-shadow:0 1px 3px #10201805; }
.service-screen select.form-input { appearance:none; padding-right:28px; color:#697586; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23697586' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.service-screen .form-input::placeholder { color:#8d97a5; font-weight:400; }
.service-screen input[readonly] { background:#edf0f3; border-color:#e4e8ec; color:#7e8997; }
.service-money { position:relative; min-width:0; }
.service-money .form-input { padding-right:30px; }
.service-money>span { position:absolute; right:10px; top:50%; transform:translateY(-50%); font-size:12px; color:#26323a; }
.service-search { position:relative; }
.service-search>.service-icon { position:absolute; left:10px; top:9px; width:19px; height:19px; color:#74808c; }
.service-search .form-input { padding-left:36px; }
.service-screen .btn-primary,.service-screen .btn-secondary { width:100%; }
.service-note { font-size:11px; line-height:1.5; color:#777; margin:6px 0; }
.service-error:empty { display:none; }
.service-person { display:grid; grid-template-columns:20px 32px minmax(0,1fr) 108px; gap:8px; align-items:center; border:1px solid #e3e9e7; border-radius:var(--radius); padding:8px; margin-top:8px; min-height:52px; }
.service-person-avatar { display:grid; place-items:center; width:32px; height:32px; background:#e8ebee; border-radius:50%; color:#8a94a0; }
.service-person-avatar svg { width:24px; height:24px; }
.service-person .form-input { height:34px; min-height:34px; }
.service-example-note { text-align:right; font-size:10px; color:#929ba6; margin:8px 0 0; }
.service-screen .service-add-person { margin-top:8px; height:40px; min-height:40px; border:1px dashed #b9e5ca; color:#00b554; background:#fff; font-size:13px; }
.service-person input[type=checkbox] { width:17px; height:17px; accent-color:var(--green-primary); }
.service-person strong { display:block; font-size:12px; overflow-wrap:anywhere; }
.service-person small { display:block; color:#777; font-size:10px; margin-top:4px; }
.service-person .form-input { font-size:13px; }
.service-totals { background:linear-gradient(110deg,#e5f6ed,#ecf8f1); padding:8px 12px; border-radius:var(--radius); margin:8px 0 12px; }
.service-totals p+p { border-top:1px solid #d1e9dc; }
.service-info { display:flex; align-items:center; gap:6px; font-size:10px; }
.service-info>span { font-size:16px; }
.service-prototype-note { margin:6px 0 0; font-size:9px; color:#8b94a0; text-align:center; }
.payroll-deduction-action { grid-column:2/-1; display:grid; gap:8px; min-width:0; }
.payroll-deduction-action .btn-secondary { min-height:36px; height:auto; padding:8px; font-size:12px; }
.payroll-deduction-editor [hidden] { display:none!important; }
.payroll-deduction-editor .approved-field { flex-wrap:wrap; gap:6px; }
.payroll-deduction-editor .approved-field>span { flex-basis:100%; font-size:12px; color:#596579; }
.payroll-deduction-editor .approved-field input,.payroll-deduction-editor .approved-field select { width:100%; min-width:0; }
.payroll-deduction-editor .service-panel { margin-block:10px; }
.payroll-deduction-row { padding:12px 0; border-bottom:1px solid var(--card-border); }
.payroll-deduction-row>p { display:flex; justify-content:space-between; gap:8px; font-size:14px; }
.payroll-deduction-row>small { display:block; font-size:11px; line-height:1.6; color:#647184; margin:4px 0; }
.payroll-deduction-row summary { cursor:pointer; font-size:12px; color:#06763b; padding:8px 0; }
.payroll-confirm { display:flex; align-items:flex-start; gap:8px; font-size:12px; line-height:1.6; margin:16px 0; }
.payroll-confirm input { flex:none; width:18px; height:18px; accent-color:#03c75a; }
.service-screen [data-entry]>.btn-primary { height:44px; min-height:44px; border-radius:6px; font-size:15px; }
.service-totals p { display:flex; justify-content:space-between; gap:10px; font-size:13px; padding:6px 0; }
.service-dialog { width:min(360px,calc(100vw - 32px)); max-height:85dvh; overflow:auto; border:1px solid var(--card-border); border-radius:var(--radius); padding:20px; margin:auto; font-family:var(--font); }
.service-dialog::backdrop { background:rgba(0,0,0,.4); }
.service-dialog .form-input { width:100%; margin:7px 0 12px; }
.service-dialog h2 { font-size:18px; margin-bottom:15px; }
.service-dialog-actions { display:flex; gap:8px; }
.service-dialog-actions button { flex:1; }
.service-review-row { border-bottom:1px solid var(--border-light); padding:14px 0; font-size:13px; line-height:1.8; overflow-wrap:anywhere; }
.service-upload { display:flex; align-items:center; gap:10px; position:relative; margin-top:7px; padding:7px 10px; min-height:38px; border:1px solid #d4d9df; font-size:12px; border-radius:5px; cursor:pointer; color:#667281; }
.service-upload .service-icon { width:18px; height:18px; }
.service-upload-arrow { margin-left:auto; font-size:22px; line-height:18px; }
.service-upload input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.service-upload:focus-within { outline:2px solid var(--green-primary); outline-offset:2px; }
@media(max-width:360px) { .home-services-row .home-action-card { padding:12px 7px; } .home-services-row .home-action-title {font-size:12px;} .home-services-row .home-action-desc {font-size:11px;} .home-hometax-strip {gap:8px;} .home-hometax-strip img {width:44px;} .home-hometax-strip strong {font-size:12px;} .service-person {grid-template-columns:20px minmax(0,1fr) 90px;gap:6px;} }
@media(max-width:360px) { .service-stage { margin-inline:4px; gap:4px; font-size:10px; } .service-stage li {gap:5px;} .service-stage li:not(:last-child)::after {width:10px;} .service-person {grid-template-columns:18px 28px minmax(0,1fr) 90px;gap:6px;} .service-person-avatar {width:28px;height:28px;} }
