/* =============================================
   نظام لجنة الزكاة — style.css النهائي
   ============================================= */

:root {
    /* الألوان الأساسية */
    --green:        #1a5c38;
    --green-dark:   #124028;
    --green-light:  #2e8b5a;
    --gold:         #c8a84b;
    --white:        #ffffff;
    --bg:           #f0f4f1;
    --text:         #1a2e22;
    --text-2:       #5a7a66;
    --border:       #dae4dd;
    --red:          #c0392b;
    --green-ok:     #1a7a47;
    --orange:       #d68910;
    --blue:         #1a6080;

    /* aliases للتوافق مع الكود القديم */
    --primary:      #1a5c38;
    --primary-dark: #124028;
    --primary-light:#2e8b5a;
    --accent:       #c8a84b;
    --bg-light:     #f0f4f1;
    --bg-white:     #ffffff;
    --text-dark:    #1a2e22;
    --text-muted:   #5a7a66;
    --danger:       #c0392b;
    --success:      #1a7a47;
    --warning:      #d68910;
    --info:         #1a6080;
    --sidebar-w:    256px;

    /* أبعاد ثابتة */
    --sb-w:    256px;
    --mob-h:   54px;
    --bn-h:    62px;
    --r:       12px;
    --r-sm:    8px;
}

/* =============================================
   Reset
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

/* =============================================
   تسجيل الدخول
   ============================================= */
.login-page {
    min-height: 100dvh;
    background: linear-gradient(160deg, var(--green-dark), var(--green) 55%, var(--green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.login-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.login-logo  { display:block; max-width:160px; max-height:100px; object-fit:contain; margin:0 auto 22px; }
.login-title { text-align:center; font-size:1.05rem; font-weight:800; color:var(--green-dark); margin-bottom:4px; }
.login-subtitle { text-align:center; font-size:.82rem; color:var(--text-2); margin-bottom:26px; }
.btn-login {
    background: var(--green); color: #fff; border: none;
    border-radius: 12px; padding: 13px; font-family: 'Cairo', sans-serif;
    font-size: .97rem; font-weight: 800; width: 100%; cursor: pointer;
    transition: background .2s; box-shadow: 0 4px 14px rgba(26,92,56,.3);
}
.btn-login:hover { background: var(--green-dark); }

/* =============================================
   تخطيط الديسكتوب
   ============================================= */
.admin-layout  { display: flex; min-height: 100vh; }
.main-content  { flex: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* =============================================
   السايدبار — الكود الأساسي (مشترك بين جوال وديسكتوب)
   ============================================= */
.sidebar {
    width: var(--sb-w);
    background: var(--green-dark);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    /* لا نضع position هنا — سيُحدَّد بالـ @media */
}
.sidebar-header {
    padding: 20px 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: center;
    flex-shrink: 0;
}
.sidebar-logo {
    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.sidebar-nav { flex: 1; padding: 10px 8px; overflow-y: auto; }
.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { margin-bottom: 1px; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px; color: rgba(255,255,255,.7);
    text-decoration: none; font-size: .86rem; font-weight: 600;
    border-radius: 9px; transition: background .15s, color .15s;
}
.sidebar-nav a i { width: 18px; text-align: center; font-size: .9rem; flex-shrink: 0; }
.sidebar-nav a:hover  { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-nav a.active { background: var(--green-light); color: #fff; }
.sidebar-footer {
    padding: 14px 12px;
    border-top: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.logout-btn {
    display: flex; align-items: center; gap: 9px;
    color: rgba(255,255,255,.55); text-decoration: none;
    font-size: .84rem; font-weight: 600;
    padding: 9px 11px; border-radius: 9px; transition: all .15s;
}
.logout-btn:hover { color: #ff7070; background: rgba(255,0,0,.1); }
.sb-sep {
    padding: 10px 12px 3px;
    font-size: .64rem; color: rgba(255,255,255,.32);
    font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}

/* =============================================
   هيدر الجوال — مخفي افتراضياً
   ============================================= */
.mob-header {
    display: none;
    position: fixed; top: 0; right: 0; left: 0;
    height: var(--mob-h);
    background: var(--green-dark);
    z-index: 500;
    align-items: center;
    padding: 0 12px; gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.mob-menu-btn {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.12); border: none; border-radius: 9px;
    color: #fff; font-size: .95rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; -webkit-tap-highlight-color: transparent;
}
.mob-menu-btn:active { background: rgba(255,255,255,.22); }
.mob-title {
    flex: 1; font-size: .92rem; font-weight: 700; color: #fff;
    text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--gold); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .85rem; flex-shrink: 0;
}

/* =============================================
   Overlay السايدبار — مخفي افتراضياً
   ============================================= */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 498;
    -webkit-tap-highlight-color: transparent;
}
.sidebar-overlay.show { display: block; }

/* زر فتح القائمة على الجوال — مخفي افتراضياً */
.sidebar-toggle {
    display: none;
    position: fixed; top: 9px; right: 9px;
    z-index: 501; /* فوق الـ overlay */
    background: var(--green-dark); color: #fff;
    border: none; border-radius: 10px;
    width: 40px; height: 40px;
    font-size: 1rem; cursor: pointer;
    align-items: center; justify-content: center;
    box-shadow: 0 3px 12px rgba(0,0,0,.35);
    -webkit-tap-highlight-color: transparent;
}

/* =============================================
   شريط التنقل السفلي — مخفي افتراضياً
   ============================================= */
.bottom-nav {
    display: none;
    position: fixed; bottom: 0; right: 0; left: 0;
    height: calc(var(--bn-h) + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--border);
    z-index: 400;
    align-items: stretch;
    box-shadow: 0 -3px 16px rgba(0,0,0,.07);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bn-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    color: var(--text-2); text-decoration: none;
    font-size: .62rem; font-weight: 700; padding: 6px 2px;
    border: none; background: none; cursor: pointer;
    font-family: 'Cairo', sans-serif;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s; position: relative;
}
.bn-item i { font-size: 1.2rem; transition: transform .18s; }
.bn-item.is-active { color: var(--green); }
.bn-item.is-active i { transform: scale(1.1); }
.bn-item.is-active::after {
    content: ''; position: absolute; top: 0;
    left: 20%; right: 20%; height: 2.5px;
    background: var(--green); border-radius: 0 0 4px 4px;
}

/* =============================================
   رأس الصفحة — ديسكتوب
   ============================================= */
.page-header {
    background: var(--white); padding: 16px 26px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; position: sticky; top: 0; z-index: 100;
    flex-shrink: 0;
}
.page-header h1 { font-size: 1.15rem; font-weight: 800; color: var(--green-dark); margin: 0; display: flex; align-items: center; gap: 8px; }
.page-header h1 i { color: var(--green); }
.page-header .breadcrumb { font-size: .76rem; color: var(--text-2); margin-top: 2px; }
.page-body { padding: 22px 26px; flex: 1; }

/* =============================================
   بطاقات لوحة التحكم
   ============================================= */
.dashboard-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card {
    background: var(--white); border-radius: var(--r);
    padding: 16px 14px; display: flex; align-items: center; gap: 13px;
    border: 1px solid var(--border); transition: transform .18s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-icon { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.stat-icon.green  { background: #e4f4ec; color: var(--green-ok); }
.stat-icon.red    { background: #fdecea; color: var(--red); }
.stat-icon.yellow { background: #fdf5e0; color: var(--orange); }
.stat-icon.blue   { background: #e4eff8; color: var(--blue); }
.stat-info .number { font-size: 1.65rem; font-weight: 900; color: var(--green-dark); line-height: 1; }
.stat-info .label  { font-size: .74rem; color: var(--text-2); margin-top: 3px; }

.action-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.action-card {
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: var(--r); padding: 18px 10px;
    text-align: center; text-decoration: none; color: var(--text);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    transition: all .18s;
}
.action-card:hover { border-color: var(--green); background: #f0f8f4; color: var(--green-dark); transform: translateY(-2px); }
.action-card i { font-size: 1.5rem; color: var(--green); }
.action-card span { font-size: .78rem; font-weight: 700; }

/* =============================================
   البطاقات والنماذج
   ============================================= */
.card-section { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); margin-bottom: 14px; overflow: hidden; }
.card-section-header { background: var(--green); color: #fff; padding: 12px 16px; font-size: .88rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-section-body { padding: 16px 14px; }

.form-label { font-weight: 700; font-size: .83rem; color: var(--green-dark); margin-bottom: 4px; display: block; }
.form-control, .form-select {
    border: 1.5px solid var(--border); border-radius: 10px;
    padding: 10px 12px; font-family: 'Cairo', sans-serif; font-size: .9rem;
    width: 100%; background: #f8fbf9; color: var(--text);
    transition: border-color .18s, box-shadow .18s;
    -webkit-appearance: none; appearance: none;
}
.form-control:focus, .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,92,56,.1); background: #fff; outline: none; }
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235a7a66' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: left 11px center; background-size: 13px; padding-left: 32px;
}
textarea.form-control { resize: vertical; min-height: 88px; }
.form-text { font-size: .75rem; color: var(--text-2); margin-top: 4px; }

.btn-add-row { background: none; border: 2px dashed var(--green); color: var(--green); border-radius: 9px; padding: 8px 14px; font-family: 'Cairo', sans-serif; font-size: .82rem; font-weight: 700; cursor: pointer; transition: all .18s; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.btn-add-row:hover { background: var(--green); color: #fff; }
.btn-remove-row { background: #fdecea; border: none; color: var(--red); border-radius: 8px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .82rem; transition: all .18s; flex-shrink: 0; }
.btn-remove-row:hover { background: var(--red); color: #fff; }
.btn-save { background: var(--green); color: #fff; border: none; border-radius: 11px; padding: 13px 28px; font-family: 'Cairo', sans-serif; font-size: .97rem; font-weight: 800; cursor: pointer; transition: background .18s; box-shadow: 0 4px 14px rgba(26,92,56,.28); display: inline-flex; align-items: center; gap: 8px; }
.btn-save:hover { background: var(--green-dark); }
.btn-search { background: var(--green); color: #fff; border: none; border-radius: 10px; padding: 11px 18px; font-family: 'Cairo', sans-serif; font-size: .88rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .18s; display: inline-flex; align-items: center; gap: 6px; }
.btn-search:hover { background: var(--green-dark); }

/* =============================================
   الجداول
   ============================================= */
.table-wrapper { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); overflow: hidden; }
.table-header { padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.table-header h2 { font-size: .92rem; font-weight: 800; color: var(--green-dark); margin: 0; }
table.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.data-table th { background: var(--green); color: #fff; padding: 11px 13px; font-weight: 700; font-size: .8rem; white-space: nowrap; text-align: right; }
table.data-table td { padding: 11px 13px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #f4f9f6; }

.badge-eligible   { background: #e4f4ec; color: var(--green-ok); padding: 4px 10px; border-radius: 20px; font-size: .76rem; font-weight: 700; white-space: nowrap; display: inline-block; }
.badge-ineligible { background: #fdecea; color: var(--red);      padding: 4px 10px; border-radius: 20px; font-size: .76rem; font-weight: 700; white-space: nowrap; display: inline-block; }
.badge-review     { background: #fdf5e0; color: var(--orange);   padding: 4px 10px; border-radius: 20px; font-size: .76rem; font-weight: 700; white-space: nowrap; display: inline-block; }

/* =============================================
   البحث والتفاصيل
   ============================================= */
.search-box-wrap { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); padding: 18px; margin-bottom: 14px; }
.search-input-group { display: flex; gap: 8px; }
.search-input-group .form-control { flex: 1; }
.result-card { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); overflow: hidden; }
.result-header { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; padding: 16px 18px; }
.result-header .name { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.result-header .civil { font-size: .8rem; opacity: .82; }
.result-body { padding: 18px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; margin-bottom: 16px; }
.info-item label { display: block; font-size: .7rem; color: var(--text-2); font-weight: 700; margin-bottom: 2px; text-transform: uppercase; }
.info-item .value { font-size: .88rem; font-weight: 700; color: var(--text); }
.eligibility-box { border-radius: 11px; padding: 13px 15px; margin-top: 14px; display: flex; align-items: flex-start; gap: 11px; }
.eligibility-box.eligible   { background: #e4f4ec; border: 1.5px solid #a8dab5; }
.eligibility-box.ineligible { background: #fdecea; border: 1.5px solid #f5aeaa; }
.eligibility-box.review     { background: #fdf5e0; border: 1.5px solid #f0d78a; }
.eligibility-box .icon { font-size: 1.5rem; flex-shrink: 0; }
.eligibility-box .elig-title  { font-size: .92rem; font-weight: 800; }
.eligibility-box .elig-reason { font-size: .78rem; margin-top: 4px; color: var(--text); line-height: 1.5; }

.alert-custom { border-radius: 10px; padding: 12px 14px; font-size: .86rem; font-weight: 600; display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; }
.alert-error   { background: #fdecea; color: var(--red);      border: 1px solid #f5aeaa; }
.alert-success { background: #e4f4ec; color: var(--green-ok); border: 1px solid #a8dab5; }
.alert-warning { background: #fdf5e0; color: var(--orange);   border: 1px solid #f0d78a; }

.income-summary-box { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; border-radius: 11px; padding: 15px 18px; margin-top: 12px; }
.income-summary-box .row-sum { display: flex; justify-content: space-between; padding: 5px 0; font-size: .84rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.income-summary-box .row-sum:last-child { border-bottom: none; }
.income-summary-box .total-row { font-size: .98rem; font-weight: 800; padding-top: 9px; }

.empty-state { text-align: center; padding: 44px 20px; color: var(--text-2); }
.empty-state i { font-size: 2.6rem; margin-bottom: 11px; display: block; opacity: .35; }
.empty-state p { font-size: .88rem; }

.form-type-label { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 13px 15px; border: 2px solid var(--border); border-radius: 11px; flex: 1; min-width: 140px; transition: all .18s; background: #f8fbf9; }
.form-type-label:hover { border-color: var(--green); background: #f0f8f4; }
.form-type-label strong { display: block; font-size: .86rem; color: var(--green-dark); }
.form-type-label small  { font-size: .74rem; color: var(--text-2); }
.form-type-radio { width: 17px; height: 17px; accent-color: var(--green); flex-shrink: 0; }

.spouse-block { background: #f8fbf9; border: 1.5px solid var(--border); border-radius: 11px; padding: 14px; margin-bottom: 12px; }
.spouse-title { font-weight: 700; color: var(--green-dark); font-size: .83rem; margin-bottom: 11px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.btn-add-spouse { background: none; border: 2px dashed var(--green); color: var(--green); border-radius: 9px; padding: 8px 13px; font-family: 'Cairo', sans-serif; font-size: .81rem; font-weight: 700; cursor: pointer; transition: all .18s; display: inline-flex; align-items: center; gap: 6px; }
.btn-add-spouse:hover { background: var(--green); color: #fff; }
.btn-remove-spouse { background: #fdecea; border: 1px solid #f5aeaa; color: var(--red); border-radius: 6px; padding: 4px 9px; font-family: 'Cairo', sans-serif; font-size: .76rem; cursor: pointer; transition: all .18s; display: inline-flex; align-items: center; gap: 4px; }
.btn-remove-spouse:hover { background: var(--red); color: #fff; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photo-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; position: relative; background: #f5f7f5; }
.photo-card img { width: 100%; height: 100px; object-fit: cover; display: block; }
.photo-card .photo-info { padding: 6px 8px; font-size: .71rem; }

/* =============================================
   الفلترة
   ============================================= */
#filterForm .form-control,
#filterForm .form-select { padding: 9px 11px; font-size: .86rem; }

/* =============================================
   DESKTOP — فوق 768px
   ============================================= */
@media (min-width: 769px) {
    /* السايدبار ثابت على اليمين */
    .sidebar {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: var(--sb-w);
        z-index: 300;
        overflow-y: auto;
        overflow-x: hidden;
        /* لا transform هنا — يبقى ظاهراً */
    }
    /* المحتوى يبدأ بعد السايدبار */
    .main-content { margin-right: var(--sb-w); }

    /* إخفاء عناصر الجوال */
    .sidebar-toggle  { display: none !important; }
    .sidebar-overlay { display: none !important; }
    .mob-header      { display: none !important; }
    .bottom-nav      { display: none !important; }

    /* شبكة البطاقات */
    .dashboard-cards { grid-template-columns: repeat(4, 1fr); }
    .action-cards    { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (min-width: 1100px) {
    .page-body   { padding: 26px 30px; }
    .page-header { padding: 18px 30px; }
}

/* =============================================
   MOBILE — تحت 768px
   ============================================= */
@media (max-width: 768px) {

    /* السايدبار: مخفي خارج الشاشة، يفتح بـ slide */
    .sidebar {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: min(80vw, 280px) !important;
        z-index: 850;
        transform: translateX(105%);
        transition: transform .28s cubic-bezier(.4, 0, .2, 1);
        overflow-y: auto;
        overflow-x: hidden;
    }
    .sidebar.open {
        transform: translateX(0) !important;
    }

    /* إظهار زر فتح القائمة */
    .sidebar-toggle {
        display: flex !important;
        position: fixed; top: 9px; right: 9px;
        z-index: 502;
        background: var(--green-dark); color: #fff;
        border: none; border-radius: 10px;
        width: 40px; height: 40px;
        font-size: 1rem; cursor: pointer;
        align-items: center; justify-content: center;
        box-shadow: 0 3px 12px rgba(0,0,0,.35);
        -webkit-tap-highlight-color: transparent;
    }

    /* Overlay */
    .sidebar-overlay {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,.55);
        z-index: 849;
    }
    .sidebar-overlay.show { display: block !important; }

    /* layout الجوال */
    .admin-layout { display: block; }
    .main-content {
        margin-right: 0 !important;
        padding-top: var(--mob-h) !important;
        padding-bottom: calc(var(--bn-h) + env(safe-area-inset-bottom, 0px)) !important;
        min-height: 100dvh;
    }

    /* إخفاء هيدر الديسكتوب */
    .page-header { display: none !important; }
    .page-body { padding: 12px !important; }

    /* إظهار هيدر الجوال والشريط السفلي */
    .mob-header { display: flex !important; }
    .bottom-nav { display: flex !important; }

    /* بطاقات */
    .dashboard-cards { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; margin-bottom: 14px !important; }
    .stat-card { padding: 13px 11px !important; }
    .stat-icon { width: 38px !important; height: 38px !important; font-size: .95rem !important; }
    .stat-info .number { font-size: 1.5rem !important; }
    .action-cards { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
    .action-card  { padding: 14px 6px !important; }
    .action-card i { font-size: 1.3rem !important; }
    .action-card span { font-size: .7rem !important; }

    /* جداول */
    .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table.data-table { min-width: 500px; font-size: .78rem; }
    table.data-table th, table.data-table td { padding: 8px 9px; }

    /* نماذج */
    .card-section-body { padding: 13px 12px !important; }
    .btn-save { width: 100% !important; justify-content: center; }
    .info-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .result-body { padding: 13px !important; }
    .search-box-wrap { padding: 13px !important; }
    .form-type-label small { display: none; }
    .photo-grid { grid-template-columns: repeat(3, 1fr); }
    .photo-card img { height: 75px; }
}

@media (max-width: 400px) {
    .page-body   { padding: 10px !important; }
    .dashboard-cards { gap: 8px !important; }
    .action-cards { grid-template-columns: repeat(3, 1fr) !important; }
    .info-grid { grid-template-columns: 1fr 1fr !important; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
