/* ============================================================
   APP.CSS — Portal de Documentos v2 — Mobile-first
============================================================ */
:root {
    --sidebar-w:    260px;
    --topbar-h:     56px;
    --bg:           #f0f2f5;
    --surface:      #ffffff;
    --border:       #e2e6ea;
    --primary:      #d539b5;
    --primary-soft: #eff6ff;
    --text:         #1e293b;
    --muted:        #64748b;
    --danger:       #dc2626;
    --success:      #16a34a;
    --warning:      #d97706;
    --radius:       12px;
    --shadow:       0 1px 3px rgba(0,0,0,.08);
    --shadow-lg:    0 10px 25px rgba(0,0,0,.12);
    --t:            .25s cubic-bezier(.4,0,.2,1);
    --bs-primary-rgb: 213, 57, 181;
    --bs-primary:     #d539b5;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }

/* ── TOPBAR ── */
.app-topbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: var(--surface); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 1rem; gap: .75rem;
    z-index: 200; box-shadow: var(--shadow);
}
.sidebar-toggle { background: none; border: none; font-size: 1.4rem; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 8px; transition: background var(--t); }
.sidebar-toggle:hover { background: var(--bg); }

.topbar-brand {
    display:     flex;
    align-items: center;
    gap:         0.5rem;font-weight: normal; font-size: 1rem; color: var(--primary);
}

.topbar-logo {
    height:      28px;      /* ajusta a tu logo */
    width:       auto;
    object-fit:  contain;
    flex-shrink: 0;
}
.topbar-right { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.topbar-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.topbar-icon-btn { color: var(--muted); font-size: 1.2rem; padding: 4px 6px; border-radius: 8px; transition: color var(--t), background var(--t); text-decoration: none; display: flex; align-items: center; }
.topbar-icon-btn:hover { color: var(--primary); background: var(--primary-soft); }

/* ── SIDEBAR ── */
.app-sidebar {
    position: fixed; top: 56px; left: 0; bottom: 0;
    width: var(--sidebar-w); background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    z-index: 300;
    transform: translateX(calc(-1 * var(--sidebar-w)));
    transition: transform var(--t);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-lg);
}
.app-sidebar.open { transform: translateX(0); }
@media (min-width: 1200px) {
    .app-sidebar {
        transform: translateX(0);
        box-shadow: none;
    }
    .app-sidebar.collapsed {
        transform: translateX(calc(-1 * var(--sidebar-w)));
    }
    .app-main {
        margin-left: var(--sidebar-w) !important;
    }
    .app-main.sidebar-collapsed {
        margin-left: 0 !important;
    }
    .sidebar-close-btn {
        display: none;
    }
}
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 290; backdrop-filter: blur(2px); }
.sidebar-overlay.show { display: block; }

.sidebar-profile { display: flex; align-items: center; gap: .75rem; padding: 1rem; border-bottom: 1px solid var(--border); min-height: var(--topbar-h); }
.profile-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.profile-initials { background: var(--primary); color: #fff; font-weight: 600; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-rol-admin    { display:inline-block; font-size:.7rem; color:#92400e; background:#fef3c7; padding:1px 7px; border-radius:20px; margin-top:2px; }
.badge-rol-empleado { display:inline-block; font-size:.7rem; color:#065f46; background:#d1fae5; padding:1px 7px; border-radius:20px; margin-top:2px; }
.badge-rol-gestoria{ display:inline-block; font-size:.7rem; color:#1e40af; background:#dbeafe; padding:1px 7px; border-radius:20px; margin-top:2px; }
.sidebar-close-btn { background:none; border:none; color:var(--muted); font-size:1rem; cursor:pointer; padding:4px; border-radius:6px; flex-shrink:0; }
@media (min-width:992px) { .sidebar-close-btn { display:none; } }

.sidebar-nav { flex:1; padding:.5rem 0; }
.sidebar-nav ul { list-style:none; }
.nav-divider { height: 1px; background: var(--border); margin: .4rem .75rem; }
.nav-item { display:flex; align-items:center; gap:.75rem; padding:.65rem 1rem; color:var(--muted); text-decoration:none; border-radius:8px; margin:2px .5rem; font-size:.8rem; font-weight:700; transition:background var(--t),color var(--t); }
.nav-item i { font-size:.8rem; flex-shrink:0; }
.nav-item:hover { background:var(--bg); color:var(--text); }
.nav-item.active { background:var(--primary-soft); color:var(--primary); }
.text-danger-soft { color:#dc2626 !important; }
.text-danger-soft:hover { background:#fee2e2 !important; }
.sidebar-footer { padding:.5rem 0 1rem; border-top:1px solid var(--border); }

/* ── MAIN ── */
.app-main { margin-top: var(--topbar-h); min-height: calc(100vh - var(--topbar-h)); transition: margin-left var(--t); }
.content-inner { padding: 1.25rem 1rem; }
@media (min-width: 768px) {
    .content-inner {
        padding: 1.75rem 1.5rem;
    }
}
@media (min-width:768px) { .content-inner { padding: 1.75rem 1.5rem; } }

/* ── PAGE HEADER ── */
.page-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; margin-bottom:1.25rem; }
.page-title { font-size:1.25rem; font-weight:normal; }
@media (min-width:768px) { .page-title { font-size:1.5rem; } }

/* ── LOGIN PAGE ── */
.login-page { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:1rem; background:var(--bg); }
.login-card { background:var(--surface); border-radius:20px; padding:2.25rem 2rem; width:100%; max-width:400px; box-shadow:var(--shadow-lg); }
.login-logo { display:flex; align-items:center; justify-content:center; margin-bottom:1.5rem; }
.login-title { font-size:1.5rem; font-weight:700; margin-bottom:.25rem; }
.login-sub { color:var(--muted); font-size:.9rem; margin-bottom:1.75rem; }
.divider-or { display:flex; align-items:center; gap:.75rem; color:var(--muted); font-size:.8rem; margin:1.25rem 0; }
.divider-or::before,.divider-or::after { content:''; flex:1; height:1px; background:var(--border); }
.btn-google { display:flex; align-items:center; justify-content:center; gap:.75rem; width:100%; padding:.8rem 1.25rem; background:#1e293b; color:#fff; border:none; border-radius:12px; font-size:.9rem; font-weight:500; text-decoration:none; transition:background .2s,transform .15s; cursor:pointer; }
.btn-google:hover { background:#0f172a; transform:translateY(-1px); color:#fff; }
.btn-google:disabled { opacity:.6; cursor:not-allowed; }

/* ── CARDS DOCUMENTOS ── */
.card-doc { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1rem; transition:box-shadow var(--t),transform var(--t); display:flex; flex-direction:column; gap:.5rem; }
.card-doc:hover { box-shadow:var(--shadow-lg); transform:translateY(-1px); }
.doc-icon { font-size:1.75rem; line-height:1; }
.doc-title { font-weight:600; font-size:.95rem; line-height:1.3; }
.doc-meta { font-size:.7rem; color:var(--muted); display:flex; align-items:center; gap:.4rem; flex-wrap:wrap; }
.doc-tags { display:flex; flex-wrap:wrap; gap:.3rem; }
.tag-pill { display:inline-flex; align-items:center; padding:2px 8px; border-radius:20px; font-size:.72rem; font-weight:500; color:#fff; white-space:nowrap; }
.doc-actions { display:flex; gap:.5rem; margin-top:auto; padding-top:.5rem; border-top:1px solid var(--border); }

/* ── BUSCADOR ── */
.search-bar { display:flex; gap:.5rem; margin-bottom:1rem; flex-wrap:wrap; }
.search-bar .form-control, .search-bar .form-select { border-radius:10px; border-color:var(--border); font-size:.9rem; }

/* ── UPLOAD ZONE ── */
.upload-zone { border:2px dashed var(--border); border-radius:var(--radius); padding:2rem 1rem; text-align:center; background:var(--bg); cursor:pointer; transition:border-color var(--t),background var(--t); color:var(--muted); }
.upload-zone.dragover { border-color:var(--primary); background:var(--primary-soft); color:var(--primary); }
.upload-zone i { font-size:2rem; margin-bottom:.5rem; display:block; }

/* ── FILE ITEMS ── */
.file-item { background:var(--bg); border:1px solid var(--border); border-radius:10px; padding:.75rem; margin-bottom:.75rem; }
.file-item-header { display:flex; align-items:center; gap:.5rem; margin-bottom:.6rem; }
.file-name-badge { font-size:.82rem; font-weight:500; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-size-badge { font-size:.75rem; color:var(--muted); flex-shrink:0; }
.btn-remove-file { background:none; border:none; color:var(--muted); cursor:pointer; font-size:1rem; flex-shrink:0; transition:color var(--t); }
.btn-remove-file:hover { color:var(--danger); }
.tags-checkboxes { display:flex; flex-wrap:wrap; gap:.35rem; }
.tag-checkbox-label { display:inline-flex; align-items:center; gap:.25rem; padding:3px 9px; border-radius:20px; font-size:.75rem; font-weight:500; border:1.5px solid; cursor:pointer; transition:opacity var(--t); user-select:none; }
.tag-checkbox-label input { display:none; }
.tag-checkbox-label:not(.selected) { opacity:.7; }
.tag-checkbox-label.selected { opacity:1;background-color: #3d4249;color: white !important; }
.upload-progress { height:4px; border-radius:2px; background:var(--border); overflow:hidden; margin-top:.4rem; display:none; }
.upload-progress-bar { height:100%; background:var(--primary); width:0; transition:width .3s; }

/* ── TABLA ── */
.table-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.table-card .table { margin-bottom:0; font-size:.83rem; }
.table-card .table th { font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:600; background:var(--bg); border-bottom:1px solid var(--border); padding:.6rem 1rem; }
.table-card .table td { padding:.75rem 1rem; vertical-align:middle; }

/* ── PERFIL ── */
.profile-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem; margin-bottom:1rem; }
.profile-card-title { font-size:1rem; font-weight:600; margin-bottom:1.25rem; padding-bottom:.75rem; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:.5rem; }
.google-linked { display:flex; align-items:center; gap:1rem; padding:.75rem; background:var(--bg); border-radius:10px; }
.google-linked-info { flex:1; }
.google-linked-name { font-weight:500; font-size:.9rem; }
.google-linked-email { font-size:.8rem; color:var(--muted); }

/* ── EMPTY STATE ── */
.empty-state { text-align:center; padding:3rem 1rem; color:var(--muted); }
.empty-state i { font-size:3rem; opacity:.3; display:block; margin-bottom:.75rem; }

/* ── BOTONES ── */
.btn { border-radius:10px; font-size:.78rem; font-weight:500; }
.btn-primary { background:var(--primary); border-color:var(--primary); }
.btn-icon { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; border:1px solid var(--border); background:var(--surface); color:var(--muted); transition:all var(--t); text-decoration:none; }
.btn-icon:hover { border-color:var(--primary); color:var(--primary); background:var(--primary-soft); }
.btn-icon.danger:hover { border-color:var(--danger); color:var(--danger); background:#fee2e2; }

/* ── FAB ── */
.fab { position:fixed; bottom:calc(1.5rem + env(safe-area-inset-bottom)); right:1.5rem; width:56px; height:56px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.5rem; box-shadow:0 4px 16px rgba(37,99,235,.4); z-index:100; border:none; cursor:pointer; transition:transform var(--t),box-shadow var(--t); }
.fab:hover { transform:scale(1.08); }
@media (min-width:768px) { .fab { display:none; } }

/* ── COLOR PICKER ── */
.color-options { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.25rem; }
.color-dot { width:28px; height:28px; border-radius:50%; cursor:pointer; border:3px solid transparent; transition:border-color var(--t),transform var(--t); }
.color-dot.selected { border-color:#fff; outline:2px solid #333; transform:scale(1.1); }

/* ── ALERTS ── */
.alert-custom { border-left:3px solid var(--warning); background:#fffbeb; padding:.75rem 1rem; border-radius:8px; font-size:.85rem; color:#78350f; margin-bottom:1rem; }
.alert-custom.success { border-color:var(--success); background:#f0fdf4; color:#14532d; }
.alert-custom.danger  { border-color:var(--danger);  background:#fef2f2; color:#7f1d1d; }

/* ── TOAST ── */
.toast-container { z-index:9999; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-thumb { background:#cbd5e1; border-radius:3px; }

/* =============================================
   Override btn-primary — outline magenta #d539b5
   Compatible Bootstrap 4 y 5
   ============================================= */

.btn-primary {
    /* Bootstrap 5 variables */
    --bs-btn-color:                #d539b5;
    --bs-btn-bg:                   #fff;
    --bs-btn-border-color:         #d539b5;
    --bs-btn-hover-color:          #fff;
    --bs-btn-hover-bg:             #d539b5;
    --bs-btn-hover-border-color:   #d539b5;
    --bs-btn-focus-shadow-rgb:     213, 57, 181;
    --bs-btn-active-color:         #fff;
    --bs-btn-active-bg:            #aa2d90;
    --bs-btn-active-border-color:  #aa2d90;
    --bs-btn-disabled-color:       #d539b5;
    --bs-btn-disabled-bg:          #fff;
    --bs-btn-disabled-border-color:#d539b5;

    /* Bootstrap 4 fallback */
    color:            #d539b5;
    background-color: #fff;
    border-color:     #d539b5;
}

/* Hover: rellena con el color */
.btn-primary:hover {
    color:            #fff;
    background-color: #d539b5;
    border-color:     #d539b5;
}

/* Focus */
.btn-primary:focus,
.btn-primary.focus {
    color:            #fff;
    background-color: #d539b5;
    border-color:     #d539b5;
    box-shadow:       0 0 0 0.25rem rgba(213, 57, 181, 0.5);
    outline:          none;
}

/* Active / pressed */
.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    color:            #fff;
    background-color: #aa2d90;
    border-color:     #aa2d90;
    box-shadow:       0 0 0 0.25rem rgba(213, 57, 181, 0.5);
}

/* Disabled */
.btn-primary:disabled,
.btn-primary.disabled {
    color:            #d539b5;
    background-color: #fff;
    border-color:     #d539b5;
    opacity:          0.65;
}

/* DataTables */
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info { font-size:.82rem; color:var(--muted); }
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius:8px !important; font-size:.82rem; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background:var(--primary) !important; border-color:var(--primary) !important; color:#fff !important;
}
.dt-footer .dataTables_info     { flex: 1; font-size: .82rem; color: var(--muted); }
.dt-footer .dataTables_length   { flex: 1; text-align: center; }
.dt-footer .dataTables_paginate { flex: 1; text-align: right; }
.page-link{font-size: .7rem; color: var(--primary);}
div.dataTables_wrapper div.dataTables_length label{font-size:.8rem}
.active>.page-link, .page-link.active{
    color: var(--surface);
    background-color: var(--primary);
    border-color: var(--primary);
}
table.dataTable thead th {
    font-size:.72rem; text-transform:uppercase; letter-spacing:.06em;
    color:var(--muted); font-weight:600; background:var(--bg);
    white-space:nowrap; border-bottom:2px solid var(--border) !important;
}
table.dataTable tbody tr { cursor:pointer; }
table.dataTable tbody tr:hover td { background:var(--primary-soft); }
table.dataTable tbody tr.doc-unread td { background:#fff5f5; }
table.dataTable tbody tr.doc-unread:hover td { background:#fee2e2; }
table.dataTable td { vertical-align:middle; font-size:.83rem; padding:.65rem .75rem !important; }
.dt-actions { display:flex; gap:.3rem; justify-content:flex-end; }
.fw-500 { font-weight:500; }
.unread-dot { width:8px; height:8px; border-radius:50%; background:#dc2626; flex-shrink:0; display:inline-block; }
.search-panel { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.25rem; margin-bottom:1rem; }
.search-panel-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; }
.search-panel-title { font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); display:flex; align-items:center; gap:.4rem; }
.search-panel .form-label { font-size:.7rem; font-weight:600; color:var(--text); margin-bottom:.3rem; }
.search-panel .form-control, .search-panel .form-select { font-size:.83rem; border-color:var(--border); border-radius:8px; }
.search-panel .form-control:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,.1); }
.date-range { display:flex; align-items:center; gap:.4rem; }
.date-range .sep { color:var(--muted); font-size:.8rem; flex-shrink:0; }
.date-range input { min-width:0; flex:1; }
.choices { margin-bottom:0; }
.choices__inner { border-color:var(--border) !important; border-radius:8px !important; background:var(--surface) !important; min-height:38px !important; padding:3px 8px !important; font-size:.83rem !important; }
.choices__input--cloned { font-size:.83rem !important; background:transparent !important; margin-bottom:0 !important; }
.choices__list--dropdown { border-color:var(--border) !important; border-radius:8px !important; font-size:.83rem !important; z-index:9999; }
.choices__list--dropdown .choices__item--selectable.is-highlighted { background:var(--primary-soft) !important; color:var(--primary) !important; }
.choices__list--multiple .choices__item { background:var(--primary) !important; border-color:var(--primary) !important; border-radius:6px !important; font-size:.75rem !important; }
.folder-tree { list-style:none; padding:0; margin:0; }
.folder-tree li { padding:0; }
.folder-tree-item { display:flex; align-items:center; gap:.4rem; padding:.45rem .75rem; border-radius:8px; cursor:pointer; font-size:.83rem; color:var(--text); text-decoration:none; transition:background .15s; white-space:nowrap; overflow:hidden; }
.folder-tree-item:hover { background:var(--bg); }
.folder-tree-item.active { background:var(--primary-soft); color:var(--primary); font-weight:500; }
.folder-tree-item .fi { font-size:1rem; flex-shrink:0; }
.folder-tree-children { padding-left:1.25rem; border-left:2px solid var(--border); margin-left:.9rem; }
.page-size-ctrl { display:flex; align-items:center; gap:.4rem; font-size:.7rem; color:var(--muted); }
.historial-row { display:flex; align-items:center; gap:.75rem; padding:.5rem 0; border-bottom:1px solid var(--border); }
.historial-row:last-child { border-bottom:none; }
.historial-avatar { width:32px; height:32px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:.7rem; font-weight:600; flex-shrink:0; }

.icono_usuario{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:600}
.icono_usuario.rol-admin {color:#92400e; background:#fef3c7;}
.icono_usuario.rol-empleado {color:#065f46; background:#d1fae5;}
.icono_usuario.rol-gestoria {color:#1e40af; background:#dbeafe;}
.avatar_usuario{width:30px;height:30px;border-radius:50%;object-fit:cover}

.color-dot{width:26px;height:26px;border-radius:50%;cursor:pointer;border:3px solid transparent;transition:.2s}
.color-dot.selected{border-color:#fff;outline:2px solid #333;transform:scale(1.1)}
.color-options{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.25rem}
.icon-options{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.25rem}
.icon-opt{width:36px;height:36px;border-radius:8px;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:1.1rem;transition:.2s}
.icon-opt.selected{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}

.dropdown-item{font-size: .8rem}

.folder-tree-item-wrap {
    display: flex;
    align-items: center;
    gap: .15rem;
}
.folder-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--muted);
    border-radius: 4px;
    transition: background .15s;
}
.folder-toggle:hover { background: var(--bg); }
.folder-toggle-placeholder { width: 20px; flex-shrink: 0; }
.folder-chevron { font-size: .65rem; transition: transform .2s; }
.folder-toggle[aria-expanded="true"] .folder-chevron { transform: rotate(90deg); }

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    content: '+';
    font-size: 1.1rem;
    font-weight: 600;
    width: 22px;
    height: 22px;
    line-height: 21px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--muted);
    color: #fff;
    border: none;
    box-shadow: none;
    /* Posición inline antes del contenido en lugar de encima */
    display: inline-flex;
    float: left;
    margin-right: 8px;
    margin-top: 2px;
    position: relative;
    top: auto;
    left: auto;
    justify-content: center;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control::before {
    content: '−';
    background-color: var(--muted);
}

/* ── Botón Sign in with Apple ─────────────────────────────── */
.btn-apple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .65rem 1rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s;
    margin-top: .5rem;
}
.btn-apple:hover { background: #1a1a1a; color: #fff; }

.form-control-sm{font-size:.85rem}

@media (max-width: 767px) {
    #btnSubirDoc,
    #btnSubirLote {
        flex: 1;
        border-radius: 50px;
        background-color: var(--primary);
        color: var(--surface);
        font-size: 1rem;
        font-weight: 700;
    }
    #docs-title{display: none;}
}

@media (max-width: 767px) {
    #uploadModal .modal-dialog {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    #uploadModal .modal-content {
        max-height: calc(100vh - 2rem);
        display: flex;
        flex-direction: column;
    }
    #uploadModal .modal-body {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
    #uploadModal .modal-footer {
        flex-shrink: 0;
    }

    #uploadModal #btnUploadConfirm{
        color: #fff;
        background-color: #d539b5;
        border-color: #d539b5;
        font-size: 1rem;
        font-weight: 700;
    }
    #uploadModal .btn-outline-secondary{
        font-size: 1rem;
        font-weight: 700;
    }
}