.am-list { background: #fff; border: 1px solid #e1e8f2; border-radius: 5px; }
.am-page .am-list { border: 0; background: transparent; }
.am-page .am-toolbar { border: 0; padding: 0 0 8px; gap: 8px; }
.am-toolbar .pm-button { min-height: 32px; font-size: 12px; }
.am-filterbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 8px; }
.am-search { display: flex; align-items: center; width: 340px; height: 34px; box-sizing: border-box; border: 1px solid #cbd7e8; border-radius: 4px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.am-search:hover { border-color: #9db6dd; }
.am-search:focus-within { border-color: #3978ff; box-shadow: 0 0 0 2px #3978ff12; }
.am-search-field { position: relative; flex: 0 0 106px; align-self: stretch; min-width: 0; }
.am-search-field summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 100%; box-sizing: border-box; padding: 0 11px; border: 0; border-right: 1px solid #e0e7f2; border-radius: 3px 0 0 3px; background: #fff; color: #536b8c; font-size: 12px; list-style: none; cursor: pointer; outline: none; }
.am-search-field summary::-webkit-details-marker { display: none; }
.am-search-field summary:hover, .am-search-field[open] summary { background: #f5f8ff; color: #2869db; }
.am-search-field summary:focus-visible { background: #eef4ff; }
.am-search-field summary svg { width: 12px; height: 12px; flex-shrink: 0; fill: none; stroke: #91a4bf; stroke-width: 1.4; transition: transform .15s; }
.am-search-field[open] summary svg { transform: rotate(180deg); }
.am-search-options { position: absolute; top: calc(100% + 6px); left: -1px; z-index: 25; width: 146px; padding: 5px; box-sizing: border-box; border: 1px solid #dce5f0; border-radius: 5px; background: #fff; box-shadow: 0 6px 20px #263f6826; }
.am-search-options button { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 33px; padding: 0 9px; border: 0; border-radius: 3px; background: transparent; color: #52677f; font-size: 12px; text-align: left; cursor: pointer; }
.am-search-options button:hover, .am-search-options button:focus-visible { background: #f4f7fd; outline: none; }
.am-search-options button[aria-pressed=true] { background: #edf4ff; color: #2869db; }
.am-search-options svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.am-page .am-search > input, .am-page .am-search > input:focus { display: block; width: 0; min-width: 0; flex: 1; height: 32px; margin: 0; padding: 0 11px; box-sizing: border-box; border: 0; border-radius: 0; outline: none; box-shadow: none; background: transparent; color: #40516b; font-size: 12px; }
.am-page .am-search > input::placeholder { color: #a0aec2; }
.am-search-clear { display: flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 24px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: #94a4bb; cursor: pointer; }
.am-search-clear:hover { background: #f0f4fa; color: #3978ff; }
.am-search-clear svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.am-search-icon { width: 16px; height: 16px; flex: 0 0 16px; margin: 0 10px 0 5px; fill: none; stroke: #7890b0; stroke-width: 1.4; }
.am-more { position: relative; }
.am-more-panel, .am-help { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: 360px; max-width: calc(100vw - 32px); padding: 18px; background: #fff; border: 1px solid #dce4ef; border-radius: 4px; box-shadow: 0 6px 20px #263f6826; font-size: 12px; }
.am-more-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.am-more-panel label { display: flex; flex-direction: column; gap: 8px; }
.am-more-panel :is(input,select) { width: 100%; min-width: 0; height: 32px; border: 1px solid #cbd7e8; border-radius: 4px; padding: 5px; }
.am-more-panel footer { display: flex; grid-column: 1/-1; justify-content: flex-end; gap: 8px; }
.am-icon { display: inline-flex; justify-content: center; align-items: center; width: 28px; height: 30px; flex-shrink: 0; border: 0; background: transparent; color: #536a88; cursor: pointer; }
.am-icon:disabled { opacity: .35; cursor: default; }
.am-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.am-page .am-table-wrap { min-height: calc(100dvh - 245px); background: #fff; border: 1px solid #e0e6ef; border-radius: 4px; }
.am-table th > button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; }
.am-table input[type=checkbox] { accent-color: #3978ff; }
.am-table td:first-child, .am-table th:first-child { width: 30px; padding-right: 0; }
.am-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px; color: #536a88; font-size: 12px; background: #fff; }
.am-pagination :is(select,input) { height: 32px; padding: 5px; border: 1px solid #cbd7e8; border-radius: 3px; color: inherit; }
.am-pagination input { width: 48px; }
.am-page-number { padding: 8px 12px; background: #edf3ff; border-radius: 4px; color: #3978ff; }
@media(max-width:700px) { .am-filterbar { flex-wrap: wrap; } .am-search { flex: 1; min-width: 200px; } .am-pagination { gap: 5px; } }
.am-toolbar { display: flex; align-items: center; gap: 16px; padding: 16px; border-bottom: 1px solid #e7edf5; }
.am-toolbar > input { width: 300px; min-width: 0; height: 34px; padding: 6px 10px; border: 1px solid #cfd9e8; border-radius: 4px; font: inherit; font-size: 12px; }
.am-notice { margin: 12px 16px; color: #348976; font-size: 12px; }
.am-table-wrap { overflow-x: auto; }
.am-table { width: 100%; min-width: 960px; border-collapse: collapse; font-size: 12px; color: #536882; }
.am-table th { padding: 14px 16px; background: #f6f8fb; text-align: left; font-weight: 500; color: #7d90aa; }
.am-table td { padding: 16px; border-top: 1px solid #e7edf5; max-width: 260px; overflow-wrap: anywhere; }
.am-table img { width: 48px; height: 48px; object-fit: contain; border: 1px solid #edf1f6; border-radius: 4px; }
.am-table strong, .am-table small { display: block; }
.am-table strong { font-weight: 500; color: #294567; }
.am-table small { margin-top: 8px; color: #98a6ba; }
.am-no-image { display: grid; place-items: center; width: 48px; height: 48px; background: #f6f8fb; border-radius: 4px; }
.am-table .am-empty { padding: 70px; text-align: center; color: #93a3b9; }
.am-table .am-actions-cell { width: 136px; min-width: 136px; text-align: center; white-space: nowrap; vertical-align: middle; }
.am-row-actions { display: flex; align-items: center; justify-content: center; gap: 8px; }
.am-row-action { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 32px; box-sizing: border-box; padding: 5px 10px; border: 1px solid #d9e5f8; border-radius: 4px; background: #fff; color: #2869db; font: inherit; line-height: 20px; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s; }
.am-row-action:hover:not(:disabled) { background: #edf4ff; border-color: #a9c6f5; }
.am-row-action--delete { color: #c64f5b; border-color: #efd8dc; }
.am-row-action--delete:hover:not(:disabled) { background: #fff1f2; border-color: #e6adb5; }
.am-row-action:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.am-row-action:disabled { opacity: .4; cursor: not-allowed; }
.am-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px 22px; color: #617088; font-size: 12px; }
.am-grid > label, .am-dimensions { display: flex; align-items: center; gap: 6px; min-width: 0; }
.am-grid > label > span, .am-dimensions > span { flex: 0 0 74px; text-align: right; white-space: nowrap; }
.am-grid i { color: #df7272; font-style: normal; }
.am-grid input, .am-grid textarea { width: 100%; min-width: 0; padding: 6px 9px; height: 33px; border: 1px solid #cbd7e8; border-radius: 4px; background: #fff; color: #40516b; font: inherit; }
.am-grid input:focus, .am-grid textarea:focus { outline: none; border-color: #3978ff; box-shadow: 0 0 0 2px #3978ff12; }
.am-grid input[type=number] { appearance: textfield; -moz-appearance: textfield; }
.am-grid input::-webkit-inner-spin-button { -webkit-appearance: none; }
.am-input-group { display: flex; align-items: center; flex: 1; min-width: 0; border: 1px solid #cbd7e8; border-radius: 4px; overflow: hidden; }
.am-input-group:focus-within { border-color: #3978ff; box-shadow: 0 0 0 2px #3978ff12; }
.am-grid .am-input-group input { width: 0; flex: 1; border: 0; border-radius: 0; box-shadow: none; height: 31px; }
.am-input-group input + input { border-left: 1px solid #e0e7f1 !important; }
.am-input-group > span { padding: 8px 10px; border-left: 1px solid #cbd7e8; background: #f5f7fb; color: #8192ab; }
.am-grid .am-remark { grid-column: 1/-1; align-items: flex-start; }
.am-remark > span { padding-top: 8px; }
.am-remark > div { flex: 1; position: relative; min-width: 0; }
.am-grid textarea { height: 88px; resize: vertical; padding-bottom: 22px; }
.am-remark small { position: absolute; right: 10px; bottom: 10px; color: #9ba8ba; }
@media(max-width:1400px) { .am-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { .am-grid { grid-template-columns: minmax(0,1fr); } .am-toolbar > input { flex: 1; width: 0; } }
