/* =========================================================
   LENDTRAK SHARED THEME
========================================================= */

:root {
    --lt-header-blue: #b7d6ea;
    --lt-logo-blue: #0057b8;
    --lt-logo-green: #67b53f;
    --lt-action-blue: #1697d7;
    --lt-page-gray: #f2f2f2;
    --lt-text-dark: #2f2f2f;
    --lt-border: #cfcfcf;
    --lt-danger: #cc0000;
    --lt-card-white: #ffffff;
    --lt-tab-bg: #d9edf8;
    --lt-tab-active: #ffffff;
}

/* =========================================================
   BASE PAGE STYLE
========================================================= */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--lt-page-gray);
    color: var(--lt-text-dark);
}

h1, h2, h3 {
    color: var(--lt-text-dark);
}

/* =========================================================
   TOP HEADER
========================================================= */

.app-header {
    background: var(--lt-header-blue);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 35px;
    border-bottom: 1px solid #9bbfd6;
}

.app-logo {
    height: 85px;
    width: auto;
}

.app-tenant {
    font-size: 30px;
    font-weight: bold;
}

.app-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 40px;
    font-weight: bold;
    font-style: italic;
    text-decoration: underline;
}

/* =========================================================
   MAIN PAGE CONTENT
========================================================= */

.dashboard-content {
    margin: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--lt-logo-blue);
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

/* =========================================================
   CARDS / SUMMARY
========================================================= */

.card,
.summary-card {
    background: var(--lt-card-white);
    border: 1px solid var(--lt-border);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
}

.summary-card h2 {
    margin-top: 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: 180px 1fr 180px 1fr;
    gap: 10px 14px;
}

.summary-label {
    font-weight: bold;
}

/* =========================================================
   DASHBOARD TABLES
========================================================= */

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: var(--lt-header-blue);
    color: #222;
    font-weight: bold;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--lt-border);
}

td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background: #eef6fb;
}

/* =========================================================
   BUTTONS
========================================================= */

button {
    margin-top: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
}

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.save-btn {
    background: var(--lt-logo-blue);
    color: white;
    border: none;
    border-radius: 4px;
}

.save-btn:hover {
    background: #004a9d;
}

.delete-btn {
    background: var(--lt-danger);
    color: white;
    border: none;
    border-radius: 4px;
}

.delete-btn:hover {
    background: #a60000;
}

.small-btn {
    padding: 5px 9px;
    font-size: 12px;
}

/* =========================================================
   STANDARD ACTION BUTTONS
========================================================= */

.primary-button {
    height: 38px;
    background: #1f4e79;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.primary-button:hover {
    background: #173b5c;
}

.secondary-button {
    height: 38px;
    background: #ffffff;
    color: #374151;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.secondary-button:hover {
    background: #f3f4f6;
}

/* =========================================================
   FORMS
========================================================= */

textarea,
input[type="text"],
input[type="file"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 9px;
    box-sizing: border-box;
    border: 1px solid var(--lt-border);
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

textarea {
    min-height: 70px;
}

textarea:focus,
input[type="text"]:focus,
input[type="file"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus {
    outline: 2px solid #4f9fc9;
    border-color: #4f9fc9;
}

/* =========================================================
   FILEMAKER-STYLE TAB CONTROL
========================================================= */

.tab-control {
    background: white;
    border: 1px solid var(--lt-border);
    border-radius: 8px;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    background: #d7ecf7;
    border-bottom: 1px solid #b5d5e6;
}

.tab-button {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 13px 22px;
    border: none;
    border-right: 1px solid #b5d5e6;
    background: linear-gradient(#cce7f5, #b8d9eb);
    color: #1f2933;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.tab-button:hover {
    background: linear-gradient(#d9f0fb, #c7e2f0);
}

.tab-button.active {
    background: var(--lt-tab-active);
    color: var(--lt-logo-blue);
}

.tab-panel {
    display: none;
    padding: 14px;
}

.tab-panel.active {
    display: block;
}

.portal-body {
    height: 330px;
    overflow-y: auto;
    border: 1px solid var(--lt-border);
    background: #fff;
    padding: 8px;
}

.portal-row {
    border-bottom: 1px solid #e5e5e5;
    padding: 8px;
    font-size: 14px;
}

.portal-row:hover {
    background: #f7f7f7;
}

.portal-row small {
    color: #666;
}

.portal-actions {
    margin-top: 6px;
}

.form-area {
    margin-bottom: 12px;
}

/* =========================================================
   DASHBOARD FILTERS
========================================================= */

.dashboard-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.dashboard-filters select {
    height: 34px;
    min-width: 170px;
    padding: 4px 8px;
    border: 1px solid var(--lt-border);
    border-radius: 5px;
    font-size: 16px;
    background: white;
}

.clear-filter-btn {
    background: transparent;
    border: none;
    color: var(--lt-action-blue);
    font-size: 16px;
    line-height: 18px;
    cursor: pointer;
}

.clear-filter-btn:hover {
    text-decoration: underline;
}

.dashboard-total {
    background: #eeeeee;
    color: var(--lt-logo-green);
    text-align: center;
    font-size: 18px;
    padding: 12px;
    font-weight: bold;
}

.dashboard-total span {
    margin-left: 18px;
}

/* =========================================================
   MODALS
========================================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-box {
    width: 420px;
    max-width: calc(100% - 32px);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #1f2937;
}

.modal-close-button {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.modal-close-button:hover {
    color: #a12828;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-field input {
    height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 14px;
}

.payment-message {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* =========================================================
   LOAN DETAIL ACTION AREA
========================================================= */

.loan-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.danger-button {
    height: 38px;
    background: linear-gradient(#fff5f5, #f3c2c2);
    color: #991b1b;
    border: 1px solid #d88a8a;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.danger-button:hover {
    background: linear-gradient(#ffe8e8, #efb0b0);
}

/* =========================================================
   EDIT LOAN MODAL
========================================================= */

.edit-modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.edit-modal-box {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #7fb1cb;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    overflow: hidden;
}

.edit-modal-header {
    background: linear-gradient(#cce7f5, #9fc8df);
    border-bottom: 1px solid #7fb1cb;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-modal-header h2 {
    margin: 0;
    color: #1f2933;
}

.edit-modal-body {
    padding: 20px;
}

.edit-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 20px 20px;
}

.edit-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}

.edit-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edit-form-field.full-width {
    grid-column: 1 / -1;
}

.edit-form-field label {
    font-weight: 700;
    font-size: 14px;
    color: #334155;
}

.edit-form-field input,
.edit-form-field select {
    padding: 8px 12px;
    border: 1px solid #9fb9ca;
    border-radius: 7px;
    background: #ffffff;
    font-size: 15px;
    color: #1f2933;
}

.edit-form-field input:focus,
.edit-form-field select:focus {
    outline: 2px solid #4f9fc9;
    border-color: #4f9fc9;
}

.edit-loan-message {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 7px;
    display: none;
    font-weight: 700;
}

.edit-loan-message.error {
    display: block;
    background: #fff1f2;
    color: #b91c1c;
    border: 1px solid #fecdd3;
}

.edit-loan-message.success {
    display: block;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* =========================================================
   STATUS BADGES
   Optional reusable styles for lowercase database-safe statuses:
   potential, pending, active, active_eod,
   waiting_on_return_of_principal, inactive_failed, failed
========================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-badge.potential {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.status-badge.pending {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.status-badge.active {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.status-badge.active_eod {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.status-badge.waiting_on_return_of_principal {
    background: #fefce8;
    color: #a16207;
    border-color: #fde68a;
}

.status-badge.inactive_failed,
.status-badge.failed {
    background: #fff1f2;
    color: #b91c1c;
    border-color: #fecdd3;
}

/* =========================================================
   PORTAL HEADER / TABLE
========================================================= */

.portal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 14px 0;
}

.portal-header-row h3 {
    margin: 0;
    font-size: 20px;
    color: #1f2937;
}

.portal-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.portal-table thead {
    background: #e8f1f8;
}

.portal-table th {
    text-align: left;
    padding: 10px 12px;
    color: #1f2937;
    font-weight: 700;
    border-bottom: 1px solid #cbd5e1;
}

.portal-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    vertical-align: middle;
}

.portal-table tbody tr:hover {
    background: #f8fafc;
}

.portal-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.portal-delete-button {
    background: #ffffff;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.portal-delete-button:hover {
    background: #fee2e2;
}

/* =========================================================
   DOCUMENTS TABLE / DOCUMENT PREVIEWS
   Used by the loan detail Documents tab.
========================================================= */

.documents-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.documents-toolbar h3 {
    margin: 0;
    font-size: 20px;
    color: #1f2937;
}

.documents-table-wrapper {
    overflow-x: auto;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.documents-table th {
    background: #e8f1f8;
    color: #1f2937;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #cbd5e1;
    white-space: nowrap;
    font-weight: 700;
}

.documents-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    color: #1f2937;
}

.documents-table tr:last-child td {
    border-bottom: none;
}

.documents-table tbody tr:hover {
    background: #f8fafc;
}

.documents-empty {
    padding: 18px;
    border: 1px dashed #b7c7d8;
    border-radius: 8px;
    background: #f8fbfd;
    color: #64748b;
    text-align: center;
}

.document-preview-cell {
    width: 78px;
    min-width: 78px;
}

.document-thumbnail {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    object-fit: cover;
    display: block;
}

.document-thumbnail:hover {
    opacity: 0.88;
    cursor: pointer;
}

.document-file-icon {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: linear-gradient(#ffffff, #eef3f8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f3b57;
    font-weight: 800;
    font-size: 13px;
    text-align: center;
    line-height: 1.15;
}

.document-file-icon.pdf {
    background: linear-gradient(#fff5f5, #ffe1e1);
    color: #991b1b;
    border-color: #efb3b3;
}

.document-file-icon.image {
    background: linear-gradient(#f0fdf4, #dcfce7);
    color: #166534;
    border-color: #bbf7d0;
}

.document-file-icon.word {
    background: linear-gradient(#eff6ff, #dbeafe);
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.document-file-icon.excel {
    background: linear-gradient(#ecfdf5, #d1fae5);
    color: #047857;
    border-color: #a7f3d0;
}

.document-file-icon.other {
    background: linear-gradient(#f8fafc, #e2e8f0);
    color: #334155;
}

.document-file-icon.missing {
    background: #f8fafc;
    color: #94a3b8;
    font-size: 11px;
}

.document-name {
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.document-type-badge {
    display: inline-block;
    background: #edf4fa;
    color: #1f3b57;
    border: 1px solid #c8d9e8;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.document-notes {
    color: #475569;
    max-width: 380px;
    line-height: 1.35;
}

.document-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.document-open-button {
    display: inline-block;
    background: linear-gradient(#ffffff, #e8eef5);
    color: #1f3b57;
    border: 1px solid #b7c7d8;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.document-open-button:hover {
    background: linear-gradient(#f5f9fc, #dce8f2);
    text-decoration: none;
}

.document-no-file {
    color: #94a3b8;
    font-size: 13px;
}

/* =========================================================
   PHOTO GRID
========================================================= */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.photo-grid-card {
    background: #ffffff;
    border: 1px solid #d8dee4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

.photo-grid-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: #f2f4f7;
    border-bottom: 1px solid #d8dee4;
}

.photo-grid-image:hover {
    opacity: 0.88;
    cursor: pointer;
}

.photo-missing-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f4f7;
    color: #6b7280;
    font-size: 13px;
    border-bottom: 1px solid #d8dee4;
}

.photo-grid-info {
    padding: 10px;
}

.photo-grid-title {
    font-weight: 700;
    font-size: 14px;
    color: #1f2933;
    margin-bottom: 5px;
}

.photo-grid-caption {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.35;
    margin-bottom: 6px;
}

.photo-grid-date {
    font-size: 12px;
    color: #7b8794;
    margin-bottom: 8px;
}

.photo-grid-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
}

.photo-grid-actions a {
    color: #1f5f7a;
    text-decoration: none;
    font-weight: 600;
}

.photo-grid-actions a:hover {
    text-decoration: underline;
}

/* =========================================================
   PHOTO PREVIEW MODAL
========================================================= */

.photo-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.72);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.photo-preview-box {
    width: min(1000px, 95vw);
    max-height: 92vh;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.photo-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #d8dee4;
    background: #f6f8fa;
}

.photo-preview-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2933;
}

.photo-preview-close-button {
    border: none;
    background: transparent;
    color: #1f2933;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.photo-preview-close-button:hover {
    color: #a12828;
}

.photo-preview-body {
    padding: 16px;
    text-align: center;
    overflow: auto;
    max-height: calc(92vh - 58px);
}

.photo-preview-image {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #d8dee4;
    background: #f2f4f7;
}

.photo-preview-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #4b5563;
}

/* =========================================================
   LENDTRAK CONFIRMATION MODAL
   Used for nicer yes/no prompts such as unsaved changes.
========================================================= */

.lendtrak-confirm-overlay {
    display: none;
    position: fixed;
    z-index: 12000;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lendtrak-confirm-overlay.is-open {
    display: flex;
}

.lendtrak-confirm-box {
    width: 420px;
    max-width: calc(100% - 32px);
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #7fb1cb;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.38);
    overflow: hidden;
}

.lendtrak-confirm-header {
    background: linear-gradient(#cce7f5, #9fc8df);
    border-bottom: 1px solid #7fb1cb;
    padding: 16px 20px;
}

.lendtrak-confirm-header h2 {
    margin: 0;
    font-size: 20px;
    color: #1f2933;
}

.lendtrak-confirm-body {
    padding: 20px;
    font-size: 15px;
    color: #374151;
    line-height: 1.45;
}

.lendtrak-confirm-body strong {
    color: #1f2933;
}

.lendtrak-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.lendtrak-confirm-discard-button {
    height: 38px;
    background: #ffffff;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.lendtrak-confirm-discard-button:hover {
    background: #fee2e2;
}

.lendtrak-confirm-keep-button {
    height: 38px;
    background: #1f4e79;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.lendtrak-confirm-keep-button:hover {
    background: #173b5c;
}

/* =========================================================
   RESPONSIVE LAYOUT
========================================================= */

@media (max-width: 900px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .app-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-title {
        margin: 0;
        font-size: 30px;
    }

    .app-logo {
        height: 70px;
    }

    .dashboard-filters {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .loan-action-row {
        justify-content: flex-start;
    }

    .edit-form-grid {
        grid-template-columns: 1fr;
    }

    .edit-modal-footer,
    .modal-footer,
    .lendtrak-confirm-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .primary-button,
    .secondary-button,
    .danger-button,
    .lendtrak-confirm-discard-button,
    .lendtrak-confirm-keep-button {
        width: 100%;
    }

    .documents-toolbar {
        align-items: stretch;
    }

    .documents-toolbar h3 {
        width: 100%;
    }

    .documents-table th,
    .documents-table td {
        padding: 8px;
    }

    .document-preview-cell {
        width: 66px;
        min-width: 66px;
    }

    .document-thumbnail,
    .document-file-icon {
        width: 50px;
        height: 50px;
    }
}