|
- :root {
- --page-background: #f4efe7;
- --surface: rgba(255, 252, 247, 0.88);
- --surface-strong: #fffdf8;
- --surface-border: rgba(26, 72, 64, 0.12);
- --text-primary: #143631;
- --text-secondary: #4f655f;
- --accent: #1d7a6d;
- --accent-strong: #135c52;
- --accent-soft: #daf1ec;
- --highlight: #ef7c4d;
- --shadow-soft: 0 18px 50px rgba(20, 54, 49, 0.1);
- --shadow-card: 0 20px 40px rgba(20, 54, 49, 0.08);
- }
-
- * {
- box-sizing: border-box;
- }
-
- [x-cloak] {
- display: none !important;
- }
-
- html {
- scroll-behavior: smooth;
- }
-
- body {
- margin: 0;
- min-height: 100vh;
- font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
- color: var(--text-primary);
- background:
- radial-gradient(circle at top left, rgba(239, 124, 77, 0.18), transparent 28%),
- radial-gradient(circle at top right, rgba(29, 122, 109, 0.18), transparent 32%),
- linear-gradient(180deg, #f8f2e8 0%, var(--page-background) 48%, #efe6da 100%);
- }
-
- a {
- color: inherit;
- }
-
- code {
- font-family: Consolas, "Courier New", monospace;
- }
-
- .page-shell {
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- }
-
- .container {
- width: min(1120px, calc(100% - 2rem));
- margin: 0 auto;
- }
-
- .site-header {
- position: sticky;
- top: 0;
- z-index: 20;
- backdrop-filter: blur(14px);
- background: rgba(248, 242, 232, 0.78);
- border-bottom: 1px solid rgba(20, 54, 49, 0.08);
- }
-
- .header-inner {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 1rem;
- padding: 1rem 0;
- }
-
- .brand {
- display: inline-flex;
- align-items: center;
- gap: 0.85rem;
- text-decoration: none;
- }
-
- .brand-mark {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 2.75rem;
- height: 2.75rem;
- border-radius: 0.95rem;
- background: linear-gradient(135deg, var(--accent), var(--highlight));
- color: #fff;
- font-weight: 700;
- letter-spacing: 0.08em;
- box-shadow: var(--shadow-soft);
- }
-
- .brand-copy {
- display: flex;
- flex-direction: column;
- line-height: 1.1;
- }
-
- .brand-copy strong {
- font-size: 1rem;
- }
-
- .brand-copy small {
- color: var(--text-secondary);
- font-size: 0.75rem;
- text-transform: uppercase;
- letter-spacing: 0.14em;
- }
-
- .site-nav {
- display: flex;
- align-items: center;
- gap: 0.6rem;
- flex-wrap: wrap;
- }
-
- .nav-user {
- padding: 0 0.4rem;
- color: var(--text-secondary);
- font-size: 0.88rem;
- font-weight: 600;
- }
-
- .nav-logout-form {
- display: contents;
- }
-
- .nav-link {
- text-decoration: none;
- color: var(--text-secondary);
- font-weight: 600;
- padding: 0.7rem 1rem;
- border-radius: 999px;
- transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
- }
-
- .nav-link:hover,
- .nav-link:focus-visible,
- .nav-link.is-active {
- color: var(--accent-strong);
- background: rgba(29, 122, 109, 0.12);
- transform: translateY(-1px);
- }
-
- .page-content {
- flex: 1;
- padding: 3.5rem 0 4rem;
- }
-
- .content-stack {
- display: grid;
- gap: 1.5rem;
- }
-
- .section-heading {
- max-width: 46rem;
- }
-
- .section-heading h1 {
- margin: 0.3rem 0 0.8rem;
- font-size: clamp(2.4rem, 5vw, 4rem);
- line-height: 1;
- letter-spacing: -0.04em;
- }
-
- .section-heading p {
- margin: 0;
- color: var(--text-secondary);
- line-height: 1.8;
- font-size: 1.05rem;
- }
-
- .hero {
- display: grid;
- grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
- gap: 1.5rem;
- align-items: stretch;
- }
-
- .hero-copy,
- .hero-panel,
- .feature-card,
- .section-panel,
- .alert,
- .empty-state {
- background: var(--surface);
- border: 1px solid var(--surface-border);
- box-shadow: var(--shadow-card);
- }
-
- .hero-copy {
- padding: 3rem;
- border-radius: 2rem;
- }
-
- .eyebrow {
- display: inline-block;
- margin-bottom: 1rem;
- padding: 0.4rem 0.75rem;
- border-radius: 999px;
- background: var(--accent-soft);
- color: var(--accent-strong);
- font-size: 0.78rem;
- font-weight: 700;
- text-transform: uppercase;
- letter-spacing: 0.14em;
- }
-
- .hero h1 {
- margin: 0;
- font-size: clamp(2.8rem, 6vw, 4.8rem);
- line-height: 0.98;
- letter-spacing: -0.04em;
- }
-
- .hero-text {
- max-width: 44rem;
- margin: 1.25rem 0 0;
- font-size: 1.12rem;
- line-height: 1.8;
- color: var(--text-secondary);
- }
-
- .hero-actions {
- display: flex;
- flex-wrap: wrap;
- gap: 0.85rem;
- margin-top: 2rem;
- }
-
- .button {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- padding: 0.9rem 1.35rem;
- border-radius: 999px;
- text-decoration: none;
- font-weight: 700;
- }
-
- .button-primary {
- background: linear-gradient(135deg, var(--accent), var(--accent-strong));
- color: #fff;
- box-shadow: 0 18px 30px rgba(19, 92, 82, 0.25);
- }
-
- .button-secondary {
- background: rgba(29, 122, 109, 0.08);
- color: var(--accent-strong);
- }
-
- .hero-panel {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- padding: 2rem;
- border-radius: 1.8rem;
- }
-
- .panel-label {
- margin: 0 0 1rem;
- font-size: 0.78rem;
- font-weight: 700;
- letter-spacing: 0.16em;
- text-transform: uppercase;
- color: var(--text-secondary);
- }
-
- .hero-panel code {
- display: block;
- padding: 1rem 1.1rem;
- border-radius: 1.2rem;
- background: #173d37;
- color: #eefbf6;
- line-height: 1.7;
- white-space: normal;
- }
-
- .route-callout {
- margin-top: 1.5rem;
- padding: 1rem 1.1rem;
- border-radius: 1.2rem;
- background: var(--surface-strong);
- }
-
- .route-callout span {
- display: block;
- margin-bottom: 0.45rem;
- color: var(--text-secondary);
- font-size: 0.92rem;
- }
-
- .route-callout a {
- color: var(--highlight);
- font-weight: 700;
- text-decoration: none;
- }
-
- .feature-grid {
- display: grid;
- grid-template-columns: repeat(3, minmax(0, 1fr));
- gap: 1.25rem;
- margin-top: 1.5rem;
- }
-
- .feature-card {
- padding: 1.75rem;
- border-radius: 1.6rem;
- }
-
- .feature-card h2 {
- margin-top: 0;
- margin-bottom: 0.8rem;
- font-size: 1.25rem;
- }
-
- .feature-card p {
- margin: 0;
- color: var(--text-secondary);
- line-height: 1.7;
- }
-
- .controls-panel,
- .table-shell {
- overflow: hidden;
- background:
- linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 242, 232, 0.88)),
- var(--surface);
- }
-
- .controls-header {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: 1rem;
- }
-
- .search-row {
- display: grid;
- grid-template-columns: minmax(0, 1fr);
- }
-
- .field-full {
- width: 100%;
- }
-
- .section-panel {
- padding: 1.75rem;
- border-radius: 1.8rem;
- }
-
- .panel-header {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: 1rem;
- flex-wrap: wrap;
- margin-bottom: 1.5rem;
- }
-
- .panel-actions {
- display: flex;
- align-items: center;
- gap: 0.5rem;
- flex-wrap: wrap;
- }
-
- .panel-header h2 {
- margin: 0 0 0.45rem;
- font-size: 1.45rem;
- }
-
- .panel-header p {
- margin: 0;
- color: var(--text-secondary);
- line-height: 1.7;
- }
-
- .job-type-table-stack {
- display: grid;
- gap: 1.5rem;
- }
-
- .job-type-table-group {
- display: grid;
- gap: 0.85rem;
- padding-top: 1.25rem;
- border-top: 1px solid rgba(20, 54, 49, 0.1);
- }
-
- .job-type-table-group:first-child {
- padding-top: 0;
- border-top: 0;
- }
-
- .job-type-table-heading {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 1rem;
- flex-wrap: wrap;
- }
-
- .job-type-table-heading h3 {
- margin: 0;
- font-size: 1.08rem;
- }
-
- .job-type-table-heading span {
- color: var(--text-secondary);
- font-size: 0.86rem;
- font-weight: 700;
- }
-
- .form-grid {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 1rem;
- }
-
- /* Campaign jobs table — horizontal scroll inside the panel */
- #campaign-jobs-page-table {
- overflow-x: auto;
- width: 100%;
- }
-
- .import-tabs {
- display: flex;
- gap: 0.25rem;
- margin-bottom: 1.25rem;
- border-bottom: 1px solid var(--surface-border);
- padding-bottom: 0;
- }
-
- .import-tab {
- padding: 0.55rem 1.1rem;
- border: none;
- background: none;
- cursor: pointer;
- font: inherit;
- font-weight: 600;
- color: var(--text-secondary);
- border-bottom: 2px solid transparent;
- margin-bottom: -1px;
- border-radius: 0;
- transition: color 120ms, border-color 120ms;
- }
-
- .import-tab:hover { color: var(--accent); }
- .import-tab.is-active { color: var(--accent-strong); border-bottom-color: var(--accent-strong); }
-
- .import-grid {
- display: grid;
- grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
- gap: 1rem;
- }
-
- .import-actions {
- margin-top: 1rem;
- flex-wrap: wrap;
- }
-
- .field {
- display: grid;
- gap: 0.45rem;
- font-weight: 600;
- }
-
- .field span {
- font-size: 0.96rem;
- }
-
- .input {
- width: 100%;
- padding: 0.95rem 1rem;
- border: 1px solid rgba(20, 54, 49, 0.16);
- border-radius: 1rem;
- background: rgba(255, 255, 255, 0.92);
- color: var(--text-primary);
- font: inherit;
- }
-
- .input:focus {
- outline: 2px solid rgba(29, 122, 109, 0.22);
- border-color: rgba(29, 122, 109, 0.45);
- }
-
- .field-error {
- color: #a43d1f;
- font-size: 0.88rem;
- font-weight: 600;
- }
-
- .form-actions {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- gap: 0.85rem;
- }
-
- .button {
- border: 0;
- cursor: pointer;
- }
-
- .htmx-indicator {
- display: none;
- }
-
- .htmx-request .htmx-indicator,
- .htmx-request.htmx-indicator {
- display: inline-flex;
- }
-
- .inline-indicator {
- color: var(--text-secondary);
- font-size: 0.9rem;
- font-weight: 600;
- }
-
- .alert,
- .empty-state {
- padding: 1rem 1.15rem;
- border-radius: 1.2rem;
- }
-
- .alert-success {
- background: rgba(218, 241, 236, 0.92);
- color: var(--accent-strong);
- }
-
- .alert-error {
- background: rgba(239, 124, 77, 0.14);
- color: #8f3518;
- }
-
- .empty-state p {
- margin: 0;
- color: var(--text-secondary);
- line-height: 1.7;
- }
-
- .empty-state p + p {
- margin-top: 0.45rem;
- }
-
- .stats-grid {
- display: grid;
- grid-template-columns: repeat(3, minmax(0, 1fr));
- gap: 0.9rem;
- }
-
- .stat-card {
- padding: 1rem;
- border-radius: 1.3rem;
- background: rgba(255, 255, 255, 0.72);
- border: 1px solid rgba(20, 54, 49, 0.08);
- }
-
- .stat-card span {
- display: block;
- color: var(--text-secondary);
- font-size: 0.82rem;
- text-transform: uppercase;
- letter-spacing: 0.08em;
- }
-
- .stat-card strong {
- display: block;
- margin-top: 0.45rem;
- font-size: 1.7rem;
- line-height: 1;
- }
-
- .summary-feature {
- margin-top: 1rem;
- padding: 1.15rem;
- border-radius: 1.3rem;
- background: linear-gradient(135deg, rgba(29, 122, 109, 0.12), rgba(239, 124, 77, 0.12));
- }
-
- .summary-label {
- display: block;
- color: var(--text-secondary);
- font-size: 0.82rem;
- text-transform: uppercase;
- letter-spacing: 0.08em;
- }
-
- .summary-feature h3 {
- margin: 0.55rem 0 0.3rem;
- font-size: 1.35rem;
- }
-
- .summary-feature p {
- margin: 0;
- color: var(--text-secondary);
- }
-
- .table-toolbar {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 1rem;
- margin-bottom: 1rem;
- flex-wrap: wrap;
- padding: 0.9rem 1rem;
- border: 1px solid rgba(20, 54, 49, 0.08);
- border-radius: 1rem;
- background: rgba(255, 255, 255, 0.58);
- }
-
- .table-pill {
- display: inline-flex;
- align-items: center;
- padding: 0.5rem 0.8rem;
- border-radius: 999px;
- background: rgba(29, 122, 109, 0.12);
- color: var(--accent-strong);
- font-size: 0.82rem;
- font-weight: 700;
- letter-spacing: 0.04em;
- }
-
- .table-caption {
- color: var(--text-secondary);
- font-size: 0.92rem;
- }
-
- .directory-panel .tabulator-host {
- min-height: 38rem;
- }
-
- .tabulator-host .tabulator {
- border: 1px solid var(--surface-border);
- border-radius: 1.35rem;
- overflow: hidden;
- background: rgba(255, 255, 255, 0.82);
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.5),
- 0 18px 35px rgba(20, 54, 49, 0.08);
- }
-
- .tabulator-host .tabulator-header {
- border-bottom: 1px solid rgba(20, 54, 49, 0.08);
- background: linear-gradient(180deg, rgba(29, 122, 109, 0.14), rgba(29, 122, 109, 0.08));
- }
-
- .tabulator-host .tabulator-header .tabulator-col {
- min-height: 3.25rem;
- background: transparent;
- border-right: 1px solid rgba(20, 54, 49, 0.06);
- }
-
- .tabulator-host .tabulator-header .tabulator-col:last-child {
- border-right: 0;
- }
-
- .tabulator-host .tabulator-header .tabulator-col .tabulator-col-content {
- padding: 0.9rem 0.95rem 0.85rem;
- }
-
- .tabulator-host .tabulator-header .tabulator-col .tabulator-col-title {
- font-size: 0.78rem;
- font-weight: 800;
- letter-spacing: 0.08em;
- text-transform: uppercase;
- color: var(--accent-strong);
- }
-
- .tabulator-host .tabulator-col,
- .tabulator-host .tabulator-cell {
- border-right: 1px solid rgba(20, 54, 49, 0.06);
- }
-
- .tabulator-host .tabulator-row .tabulator-cell:last-child {
- border-right: 0;
- }
-
- .tabulator-host .tabulator-row {
- background: rgba(255, 255, 255, 0.96);
- border-bottom: 1px solid rgba(20, 54, 49, 0.06);
- transition: background-color 160ms ease, transform 160ms ease;
- }
-
- .tabulator-host .tabulator-row:nth-child(even) {
- background: rgba(248, 242, 232, 0.82);
- }
-
- .tabulator-host .tabulator-row:hover {
- background: rgba(218, 241, 236, 0.72);
- }
-
- .tabulator-host .tabulator-row.tabulator-selected {
- background: rgba(29, 122, 109, 0.18);
- }
-
- .tabulator-host .tabulator-cell {
- padding: 0.95rem 0.95rem;
- font-size: 0.96rem;
- line-height: 1.4;
- }
-
- .tabulator-host .tabulator-row .tabulator-cell:first-child {
- font-weight: 700;
- color: var(--text-primary);
- }
-
- .tabulator-host .tabulator-footer {
- padding: 0.55rem 0.7rem;
- background: rgba(255, 255, 255, 0.88);
- border-top: 1px solid rgba(20, 54, 49, 0.08);
- }
-
- .tabulator-host .tabulator-footer .tabulator-paginator {
- font-family: inherit;
- }
-
- .tabulator-host .tabulator-footer .tabulator-page {
- margin: 0 0.2rem;
- padding: 0.45rem 0.7rem;
- border: 1px solid rgba(20, 54, 49, 0.1);
- border-radius: 0.8rem;
- background: rgba(255, 255, 255, 0.9);
- color: var(--text-secondary);
- font-weight: 700;
- }
-
- .tabulator-host .tabulator-footer .tabulator-page.active,
- .tabulator-host .tabulator-footer .tabulator-page:hover {
- background: linear-gradient(135deg, var(--accent), var(--accent-strong));
- border-color: transparent;
- color: #fff;
- }
-
- .tabulator-host .tabulator-footer .tabulator-page:disabled {
- opacity: 0.45;
- }
-
- .tabulator-host .tabulator-placeholder {
- padding: 2.5rem 1rem;
- color: var(--text-secondary);
- font-size: 1rem;
- font-weight: 600;
- }
-
- .site-footer {
- margin-top: auto;
- border-top: 1px solid rgba(20, 54, 49, 0.08);
- background: rgba(255, 252, 247, 0.72);
- }
-
- .footer-inner {
- display: flex;
- justify-content: space-between;
- gap: 1rem;
- padding: 1.25rem 0 2rem;
- color: var(--text-secondary);
- font-size: 0.95rem;
- }
-
- .footer-inner p {
- margin: 0;
- }
-
- @media (max-width: 860px) {
- .header-inner,
- .footer-inner {
- flex-direction: column;
- align-items: flex-start;
- }
-
- .hero,
- .feature-grid {
- grid-template-columns: 1fr;
- }
-
- .controls-header,
- .table-toolbar {
- flex-direction: column;
- align-items: flex-start;
- }
-
- .hero-copy,
- .hero-panel {
- padding: 2rem;
- }
-
- .form-grid {
- grid-template-columns: 1fr;
- }
-
- .import-grid {
- grid-template-columns: 1fr;
- }
-
- .stats-grid {
- grid-template-columns: 1fr;
- }
-
- .page-content {
- padding-top: 2rem;
- }
- }
-
- @media (max-width: 560px) {
- .container {
- width: min(100% - 1.25rem, 1120px);
- }
-
- .site-nav {
- width: 100%;
- }
-
- .nav-link {
- width: 100%;
- text-align: center;
- }
-
- .hero h1 {
- font-size: 2.5rem;
- }
- }
-
- /* ── Campaign Types ─────────────────────────────────────────────────── */
-
- .page-toolbar {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: 1.5rem;
- flex-wrap: wrap;
- }
-
- .page-toolbar .section-heading {
- margin: 0;
- }
-
- .page-toolbar .section-heading h1 {
- margin: 0 0 0.4rem;
- }
-
- .button-danger {
- background: linear-gradient(135deg, #c0392b, #962d22);
- color: #fff;
- box-shadow: 0 8px 20px rgba(192, 57, 43, 0.28);
- border: none;
- cursor: pointer;
- }
-
- .button-danger:hover,
- .button-danger:focus-visible {
- background: linear-gradient(135deg, #d44637, #c0392b);
- }
-
- .button-sm {
- padding: 0.4rem 0.85rem;
- font-size: 0.82rem;
- border-radius: 999px;
- border: none;
- cursor: pointer;
- }
-
- .ct-form {
- display: grid;
- gap: 2rem;
- }
-
- .form-section {
- display: grid;
- gap: 1rem;
- }
-
- .form-section h3 {
- margin: 0;
- font-size: 1.05rem;
- }
-
- .attributes-header {
- display: flex;
- flex-direction: column;
- gap: 0.25rem;
- }
-
- .attributes-hint {
- margin: 0;
- color: var(--text-secondary);
- font-size: 0.9rem;
- }
-
- .attribute-list {
- display: grid;
- gap: 0.6rem;
- }
-
- .attribute-row {
- display: flex;
- align-items: flex-end;
- gap: 0.75rem;
- flex-wrap: wrap;
- }
-
- .attr-drag-handle {
- cursor: grab;
- padding: 0 0.3rem;
- color: var(--text-secondary);
- font-size: 1.25rem;
- user-select: none;
- align-self: flex-end;
- padding-bottom: 0.6rem;
- line-height: 1;
- }
-
- .attr-drag-handle:active {
- cursor: grabbing;
- }
-
- .attribute-row.is-dragging {
- opacity: 0.35;
- }
-
- .attribute-row.is-drag-over {
- outline: 2px dashed var(--accent);
- border-radius: 0.8rem;
- background: var(--accent-soft);
- }
-
- .attribute-order-field {
- flex: 0 0 5rem;
- min-width: 5rem;
- }
-
- .attribute-order-field .input {
- text-align: center;
- }
-
- .attribute-name-field {
- flex: 2;
- min-width: 160px;
- }
-
- .attribute-type-field {
- flex: 1;
- min-width: 110px;
- }
-
- .attribute-remove {
- padding-bottom: 0.1rem;
- }
-
- .field-full {
- width: 100%;
- }
-
- .input-error {
- border-color: #c0392b !important;
- }
-
- .required-mark {
- color: #c0392b;
- }
-
- .delete-zone {
- margin-top: 2.5rem;
- padding-top: 1.5rem;
- border-top: 1px solid rgba(192, 57, 43, 0.2);
- }
-
- .delete-zone h4 {
- margin: 0 0 0.35rem;
- color: #c0392b;
- font-size: 0.95rem;
- }
-
- .delete-zone p {
- margin: 0 0 1rem;
- color: var(--text-secondary);
- font-size: 0.88rem;
- }
-
- .attr-summary {
- color: var(--text-secondary);
- font-size: 0.88rem;
- }
-
- .attr-empty {
- color: var(--text-secondary);
- opacity: 0.45;
- }
|