body {
    background: #f8f9fa;
}

.newsletter-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.newsletter-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 16px 20px;
}

.newsletter-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.newsletter-subtitle {
    font-size: 13px;
    color: #6c757d;
}

.newsletter-toolbar .btn {
    margin-left: 6px;
}

.newsletter-table th,
.newsletter-table td {
    vertical-align: middle;
}

.newsletter-table th {
    white-space: nowrap;
}

.newsletter-empty {
    padding: 30px 15px;
    text-align: center;
    color: #6c757d;
}

.newsletter-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
}

.newsletter-actions .btn {
    margin-right: 4px;
}

html,
body {
    min-height: 100%;
}

body.newsletter-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.newsletter-shell {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.newsletter-page {
    padding: 20px;
    flex: 1 0 auto;
}

.newsletter-footer-wrap {
    flex-shrink: 0;
    margin-top: auto;
}

.newsletter-footer {
    position: relative;
    padding: 6px 15px;
    background-color: #333;
    color: #fff;
}

.newsletter-footer-left {
    text-align: center;
    padding-right: 180px;
}

@media (max-width: 768px) {
    .newsletter-footer-left {
        padding-right: 0;
        text-align: center;
    }

    .newsletter-footer-right {
        position: static;
        transform: none;
        margin-top: 4px;
        text-align: center;
    }

    .newsletter-footer {
        text-align: center;
    }
}

.newsletter-navbar {
    background-color: #9c232d !important;
    min-height: 39px;
    display: flex;
    align-items: center;
    width: 100%;
}

.newsletter-brand {
    background-color: #7a1d25;
    padding: 0 0;
    min-height: 39px;
    margin-right: 12px;
}

.newsletter-brand-box {
    width: 58px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6a1720;
}

.newsletter-brand-logo {
    max-width: 40px;
    max-height: 28px;
    object-fit: contain;
}

.newsletter-brand-text {
    margin-left: 10px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.newsletter-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.newsletter-nav .nav-item {
    display: flex;
    align-items: center;
}

.newsletter-nav .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    padding: 0.55rem 0.75rem;
    white-space: nowrap;
}

.newsletter-footer-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    text-align: center;
}

.newsletter-footer-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .newsletter-footer-center {
        position: static;
        transform: none;
        display: block;
        text-align: center;
    }

    .newsletter-footer-right {
        position: static;
        transform: none;
        display: block;
        margin-top: 4px;
        text-align: center;
    }
}

.hero-image-upload-area {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-upload-prompt,
.hero-image-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-image-upload-prompt p,
.hero-image-preview p {
    margin-bottom: 0.35rem;
}

.hero-image-preview img {
    display: block;
    max-width: 100%;
    height: auto;
}

.hero-image-preview .btn-group {
    justify-content: center;
}

.newsletter-card .card-body .form-group {
    margin-bottom: 1rem;
}

.newsletter-image-slot {
    border: 1px dashed #d8dee4;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.newsletter-slot-preview {
    min-height: 180px;
    border-radius: 6px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.newsletter-slot-preview img {
    display: block;
    max-width: 100%;
    height: auto;
}

.template-rule-pill {
    font-size: 12px;
}

.newsletter-footer-wrap {
    background: #333;
    color: white;
    padding: 10px;
    margin-top: 30px;
}
 
.newsletter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
.newsletter-footer-center {
    flex: 1;
    text-align: center;
}
 
.newsletter-footer-right {
    display: flex;
    align-items: center;
}
 
.newsletter-footer-right a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
}
 
.newsletter-footer-right a:hover {
    color: white;
}
.newsletter-preview-frame {
    background: #f2efea;
    padding: 24px 12px;
}

.newsletter-preview-frame .card-body {
    background: #f2efea;
}

.newsletter-preview-hint {
    color: #8d8088;
    font-size: 12px;
    text-align: center;
}
/* #f2efea Background Color */
/* bg for Intro: #ebebeb */
/* สีของ Product / Travel Update Header: #d46018 */
/* Intro Date Subject #000 */
/* สี menu bar (THAULAND  l      VIETNAM    l    CAMBODIA   l   LAOS   l   MTANMAR ): #972626 */
/* สีปุ่ม Contact us: #1e0c05 */
/* คำว่า "View more online": #972626 */
/* wording "you may  unsubscribed or change contact at any time" ล่าง footer: #8d8088 */