body {
    background-color: #767676;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}




.nav-link {
    cursor: pointer;
}

.mini {
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: inherit;
    background-color: #feffeb;
    border: none;
    font-size: 18px;
    height: 26px;
    font-size: 15px;
    vertical-align: middle;
    font-weight: 600;
    border-radius: 5px;
}

.homelogo {
    opacity: 0.8;
    margin: 0 auto;
    display: block;
    margin-top: 10%;
    max-width: 80%;
    filter: drop-shadow(0 0 1px #fffffd);
}

.exitbtn {
    color: rgb(253, 252, 250);
    border-radius: 10px;
    margin-right: 5px;
    text-decoration: none;
    cursor: pointer;
}

.exitbtn :hover {
    color: rgba(245, 95, 49, 0.918);
    text-decoration: none;
    transition: all 0.2s;
}


.toast {
    opacity: 0.9 !important;
    user-select: none;
}

#toast-container > .toast {
  /* min-width: 450px; */
  max-width: 600px;
}


.hide {
    display: none;
}

#menu li {
    cursor: pointer;
}

.strong {
    font-weight: 700;
}

.mono {
    font-family: monospace;
}

/* Newsletter data layout */
.newsletter-data-shell {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    min-height: calc(100vh - 120px);
    padding: 16px 0 0;
    background: transparent;
}

.substep { display: none; }
.substep-info { display: block; }

.nl-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 18px;
    margin-bottom: 16px;
}

.substep-html,
.substep-preview {
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

.substep-html .nl-card,
.substep-preview .nl-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.nl-info-strip {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.nl-info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.nl-info-row > div {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metric-card .mini-chart {
    height: 28px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.mini-chart-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 100%);
}

.info-value {
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    border: none;
    background: transparent;
    padding: 0;
    width: 100%;
}

.audience-card {
    align-items: center;
    text-align: center;
    padding-top: 24px;
    padding-bottom: 24px;
}

.audience-total-large {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #0f172a;
    margin: 6px 0;
    border: none;
    background: transparent;
    text-align: center;
    width: 100%;
}

.audience-total-large:focus {
    outline: none;
    box-shadow: none;
}

.audience-caption {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    color: #6b7280;
}

/* removed */

.field-block {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.field-block > span {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
    white-space: nowrap;
}

.field-block input,
.field-block select {
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    color: #111827;
    min-height: 34px;
}

.inline-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.info-value.is-status {
    border-radius: 999px;
    padding: 6px 12px;
    text-align: center;
    font-size: 14px;
    background: #e5e7eb;
}

.info-value.is-status[data-state*='start'] {
    background: #fef3c7;
    color: #92400e;
}

.info-value.is-status[data-state*='sent'],
.info-value.is-status[data-state*='active'] {
    background: #dcfce7;
    color: #166534;
}

.info-value.is-status[data-state*='error'],
.info-value.is-status[data-state*='fail'] {
    background: #fee2e2;
    color: #b91c1c;
}

.nl-divider {
    border: none;
    border-top: 1px solid rgba(17, 24, 39, 0.1);
    margin: 16px 0;
}

.nl-form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nl-settings-panel,
.nl-subject-panel {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}

.nl-inline-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.nl-inline-row.subject-row {
    grid-template-columns: 1fr;
}

.nl-inline-divider {
    margin: 4px 0 0;
}

.nl-section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 12px;
}

.nl-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px;
}

.nl-stat {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 10px;
    background: #f9fafb;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #6b7280;
}

.stat-extra {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.nl-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.nl-code-block {
    width: 100%;
    min-height: 0;
    flex: 1;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #0a0a0a;
    color: #f9fafb;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    padding: 12px;
    resize: vertical;
}

.nl-stats-wrapper {
    position: relative;
    min-height: calc(100vh - 240px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#nl-stats-chart {
    width: 100%;
    height: calc(100vh - 260px);
}

#nl-stats-empty {
    position: absolute;
    font-size: 18px;
    color: #6b7280;
    text-align: center;
    padding: 0 20px;
}

.nl-stats-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.nl-stats-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nl-stats-controls label {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.nl-stats-controls select {
    min-width: 140px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    font-size: 14px;
    color: #111827;
    margin-top: 4px;
}

.info-value:focus,
.nl-form-grid input:focus,
.nl-form-grid select:focus {
    outline: none;
}

.nl-preview-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 8px;
}

.nl-preview-frame-wrapper {
    width: 100%;
    min-height: 0;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    overflow: auto;
}

.nl-html-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nl-html-controls label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

#nl_preview_device {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    font-size: 14px;
}

#nl-preview-frame {
    max-width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.15);
}

.shops-chart-shell {
    padding: 18px 12px 0;
}

.shops-chart-card {
    padding: 20px;
}

.shops-chart-controls {
    display: grid;
    grid-template-columns: 200px repeat(5, 140px);
    gap: 12px;
    margin-bottom: 16px;
    align-items: end;
}

.shops-chart-controls > label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}



.shops-chart-controls .ms-drop li {
    cursor: pointer;
}

.shops-chart-controls select {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    background: #fff;
    height: 40px;
    min-height: 40px;
    line-height: 40px;
    width: 140px;
}

.shops-chart-controls #list_template {
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 0 18px 0 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    height: 26px;
    min-height: 26px;
    line-height: 26px;
    width: 140px;
    box-sizing: border-box;
    display: block;
    margin: 0;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23888' d='M1 0l4 4 4-4 1 1-5 5-5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
}

.shops-chart-controls #list_template:focus {
    outline: none;
    box-shadow: none;
    border-color: #aaa;
}

.shops-chart-controls #list_template:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: #aaa;
}


.shops-chart-controls .ms-parent {
    width: 140px;
    display: block;
}

.shops-chart-controls #list_period,
.shops-chart-controls .ms-parent#list_period {
    width: 200px;
}



.shops-chart-controls .ms-choice > span.placeholder {
    color: transparent;
}

.shops-chart-canvas {
    width: 100%;
    height: calc(100vh - 220px);
    background: #f3f4f6;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 12px;
}

.shops-chart-canvas canvas {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    body .nl-inline-row {
        grid-template-columns: 1fr;
    }

    body .field-block {
        grid-template-columns: 1fr;
        gap: 4px;
        align-items: flex-start;
    }

    body .field-block > span {
        white-space: normal;
    }
}

.alleft {
    text-align: left;
}

.alright {
    text-align: right;
}

.alcenter {
    text-align: center;
}

.window {
    text-align: left;
    width: 100%;
    position: absolute;
    z-index: 9;
    /* background-color: #bebebe; */
    color: #000000;
    font-size: 18px;
}

.windowtitle {
    text-align: left;
    padding: 5px;
    z-index: 10;
    background: linear-gradient(#2d4753, #1b2b3d);
    color: #fff;
    user-select: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mainwindow {
    /* padding: 5px; */
    height: calc(100vh - 105px);
    overflow: auto;
}

.formborder {
    width: 100%;
    padding: 10px;
}

.status-active {
    background-color: lightgreen;
}

.status-inactive {
    background-color: lightgray;
}

.status-other {
    background-color: white;
}



/* --------------------------- */

.topnav {
    overflow: hidden;
    background: linear-gradient(#061c25, #000408);
}

.topnav div:first-child {
    display: none;
    background: linear-gradient(#061c25, #000408);
}

.topnav div {
    border-right: 1px solid rgb(36, 45, 124);
    background: linear-gradient(#03354d, #011e3f);
    float: left;
    display: block;
    user-select: none;
    color: #a4e2fa;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    cursor: pointer;
}

.topnav div:hover {
    background: linear-gradient(#2d7eb4, #0e353a);
    color: rgb(250, 206, 10);
    transition: all .3s ease;
}

.topnav div.active {
    background-color: #04AA6D;
    color: white;
}

.topnav .icon {
    display: none;
    border-right: unset;
}

.topnav .exit {
    color: rgb(231, 68, 27) !important;
    float: right !important;
    border-right: unset !important;
    border-left: 1px solid rgb(36, 45, 124);
}

@media screen and (max-width: 1100px) {

    body .topnav div:first-child {
        display: block;
    }

    body .topnav div {
        display: none;
        border: unset;
    }

    .topnav div.icon {
        float: right;
        display: block;
        background: linear-gradient(#2d7eb4, #0e353a) !important;
    }

    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive div {
        float: unset;
        display: block;
        text-align: left;
    }

    .topnav.responsive .exit {
        border-left: unset !important;
        float: unset !important;

    }
}


.dg_table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

.dg_table td {
    font-size: 15px;
    text-align: center;
    border: 1px solid #bbbaba;
    font-weight: 700;
    background-color: rgb(210, 233, 248);
}


.dg_table th {
    font-size: 15px;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 12px;
    background-image: linear-gradient(#0c5475, #1b2b3d);
    color: white;
}

/* CSS for a professional-looking compact table with fixed first column */
.compact-table {
    font-family: monospace;
    font-size: 15px;
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow-x: auto;
    /* Enable horizontal scrolling */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.compact-table td {
    border: 1px solid #ddd;
    padding: 2px;
    text-align: left;
    white-space: nowrap;
    background-color: #fff;
    color: #555;
}

.compact-table th {
    white-space: nowrap;
    font-size: 18px;
    border: none;
    padding: 2px 5px;
    text-align: left;
    background: linear-gradient(#e4e5e6, #bcbcbd);
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1;
}
