/* カレンダーのスタイル */
.dtm-cal-wrapper { max-width: 1500px; margin: 0 auto 30px auto; background: #fff; padding: 20px; border-radius: 5px; border: 1px solid #ddd; box-sizing: border-box; }
.dtm-cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-weight: bold; font-size: 1.2em; }
.dtm-cal-nav { text-decoration: none; padding: 5px 15px; background: #f0f0f1; border-radius: 4px; color: #333; font-size: 0.8em; }
.dtm-cal-nav:hover { background: #e5e5e5; }
.dtm-cal-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dtm-cal-table th { background: #f9f9f9; padding: 10px; border: 1px solid #ddd; text-align: center; }
.dtm-cal-table td { border: 1px solid #ddd; vertical-align: top; height: 100px; padding: 5px; background:#fff; position: relative; }
.dtm-cal-day-num { display: block; font-weight: bold; margin-bottom: 5px; color: #333; }
.dtm-cal-cell-link { display: block; width: 100%; height: 70%; text-decoration: none; color: inherit; }
.dtm-cal-cell-link:hover { background-color: #f0f8ff; }
.dtm-cal-badge { display: block; font-size: 11px; margin-bottom: 2px; padding: 2px 4px; border-radius: 3px; }
.dtm-cal-start { color: #0073aa; background: #e6f7ff; }
.dtm-cal-end { color: #d00; background: #fff5f5; }
.dtm-cal-today { background-color: #e6f7ff !important; border: 3px solid #0073aa !important; }
.dtm-cal-selected { background-color: #fffbe6 !important; border: 3px solid #d00 !important; box-shadow: inset 0 0 5px rgba(0,0,0,0.1); }
.dtm-cal-selected .dtm-cal-day-num { color: #d00; font-size: 1.2em; }
.dtm-cal-past { background-color: #f5f5f5 !important; color: #bbb !important; }
.dtm-cal-past .dtm-cal-day-num { color: #aaa; }
.dtm-cal-past .dtm-cal-badge { opacity: 0.5; }
.dtm-cal-done { background-color: #e8f5e9 !important; }
.dtm-cal-check-area { position: absolute; bottom: 5px; right: 5px; }
.dtm-cal-check-label { font-size: 10px; color: #666; cursor: pointer; display: flex; align-items: center; gap: 3px; background: rgba(255,255,255,0.8); padding: 2px 5px; border-radius: 3px; }
@media (max-width: 768px) { .dtm-cal-table td { height: 80px; font-size: 10px; } }

/* 一括編集マネージャー */
.dtm-search-box { width: 100%; margin-bottom: 15px; padding: 10px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; }
.dtm-bulk-filters { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; padding: 15px; background: #f0f0f1; border-radius: 5px; font-weight: bold; flex-wrap: wrap; }
.dtm-bulk-filters label { cursor: pointer; display: flex; align-items: center; gap: 5px; white-space: nowrap; margin-right: 5px; }
.dtm-bulk-filters input { transform: scale(1.2); margin: 0; }
tr.status-active { background: #fff; }
tr.status-upcoming { background: #e6f7ff; } 
tr.status-finished { background: #f9f9f9; color: #999; } 
tr.status-finished input { color: #777; }
.dtm-heading-bulk { font-size:1.2em; font-weight:bold; margin:0; }
.dtm-save-btn { background: #e60033; color: #fff; border: none; padding: 12px 40px; font-size: 16px; font-weight: bold; border-radius: 4px; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.dtm-btn-edit { display: inline-block; padding: 4px 10px; background: #f0f0f1; color: #333; border: 1px solid #ccc; border-radius: 3px; font-size: 12px; white-space: nowrap; text-decoration: none; text-align: center; }
.dtm-btn-edit:hover { background: #e5e5e5; border-color: #999; }
.dtm-btn-disabled { opacity: 0.5; cursor: not-allowed; }
.dtm-btn-dl-mini { display: inline-block; padding: 3px 8px; background: #e6ffe6; color: #006600; border: 1px solid #99cc99; border-radius: 3px; font-size: 11px; text-decoration: none; white-space: nowrap; text-align: center; }
.dtm-btn-dl-mini:hover { background: #d0f0d0; }
.dtm-btn-copy { display: inline-block; padding: 3px 8px; background: #e0f7fa; color: #006064; border: 1px solid #b2ebf2; border-radius: 3px; font-size: 11px; text-decoration: none; white-space: nowrap; text-align: center; cursor: pointer; }
.dtm-btn-copy:hover { background: #b2ebf2; }
.dtm-btn-clear { border:1px solid #ccc; background:#fff; color:#d00; font-weight:bold; border-radius:3px; cursor:pointer; font-size:12px; width:24px; height:24px; display:flex; justify-content:center; align-items:center; }
.dtm-btn-clear:hover { background:#eee; }
.dtm-input-s { width:100%; padding:5px; box-sizing:border-box; }
.dtm-row-modified { background-color: #fff0f0 !important; }

/* 入力フォーム */
.dtm-frontend-form { width: 100%; max-width: 600px; margin: 0 auto; padding: 25px; background: #fff; border: 1px solid #eee; border-radius: 8px !important; box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; box-sizing: border-box; position: relative; }
.dtm-mode-badge { display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 3px; background: #e2e2e2; color: #666; margin-bottom: 15px; float: right; }
.dtm-mode-edit { background: #ffeeba; color: #856404; }
.dtm-label { display: block; font-weight: bold; font-size: 0.9em; color: #444; margin-bottom: 5px; }
.dtm-input { width: 100%; padding: 10px; font-size: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; background: #fafafa; }
.dtm-input:focus { background: #fff; border-color: #0073aa; outline: none; }
.dtm-ichioshi-wrapper { text-align: right; margin-bottom: 20px; }
.dtm-ichioshi-label { font-weight: bold; color: #e67e22; font-size: 0.95em; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dtm-current-img { margin-bottom:10px; border:1px solid #ddd; padding:3px; display:inline-block; }
.dtm-header-area::after { content: ""; display: block; clear: both; }

/* リスト表示 */
.dtm-wrapper { width: 100%; max-width: 1500px; margin: 0 auto 30px auto; overflow: hidden; box-sizing: border-box; } 
.dtm-sale-list-container { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #eee; width: 100%; }
.dtm-heading { margin: 0 0 15px 0 !important; padding: 10px 15px !important; border-left: 4px solid #d00 !important; font-size: 1.2em !important; font-weight: bold !important; background: #f5f7f8 !important; color: #333 !important; position: sticky; left: 0; }
.dtm-viewer-search { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; margin-bottom: 15px; box-sizing: border-box; }
table.dtm-sale-table { width: 100%; min-width: 700px; border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; table-layout: fixed; }
table.dtm-sale-table th, table.dtm-sale-table td { padding: 6px 10px; text-align: left; vertical-align: middle; border: none; font-size: 13px; line-height: 1.3; background: transparent; }
table.dtm-sale-table thead tr { background-color: #f0f0f0; border-bottom: 2px solid #ddd; }
table.dtm-sale-table th { font-weight: bold; color: #555; white-space: nowrap; }
tr.dtm-row-normal { border-bottom: 1px solid #eee; }
tr.dtm-row-divider { border-top: 2px solid #666; border-bottom: 1px solid #eee; }
.dtm-flex-cell { display: flex; align-items: center; gap: 10px; }
.dtm-thumb { width: 35px; height: 35px; object-fit: contain; background: #f9f9f9; border: 1px solid #eee; border-radius: 3px; flex-shrink: 0; display: block; }
.dtm-viewer-thumb { width: 35px; height: 35px; }
.dtm-title-link { text-decoration: none; color: #0073aa; font-weight: bold; font-size: 1.15em; } 
.dtm-title-link:hover { text-decoration: underline; }
.dtm-price-box { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 5px; }
.dtm-del { color: #888; font-size: 0.75em; text-decoration: line-through; }
.dtm-price { color: #d00; font-weight: bold; font-size: 1.0em; }
.dtm-badge { background: #333; color: #fff; font-size: 0.75em; padding: 1px 3px; border-radius: 3px; white-space: nowrap; font-weight: bold; }
.dtm-badge-ext { background: #d00; color: #fff; font-size: 0.75em; padding: 2px 4px; border-radius: 3px; white-space: nowrap; font-weight: bold; margin-right: 4px; vertical-align: middle; }
.dtm-badge-new { background: #ff9900; color: #fff; padding: 2px 4px; border-radius: 3px; font-size: 0.8em; margin-left: 5px; vertical-align: middle; white-space: nowrap; }
.dtm-free { color: #d00; font-size: 1.2em; font-weight: bold; }
.dtm-date { font-size: 0.85em; white-space: nowrap; }
.dtm-viewer-date { font-size: 0.85em; white-space: nowrap; font-weight: bold; color: #444; text-align: right; }
.dtm-btn { display: inline-block; padding: 3px 8px; text-decoration: none; border-radius: 3px; font-size: 11px; text-align: center; border: 1px solid #ccc; background: #f0f0f0; color: #333; margin-bottom: 5px; white-space: nowrap; }
.dtm-btn-dl { background: #e6ffe6; color: #006600; border-color: #99cc99; }
.dtm-alert { color: red; font-weight: bold; background: #fff0f0; padding: 2px; border-radius: 2px; display: inline-block; }
.dtm-copy-tool { background: #f9f9f9; padding: 15px; border: 1px solid #ddd; border-radius: 5px; margin-top: 20px; max-width: 1500px; margin-left: auto; margin-right: auto; }
.dtm-copy-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 10px; }
.dtm-copy-title { margin: 0; font-size: 1.1em; font-weight: bold; }
.dtm-copy-area { width: 100%; height: 80px; font-size: 13px; border: 1px solid #ccc; padding: 10px; font-family: monospace; box-sizing: border-box; }
.dtm-copy-btn { background: #0073aa; color: #fff; border: none; padding: 8px 20px; font-weight: bold; border-radius: 4px; cursor: pointer; margin-top: 15px !important; }
.dtm-copy-msg { color: green; font-weight: bold; margin-left: 10px; display: none; }