#workspace-dms-import { overflow: auto; background: #f7f8fa; color: #182438; }
#sync-dms-btn[hidden],#dms-last-sync[hidden] { display: none !important; }
.dms-wrap { max-width: 1440px; margin: auto; padding: 28px 32px; font: 14px 'Be Vietnam Pro',sans-serif; }
.dms-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dms-head h1 { font-size: 24px; margin: 0 0 6px; }
.dms-head span,#dms-last-sync { font-size: 12px; color: #64748b; }
.dms-wrap button { border: 1px solid #d5dae2; border-radius: 6px; padding: 8px 14px; min-height: 36px; background: #fff; color: #263448; font: inherit; cursor: pointer; }
.dms-wrap button:disabled { opacity: .5; cursor: default; }
.dms-wrap .dms-primary { color: #fff; background: #2563eb; border-color: #2563eb; }
.dms-wrap :focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.dms-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid #dce1e8; padding-bottom: 12px; }
.dms-tabs [aria-pressed="true"] { background: #eaf0ff; color: #1d4ed8; border-color: #b8cbfa; }
.dms-import-form,.dms-map-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; background: #fff; border: 1px solid #e1e5eb; border-radius: 8px; padding: 20px; }
.dms-wrap label { display: grid; gap: 8px; font-weight: 500; }
.dms-wrap input,.dms-wrap select { border: 1px solid #cbd2dd; border-radius: 6px; min-height: 38px; padding: 7px 10px; font: inherit; background: #fff; max-width: 100%; }
.dms-pending { align-self: center; color: #92400e; background: #fef3c7; padding: 7px 12px; border-radius: 6px; }
.dms-counts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.dms-counts>div { display: grid; gap: 8px; padding: 18px; background: #fff; border: 1px solid #e1e5eb; border-radius: 8px; }
.dms-counts span { color: #64748b; font-size: 12px; }
.dms-counts b { font-size: 24px; }
.dms-period { margin: 16px 0; color: #475569; }
.dms-table { overflow: auto; max-height: 55vh; margin: 18px 0; background: #fff; border: 1px solid #e1e5eb; border-radius: 8px; }
.dms-table table { width: 100%; border-collapse: collapse; text-align: left; }
.dms-table th { position: sticky; top: 0; background: #edf1f6; z-index: 1; white-space: nowrap; font-size: 12px; }
.dms-table th,.dms-table td { padding: 11px 14px; border-bottom: 1px solid #e9edf2; }
.dms-table small { display: block; color: #64748b; margin-top: 4px; }
.dms-map-target { flex: 1 0 280px; }
.dms-pager { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 14px; }
#dms-error { color: #b91c1c; margin-bottom: 12px; white-space: pre-wrap; }
#dms-result { color: #166534; margin-top: 14px; }
.dms-sync-summary { display: grid; gap: 8px; padding: 20px; background: #fff; border: 1px solid #e1e5eb; border-radius: 8px; }
.dms-sync-summary h2 { margin: 0; font-size: 21px; }
.dms-sync-actions { display: flex; gap: 10px; margin: 18px 0; }
.dms-sync-config { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 20px; background: #fff; border: 1px solid #e1e5eb; border-radius: 8px; }
.dms-sync-config input[type="number"] { width: 130px; }
.dms-sync-config .dms-sync-check { display: flex; align-items: center; min-height: 38px; }
.dms-sync-error,.dms-sync [role="alert"] { color: #b91c1c; white-space: pre-wrap; overflow-wrap: anywhere; }
@media(max-width: 700px) { .dms-wrap { padding: 20px 14px; }.dms-import-form label { width: 100%; }.dms-counts { grid-template-columns: repeat(2,minmax(0,1fr)); }.dms-map-form label { flex: 1 1 100%; min-width: 0; }.dms-head h1 { font-size: 21px; } }
