/* Shared only by cash and bank daily movement editors. */
html.mmg-record-page body .movement-panel{min-width:0!important;padding:4px!important;margin:0!important;border-radius:0!important;box-shadow:none!important}
html.mmg-record-page body .movement-panel .mmg-record-toolbar{display:flex!important;align-items:center;gap:6px;flex-wrap:wrap;width:100%;box-sizing:border-box}
html.mmg-record-page body .movement-panel .mmg-record-toolbar button{height:28px!important;min-height:28px!important;padding:3px 10px!important;font:600 12px/20px Inter,Arial,sans-serif!important}
html.mmg-record-page body .movement-panel .movement-date-tools{display:flex;align-items:center;gap:6px;margin-left:0;max-width:100%;flex:0 0 auto}
html.mmg-record-page body .movement-date-tools .mmg-day-nav{margin:0!important;max-width:100%;flex:none}
html.mmg-record-page body .movement-date-tools .mmg-day-nav select{height:28px!important;min-height:28px!important;font:600 12px/20px Inter,Arial,sans-serif!important;padding:2px 5px!important}
html.mmg-record-page body table.movement-table{font-family:Inter,Arial,sans-serif;width:100%}
html.mmg-record-page body table.movement-table .cash-opening-row{font-weight:700}
html.mmg-record-page body table.movement-table [data-record-column=giris],html.mmg-record-page body table.movement-table [data-record-column=cikis],html.mmg-record-page body table.movement-table [data-record-column=bakiye],html.mmg-record-page body table.movement-table [data-record-field=giris],html.mmg-record-page body table.movement-table [data-record-field=cikis]{text-align:right!important;font-variant-numeric:tabular-nums}
html.mmg-record-page body table.movement-table .mmg-sutun-tutamak{width:12px!important;border-right:2px solid color-mix(in srgb,var(--brass,#987735) 45%,transparent);box-sizing:border-box}
html.mmg-record-page body table.movement-table .mmg-row-height-handle{height:7px!important;border-bottom:2px solid color-mix(in srgb,var(--brass,#987735) 45%,transparent);box-sizing:border-box}
@media(max-width:600px){html.mmg-record-page body .movement-date-tools{gap:3px;flex-wrap:wrap;justify-content:flex-end}html.mmg-record-page body .movement-panel .mmg-record-toolbar [role=status]:empty{display:none}}

html body:has(.movement-table) header.masthead.mmg-page-heading.mmg-page-heading.mmg-page-heading.mmg-page-heading{min-height:0!important;height:auto!important;padding:4px 8px!important;margin:0!important}html body:has(.movement-table) header.masthead .mast-inner{padding:0!important;min-height:0!important}html body:has(.movement-table) header.masthead h1.title{font:600 18px/24px Inter,Arial,sans-serif!important;margin:0!important;padding:0!important}html body:has(.movement-table) main{padding-top:4px!important}
html.mmg-record-page body .movement-panel .mmg-record-toolbar{margin-bottom:0!important}html body .bank-daily,html body .cash-daily{margin-bottom:2px!important}

html.mmg-record-page body .movement-date-tools .mmg-day-nav button{width:22px!important;min-width:22px!important;padding:0!important;flex:0 0 22px}html.mmg-record-page body .movement-date-tools .mmg-day-nav select{padding:0 2px!important;flex:none}html.mmg-record-page body .movement-date-tools .mmg-day-nav [data-part=day]{width:38px!important}html.mmg-record-page body .movement-date-tools .mmg-day-nav [data-part=month]{width:81px!important}html.mmg-record-page body .movement-date-tools .mmg-day-nav [data-part=year]{width:65px!important}

/* Cash and bank share the same readable column heading. Search row stays separate. */
html.mmg-record-page body table.movement-table thead tr[data-record-head]>th{background:#173d60!important;color:#fff!important;text-align:center!important;font-weight:600!important;border-bottom:2px solid #b89a60!important;border-right:1px solid #ffffff30!important}
html.mmg-record-page body table.movement-table thead tr[data-record-head]>th button{color:inherit!important}
html.mmg-record-page body .movement-date-tools .mmg-day-nav select{appearance:none!important;padding:0 13px 0 3px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%278%27 height=%276%27 viewBox=%270 0 8 6%27%3E%3Cpath d=%27M1 1l3 3 3-3%27 fill=%27none%27 stroke=%27%2367758a%27 stroke-width=%271.5%27/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-size:8px 6px!important;background-position:right 3px center!important;}

/* Resized movement columns own their content width; inputs must not retain schema minima. */
html.mmg-record-page body table.movement-table.mmg-record-grid td[data-record-column]{overflow:hidden!important;}
html.mmg-record-page body table.movement-table.mmg-record-grid td[data-record-column] :is(input:not([type=checkbox]),select){width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
html.mmg-record-page body table.movement-table.mmg-record-grid td[data-record-column] select[data-mmg-ac="grid-choice"]:focus{outline:2px solid #62d8c8!important;outline-offset:-2px!important;}
html.mmg-record-page body table.movement-table td[data-record-column=bakiye]{white-space:normal!important;overflow-wrap:anywhere!important;}

/* Controls and output actions sit on the page; only the table owns its fill. */
html.mmg-record-page body .movement-panel{background:transparent!important}
html.mmg-record-page body .movement-panel .record-output-tools{background:transparent!important}


/* Cash account identity is retained while sharing the bank-card surface. */
html body .cash-daily .cash-daily-card{display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;grid-template-rows:auto auto!important;align-items:center!important;gap:0 8px!important;min-width:150px!important;padding:4px 9px!important;border:1px solid color-mix(in srgb,var(--bank-card-color,#157b68) 58%,var(--hairline,#ccd))!important;border-radius:11px!important;background:linear-gradient(145deg,var(--bank-card-color,#157b68),color-mix(in srgb,var(--bank-card-color,#157b68) 76%,#092b34))!important;color:#fff!important;box-shadow:0 3px 0 color-mix(in srgb,var(--bank-card-color,#157b68) 48%,#15283e),0 6px 12px #1426381a,inset 0 1px #ffffff55!important;}
html body .cash-daily .cash-daily-card::before{content:attr(data-currency-symbol);grid-column:1;grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;border:1px solid #dfc27f;border-radius:50%;background:linear-gradient(145deg,#ffe9b3,#cba461);color:#153b4b;font:700 20px/1 Georgia,serif;box-shadow:0 2px 0 #816531,inset 0 1px #fff8;}
html body .cash-daily .cash-daily-card>span{grid-column:2;grid-row:1;font-size:12px!important;line-height:16px!important;white-space:nowrap!important;text-align:center!important;color:inherit!important;}
html body .cash-daily .cash-daily-card>strong{grid-column:2;grid-row:2;font-size:17px!important;line-height:22px!important;white-space:nowrap!important;text-align:center!important;color:inherit!important;}

/* The account currently receiving entries is highlighted in both movement views. */
html body :is(.cash-daily-card,.bank-daily-card)[aria-pressed="true"]{
 background:linear-gradient(135deg,#ffe69a,#e9bb4e)!important;
 color:#243234!important;border-color:#a87916!important;
 outline:2px solid #a87916!important;outline-offset:-2px!important;
 box-shadow:0 3px 0 #806020,0 0 0 2px #eac56555!important;
}
html body :is(.cash-daily-card,.bank-daily-card)[aria-pressed="true"] :is(span,strong){color:#243234!important}
html:not(.theme-light) body :is(.cash-daily-card,.bank-daily-card)[aria-pressed="true"]{
 background:linear-gradient(135deg,#efcf75,#c99b36)!important;
 border-color:#f4d47f!important;outline-color:#f4d47f!important;
}

html body :is(.cash-daily-card,.bank-daily-card):not([aria-pressed="true"]):is(:hover,:focus-visible){background:linear-gradient(145deg,color-mix(in srgb,var(--bank-card-color,#157b68) 75%,#fff),var(--bank-card-color,#157b68))!important;outline:2px solid #e2c77e!important;outline-offset:-2px!important;}
html body :is(.cash-daily-card,.bank-daily-card)[aria-pressed="true"]:is(:hover,:focus-visible){background:linear-gradient(135deg,#fff0b8,#eec65f)!important;outline:2px solid #a87916!important;}

/* White cash-entry cells in light mode, retaining selection overlays. */
html.theme-light.mmg-record-page body:has(.cash-daily) table.movement-table tbody>tr>td{background-color:#fff!important;}

html body .bank-daily-table [data-bank-opening]{display:block;font-size:11px;line-height:15px;font-weight:400;white-space:normal;}
html body .bank-daily-table td[data-record-column=bakiye]{position:relative;padding-right:20px!important;}
html body .bank-daily-table .mmg-inline-remove{position:absolute;right:1px;top:50%;transform:translateY(-50%);width:16px!important;min-width:16px!important;height:20px!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:inherit;line-height:20px;}
html body .bank-daily-table .mmg-inline-remove::before{content:"×";}

/* Keep the delete control clear even when shared row preferences reset cell padding. */
html body .bank-daily-table .mmg-record-value{display:block;box-sizing:border-box;min-width:0;padding-inline-end:calc(var(--mmg-row-action-height,22px) + 4px)}

/* Slightly taller desktop bank balance cards (user request, 13 Oct). */
@media(min-width:641px){html body .bank-daily .bank-daily-card{padding-block:8px!important;}}

/* Keep full monetary values inside cash cards; wrap cards by content width. */
html body .cash-daily .cash-daily-cards{display:flex!important;flex-wrap:wrap!important}
html body .cash-daily .cash-daily-card{flex:0 1 auto;box-sizing:border-box;max-width:100%;grid-template-columns:32px minmax(min-content,1fr)!important}
html body .cash-daily .cash-daily-card>span{min-width:0;white-space:normal!important;overflow-wrap:anywhere}

/* Shared account-title emphasis for both movement editors; amounts and layout stay unchanged. */
html body :is(.cash-daily,.bank-daily){--mmg-movement-card-title-weight:700;--mmg-movement-card-title-size:12px;--mmg-movement-card-title-line:16px;--mmg-movement-card-title-family:Inter,Arial,sans-serif}
html body .cash-daily .cash-daily-card>span,
html body .bank-daily .bank-daily-card>.bank-card-currency{font-weight:var(--mmg-movement-card-title-weight)!important;font-size:var(--mmg-movement-card-title-size)!important;line-height:var(--mmg-movement-card-title-line)!important;font-family:var(--mmg-movement-card-title-family)!important}
