.system-notification-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: calc(100vh - 140px);
    padding: 8px;
}

html.system-notification-edit-page,
body.system-notification-edit-page {
    min-height: 100%;
    height: auto;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body.system-notification-edit-page .page-content-wrapper,
body.system-notification-edit-page #js-page-content,
body.system-notification-edit-page .page-content {
    min-height: auto;
    height: auto;
    overflow: visible !important;
}

body.system-notification-edit-page .system-notification-page {
    min-height: auto;
    padding-bottom: 32px;
}

.system-notification-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.system-notification-toolbar-left,
.system-notification-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.system-notification-callout,
.system-notification-inline-note {
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
    color: #1e3a8a;
    border-radius: 14px;
}

.system-notification-callout {
    padding: 16px 18px;
}

.system-notification-callout-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.system-notification-callout-list,
.system-notification-inline-note {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.system-notification-inline-note {
    padding: 12px 14px;
    margin-bottom: 14px;
}

.system-notification-inline-note.compact {
    margin-bottom: 12px;
    font-size: 12px;
}

.system-notification-data-section {
    flex: 1;
    min-height: 0;
}

.system-notification-grid {
    width: 100%;
    height: calc(100vh - 216px);
    min-height: 520px;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 14px;
    overflow: hidden;
}

.system-notification-layout,
.system-notification-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 16px;
    align-items: start;
}

.system-notification-side {
    display: flex;
    flex-direction: column;
}

.system-notification-card {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    padding: 18px;
}

.system-notification-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.system-notification-card-header.compact {
    margin-bottom: 12px;
}

.system-notification-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.system-notification-card-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.system-notification-form .form-group {
    margin-bottom: 16px;
}

.system-notification-editor {
    min-height: 360px;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.system-notification-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.system-notification-json {
    font-family: Consolas, Monaco, monospace;
    background: #f8fafc;
}

.system-notification-status-badge,
.system-notification-badge,
.system-notification-priority {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.system-notification-status-badge.draft,
.system-notification-badge.draft {
    background: #eef2ff;
    color: #4f46e5;
}

.system-notification-status-badge.published,
.system-notification-badge.published {
    background: #dcfce7;
    color: #15803d;
}

.system-notification-status-badge.offline,
.system-notification-badge.offline {
    background: #fef3c7;
    color: #b45309;
}

.system-notification-status-badge.archived,
.system-notification-badge.archived {
    background: #e5e7eb;
    color: #4b5563;
}

.system-notification-status-badge.expired,
.system-notification-badge.expired {
    background: #e5e7eb;
    color: #4b5563;
}

.system-notification-priority.muted {
    background: #f3f4f6;
    color: #4b5563;
}

.system-notification-priority.primary {
    background: #dbeafe;
    color: #2563eb;
}

.system-notification-priority.warning {
    background: #fef3c7;
    color: #b45309;
}

.system-notification-priority.danger {
    background: #fee2e2;
    color: #dc2626;
}

.system-notification-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.system-notification-state {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #6b7280;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 14px;
}

.system-notification-state i {
    font-size: 28px;
    color: #94a3b8;
}

.system-notification-detail-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.system-notification-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.system-notification-detail-meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 13px;
}

.system-notification-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.system-notification-detail-content {
    min-height: 420px;
    line-height: 1.8;
    color: #1f2937;
    word-break: break-word;
}

.system-notification-detail-content img {
    max-width: 100%;
    height: auto;
}

.system-notification-detail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.system-notification-detail-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #374151;
}

.system-notification-detail-item span {
    color: #6b7280;
    flex: 0 0 auto;
}

.system-notification-detail-item strong {
    text-align: right;
    font-weight: 600;
}

.system-notification-detail-hero-main {
    flex: 1;
    min-width: 0;
}

.system-notification-detail-hero-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px;
    flex-shrink: 0;
}

.system-notification-detail-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.system-notification-detail-summary {
    margin-top: 12px;
    color: #374151;
    line-height: 1.7;
}

.system-notification-detail-inline-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.system-notification-detail-stat {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 72px;
}

.system-notification-detail-stat span {
    font-size: 12px;
    color: #6b7280;
}

.system-notification-detail-stat strong {
    color: #111827;
    font-size: 14px;
    text-align: left;
}

.system-notification-detail-cover {
    margin-bottom: 16px;
}

.system-notification-detail-cover img {
    display: block;
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.system-notification-detail-version-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.system-notification-version-item {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    background: #f8fafc;
}

.system-notification-version-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 12px;
}

.system-notification-version-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.system-notification-version-summary {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.65;
}

.system-notification-version-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.system-notification-status-badge.pending {
    background: #dbeafe;
    color: #2563eb;
}

.system-notification-status-badge.read {
    background: #e5e7eb;
    color: #4b5563;
}

.system-notification-status-badge.confirmed {
    background: #dcfce7;
    color: #15803d;
}

.system-notification-status-badge.expired {
    background: #fef3c7;
    color: #b45309;
}

.system-notification-status-badge.offline {
    background: #fee2e2;
    color: #dc2626;
}

.system-notification-dropdown {
    width: 420px;
    max-width: min(420px, 92vw);
    max-height: 620px;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.18);
}

.system-notification-bell > .header-icon {
    position: relative;
}

.system-notification-bell > .header-icon > .fal.fa-bell {
    color: #6b7788;
}

.system-notification-bell > .header-icon[aria-expanded="true"] > .fal.fa-bell,
.system-notification-bell > .header-icon:hover > .fal.fa-bell {
    color: #24b3a4;
}

#systemNotificationBellBadge {
    background: #e04f5f;
    border: 2px solid #fff;
}

.system-notification-dropdown-header {
    padding: 16px 18px;
}

.system-notification-dropdown-title-group {
    min-width: 0;
}

.system-notification-dropdown-subtitle {
    display: none;
    font-size: 12px;
    line-height: 1.5;
}

.system-notification-dropdown-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e9edf3;
    background: #fff;
    padding-bottom: 12px !important;
}

.system-notification-dropdown-tip {
    display: none;
    color: #94a3b8;
    font-size: 12px;
    white-space: nowrap;
}

.system-notification-dropdown-body {
    min-height: 360px;
    max-height: 500px;
    background: #f5f7fa;
}

.system-notification-bell-list {
    list-style: none;
    margin: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.system-notification-bell-item {
    display: block;
    padding: 16px 16px 14px;
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.system-notification-bell-item.is-strong {
    border-color: #d9e3ee;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.system-notification-bell-item-main {
    min-width: 0;
}

.system-notification-bell-cover {
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #e8edf3;
    background: #f8fafc;
}

.system-notification-bell-cover img {
    display: block;
    width: 100%;
    height: 104px;
    object-fit: cover;
}

.system-notification-bell-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.system-notification-bell-title {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.system-notification-bell-title:hover {
    color: #24b3a4;
    text-decoration: none;
    cursor: pointer;
}

.system-notification-bell-summary {
    color: #697586;
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.system-notification-bell-time {
    color: #97a3b6;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    flex-shrink: 0;
}

.system-notification-bell-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
}

.system-notification-bell-actions .btn {
    min-width: 78px;
    border-radius: 8px;
}

.system-notification-bell-state {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #64748b;
}

.system-notification-bell-state span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.system-notification-bell-state .js-bell-retry {
    padding: 0;
    line-height: 1.2;
}

.system-notification-popup {
    text-align: center;
}

.system-notification-popup-shell {
    text-align: center;
    background: transparent;
}

.system-notification-popup-shell.is-strong {
}

.system-notification-popup-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin: 0 0 18px;
    color: #7b8794;
    font-size: 13px;
    line-height: 1.6;
}

.system-notification-popup-content {
    padding: 28px 14px 30px;
    background: transparent;
    border-top: 1px solid #edf1f5;
    border-bottom: 1px solid #edf1f5;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.system-notification-popup-shell.is-strong .system-notification-popup-content {
    box-shadow: none;
}

.system-notification-popup-cover {
    margin: 0 0 24px;
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.system-notification-popup-image-link {
    display: inline-block;
    max-width: 50%;
}

.system-notification-popup-cover img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 104px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e8edf3;
}

.system-notification-popup-richtext {
    color: #334155;
    font-size: 15px;
    line-height: 1.85;
    padding: 0 6px;
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.system-notification-popup-richtext > *:first-child {
    margin-top: 0;
}

.system-notification-popup-richtext > *:last-child {
    margin-bottom: 0;
}

.system-notification-popup-richtext img {
    display: block;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    margin: 16px auto;
    border: 1px solid #e8edf3;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.system-notification-popup-image-frame {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 50%;
    margin: 16px auto;
}

.system-notification-popup-image-frame::after {
    content: "\f00e";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
    pointer-events: none;
    opacity: 0.88;
}

.system-notification-popup-image-frame:hover img,
.system-notification-popup-image-frame:focus-within img {
    transform: translateY(-2px);
    border-color: #cfe6e3;
    box-shadow: 0 14px 28px rgba(36, 179, 164, 0.14);
}

.system-notification-popup-summary {
    color: #334155;
    line-height: 1.9;
    white-space: pre-wrap;
    font-size: 15px;
    margin: 0 auto;
    padding: 0 6px;
    max-width: 760px;
    text-align: left;
}

.system-notification-popup-attachment {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 22px auto 0;
    padding: 18px 6px 0;
    border-top: 1px dashed #d9e1ea;
    color: #64748b;
    font-size: 13px;
    max-width: 760px;
    text-align: left;
}

.system-notification-popup-attachment-label {
    font-weight: 600;
    color: #475569;
}

.system-notification-popup-attachment-link {
    border-color: transparent !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 0;
    padding-right: 0;
}

.system-notification-popup-attachment-link:hover,
.system-notification-popup-attachment-link:focus {
    border-color: transparent !important;
    box-shadow: none !important;
    background: transparent !important;
    text-decoration: underline;
}

.system-notification-popup-attachment a {
    color: #24b3a4;
    font-weight: 600;
}

.system-notification-popup-attachment a:hover {
    color: #1a8f83;
    text-decoration: none;
}

.system-notification-swal {
    border-radius: 14px;
    padding: 1.25rem 0 1.25rem;
}

.system-notification-swal-content {
    margin-top: 0.25rem;
}

.system-notification-swal-title {
    font-size: 20px;
    line-height: 1.4;
    color: #1f2937;
    margin-bottom: 20px;
}

.swal2-actions .system-notification-swal-confirm,
.swal2-actions .system-notification-swal-cancel {
    min-width: 112px;
    border-radius: 8px;
    margin: 0 4px;
}

.system-notification-detail-item.break strong {
    word-break: break-all;
}

.system-notification-empty-inline {
    padding: 24px;
    color: #6b7280;
    text-align: center;
    background: #f8fafc;
    border-radius: 12px;
}

.system-notification-main-card {
    min-width: 0;
}

.system-notification-basic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.system-notification-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 4px;
}

.system-notification-media-block {
    padding: 14px;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.system-notification-media-head {
    margin-bottom: 10px;
}

.system-notification-media-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.system-notification-media-subtitle {
    margin-top: 3px;
    font-size: 12px;
    color: #6b7280;
}

.system-notification-upload-input .btn {
    min-width: 112px;
}

.system-notification-upload-preview {
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.system-notification-upload-preview img {
    width: 128px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    flex: 0 0 auto;
}

.system-notification-upload-preview.attachment {
    align-items: center;
}

.system-notification-upload-preview-file {
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-notification-upload-preview-file i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #dbeafe;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
}

.system-notification-upload-preview-file-meta,
.system-notification-upload-preview-meta {
    min-width: 0;
}

.system-notification-upload-preview-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    word-break: break-all;
}

.system-notification-upload-preview-meta a,
.system-notification-upload-preview-file-meta a {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: #2563eb;
}


.system-notification-audience-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.system-notification-audience-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.system-notification-audience-head,
.system-notification-rule-head,
.system-notification-rule-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.system-notification-audience-title,
.system-notification-rule-title,
.system-notification-rule-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.system-notification-audience-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.system-notification-audience-overrides {
    padding: 14px;
    border-radius: 12px;
    border: 1px dashed #dbe3ee;
    background: #f8fafc;
    margin-bottom: 14px;
}

.system-notification-audience-overrides.is-disabled {
    opacity: 0.72;
}

.system-notification-rule-section {
    margin-top: 8px;
}

.system-notification-rule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.system-notification-rule-item {
    border: 1px solid #edf0f5;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.system-notification-tag-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.system-notification-tag-input.is-disabled {
    opacity: 0.72;
}

.system-notification-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 34px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #d9e2ec;
    background: #fff;
}

.system-notification-tag-empty {
    font-size: 12px;
    color: #94a3b8;
}

.system-notification-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
}

.system-notification-tag-text {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-notification-tag-remove {
    border: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.system-notification-rule-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.system-notification-scope-panel {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.system-notification-scope-panel .js-open-scope-selector-input {
    cursor: pointer;
    background: #fff;
}

.system-notification-selector-host {
    position: fixed;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: visible;
    z-index: 2050;
}

.system-notification-selector-host .dropdown {
    margin: 0;
}

.system-notification-selector-host .user-selector-modal {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    margin-top: 0 !important;
    z-index: 2051 !important;
}

.system-notification-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
    border: 1px dashed #d9e2ec;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    margin-top: 12px;
    padding: 18px;
    text-align: center;
}

.system-notification-empty-state i {
    font-size: 26px;
    color: #94a3b8;
}

@media (max-width: 991.98px) {
    .system-notification-layout {
        grid-template-columns: 1fr;
    }

    .system-notification-basic-grid,
    .system-notification-media-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .system-notification-upload-input .input-group-append {
        display: flex;
        flex-wrap: wrap;
    }

    .system-notification-upload-input .btn {
        min-width: 96px;
    }

    .system-notification-audience-head,
    .system-notification-rule-head,
    .system-notification-rule-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media (max-width: 1199px) {
    .system-notification-layout,
    .system-notification-detail-grid {
        grid-template-columns: 1fr;
    }

    .system-notification-detail-hero {
        flex-direction: column;
    }

    .system-notification-detail-hero-side {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .system-notification-grid {
        height: calc(100vh - 230px);
    }
}

@media (max-width: 768px) {
    .system-notification-page {
        padding: 0;
    }

    .system-notification-media-grid {
        grid-template-columns: 1fr;
    }

    .system-notification-detail-hero {
        flex-direction: column;
    }

    .system-notification-detail-hero-side {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .system-notification-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .system-notification-toolbar-left,
    .system-notification-toolbar-right {
        width: 100%;
    }

    .system-notification-grid {
        height: 560px;
        min-height: 560px;
    }
}

.system-notification-modal-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.system-notification-state.compact {
    min-height: 220px;
}

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

.system-notification-delivery-summary-item {
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.system-notification-delivery-summary-item span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.system-notification-delivery-summary-item strong {
    font-size: 22px;
    color: #111827;
}

.system-notification-delivery-summary-item.unread {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.system-notification-delivery-summary-item.read {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.system-notification-delivery-summary-item.confirm {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.system-notification-delivery-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.system-notification-delivery-column {
    border: 1px solid #edf0f5;
    border-radius: 14px;
    background: #fff;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.system-notification-delivery-column-title {
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f5;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.system-notification-delivery-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
}

.system-notification-delivery-person {
    border: 1px solid #edf0f5;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
}

.system-notification-delivery-person-main,
.system-notification-delivery-person-side {
    min-width: 0;
}

.system-notification-delivery-person-side {
    text-align: right;
}

.system-notification-delivery-person-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.system-notification-delivery-person-meta,
.system-notification-delivery-person-time {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .system-notification-delivery-summary,
    .system-notification-delivery-columns {
        grid-template-columns: 1fr;
    }
}
