/* style.css */

:root {
    --primary-color: #5C6BC0; /* Soft Indigo */
    --primary-light: #8E99F3;
    --primary-dark: #26418F;
    --success-color: #2E7D32; /* Soft Green */
    --danger-color: #C62828;  /* Soft Red */
    --warning-color: #F9A825; /* Soft Gold */
    --background-color: #F3F5F9; /* Very Soft Lavender/Gray Background */
    --card-bg: rgba(255, 255, 255, 0.75);
    --border-color: rgba(255, 255, 255, 0.5);
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    
    /* Fonts requested by user */
    --font-thai: 'Noto Sans Thai', 'Sarabun', sans-serif;
    --font-eng: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-thai);
    background-color: var(--background-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    /* Soft glowing background gradients */
    background-image: 
        radial-gradient(at 10% 10%, rgba(142, 153, 243, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(46, 125, 50, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Glassmorphism Styles */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

/* Typography override for numbers & English labels */
h1, h2, h3, h4, th, td, .card-icon, .user-name {
    font-family: var(--font-thai);
}
/* English code and numerical amounts look extremely clean in Cambria */
.card-body h3, .table td:nth-child(3), .table td:nth-child(4), .ref-code, .amount, .date, .badge {
    font-family: var(--font-eng);
    font-weight: bold;
}

/* Page View States */
.page-view {
    display: none;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-view.active {
    display: flex;
}

.hidden {
    display: none !important;
}

/* Login Page Styles */
.login-card {
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    margin: 20px;
}

.login-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.login-header h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Form Controls */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: var(--font-thai);
    transition: all 0.3s ease;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-thai);
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: #e0e0e0;
    color: var(--text-primary);
}
.btn-secondary:hover {
    background-color: #d5d5d5;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}
.btn-success:hover {
    background-color: #1b5e20;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}
.btn-danger:hover {
    background-color: #8b0000;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
    padding: 12px;
}

/* Layout Structure */
.workspace {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    border-radius: 0 24px 24px 0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 40px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.4);
    margin-bottom: 30px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: bold;
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    background: rgba(92, 107, 192, 0.15);
    color: var(--primary-dark);
    font-weight: bold;
}

.badge {
    background: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-left: auto;
}

.main-content {
    flex-grow: 1;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.top-header h1 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

/* Dashboard Views and Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.card-header h4 {
    color: var(--primary-dark);
    font-weight: bold;
}

.card-body h3 {
    font-size: 2rem;
    margin-top: 10px;
}

.card-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: bold;
}

.card-icon {
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-size: 6rem;
    opacity: 0.08;
    transform: rotate(-15deg);
}

.card-income {
    background: linear-gradient(135deg, rgba(232, 245, 233, 0.8) 0%, rgba(200, 230, 201, 0.8) 100%);
}
.card-income h3 { color: var(--success-color); }

.card-expense {
    background: linear-gradient(135deg, rgba(255, 235, 235, 0.8) 0%, rgba(255, 205, 210, 0.8) 100%);
}
.card-expense h3 { color: var(--danger-color); }

.card-balance {
    background: linear-gradient(135deg, rgba(232, 240, 254, 0.8) 0%, rgba(198, 218, 252, 0.8) 100%);
}
.card-balance h3 { color: var(--primary-dark); }

.grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    text-align: left;
}

.table th, .table td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
    font-size: 1.05rem;
}

.table th {
    background: rgba(0, 0, 0, 0.02);
    font-weight: bold;
    color: var(--primary-dark);
    font-size: 1.05rem;
}

.table-hover tbody tr:hover {
    background: rgba(92, 107, 192, 0.05);
    cursor: pointer;
}

/* Search Filters Card */
.search-filters-card {
    margin-bottom: 25px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto;
    align-items: flex-end;
    gap: 15px;
}

.filter-actions-group {
    display: flex;
    gap: 10px;
}

/* Dynamic List Groups */
.list-group {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Table Expansion for sub-transactions */
.detail-row {
    background: rgba(255, 255, 255, 0.5);
}

.detail-row td {
    padding: 20px 30px;
}

.sub-detail-box {
    border-left: 3px solid var(--primary-light);
    padding-left: 20px;
}

.sub-detail-box h5 {
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* Interactive Grid Input (Google Sheets style) */
.grid-table-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.grid-table th {
    position: sticky;
    top: 0;
    z-index: 10;
}

.grid-table input, .grid-table select {
    border: none;
    background: transparent;
    width: 100%;
    padding: 8px;
    font-size: 0.9rem;
    font-family: var(--font-thai);
}

.grid-table input:focus, .grid-table select:focus {
    outline: none;
    background: #eef2fa;
    border-radius: 4px;
}

.grid-table td {
    padding: 2px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.grid-actions {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 90%;
    overflow-y: auto;
    padding: 30px;
    animation: modal-anim 0.3s ease;
}

.modal-sm {
    max-width: 450px;
}

@keyframes modal-anim {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
}

.modal-header h3 {
    color: var(--primary-dark);
}

.close-modal, .close-settlement-modal {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

/* Sub-transactions Section inside Form Modal */
.sub-tx-section {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.sub-tx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.validation-warning {
    background: rgba(198, 40, 40, 0.1);
    color: var(--danger-color);
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Bottom Navigation Bar for Mobile */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 16px 16px 0 0;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
}

.bottom-nav .nav-item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    padding: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-secondary);
}

.bottom-nav .nav-item i {
    font-size: 1.25rem;
}

.bottom-nav .nav-item.active {
    color: var(--primary-color);
    background: transparent;
}

/* Reports Styles */
.reports-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.report-tab {
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-thai);
    transition: all 0.3s ease;
}

.report-tab.active {
    background: var(--primary-color);
    color: white;
}

.report-section {
    padding: 25px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.filter-row input, .filter-row select {
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
}

.project-summary-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.p-summary-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.table-total {
    font-weight: bold;
    background: rgba(0, 0, 0, 0.02);
}

.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }

/* Responsive adjustments */
@media (max-width: 992px) {
    .sidebar {
        display: none;
    }
    
    .workspace {
        padding-bottom: 65px; /* Leave space for bottom nav */
    }

    .bottom-nav {
        display: flex !important;
    }
    
    .main-content {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .grid-two-cols {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .project-summary-box {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Settings Page Styling */
.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
}

.settings-tab {
    padding: 10px 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-thai);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.settings-tab:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.settings-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(92, 107, 192, 0.2);
}

.settings-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.settings-section-header h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.settings-section-content {
    animation: settingsFadeIn 0.4s ease;
}

@keyframes settingsFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.permission-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    font-family: var(--font-thai);
    font-size: 0.95rem;
}

.permission-checkbox-item input {
    width: auto !important;
    cursor: pointer;
    margin: 0;
}



/* Dashboard Redesign Styling */
.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(92, 107, 192, 0.15) 0%, rgba(142, 153, 243, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-text h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.hero-icons {
    font-size: 2.2rem;
    color: var(--primary-color);
    opacity: 0.8;
    display: flex;
    gap: 15px;
}

.stats-five-cols {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.stat-icon {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info h3 {
    font-size: 1.25rem;
    font-family: var(--font-eng);
    font-weight: bold;
    margin-bottom: 2px;
}

.stat-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: bold;
}

/* Colors for stats */
.stat-blue .stat-icon { color: #2196F3; }
.stat-blue { border-left: 5px solid #2196F3; }

.stat-green .stat-icon { color: #4CAF50; }
.stat-green { border-left: 5px solid #4CAF50; }

.stat-yellow .stat-icon { color: #FFC107; }
.stat-yellow { border-left: 5px solid #FFC107; }

.stat-red .stat-icon { color: #F44336; }
.stat-red { border-left: 5px solid #F44336; }

.stat-purple .stat-icon { color: #9C27B0; }
.stat-purple { border-left: 5px solid #9C27B0; }

/* Donut Chart Styling */
.donut-chart-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.donut-chart-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.donut-chart {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.donut-center {
    width: 110px;
    height: 110px;
    background: var(--background-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.donut-center h3 {
    font-size: 1.3rem;
    font-family: var(--font-eng);
    color: var(--text-primary);
}

.donut-center span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Alert List Styling */
.alert-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0,0,0,0.02);
    font-size: 0.9rem;
}

.alert-item-icon {
    font-size: 1.2rem;
}

.alert-item-text {
    flex-grow: 1;
}

.alert-item-text strong {
    font-family: var(--font-eng);
    font-size: 0.95rem;
}

/* Tabbed Table Buttons */
.dashboard-table-tabs {
    display: flex;
    background: rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 10px 20px 0;
    gap: 15px;
}

.table-tab {
    padding: 10px 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-thai);
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.table-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Bottom Three Columns */
.bottom-three-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Quick Actions Box */
.quick-actions-row {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    padding: 15px;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 110px;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.action-icon.bg-blue { background: #2196F3; }
.action-icon.bg-green { background: #4CAF50; }
.action-icon.bg-orange { background: #FF9800; }
.action-icon.bg-purple { background: #9C27B0; }

.quick-action-btn span {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-primary);
    text-align: center;
}

/* Media Queries for Dashboard Layout */
@media (max-width: 992px) {
    .stats-five-cols {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .bottom-three-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .stats-five-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-hero {
        padding: 15px 20px;
    }
    .hero-icons {
        display: none;
    }
}

/* ==========================================================================
   🔍 READABILITY & ACCESSIBILITY TYPOGRAPHY UPGRADE (Thai & English readable)
   ========================================================================== */

/* 1. Global Font-size Scale Up */
body {
    font-size: 1.15rem; /* Large and readable default */
}

/* 2. Tables and cells */
.table th, .table td {
    font-size: 1.15rem;
    padding: 16px 12px;
}
.table th {
    font-size: 1.15rem;
}

/* 3. Global Input, Select, Textarea, and Button sizing */
input, select, textarea, button {
    font-size: 1.15rem !important; /* Force high readability */
    font-family: var(--font-thai);
}

/* Make form labels slightly larger too */
.input-group label {
    font-size: 1.15rem;
}

/* 4. Split-transaction (Form Table) Controls - Solve small inputs shown in screenshot */
#split-lines-body select, 
#split-lines-body input {
    font-size: 1.15rem !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: var(--text-primary) !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

#split-lines-body select.split-entity { width: 140px !important; }
#split-lines-body select.split-category { width: 140px !important; }
#split-lines-body select.split-contact { width: 140px !important; }
#split-lines-body select.split-project { width: 130px !important; }
#split-lines-body input.split-note { width: 150px !important; }
#split-lines-body input.split-amount { width: 100px !important; }
#split-lines-body input.split-wht { width: 80px !important; }

/* 5. Custom Table Header Filter Inputs */
.table-header-filter {
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    background-color: #ffffff !important;
    color: var(--text-primary) !important;
    font-size: 0.95rem !important;
    font-weight: normal !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    margin-top: 6px;
    width: 100%;
    box-sizing: border-box;
}
.table-header-filter::placeholder {
    color: #888888;
}

/* 6. Settings tab buttons font-size */
.settings-tab {
    font-size: 1.1rem !important;
}

/* 7. Modal Titles */
.modal-header h3 {
    font-size: 1.45rem;
}

.quick-action-btn span {
    font-size: 1rem !important;
}

