/* ======================================================== Notification Service — Admin Panel Styles ======================================================== */ :root { --sidebar-bg: #1a1d23; --sidebar-active: #0d6efd; --sidebar-muted: #8a929e; --content-bg: #f0f2f5; --card-shadow: 0 2px 8px rgba(0,0,0,.10), 0 0 1px rgba(0,0,0,.08); } /* ── Body ─────────────────────────────────────────────── */ body { background-color: var(--content-bg); font-size: .9rem; } /* ── Navbar ───────────────────────────────────────────── */ .admin-navbar { border-bottom: 1px solid rgba(255,255,255,.07); box-shadow: 0 2px 6px rgba(0,0,0,.4); min-height: 52px; align-items: center; gap: .5rem; padding-inline: 1rem; } .admin-navbar .navbar-brand { font-size: .95rem; font-weight: 700; letter-spacing: .02em; } .admin-api-documentation { margin-left: auto; padding-block: .25rem; color: #f8f9fa; font-size: .85rem; white-space: nowrap; } .admin-api-documentation:hover { color: #fff; } .admin-api-documentation:focus-visible { outline: 2px solid #f8f9fa; outline-offset: 3px; } @media (max-width: 575.98px) { .admin-navbar { padding-inline: .5rem; } .admin-navbar .navbar-brand { margin-right: 0; font-size: .85rem; } .admin-api-documentation { font-size: .8rem; } } /* ── Sidebar ──────────────────────────────────────────── */ .sidebar { min-height: calc(100vh - 52px); background-color: var(--sidebar-bg); border-right: 1px solid rgba(255,255,255,.05); padding: 1.25rem 0 1rem; } .sidebar-section-label { font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sidebar-muted); padding: .25rem 1.25rem .5rem; } .sidebar .nav-link { color: #adb5bd; border-radius: 0 .375rem .375rem 0; margin: .1rem .75rem .1rem 0; padding: .5rem 1rem; font-size: .85rem; display: flex; align-items: center; gap: .6rem; border-left: 3px solid transparent; transition: background .15s, color .15s, border-color .15s; } .sidebar .nav-link:hover { color: #fff; background-color: rgba(255,255,255,.06); border-left-color: rgba(255,255,255,.2); } .sidebar .nav-link.active { color: #fff; background-color: rgba(13,110,253,.2); border-left-color: var(--sidebar-active); font-weight: 600; } .sidebar .nav-link .bi { font-size: .95rem; flex-shrink: 0; } /* ── Main content ─────────────────────────────────────── */ .main-content { padding: 1.75rem 2rem; } /* ── Page header ──────────────────────────────────────── */ .page-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: .875rem; margin-bottom: 1.5rem; border-bottom: 1px solid #dee2e6; } .page-header h2 { margin: 0; font-size: 1.25rem; font-weight: 700; color: #212529; display: flex; align-items: center; gap: .45rem; } /* ── Table card ───────────────────────────────────────── */ .table-card { border: none; border-radius: .5rem; box-shadow: var(--card-shadow); overflow: hidden; } .table { font-size: .875rem; } .table tbody tr td { vertical-align: middle; } .table thead th { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; } /* ── Administration list grids ────────────────────────── */ .admin-data-table { border: 1px solid #b8c4d3; } .admin-data-table :is(a, button, input, select, textarea) { scroll-margin-inline: .5rem; } .admin-data-table > thead > tr > th { --bs-table-bg: #dce7f6; --bs-table-color: #243a55; border-bottom: 2px solid #aec0db; vertical-align: middle; } .admin-data-table > tbody > tr > td:first-child { overflow-wrap: anywhere; } .admin-data-table > :not(caption) > * > * + * { border-left: 1px solid #b8c4d3; } .admin-data-table .list-action-links { display: inline-flex; align-items: center; gap: .375rem; } .admin-delete-confirmation { overflow-wrap: anywhere; } /* ── List actions ─────────────────────────────────────── */ .admin-data-table .template-actions, .admin-data-table .service-actions, .admin-data-table .channel-actions { width: 1%; white-space: nowrap; } .admin-data-table .template-actions, .admin-data-table .service-actions, .admin-data-table .channel-actions, .admin-data-table .service-language-actions { text-align: center; } .page-header .service-template-service-name { min-width: 0; overflow-wrap: anywhere; } .service-template-service-name + .btn { flex-shrink: 0; } /* ── Service template catalog and filters ─────────────── */ .service-template-grid .template-key-filter .btn-outline-secondary { --bs-btn-bg: #fff; } .service-template-catalog, .template-language-statuses { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; } .service-template-language-code { padding: .15rem .4rem; border: 1px solid #dce3eb; border-radius: .25rem; background: #fff; overflow-wrap: anywhere; } .template-key-filter { min-width: 9rem; max-width: 32rem; font-weight: 400; letter-spacing: normal; text-transform: none; } .template-key-filter-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .375rem; } .template-key-filter-controls .form-control { flex: 1 1 9rem; min-width: 0; } .template-language-statuses { margin: 0; padding: 0; list-style: none; } .template-language-status { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .2rem .4rem; border: 1px solid; border-radius: .25rem; font-size: .75rem; overflow-wrap: anywhere; } .template-language-present { color: #146c43; background: #e8f5ec; border-color: #b7dcc0; } .template-language-missing { color: #825800; background: #fff4df; border-color: #f3d19e; } /* ── Service language actions ─────────────────────────── */ .service-language-table .service-language-actions { width: 1%; } .service-language-table .service-language-action-buttons { display: flex; justify-content: center; gap: .5rem; } .service-language-table .service-language-action-buttons > .btn { white-space: nowrap; } .service-language-table .form-control { min-width: 4rem; } @media (max-width: 575.98px) { .service-language-table .service-language-action-buttons { flex-direction: column; align-items: center; } .service-language-table .service-language-action-buttons > .btn { white-space: normal; } } /* ── Empty state ──────────────────────────────────────── */ .empty-state { text-align: center; padding: 3.5rem 2rem; color: var(--sidebar-muted); } .empty-state .bi { font-size: 2.5rem; opacity: .35; display: block; margin-bottom: .75rem; } .empty-state p { font-size: .9rem; margin-bottom: 0; } /* ── Editor wrapper ──────────────────────────────────── */ .editor-wrapper { width: 100%; max-width: none; } /* ── Editor card ──────────────────────────────────────── */ .editor-card { border: none; border-radius: .5rem; box-shadow: var(--card-shadow); } .editor-card-header-bar { background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%); color: #fff; padding: 1rem 1.25rem; border-bottom: none; display: flex; align-items: center; border-radius: .5rem .5rem 0 0 !important; } .editor-card-body { padding: 1.5rem 1.5rem 1rem; } .editor-card-header-bar .editor-card-title { display: flex; align-items: center; gap: .625rem; min-width: 0; margin: 0; font-size: 1.375rem; font-weight: 600; line-height: 1.3; } .editor-card-title > .bi { flex-shrink: 0; } .editor-card-title > span { min-width: 0; overflow-wrap: anywhere; } .editor-card-footer { background-color: #f8f9fa; border-top: 1px solid #e9ecef; padding: .875rem 1.5rem; display: flex; justify-content: flex-end; gap: .5rem; border-radius: 0 0 .5rem .5rem !important; } /* ── Editor tabs ─────────────────────────────────────── */ .template-editor-tabs { border-bottom-color: #dce3eb; } .template-editor-tabs .nav-link { color: #526072; font-weight: 600; border-radius: .5rem .5rem 0 0; } .template-editor-tabs .nav-link.active { color: #0d6efd; } /* ── Tab content ──────────────────────────────────────── */ .tab-content { min-width: 0; } /* ── Template service context ─────────────────────────── */ .template-editor-breadcrumbs .breadcrumb-item, .service-template-breadcrumbs .breadcrumb-item, .service-editor-breadcrumbs .breadcrumb-item { min-width: 0; max-width: 100%; overflow-wrap: anywhere; } .template-service-context { margin: 0 0 .5rem; } .template-service-context > dt { margin-bottom: .25rem; color: #6b7280; font-size: .75rem; font-weight: 600; } .template-service-context > dd { margin: 0; color: #1f2937; font-size: 1.25rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; } .template-service-edit-link:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; } /* ── Template language sheet ──────────────────────────── */ .template-language-sheet { min-width: 0; border: 1px solid #dce3eb; border-radius: .5rem; background: #fff; } .template-language-sheet > .nav-tabs { flex-wrap: nowrap; gap: .25rem; margin: 0; padding: .5rem .5rem 0; border-bottom: 0; border-radius: .5rem .5rem 0 0; background: #f3f6fb; overflow-x: auto; scrollbar-width: thin; } .template-language-sheet > .nav-tabs .nav-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .375rem; margin-bottom: 0; white-space: nowrap; } .template-language-sheet > .nav-tabs .nav-link.active { border-color: #dce3eb #dce3eb #fff; background: #fff; } .template-language-sheet > .nav-tabs .nav-link:focus-visible { outline: 2px solid #0d6efd; outline-offset: -3px; } .template-language-sheet > #languagePanes { padding: 1rem; } .template-language-sheet .language-pane > :last-child { margin-bottom: 0 !important; } /* ── Email template preview ───────────────────────────── */ .template-preview-panel { border: 1px solid #dce3eb; border-radius: .75rem; background: #fff; overflow: hidden; box-shadow: 0 10px 24px rgba(15, 23, 42, .06); } .template-preview-panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 1.25rem; background: linear-gradient(180deg, #f9fbff 0%, #f3f6fb 100%); border-bottom: 1px solid #e1e7ef; } .template-preview-title { font-size: .9rem; font-weight: 700; color: #1f2937; } .template-preview-subtitle { font-size: .82rem; color: #6b7280; margin-top: .15rem; } .template-preview-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1rem 1.25rem 1.25rem; } .template-preview-source, .template-preview-output { min-width: 0; } .template-preview-section-block { padding: 1rem; border: 1px solid #e5ebf2; border-radius: .65rem; background: #fafcff; } .template-preview-section-title { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; margin-bottom: .5rem; } .template-preview-variables { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem 1rem; max-width: none; } .template-preview-variables > div { margin-bottom: 0 !important; } .template-preview-variables .form-label { font-size: .72rem; margin-bottom: .2rem; } .template-preview-variables .form-control-sm { background: #fff; min-height: calc(1.5em + .45rem + 2px); padding: .2rem .45rem; font-size: .82rem; } .template-preview-subject { padding: .75rem 1rem; border: 1px dashed #cfd8e3; border-radius: .5rem; background: #f8fafc; min-height: 3rem; font-weight: 600; color: #111827; white-space: pre-wrap; word-break: break-word; } .template-preview-frame { width: 100%; height: 80px; border: 1px solid #cfd8e3; border-radius: .5rem; background: #eef2f7; } .template-preview-text { padding: .75rem 1rem; border: 1px solid #cfd8e3; border-radius: .5rem; background: #0f172a; color: #e2e8f0; min-height: 120px; white-space: pre-wrap; word-break: break-word; } @media (max-width: 992px) { .template-preview-body { grid-template-columns: 1fr; } } /* ── Form-section divider ─────────────────────────────── */ .form-section-title { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sidebar-muted); padding-bottom: .4rem; margin-bottom: 1rem; border-bottom: 1px solid #dee2e6; } /* ── Form fields ──────────────────────────────────────── */ .form-label { font-size: .82rem; margin-bottom: .3rem; } .form-control[readonly] { background-color: #f4f5f7; border-color: #e2e5e9; color: #6c757d; cursor: not-allowed; } textarea.form-control { resize: vertical; }