/* Transactions Shortcode Styles */

.transactions-shortcode-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #FFFFFF;
    color: #333333;
    box-sizing: border-box;
}

/* Filters Container */
.filters-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    align-items: flex-end;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.filter-dropdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
    flex: 1;
}

.filter-dropdown label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    font-family: Arial, sans-serif;
}

.filter-dropdown select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #333;
    font-family: Arial, sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.filter-dropdown select:focus {
    outline: none;
    border-color: #1C447E;
    box-shadow: 0 0 0 3px rgba(28, 68, 126, 0.1);
}

.reset-btn {
    padding: 10px 20px;
    background: #1C447E;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    height: fit-content;
    white-space: nowrap;
}

.reset-btn:hover {
    background: #153a6b;
    transform: translateY(-1px);
}

.reset-btn:active {
    transform: translateY(0);
}

/* Transactions Grid */
.transactions-grid-container {
    position: relative;
    width: 100%;
}

.transactions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* =====================
   TRANSACTION CARD
   ===================== */
.transaction-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 0;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    animation: fadeInUp 0.6s ease forwards;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
}

.transaction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Card Top Section */
.card-top-section {
    padding: 25px 25px 15px 25px;
    text-align: center;
    flex: 1;
}

.company-logo {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.company-logo-img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 12px;
    object-fit: contain;
}

.valplast-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background-color: #FF0000;
    border-radius: 50%;
    margin: 0 auto 5px auto;
    position: relative;
}

.logo-v {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: 32px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    margin-top: -8px;
}

.logo-text {
    color: #000000;
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
}

.company-name {
    color: #000000;
    font-size: 16px;
    line-height: 22px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    margin-top: 5px;
    word-break: break-word;
}

/* Card Middle Section */
.card-middle-section {
    margin: 0;
}

.blue-bar {
    background-color: #1C447E;
    min-height: 50px;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    gap: 8px;
    flex-wrap: wrap;
}

.consumer-text {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    font-family: Arial, sans-serif;
    word-break: break-word;
    flex: 1;
}

.year-text {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    font-family: Arial, sans-serif;
    white-space: nowrap;
}

/* Card Bottom Section */
.card-bottom-section {
    margin: 0;
}

.grey-bar {
    background-color: #F5F5F5;
}

.deal-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 15px;
}

.deal-item {
    display: block;
    font-size: 14px;
    color: #333;
    line-height: 22px;
    font-weight: 400;
    word-break: break-word;
}

.deal-item + .deal-item {
    border-top: 1px solid #eee;
    padding-top: 4px;
}

/* No Transactions */
.no-transactions {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e1e1e1;
    color: #595A5E;
    font-size: 18px;
    margin: 40px 0;
}

.no-transactions p {
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transaction-card:nth-child(1) { animation-delay: 0.1s; }
.transaction-card:nth-child(2) { animation-delay: 0.2s; }
.transaction-card:nth-child(3) { animation-delay: 0.3s; }
.transaction-card:nth-child(4) { animation-delay: 0.4s; }
.transaction-card:nth-child(5) { animation-delay: 0.5s; }

/* =====================
   RESPONSIVE BREAKPOINTS
   ===================== */

/* Large Desktop */
@media (max-width: 1200px) {
    .transactions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    .transactions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .transactions-shortcode-container {
        padding: 18px;
    }

    .filters-container {
        gap: 15px;
        padding: 15px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .transactions-shortcode-container {
        padding: 12px;
    }

    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 15px;
    }

    .filter-dropdown {
        min-width: auto;
        width: 100%;
    }

    .filter-dropdown select {
        width: 100%;
    }

    .reset-btn {
        width: 100%;
        text-align: center;
    }

    /* 2 columns on tablet portrait */
    .transactions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .card-top-section {
        padding: 15px 15px 10px 15px;
    }

    .company-logo {
        min-height: 60px;
    }

    .company-logo-img {
        max-width: 60px;
        max-height: 60px;
    }

    .logo-circle {
        width: 50px;
        height: 50px;
    }

    .logo-v {
        font-size: 26px;
    }

    .logo-text {
        font-size: 11px;
    }

    .company-name {
        font-size: 13px;
        line-height: 18px;
    }

    .blue-bar {
        padding: 8px 12px;
        min-height: 44px;
    }

    .consumer-text,
    .year-text {
        font-size: 12px;
    }

    .deal-text {
        padding: 6px 12px;
    }

    .deal-item {
        font-size: 12px;
        line-height: 20px;
    }
}

/* Mobile - Single Column */
@media (max-width: 480px) {
    .transactions-shortcode-container {
        padding: 10px;
    }

    /* 1 column on mobile */
    .transactions-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .transaction-card {
        min-height: auto;
        border-radius: 12px;
    }

    .card-top-section {
        padding: 18px 18px 10px 18px;
        display: block;
        text-align: center;
    }

    .company-logo {
        min-height: 70px;
        margin-bottom: 10px;
    }

    .company-logo-img {
        max-width: 55px;
        max-height: 55px;
    }

    .logo-circle {
        width: 50px;
        height: 50px;
        margin: 0;
    }

    .logo-v {
        font-size: 24px;
    }

    .logo-text {
        font-size: 10px;
    }

    .company-name {
        font-size: 15px;
        line-height: 20px;
        margin-top: 5px;
        text-align: center;
    }

    .blue-bar {
        padding: 8px 18px;
        min-height: 42px;
        flex-wrap: nowrap;
    }

    .consumer-text {
        font-size: 13px;
    }

    .year-text {
        font-size: 13px;
    }

    .deal-text {
        padding: 8px 18px;
    }

    .deal-item {
        font-size: 13px;
        line-height: 22px;
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    .transactions-shortcode-container {
        padding: 8px;
    }

    .transactions-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .card-top-section {
        padding: 14px 14px 8px 14px;
        gap: 12px;
    }

    .company-logo-img {
        max-width: 45px;
        max-height: 45px;
    }

    .logo-circle {
        width: 42px;
        height: 42px;
    }

    .logo-v {
        font-size: 20px;
    }

    .logo-text {
        font-size: 9px;
    }

    .company-name {
        font-size: 13px;
        line-height: 18px;
    }

    .blue-bar {
        padding: 6px 14px;
        min-height: 38px;
    }

    .consumer-text,
    .year-text {
        font-size: 12px;
    }

    .deal-text {
        padding: 6px 14px;
    }

    .deal-item {
        font-size: 12px;
        line-height: 20px;
    }
}