/*  =====================================================
Subheading with green border-left and bg color for Blogs 
(Can be used with any tag, added by Taqi on 28/4/26)
====================================================== */
.blog-subheading {
background-color: #f0f7f4;
color: #10b981;
padding: 10px 18px;
border-left: 4px solid #10B981;
border-radius: 0 6px 6px 0;
display: inline-block;
font-weight: 600;
}


/*  =====================================================
START: CTA Section With Image for Blogs 
(Used in Perpetual Inventory System)
Added by Taqi on 28/4/26 
====================================================== */
.cta-horiz-wrapper {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(145deg, #0F4C45, #024430);
    border-radius: 12px;
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: 0 10px 30px rgba(2, 68, 48, 0.15);
    font-family: 'Inter', system-ui, sans-serif;
}

.cta-horiz-img {
    flex: 1 1 20%; /* Adapts dynamically to a percentage of the wrapper */
    min-width: 200px; /* The absolute minimum width it will ever shrink to */
    max-width: 350px; /* Prevents it from getting too huge if the text is very short */
    background-color: #f0f7f4; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Target img directly */
.cta-horiz-wrapper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.cta-horiz-wrapper:hover img {
    transform: scale(1.05);
}

.cta-horiz-content {
    flex: 3 1 400px; /* Allows the content to organically take up the rest of the space */
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* Target headers directly inside the content wrapper */
.cta-horiz-content h1,
.cta-horiz-content h2,
.cta-horiz-content h3,
.cta-horiz-content h4,
.cta-horiz-content h5,
.cta-horiz-content h6,
.cta-horiz-content strong {
    color: #ffffff;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    font-weight: 700;
    font-size: 1.6rem !important;
}

/* Target paragraph directly */
.cta-horiz-content p {
    color: #e2e8f0;
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
}

.cta-horiz-btn {
    display: inline-flex;
    align-items: center;
    background-color: #00A651; 
    color: #ffffff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-horiz-btn:hover {
    background-color: #10b981;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cta-horiz-wrapper {
        flex-direction: column;
    }
    .cta-horiz-img {
        flex: 1 1 100%;
        max-width: 100%; /* Releases the desktop max-width constraint on mobile */
        padding: 1.5rem;
    }
    .cta-horiz-content {
        flex: 1 1 100%;
        padding: 2rem 1.5rem;
        align-items: center;
        text-align: center;
    }
    .cta-horiz-content h3 {
        font-size: 1.4rem;
    }
}
/* END: CTA Section With Image for Blogs */


/*  =====================================================
START: Journal Entry Table Styling for Blogs
(Used in Perpetual Inventory System)
Added by Taqi on 28/4/26
====================================================== */
/* Main Wrapper */
.journal-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', system-ui, sans-serif;
    margin: 1rem 0;
    overflow: hidden;
    max-width: 90%;
}

/* Unified Heading/Header Section */
.journal-wrapper :is(h3, h4, h5, h6, strong) {
    display: block; 
    background: #f0f7f4;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    margin: 0;
    color: #024430; 
    font-size: 1.15rem !important; /* Forced override as requested */
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 0; 
}

.journal-wrapper p {
  all: unset; /* Remove all default styling */
  display: block; /* restore default block behavior */
}

/* Strict Table Reset */
.journal-wrapper table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Prevent Theme from Injecting Border Radius on Table Headers */
.journal-wrapper table thead,
.journal-wrapper table thead tr,
.journal-wrapper table th,
.journal-wrapper table th:first-child,
.journal-wrapper table th:last-child {
    border-radius: 0 !important;
}

/* Strict Cell Resets */
.journal-wrapper table th,
.journal-wrapper table td {
    padding: 16px 24px;
    font-size: 0.95rem;
    border-left: none;
    border-right: none;
    border-top: none;
}

.journal-wrapper table th {
    background: #ffffff;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

/* Defeat Theme Odd/Even Row Striping */
.journal-wrapper table tbody tr,
.journal-wrapper table tbody tr:nth-child(odd),
.journal-wrapper table tbody tr:nth-child(even) {
    background-color: #ffffff;
    transition: background-color 0.2s ease;
    border-radius: 0;
    border: none;
}

/* Defeat Theme Hover States */
.journal-wrapper table tbody tr:hover,
.journal-wrapper table tbody tr:nth-child(odd):hover,
.journal-wrapper table tbody tr:nth-child(even):hover {
    background-color: #f8fafc; 
}

.journal-wrapper table td {
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-weight: 500;
    border-radius: 0;
}

.journal-wrapper table tbody tr:last-child td {
    border-bottom: none;
}

/* Accounting Standard: Indent the credited account */
.journal-wrapper table td.credit-account {
    padding-left: 48px;
    color: #64748b;
}

/* Numeric Value Styling */
.journal-wrapper table td.debit-val,
.journal-wrapper table td.credit-val {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 1.05rem;
}

/* Color Coding */
.journal-wrapper table td.debit-val {
    color: #10b981; 
}

.journal-wrapper table td.credit-val {
    color: #ef4444; 
}

.journal-wrapper table td.empty-val {
    color: #cbd5e1;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .journal-wrapper table th,
    .journal-wrapper table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    .journal-wrapper table td.credit-account {
        padding-left: 24px; 
    }
}
/* END: Journal Entry Table Styling for Blogs */