/* DWR Thai date picker (WD-824) — คู่กับ assets/js/dwr-thai-date.js */
.dwr-tdp { position: relative; display: inline-block; max-width: 100%; }
.dwr-tdp-input {
    cursor: pointer; padding-right: 34px !important; min-width: 150px; width: 100%; box-sizing: border-box;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.dwr-tdp-pop {
    position: fixed; z-index: 100000; width: 280px;
    background: #fff; border: 1px solid #d6dde8; border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .15);
    padding: 12px; font-size: 14px; color: #1f2937; box-sizing: border-box;
}
.dwr-tdp-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dwr-tdp-pop .dwr-tdp-head select {
    /* !important กันสไตล์ select ของธีม/ปลั๊กอินที่ทำให้ตัวอักษรจางหรือถูกตัด */
    flex: 1; min-width: 0 !important; width: auto !important; max-width: none !important; height: 32px !important;
    margin: 0 !important; padding: 0 22px 0 6px !important; line-height: 30px !important;
    border: 1px solid #d6dde8 !important; border-radius: 8px !important; box-shadow: none !important;
    background-color: #fff !important; color: #1f2937 !important; opacity: 1 !important;
    font-family: inherit; font-size: 14px !important; text-indent: 0 !important;
}
.dwr-tdp-pop .dwr-tdp-head .dwr-tdp-year { flex: 0 0 80px; }
.dwr-tdp-nav {
    flex: 0 0 28px; height: 28px; border: 0; background: none; border-radius: 6px; cursor: pointer;
    font-size: 20px; line-height: 1; color: #1d5bbf; padding: 0;
}
.dwr-tdp-nav:hover { background: #eef4fc; }
.dwr-tdp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dwr-tdp-wd { font-size: 12px; font-weight: 600; color: #1f2937; padding: 4px 0; }
.dwr-tdp-day {
    height: 32px; border: 1px solid transparent; background: none; border-radius: 6px; cursor: pointer;
    font: inherit; font-size: 14px; color: #1d4f9c; padding: 0;
}
.dwr-tdp-day:hover:not(:disabled) { background: #eef4fc; }
.dwr-tdp-day.is-today { border-color: #1d5bbf; }
.dwr-tdp-day.is-selected { background: #1d5bbf; color: #fff; }
.dwr-tdp-day:disabled { color: #c3c9d4; cursor: not-allowed; }
.dwr-tdp-foot { display: flex; justify-content: space-between; border-top: 1px solid #e5e9f0; margin-top: 8px; padding-top: 8px; }
.dwr-tdp-foot button { border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; padding: 2px 4px; }
.dwr-tdp-clear { color: #c0392b; }
.dwr-tdp-today { color: #1d5bbf; }
.dwr-tdp-today:disabled { color: #c3c9d4; cursor: not-allowed; }
