.notification-record-page {
    --notification-accent: #fe8e3c;
    --notification-ink: #20243a;
    --notification-muted: #7a8096;
    --notification-border: #e8eaf1;
    padding-bottom: 32px;
}

.notification-record-page .notification-record-shell {
    max-width: 1500px;
    margin: 0 auto;
}

.notification-record-page .notification-record-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.notification-record-page .notification-record-title {
    margin: 0 0 6px;
    color: var(--notification-ink);
    font-size: 1.55rem;
    font-weight: 700;
}

.notification-record-page .notification-record-subtitle {
    margin: 0;
    color: var(--notification-muted);
    font-size: .92rem;
}

.notification-record-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--notification-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(31, 35, 48, .04);
}

.notification-record-tabs a {
    padding: 9px 14px;
    border-radius: 9px;
    color: #71768a;
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
}

.notification-record-tabs a.is-active {
    background: var(--notification-accent);
    color: #fff;
}

.notification-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.notification-summary-card {
    min-height: 92px;
    padding: 17px 18px;
    border: 1px solid var(--notification-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(31, 35, 48, .035);
}

.notification-summary-card span {
    display: block;
    color: var(--notification-muted);
    font-size: .78rem;
    font-weight: 600;
}

.notification-summary-card strong {
    display: block;
    margin-top: 7px;
    color: var(--notification-ink);
    font-size: 1.6rem;
    line-height: 1;
}

.notification-summary-card.is-accent strong {
    color: var(--notification-accent);
}

.notification-filter-card,
.notification-list-card {
    border: 1px solid var(--notification-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(31, 35, 48, .035);
}

.notification-filter-card {
    margin-bottom: 16px;
    padding: 16px;
}

.notification-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.8fr) repeat(4, minmax(135px, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

.notification-filter-field label {
    display: block;
    margin: 0 0 6px;
    color: #6f7487;
    font-size: .74rem;
    font-weight: 700;
}

.notification-filter-field .input,
.notification-filter-field .select,
.notification-filter-field .select select {
    width: 100%;
}

.notification-filter-actions {
    display: flex;
    gap: 8px;
}

.notification-list-card {
    overflow: hidden;
}

.notification-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 17px;
    border-bottom: 1px solid var(--notification-border);
}

.notification-list-toolbar p {
    margin: 0;
    color: var(--notification-muted);
    font-size: .82rem;
}

.notification-record-table-wrap {
    overflow-x: auto;
}

.notification-record-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.notification-record-table th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--notification-border);
    background: #fafafd;
    color: #777c8f;
    font-size: .72rem;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.notification-record-table td {
    padding: 14px;
    border-bottom: 1px solid #f0f1f5;
    color: #34384c;
    font-size: .84rem;
    vertical-align: middle;
}

.notification-record-table tr:last-child td {
    border-bottom: 0;
}

.notification-record-table tr.is-unread td:first-child {
    box-shadow: inset 3px 0 0 var(--notification-accent);
}

.notification-record-table tr:hover td {
    background: #fffdfb;
}

.notification-record-main {
    max-width: 490px;
}

.notification-record-main strong,
.notification-record-person strong {
    display: block;
    color: #292d40;
    font-weight: 650;
}

.notification-record-main small,
.notification-record-person small,
.notification-record-meta {
    display: block;
    margin-top: 4px;
    color: var(--notification-muted);
    font-size: .75rem;
    line-height: 1.45;
}

.notification-record-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f3f8;
    color: #656b80;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.notification-record-badge.is-message { background: #fff1e7; color: #d66a1c; }
.notification-record-badge.is-order { background: #eaf3ff; color: #2f70b7; }
.notification-record-badge.is-payment { background: #eaf9f0; color: #238355; }
.notification-record-badge.is-shipping { background: #f0ecff; color: #7353bd; }
.notification-record-badge.is-stock { background: #fff4d9; color: #997019; }
.notification-record-badge.is-system { background: #f1f3f8; color: #656b80; }

.notification-read-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: #bec2ce;
}

.notification-read-dot.is-unread { background: var(--notification-accent); }

.notification-record-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.notification-record-status .notification-read-dot {
    flex: 0 0 auto;
    margin-right: 0;
}

.notification-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 13px 16px;
    border-top: 1px solid var(--notification-border);
}

.notification-pagination span {
    min-width: 88px;
    color: var(--notification-muted);
    font-size: .78rem;
    text-align: center;
}

.notification-list-state {
    padding: 54px 20px;
    color: var(--notification-muted);
    text-align: center;
}

.notification-list-state i {
    display: block;
    margin-bottom: 10px;
    color: #c4c7d0;
    font-size: 2rem;
}

.notification-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.notification-detail-meta div {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f7f8fb;
}

.notification-detail-meta span {
    display: block;
    color: var(--notification-muted);
    font-size: .7rem;
}

.notification-detail-meta strong {
    display: block;
    margin-top: 3px;
    color: #303448;
    font-size: .84rem;
    word-break: break-word;
}

.notification-detail-content {
    color: #34384a;
    font-size: .9rem;
    line-height: 1.65;
    word-break: break-word;
}

.notification-detail-content img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 10px;
}

@media (max-width: 1100px) {
    .notification-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .notification-filter-field.is-keyword { grid-column: span 2; }
}

@media (max-width: 768px) {
    .notification-record-page .notification-record-head { flex-direction: column; }
    .notification-record-tabs { width: 100%; }
    .notification-record-tabs a { flex: 1; text-align: center; }
    .notification-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .notification-filter-grid { grid-template-columns: 1fr 1fr; }
    .notification-filter-field.is-keyword { grid-column: 1 / -1; }
    .notification-filter-actions { grid-column: 1 / -1; }
    .notification-filter-actions .button { flex: 1; }
}

@media (max-width: 480px) {
    .notification-summary-card { min-height: 82px; padding: 14px; }
    .notification-summary-card strong { font-size: 1.35rem; }
    .notification-filter-grid { grid-template-columns: 1fr; }
    .notification-filter-field.is-keyword,
    .notification-filter-actions { grid-column: auto; }
    .notification-detail-meta { grid-template-columns: 1fr; }
}
