/* Yatoon daily close */
.ydc-wrap { max-width: 1180px; }
.ydc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ydc-head h1 { margin-bottom: 4px; }
.ydc-sub { margin: 0; color: #50575e; }
.ydc-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ydc-nav .button { min-height: 32px; }
.ydc-date { margin: 0; }
.ydc-date input[type="date"] { min-height: 32px; }
.ydc-day { margin: 10px 0 14px; font-size: 14px; color: #1d2327; }
.ydc-note { background: #fcf9e8; border: 1px solid #f0d78c; border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; color: #614a00; }

.ydc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ydc-card { background: #fff; border: 1px solid #dcdcde; border-radius: 10px; padding: 14px 16px; }
.ydc-card span { display: block; font-size: 12px; color: #50575e; text-transform: uppercase; letter-spacing: .03em; }
.ydc-card strong { display: block; font-size: 26px; line-height: 1.2; margin-top: 4px; color: #1d2327; font-variant-numeric: tabular-nums; }
.ydc-card small { color: #646970; }
.ydc-card-main { border-color: #2271b1; box-shadow: inset 0 3px 0 #2271b1; }
.ydc-card-warn strong { color: #b32d2e; }

.ydc-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ydc-panel { background: #fff; border: 1px solid #dcdcde; border-radius: 10px; padding: 0 0 12px; margin-bottom: 16px; overflow: hidden; }
.ydc-panel h2 { font-size: 15px; margin: 0; padding: 14px 16px; border-bottom: 1px solid #f0f0f1; }
.ydc-panel h3 { font-size: 13px; margin: 16px 16px 6px; }
.ydc-empty, .ydc-hint, .ydc-closed, .ydc-changed { margin: 12px 16px 0; color: #50575e; }
.ydc-hint { font-size: 12px; }
.ydc-changed { background: #fcf0f1; border-left: 3px solid #d63638; padding: 8px 10px; color: #8a2424; }

.ydc-table { width: 100%; border-collapse: collapse; }
.ydc-table th, .ydc-table td { padding: 9px 16px; border-bottom: 1px solid #f0f0f1; text-align: left; font-size: 13px; }
.ydc-table th { font-size: 12px; color: #50575e; font-weight: 600; }
.ydc-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ydc-table tfoot th { color: #1d2327; border-bottom: 0; border-top: 1px solid #dcdcde; }
.ydc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ydc-subhead td { background: #f6f7f7; font-size: 12px; color: #50575e; padding-top: 7px; padding-bottom: 7px; }
.ydc-muted, .ydc-muted td { color: #787c82; }

.ydc-form { padding: 6px 16px 0; }
.ydc-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #e0e0e0; }
.ydc-line label, .ydc-line > span { font-weight: 600; color: #1d2327; }
.ydc-line small { display: block; font-weight: 400; color: #646970; font-size: 12px; margin-top: 2px; }
.ydc-line input { width: 130px; text-align: right; font-size: 16px; min-height: 36px; font-variant-numeric: tabular-nums; }
.ydc-line strong { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ydc-total { border-bottom: 2px solid #1d2327; }
.ydc-total strong { font-size: 20px; }
.ydc-diff.is-even strong, .ydc-diff.is-even span { color: #00a32a; }
.ydc-diff.is-over strong, .ydc-diff.is-over span { color: #996800; }
.ydc-diff.is-short strong, .ydc-diff.is-short span { color: #d63638; }
.ydc-diff[hidden] { display: none; }
.ydc-note-label { display: block; font-weight: 600; margin: 12px 0 4px; }
.ydc-form textarea { width: 100%; }

@media (max-width: 960px) {
	.ydc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.ydc-table { min-width: 460px; }
	.ydc-table th, .ydc-table td { padding: 8px 10px; }
	.ydc-table td:first-child { min-width: 96px; }
	.ydc-line input { width: 110px; }
	.ydc-card strong { font-size: 22px; }
}

@media print {
	#adminmenumain, #wpadminbar, #wpfooter, .no-print, .notice, .yatoon-app-sidebar, .yatoon-app-topbar, .yat-context, .yat-breadcrumb { display: none !important; }
	html body #wpbody-content .ydc-wrap > :not(.ydc-head):not(.ydc-day):not(.ydc-note):not(.ydc-cards):not(.ydc-grid):not(.ydc-panel),
	html body #wpbody-content .ydc-wrap .notice { display: none !important; }
	html body.yatoon-app-shell-on #wpcontent, html body #wpcontent, html body #wpbody-content { margin-left: 0 !important; padding: 0 !important; }
	.ydc-scroll { overflow: visible; }
	.ydc-table { min-width: 0; }
	#wpcontent, #wpbody-content, body.yatoon-app-shell-on #wpcontent { margin-left: 0 !important; padding: 0 !important; }
	.ydc-wrap { max-width: none; margin: 0; }
	.ydc-grid { grid-template-columns: 1fr 1fr; }
	.ydc-panel, .ydc-card { break-inside: avoid; border-color: #999; }
	.ydc-line input { border: 0; box-shadow: none; padding: 0; }
	.ydc-form textarea { border: 0; resize: none; }
	.ydc-form textarea:placeholder-shown { display: none; }
}

/* 4.13.0: Square terminal and POS payments. */
.ydc-ext-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ydc-refresh { font-size: 13px; font-weight: 400; }
