﻿body {
    background: #f4f6f9;
    font-family: Arial, sans-serif;
    color: #1f2937;
}

.mobile-page {
    max-width: 520px;
    margin: 0 auto;
    padding: 12px;
    padding-bottom: 90px;
}

.app-header {
    background: #ffffff;
    border-bottom: 1px solid #dbe1ea;
    padding: 14px 12px;
    margin: -12px -12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .app-header h5 {
        margin: 0;
        color: #e11d48;
        font-weight: 700;
    }

    .app-header small {
        color: #64748b;
    }

.icon-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #ffb000;
    color: #111827;
    font-weight: 700;
}

.filter-card,
.entry-card,
.surety-card {
    background: #ffffff;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

label {
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0 5px;
    color: #374151;
}

.form-control,
.form-select {
    min-height: 42px;
    font-size: 14px;
    border-radius: 7px;
}

.ticket-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.ps-btn {
    min-width: 78px;
    border-radius: 7px;
}

.summary-row {
    background: #ffffff;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
}

    .summary-row strong {
        font-size: 20px;
        display: block;
    }

    .summary-row span {
        color: #64748b;
    }

.approved-text {
    color: #15803d;
    font-weight: 700;
}

.rejected-text {
    color: #dc2626;
    font-weight: 700;
}

.pending-text {
    color: #d97706;
    font-weight: 700;
}

.main-action {
    min-height: 44px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 700;
}

.entry-card h6 {
    font-weight: 700;
    margin-bottom: 6px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.photo-box {
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    padding: 10px;
    background: #f8fafc;
}

    .photo-box small {
        display: block;
        margin-top: 6px;
        color: #64748b;
        font-size: 12px;
    }

.save-btn {
    min-height: 46px;
    margin-top: 14px;
    border-radius: 8px;
    font-weight: 700;
}

.surety-list {
    margin-top: 14px;
}

.surety-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

    .surety-head h6 {
        margin: 0;
        color: #1d4ed8;
        font-weight: 700;
    }

    .surety-head span {
        font-size: 13px;
        color: #475569;
    }

.status-badge {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

    .status-badge.approved {
        background: #16a34a;
    }

    .status-badge.rejected {
        background: #dc2626;
    }

    .status-badge.pending {
        background: #f59e0b;
    }

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

    .info-grid p {
        margin: 0;
        font-size: 13px;
        line-height: 1.45;
    }

    .info-grid small {
        color: #2563eb;
    }

.remarks {
    background: #f8fafc;
    border-radius: 7px;
    padding: 8px;
    font-size: 13px;
    margin: 12px 0 0;
    color: #334155;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

    .card-actions .btn {
        min-height: 38px;
        border-radius: 7px;
    }

.bottom-actions {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #dce3ec;
    padding: 10px 12px;
    margin: 16px -12px -90px;
    display: grid;
    gap: 8px;
}

    .bottom-actions .btn {
        min-height: 44px;
        border-radius: 8px;
        font-weight: 700;
    }

@media (max-width: 380px) {
    .two-col,
    .info-grid,
    .summary-row {
        grid-template-columns: 1fr;
    }

    .ticket-row {
        grid-template-columns: 1fr;
    }

    .ps-btn {
        width: 100%;
    }
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 10px;
    align-items: center;
}

.photo-preview-wrap {
    width: 110px;
    height: 110px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
}

.photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 380px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .photo-preview-wrap {
        width: 100%;
        height: 180px;
    }
}

.surety-person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.surety-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    flex: 0 0 auto;
}

.surety-person h6 {
    margin: 0;
    color: #1d4ed8;
    font-weight: 700;
}

.surety-person span {
    font-size: 13px;
    color: #475569;
}

.selfie-modal-content {
    border-radius: 8px;
    overflow: hidden;
}

.selfie-modal-img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
}

.summary-with-photo {
    display: grid;
    grid-template-columns: 1fr 96px;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
}

    .summary-with-photo .summary-row {
        margin-bottom: 0;
    }

.ticket-photo-box {
    background: #ffffff;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

.ticket-photo {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #d1d5db;
    background: #f8fafc;
}

.ticket-photo-box span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

@media (max-width: 380px) {
    .summary-with-photo {
        grid-template-columns: 1fr;
    }

    .ticket-photo {
        width: 100px;
        height: 100px;
    }
}

.summary-panel {
    background: #ffffff;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr 82px;
    gap: 10px;
    align-items: center;
}

.compact-summary {
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
}

.summary-photo-side {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-left: 1px solid #e5e7eb;
    padding-left: 10px;
}

.summary-customer-photo {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

@media (max-width: 380px) {
    .summary-panel {
        grid-template-columns: 1fr 76px;
        gap: 8px;
    }

    .summary-customer-photo {
        width: 62px;
        height: 62px;
    }
}