/* Regole isolate: non alterano il layout Bootstrap generale. */

#signature-pad {
    position: relative;
    width: 100%;
}

#signature-canvas {
    background: #fff;
    display: block;
    width: 100% !important;
}

.signature-guide {
    bottom: 46px;
    display: block;
    height: 20px;
    left: 16%;
    pointer-events: none;
    position: absolute;
    right: 16%;
    z-index: 5;
}

.signature-guide i {
    bottom: -1px;
    color: #a8a8a8;
    font-size: 14px;
    left: 0;
    position: absolute;
    transform: rotate(-18deg);
}

.signature-guide span {
    background: #d0d0d0;
    bottom: 5px;
    display: block;
    height: 1px;
    left: 22px;
    position: absolute;
    right: 0;
}

.logout-button,
.clear-button {
    background-color: #f8f9fa !important;
    border: 0 !important;
    color: #212529 !important;
}

.header-menu-button {
    align-items: center;
    border: 0 !important;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0 !important;
    width: 34px;
}

.dropdown-menu .fas {
    margin-right: 8px;
    width: 14px;
}

.logout-button:hover,
.clear-button:hover {
    background-color: #e2e6ea !important;
    color: #212529 !important;
}

.clear-button {
    margin-top: 0 !important;
}

.clear-button i {
    color: inherit !important;
}

.thumb-wrap {
    margin: 4px;
    position: relative;
}

.thumb-wrap img {
    border: 1px solid #999;
    border-radius: 3px;
    height: 90px;
    width: auto;
}

.remove-thumb {
    background: #dc3545;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    height: 18px;
    line-height: 18px;
    position: absolute;
    right: -6px;
    top: -6px;
    width: 18px;
}

.reports-list {
    display: none !important;
}

.report-card {
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
}

.report-card-name {
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.report-card-meta {
    color: #6c757d;
    font-size: 12px;
    margin-top: 3px;
}

.report-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.report-card-actions .btn {
    flex: 1;
}

@media (max-width: 767.98px) {
    .reports-table {
        display: none !important;
    }

    .reports-list {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .reports-table {
        display: block !important;
    }

    .reports-list {
        display: none !important;
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    #signature-pad {
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 24px) !important;
    }

    #signature-canvas {
        height: calc(100vh - 110px) !important;
        min-height: 220px;
    }

    .signature-guide {
        bottom: 24%;
        left: 20%;
        right: 20%;
    }
}
