/* General Styles */
.hola-frontend-wrapper {
 max-width: 960px;
 margin: 20px auto;
 padding: 20px;
 background-color: #f9f9f9;
 border: 1px solid #ddd;
 border-radius: 5px;
}

.hola-portal-title {
 margin-bottom: 20px;
 text-align: center;
 color: #333;
}

.hola-portal-nav ul {
 list-style: none;
 padding: 0;
 margin: 0 0 20px 0;
 display: flex;
 border-bottom: 2px solid #eee;
}

.hola-portal-nav li {
 margin-right: 20px;
}

.hola-portal-nav li a {
 display: block;
 padding: 10px 15px;
 text-decoration: none;
 color: #555;
}

.hola-portal-nav li.active a,
.hola-portal-nav li a:hover {
 color: #007bff;
}

.hola-portal-content {
 overflow-x: auto; /* For potential horizontal scrolling of tables */
}

/* === NEW: Frontend Header Styles === */
.hola-frontend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.hola-frontend-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.hola-frontend-header .button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.hola-frontend-header .button:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}


/* Report Table Responsive Styles */
.hola-report-table {
 width: 100%;
 border-collapse: collapse;
 margin-bottom: 20px;
}

.hola-report-table th,
.hola-report-table td {
 padding: 8px 12px;
 border: 1px solid #ddd;
 text-align: left;
}

.hola-report-table th {
 background-color: #f2f2f2;
}

/* Mobile view for report table (adjust breakpoints as needed) */
@media (max-width: 768px) {
 .hola-report-table thead {
  display: none;
 }

 .hola-report-table tr {
  display: block;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
 }

 .hola-report-table td {
  display: block;
  padding-left: 50%;
  position: relative;
  border: none;
 }

 .hola-report-table td:before {
  content: attr(data-label);
  position: absolute;
  left: 10px;
  width: 45%;
  padding-right: 10px;
  white-space: nowrap;
  font-weight: bold;
 }
}

/* Transactions Table Styles */
.hola-transactions-table {
 width: 100%;
 border-collapse: collapse;
 margin-bottom: 20px;
}

.hola-transactions-table th,
.hola-transactions-table td {
 padding: 8px 12px;
 border: 1px solid #ddd;
 text-align: left;
}

.hola-transactions-table th {
 background-color: #f2f2f2;
}

.hola-transactions-table .actions a {
 margin-right: 5px;
 text-decoration: none;
}

/* Mobile view for transactions as boxes */
.hola-mobile-transactions {
 display: none; /* Hidden by default on larger screens */
}

@media (max-width: 768px) {
 .hola-transactions-table {
  display: none; /* Hide the default table on mobile */
 }

 .hola-mobile-transactions {
  display: block;
 }

 .hola-transaction-item {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
 }

 .hola-transaction-item p {
  margin: 5px 0;
 }

 .hola-transaction-item .actions a {
  margin-right: 5px;
  text-decoration: none;
 }
}

/* Report Summary Styles (adjust as needed) */
.hola-report-summary {
 margin-top: 20px;
 text-align: right;
}

.hola-report-summary p {
 margin: 5px 0;
 font-weight: bold;
}

/* Print Button Style */
.hola-print-button {
 display: inline-block;
 padding: 8px 15px;
 background-color: #007bff;
 color: white;
 border: none;
 border-radius: 5px;
 text-decoration: none;
 cursor: pointer;
 margin-bottom: 10px;
}

.hola-print-button:hover {
 background-color: #0056b3;
}
@media (max-width: 760px) {
    /* এই ক্লাসের নামটি আপনার ট্রানজেকশন টেবিলের আসল ক্লাসের সাথে মিলিয়ে নিন */
    /* সাধারণত ওয়ার্ডপ্রেস টেবিলের জন্য .wp-list-table ক্লাসটি ব্যবহৃত হয় */
    .wp-list-table thead {
        /* টেবিলের হেডার (Date, Vendor, Type..) লুকিয়ে ফেলা হবে */
        display: none;
    }

    .wp-list-table tr {
        /* প্রতিটি সারিকে কার্ডের মতো দেখানোর জন্য */
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        padding: 15px;
        background-color: #ffffff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

    .wp-list-table td {
        /* প্রতিটি সেলকে আলাদা লাইনে দেখানোর জন্য */
        display: block;
        text-align: right; /* ডেটা ডানদিকে থাকবে */
        position: relative;
        padding-left: 50%; /* বাম পাশে লেবেলের জন্য জায়গা তৈরি */
        border: none;
        line-height: 1.7;
    }

    .wp-list-table td:before {
        /* প্রতিটি ডেটার সামনে তার শিরোনাম (label) দেখানোর জন্য */
        content: attr(data-label); /* HTML-এর data-label থেকে শিরোনাম নেবে */
        position: absolute;
        left: 15px;
        width: 45%;
        font-weight: bold;
        text-align: left; /* লেবেল বামদিকে থাকবে */
        color: #333;
    }
    
    /* অ্যাকশন বাটনগুলোর জন্য বিশেষ স্টাইল */
    .wp-list-table td[data-label="Actions"] .transaction-actions,
    .wp-list-table td[data-label="Actions"] .vendor-actions {
        width: 100%;
    }
#print-report-btn {
	top: 5px !important;
	right: 5px !important;
}
table.wp-list-table.widefat.fixed.striped td.col-amount {
    width: 100%;
}
}

/* === HOLA Portal Login Form Styles === */
.hola-login-page-body {
    position: fixed; /* Use fixed positioning to overlay the page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999; /* Ensure it's on top of other content */
    box-sizing: border-box;
}

.hola-login-form-container {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hola-login-form-container h3 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.hola-login-form-container .hola-error {
    background: #ffdddd;
    color: #d8000c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ffacac;
    text-align: center;
}

.hola-login-form-container .form-row {
    margin-bottom: 20px;
    text-align: left;
}

.hola-login-form-container label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

.hola-login-form-container input[type="text"],
.hola-login-form-container input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 16px;
}

.hola-login-form-container input[type="text"]:focus,
.hola-login-form-container input[type="password"]:focus {
    border-color: #764ba2;
    box-shadow: 0 0 8px rgba(118, 75, 162, 0.2);
    outline: none;
}
.hola-frontend-header .button, .hola-login-form-container .button.button-primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hola-login-form-container .button.button-primary:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}
